Gradient inversion attacks improved using linear and affine constraints
Gradient Inversion through Linear and Affine Subspace Constraints
Cryptography and SecurityMachine Learning
Summary
Federated learning lets many users train a shared AI without sharing their personal data, but the gradients they send can unintentionally reveal private information. The authors show that gradients from certain neural network layers actually come from a combination of inputs with a specific mathematical property called an affine combination, not just a linear one. By using this insight, they developed new techniques to better reconstruct the original data from gradients, even when the batch size is uncertain or when noise is added for privacy. These findings help understand how private data might be exposed during federated learning and how to assess defenses.
What this means in practice
- •For privacy engineers: Evaluate client data privacy vulnerabilities by reconstructing inputs from gradients more accurately, even with unknown batch sizes or noisy gradients.
- •For machine learning security teams: Improve testing of federated learning setups against gradient inversion attacks by using affine and linear subspace constraints in reconstruction.
Authors
Konstantinos Bouros, Athanasios P. Liavas
Abstract
Federated learning enables multiple clients to collaboratively train a machine-learning model without directly sharing their local datasets. However, as prior works have shown, the gradients exchanged during training may reveal sensitive information about client data. Most existing attacks usually optimize dummy inputs to match the true client gradients (Gradient Inversion Attacks), while some attempt to reconstruct them based on the observation that aggregate gradients from a fully connected (FC) layer are a linear combination of its inputs. In this work, we extend this observation by showing that aggregate gradients from an FC layer with the correct scaling are actually an affine combination of its inputs. We evaluate a gradient inversion attack that leverages either known linear-subspace information or its affine-subspace counterpart at each FC layer to improve reconstruction accuracy. Our results show that subspace-based methods can substantially improve reconstruction quality over the chosen baselines in certain settings. We further demonstrate that moderate overestimation of the batch size can generally improve or preserve reconstruction quality, even when the true batch size is unknown. We additionally examine reconstruction under gradient perturbations introduced by a differential privacy (DP) mechanism, providing insight into the effectiveness of the considered formulations under noisy conditions.