AGIC: Approximate Gradient Inversion Attack on Federated Learning

Jin Xu, Chi Hong, Jiyue Huang, Lydia Y. Chen, Jérémie Decouchant

Abstract

Federated learning is a private-by-design distributed learning paradigm where clients train local models on their own data before a central server aggregates their local updates to compute a global model. Depending on the aggregation method used, the local updates are either the gradients or the weights of local learning models, e.g., FedAvg aggregates model weights. Unfortunately, recent reconstruction attacks apply a gradient inversion optimization on the gradient update of a single mini-batch to reconstruct the private data used by clients during training. As the state-of-the-art reconstruction attacks solely focus on single update, realistic adversarial scenarios are over-looked, such as observation across multiple updates and updates trained from multiple mini-batches. A few studies consider a more challenging adversarial scenario where only model updates based on multiple mini-batches are observable, and resort to computationally expensive simulation to untangle the underlying samples for each local step. In this paper, we propose AGIC, a novel Approximate Gradient Inversion Attack that efficiently and effectively reconstructs images from both model or gradient updates, and across multiple epochs. In a nutshell, AGIC (i) approximates gradient updates of used training samples from model updates to avoid costly simulation procedures, (ii) leverages gradient/model updates collected from multiple epochs, and (iii) assigns increasing weights to layers with respect to the neural network structure for reconstruction quality. We extensively evaluate AGIC on three datasets, namely CIFAR-10, CIFAR-100 and ImageNet. Our results show that AGIC increases the peak signal-to-noise ratio (PSNR) by up to 50% compared to two representative state-of-the-art gradient inversion attacks. Furthermore, AGIC is faster than the state-of-the-art simulation-based attack, e.g., it is 5x faster when attacking FedAvg with 8 local steps in between model updates.

Introduction: The Privacy Challenge in Federated Learning

Federated Learning (FL) is widely regarded as a privacy-preserving framework because it allows multiple parties to collaboratively train a model without sharing their raw data. Instead of centralizing data, clients compute local updates—either gradients or model weights—and send these to a central server for aggregation.

Comparison of Gradient Updates vs. Model Updates in Federated Learning.

However, the assumption that model updates are "safe" has been challenged by the emergence of gradient inversion attacks. These attacks attempt to reverse-engineer the original training data from the shared updates. While effective in simple scenarios involving single-batch gradients, these attacks often fail in real-world implementations like Federated Averaging (FedAvg). In FedAvg, clients perform multiple local training steps over several mini-batches before communicating with the server. This process "smears" the data information across many updates, making it significantly harder to reconstruct individual samples without resorting to prohibitively expensive simulation techniques.

The AGIC Methodology

To address these limitations, we propose the Approximate Gradient Inversion Attack (AGIC). AGIC is designed to be both efficient and effective by bypassing the need for complex simulations through three core innovations:

1. One-Batch Approximation

Existing state-of-the-art attacks for multi-step updates rely on simulating every local training step to untangle the samples. AGIC simplifies this by treating the entire multi-step model change as a single, large gradient update from one "giant" batch. This approximation holds true as long as the learning rate is not excessively high, allowing the attack to remain computationally light while still capturing the essential data features.

Comparison between standard gradient-based attacks and complex simulation-based attacks.

2. Multi-Epoch Leveraging

In standard FL training, clients often reuse the same data across multiple epochs. AGIC exploits this by identifying overlapping samples across different training rounds. By using a greedy matching algorithm to link similar reconstructed images from different epochs, AGIC can jointly optimize the reconstruction. This "averaging" effect significantly reduces noise and sharpens the final output.

3. Strategic Layer Weighting and ReLU Modification

Not all layers in a neural network provide equal information for reconstruction. AGIC assigns higher weights to the gradients of deeper layers, which tend to be more informative. Additionally, to handle the "dead" gradients caused by ReLU activation functions (which output zero for negative values), AGIC introduces a ReLU modifier to ensure the optimization process does not stall on uninformative zero-tensors.

Experimental Results

We evaluated AGIC against standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet. The results demonstrate a significant leap in both quality and efficiency:

  • Reconstruction Quality: AGIC achieved up to a 50% improvement in Peak Signal-to-Noise Ratio (PSNR) compared to representative baselines like DLG-Adam and Inverting Gradients. The resulting images are often visually indistinguishable from the ground truth.
  • Computational Efficiency: When attacking a FedAvg configuration with 8 local steps, AGIC was 5x faster than simulation-based methods. It completed the attack in approximately 6.7 minutes, whereas previous methods required over 33 minutes on the same hardware.
  • Scalability: The attack successfully scaled to high-resolution ImageNet data (224x224), proving that the "one-batch" approximation remains robust even as image complexity increases.

Conclusion and Future Work

AGIC demonstrates that the privacy protections of Federated Learning are more fragile than previously understood, particularly when attackers can observe updates over multiple epochs. While the "one-batch" approximation is sensitive to very high learning rates, its overall effectiveness across various datasets and multi-step scenarios sets a new benchmark for FL vulnerability. Future research will focus on evaluating AGIC against active defense mechanisms such as Differential Privacy and gradient compression to develop more robust privacy-preserving architectures.

Summary updated

BibTeX
@inproceedings{xu2022agic,
  author = {Jin Xu and Chi Hong and Jiyue Huang and Lydia Y. Chen and Jérémie Decouchant},
  title = {{AGIC: Approximate Gradient Inversion Attack on Federated Learning}},
  booktitle = {SRDS},
  year = {2022},
  url = {https://openreview.net/forum?id=6d4SRy3np6},
}
Figure