[Paper Review] Inverting Gradients -- How easy is it to break privacy in federated learning?
The paper demonstrates that input data can be reconstructed from gradient information in federated learning, even with modern deep architectures and after gradient averaging across multiple images or epochs.
The idea of federated learning is to collaboratively train a neural network on a server. Each user receives the current weights of the network and in turns sends parameter updates (gradients) based on local data. This protocol has been designed not only to train neural networks data-efficiently, but also to provide privacy benefits for users, as their input data remains on device and only parameter gradients are shared. But how secure is sharing parameter gradients? Previous attacks have provided a false sense of security, by succeeding only in contrived settings - even for a single image. However, by exploiting a magnitude-invariant loss along with optimization strategies based on adversarial attacks, we show that is is actually possible to faithfully reconstruct images at high resolution from the knowledge of their parameter gradients, and demonstrate that such a break of privacy is possible even for trained deep networks. We analyze the effects of architecture as well as parameters on the difficulty of reconstructing an input image and prove that any input to a fully connected layer can be reconstructed analytically independent of the remaining architecture. Finally we discuss settings encountered in practice and show that even averaging gradients over several iterations or several images does not protect the user's privacy in federated learning applications in computer vision.
Motivation & Objective
- Motivate and formalize privacy risks in federated learning where only gradients are shared.
- Demonstrate that gradients contain recoverable information about private inputs, including for trained deep networks.
- Develop analytical and optimization-based methods to recover inputs from gradients.
- Assess how network architecture, training status, and gradient averaging affect reconstruction risk.
- Discuss practical implications and limitations for privacy-preserving learning.
Proposed method
- Theoretically analyze the information content of parameter gradients and show an analytic reconstruction possibility for inputs to fully connected layers.
- Propose a cosine-similarity based objective with image priors (Total Variation) and optimize with Adam to reconstruct inputs from gradients.
- Compare the proposed cosine-based attack to prior Euclidean-distance-based reconstruction (LBFGS) across architectures and training states.
- Empirically evaluate single-image reconstruction on shallow/untrained vs. trained deep nets (e.g., ResNet variants) and ImageNet-scale data.
- Extend analysis to federated averaging and multi-image settings, including local epochs, batch sizes, and gradient averaging over multiple images.
- Discuss mitigations and the necessity of differential privacy or secure aggregation.
Experimental results
Research questions
- RQ1Can inputs be uniquely reconstructed from gradients in common federated learning setups, including deep networks?
- RQ2How do network architecture, training status (trained vs untrained), and layer type affect the difficulty of gradient-based reconstruction?
- RQ3Does gradient averaging over multiple images or over multiple local epochs protect privacy in federated learning?
- RQ4What practical limits exist for recovering inputs in realistic federated averaging scenarios (B, E, n, etc.)?
- RQ5Are there architectural or training-based defenses that mitigate gradient leakage?
Key findings
- Input data can be reconstructed from gradients even for trained deep networks, not just shallow or untrained models.
- An analytic reconstruction is possible for inputs to any fully connected layer, independent of other architecture details (under a nonzero-gradient condition).
- A cosine-similarity based reconstruction objective with image priors yields recognizable reconstructions where Euclidean-loss LBFGS methods fail, especially for trained networks.
- Gradient averaging over multiple images or across several local epochs does not fully prevent privacy leakage; some images remain reconstructible in practice.
- Increasing network width or depth can affect reconstruction quality but does not inherently prevent leakage; wider networks may require more restarts to optimize.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.