A Survey on Gradient Inversion: Attacks, Defenses and Future Directions

Rui Zhang, Song Guo, Junxiao Wang, Xin Xie, Dacheng Tao · DOI

Abstract

Federated Learning (FL) is widely regarded as a privacy-preserving paradigm because it keeps raw data on-device, sharing only model gradients. However, recent research into Gradient Inversion (GradInv) has shown that these gradients can be exploited to reconstruct sensitive training samples. This paper provides a comprehensive taxonomy of GradInv attacks, categorizing them into iteration-based and recursion-based methods, and evaluates the efficacy of current defense mechanisms.

Introduction

In distributed and federated learning (FL) environments, multiple participants collaborate to train a global model by sharing mathematical updates (gradients) rather than private datasets. While this was long assumed to be secure, "honest-but-curious" attackers—such as a central server—can observe these gradients to reconstruct original training images and labels. This survey explores the mechanics of these attacks and the current state of privacy in deep learning.

Taxonomy of Gradient Inversion Attacks

The authors identify two primary paradigms for data recovery from gradients: iteration-based optimization and recursion-based reconstruction.

Iteration-based Attacks

Iteration-based attacks treat data recovery as an optimization problem. An attacker initializes "dummy" data (e.g., Gaussian noise) and iteratively updates it to minimize the distance between the dummy gradients and the victim's real gradients. This process often employs loss functions like $\ell_2$ distance or Cosine Similarity, alongside regularization priors (such as Total Variation norm) to ensure the output resembles natural images.

Recursion-based Attacks

In contrast, recursion-based attacks utilize "closed-form" solutions. By exploiting the linear relationships between layers—particularly in fully connected layers—attackers can recursively solve systems of equations to recover inputs layer-by-layer, starting from the network's output. While faster than iterative methods, these are more sensitive to gradient perturbations and complex architectural features like pooling.

Workflow comparison of iteration-based and recursion-based GradInv attacks

Key Insights and Empirical Findings

Research into GradInv has yielded several critical insights regarding the vulnerability of shared gradients:

  • Label Leakage: Ground-truth labels can often be extracted with nearly 100% accuracy by analyzing the signs of gradients in the final fully connected layer.
  • The Batch Size Myth: While larger batch sizes were thought to provide anonymity, recent "group consistency" techniques have successfully inverted batches exceeding 30 samples.
  • Reconstruction Depth: Modern attacks like InvGrad can recover high-resolution images (e.g., $224 \times 224$ ImageNet) from deep architectures like ResNet-152.

Defense Mechanisms

Defending against GradInv involves a significant trade-off between privacy and model utility.

  • Local Iterations: Increasing the number of local training steps before sharing gradients is highly effective, reducing attack success rates by over 60% with 10 iterations.
  • Differential Privacy: Adding noise to gradients can thwart attacks but often degrades the final model's performance.

Future Directions

The survey identifies several open frontiers for the research community:

  1. Transformers: Most research focuses on CNNs; extending attacks to complex self-attention mechanisms in ViT or BERT is a priority.
  2. Hybrid Methods: Combining the speed of recursion with the robustness of iteration.
  3. Risk Quantification: Developing metrics to assess the privacy risk of a gradient update before transmission.

Conclusion

Gradient Inversion poses a significant threat to the privacy guarantees of Federated Learning. As attacks become more sophisticated and capable of handling deeper models and larger batches, the development of robust, performance-preserving defenses remains a critical challenge for the machine learning community.

Summary updated

BibTeX
@inproceedings{zhang2022survey,
  author = {Rui Zhang and Song Guo and Junxiao Wang and Xin Xie and Dacheng Tao},
  title = {{A Survey on Gradient Inversion: Attacks, Defenses and Future Directions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/791},
}
Figure