[Paper Review] Learning to Invert: Simple Adaptive Attacks for Gradient Inversion in Federated Learning
This paper proposes Learning to Invert (LTI), a learning-based gradient inversion attack that trains a model to reconstruct client data from gradients in federated learning. Unlike optimization-based attacks, LTI adapts to defenses by treating them as data augmentation, achieving state-of-the-art performance across vision and language tasks—even under differential privacy, gradient pruning, and sign compression defenses.
Gradient inversion attack enables recovery of training samples from model gradients in federated learning (FL), and constitutes a serious threat to data privacy. To mitigate this vulnerability, prior work proposed both principled defenses based on differential privacy, as well as heuristic defenses based on gradient compression as countermeasures. These defenses have so far been very effective, in particular those based on gradient compression that allow the model to maintain high accuracy while greatly reducing the effectiveness of attacks. In this work, we argue that such findings underestimate the privacy risk in FL. As a counterexample, we show that existing defenses can be broken by a simple adaptive attack, where a model trained on auxiliary data is able to invert gradients on both vision and language tasks.
Motivation & Objective
- To demonstrate that existing defenses against gradient inversion attacks in federated learning are insufficient due to reliance on optimization-based attack evaluations.
- To address the gap in evaluating defenses against adaptive, learning-based attacks that can generalize across different defense mechanisms.
- To propose a simple yet effective learning-based attack framework that generalizes across vision and language tasks under various gradient compression and perturbation defenses.
- To show that even with strong defenses like differential privacy and gradient compression, data reconstruction remains feasible using a learned inversion model.
- To advocate for LTI as a new baseline for evaluating privacy leakage in federated learning systems.
Proposed method
- Train an inversion model $g_{\theta}$ to map gradients to input data using an auxiliary dataset with similar distribution to the private data.
- Use the global model to compute gradients for the auxiliary data, enabling end-to-end training of the inversion model.
- Treat gradient compression or perturbation defenses as data augmentation during training, allowing the inversion model to adapt to the modified gradient space.
- Apply the trained inversion model to recover client inputs from real gradients in the FL setting, without requiring iterative optimization.
- Extend the method to discrete data (e.g., text) by using token-level reconstruction with language modeling priors.
- Evaluate performance using metrics like accuracy and FID, comparing against optimization-based baselines such as TAG and Zhu et al. (2019).
Experimental results
Research questions
- RQ1Can a learning-based approach outperform existing optimization-based gradient inversion attacks in federated learning under standard defenses?
- RQ2How effective is the proposed LTI attack when defenses such as differential privacy, gradient pruning, and sign compression are applied?
- RQ3To what extent can the inversion model generalize when trained on out-of-distribution auxiliary data, such as pseudo-sentences with random word sampling?
- RQ4Does the performance of LTI degrade or improve under different defense mechanisms across vision and language tasks?
- RQ5Can LTI be adapted to discrete data like text while maintaining high reconstruction quality under various gradient compression schemes?
Key findings
- LTI achieves recovery accuracy comparable to the best optimization-based method (e.g., Zhu et al., 2019) when no defense is applied on CIFAR-10 with ResNet20.
- Under gradient pruning and sign compression defenses, LTI significantly outperforms prior attacks, achieving 87.34% accuracy on CIFAR-10 with ResNet20 under sign compression.
- On the CoLA text classification task, LTI achieves 86.19% accuracy under sign compression, outperforming TAG and other baselines across all defense settings.
- LTI-OOD, which uses out-of-distribution auxiliary data (random word sampling), achieves 87.39% accuracy on WikiText, surpassing LTI in some settings, indicating strong generalization.
- The attack remains effective even when defenses are applied, demonstrating that gradient compression and perturbation do not fully mitigate privacy leakage.
- LTI is robust across different model architectures and tasks, showing consistent superiority over optimization-based methods in both vision and language tasks.
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.