NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Framework for Evaluating Gradient Leakage Attacks in Federated Learning

Wenqi Wei, Ling Liu, Margaret Loper, Ka Ho Chow, Mehmet Emre Gursoy, Stacey Truex, Yanzhao WuarXiv 2020

TL;DR

This paper introduces a comprehensive framework for evaluating the effectiveness and cost of gradient leakage attacks in federated learning. It demonstrates that even with privacy-preserving mechanisms, adversaries can reconstruct private training data from shared model updates, and analyzes how various federated learning and attack configurations influence these attacks.

What Problem Does This Paper Address?

Federated Learning (FL) is a promising approach for training machine learning models collaboratively across decentralized devices without centralizing sensitive user data. While FL offers a degree of privacy by keeping data local, recent research has revealed a vulnerability: the shared model updates (gradients or weights) can be exploited by adversaries to infer or even reconstruct the private training data. This "gradient leakage" poses a significant threat to user privacy. The problem this paper addresses is the lack of a standardized and principled way to evaluate and compare the diverse range of gradient leakage attacks, making it difficult to understand their true impact and develop effective defenses.

Methods

The core contribution of this paper is the development of a principled framework for evaluating gradient leakage attacks. This framework encompasses:

  • Formal and Experimental Analysis: The authors provide both theoretical analysis and empirical studies to demonstrate how adversaries can reconstruct private local training data by analyzing shared parameter updates.
  • Attack Characterization: They delve into the mechanisms and attack surfaces adversaries can leverage.
  • Multi-dimensional Evaluation Metrics: The framework introduces metrics to quantify both the effectiveness (e.g., attack success rate, reconstruction quality) and the cost (e.g., attack iterations, computational resources) of these attacks.
  • Testbed for Measurement and Analysis: They build an evaluation testbed to systematically study the impact of various factors on attack performance.
  • Analysis of Hyperparameter Impact: The framework investigates how different configurations of federated learning hyperparameters (e.g., batch size, learning rate) and attack algorithm settings (e.g., initialization, termination conditions) influence attack success and cost.
  • Evaluation under Communication-Efficient Protocols: The framework is extended to assess attack effectiveness when communication-efficient FL protocols (which compress gradient updates) are used.
  • Preliminary Mitigation Strategies: The paper includes initial experiments with mitigation techniques to underscore the importance of a robust evaluation framework for developing defenses.

Datasets

The paper evaluates its framework and attacks on the following standard image datasets:

  • MNIST: A dataset of handwritten digits.
  • LFW (Labeled Faces in the Wild): A dataset of celebrity faces.
  • CIFAR10: A dataset of 10 common object classes.
  • CIFAR100: A dataset of 100 object classes.

Additionally, they use two attribute datasets for comparison:

  • UCI Adult Income: A dataset for predicting income based on census attributes.
  • Breast Cancer Wisconsin: A dataset for classifying breast masses as benign or malignant.

Key Insights and Ideas

  • FL is Not Intrinsically Private: Even with data staying local, sharing model updates is a significant privacy leak. The paper demonstrates that reconstructing private data is feasible.
  • Attack Effectiveness is Highly Configurable: The success of gradient leakage attacks is not a monolithic property but is heavily influenced by choices in both the FL system (hyperparameters) and the attack itself (initialization, optimization, termination).
  • Communication Efficiency is Not a Silver Bullet for Privacy: While communication-efficient protocols reduce bandwidth, they don't inherently stop gradient leakage attacks; in some cases, they might even make attacks more feasible or faster.
  • Structured Initialization Matters: The way an attacker initializes their "guess" for the private data significantly impacts attack speed and success. Patterned or geometrically informed initializations outperform random ones.
  • Local Training Iterations Can Be a Double-Edged Sword: More local training iterations before sharing updates can reduce attack success, but it also increases the cost of the FL process.

Key Results

  • High Attack Success Rates: The proposed CPL (Client Privacy Leakage) attack, particularly with the "patterned" initialization, achieves high attack success rates (ASR) across various datasets, often exceeding 95-98% for content and 100% for label reconstruction.
  • Efficiency Advantage: The CPL attack is shown to be significantly faster (fewer attack iterations) and more effective than prior gradient leakage attacks like "deep gradient attack" and "gradient inverting attack." For instance, CPL achieved higher ASR with considerably fewer iterations on CIFAR10 and CIFAR100.
  • Impact of Hyperparameters:
    • Batch Size: Larger batch sizes decrease attack success.
  • Local Iterations: More local training iterations before sharing also decrease attack success.
  • Activation Functions: ReLU-based activations can hinder attacks due to "dying ReLU" issues, while Sigmoid and Tanh are more vulnerable.
  • Communication Efficiency Impact: Even with up to 40% gradient compression, CPL attacks remained effective on MNIST and CIFAR10, demonstrating resilience.
  • Mitigation Effectiveness: Adding sufficient Gaussian or Laplace noise to gradients can significantly mitigate attacks, though it comes at the cost of reduced model accuracy. Controlling local training iterations also shows promise as a mitigation strategy.

Limitations and Future Work

  • Assumption of Honest-but-Curious Server: The framework assumes the FL server is not malicious, only curious. Future work could explore attacks originating from malicious servers.
  • Focus on Image Data: While the framework is general, most experiments are on image datasets. Extending to other data modalities like text or tabular data would be valuable.
  • Exploration of More Sophisticated Attacks: The paper focuses on gradient leakage. Future work could integrate and evaluate other privacy attack vectors.
  • Developing Robust Defenses: The paper presents preliminary mitigation strategies. Further research is needed to develop more robust and practical defenses against these sophisticated attacks, balancing privacy with model utility and communication efficiency.
  • Theoretical Guarantees for Mitigation: While empirical results are shown, formal theoretical guarantees for the effectiveness of proposed mitigation strategies would strengthen the findings.

Summary updated

BibTeX
@misc{wei2020framework,
  author = {Wenqi Wei and Ling Liu and Margaret Loper and Ka Ho Chow and Mehmet Emre Gursoy and Stacey Truex and Yanzhao Wu},
  title = {{A Framework for Evaluating Gradient Leakage Attacks in Federated Learning}},
  year = {2020},
  eprint = {2004.10397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.10397},
}
Figure