Data Poisoning and Leakage Analysis in Federated Learning

Wenqi Wei, Tiansheng Huang, Zachary Yahn, Anoop Singhal, Margaret L. Loper, Ling LiuSpringer Optimization and its Applications 2024 · DOI · arXiv · OpenAlex

Abstract

Federated Learning (FL) is designed to preserve privacy by keeping raw data on local devices and only sharing model updates. However, this decentralized approach introduces significant vulnerabilities to gradient leakage and data poisoning. This paper analyzes these dual threats and proposes a dynamic, decaying Differential Privacy (DP) noise mechanism as a unified defense. By calibrating noise to gradient fluctuations and training stages, the proposed method effectively mitigates privacy breaches and security attacks without compromising global model utility.

The Federated Learning Framework

Federated Learning allows multiple clients (e.g., mobile devices or local servers) to collaboratively train a shared global model. Instead of uploading sensitive raw data to a central server, clients compute local model updates—gradients—and transmit only these updates. The server then aggregates these gradients to update the global parameters.

The standard Federated Learning architecture showing the exchange of gradients between clients and a central server.

While this architecture prevents direct data exposure, it creates two primary attack surfaces:

  1. Training Data Leakage (Privacy): An adversary can intercept shared gradients and use optimization techniques to reconstruct a client's private training samples.
  2. Data Poisoning (Security): Malicious participants can inject corrupted data or backdoors into their local training process to manipulate the global model's behavior.

Vulnerabilities: Leakage and Poisoning

Training Data Leakage

The paper demonstrates that gradients are highly informative. Through gradient inversion attacks, an adversary can reconstruct private images pixel-by-pixel. The authors find that gradients from early training rounds are particularly vulnerable, as they contain the most significant structural information about the underlying data.

Visual demonstration of gradient inversion attacks reconstructing private images from Fashion-MNIST, CIFAR10, and LFW datasets over multiple attack iterations.

Data Poisoning

In data poisoning attacks, malicious clients aim to degrade the model's performance on specific target classes or install a "backdoor" that triggers misclassification under specific conditions. Unlike leakage, poisoning is often more effective in later training rounds due to "catastrophic forgetting," where the model more easily adopts new, malicious patterns after the initial features have stabilized.

Proposed Defense: Dynamic Differential Privacy

The standard defense against these threats is model perturbation—adding random noise to gradients. However, traditional Differential Privacy (DP) uses constant noise, which often leads to a poor trade-off between security and accuracy.

The authors propose Dynamic Differential Privacy noise, which introduces two key innovations:

  • Dynamic Sensitivity ($l_2$-max): Rather than using a fixed clipping bound, the algorithm calculates the maximum $l_2$ norm of per-example gradients in each batch, tightly calibrating noise to actual gradient fluctuations.
  • Dynamic Noise Scale: The defense employs a decaying noise schedule (e.g., exponential decay). Large noise is injected during early rounds to block high-leakage gradients, while noise is progressively reduced as the model nears convergence to preserve final accuracy.

Key Results and Insights

  • Unified Mitigation: Dynamic DP noise acts as a dual defense. The high initial noise masks gradients to prevent reconstruction, while the noise's inherent "output stability" cancels out the larger, anomalous gradients typically submitted by poisoned clients.
  • Superior Accuracy: On the Fashion-MNIST dataset, dynamic noise achieved 85.4% accuracy, outperforming fixed-noise defenses (82.6%). Simultaneously, it maintained a high Mean Squared Error (MSE) for reconstruction attacks, effectively preventing privacy breaches.
  • Resilience to Poisoning: In scenarios with 5% malicious clients, dynamic perturbation restored the accuracy of victim classes to 91.2%, compared to 82.2% when no defense was applied.

Conclusion and Future Directions

While dynamic DP noise provides a robust defense against small-scale attacks (5-10% malicious clients), the authors note that it can be overwhelmed if attackers dominate a training round. Future research must address the challenges of highly imbalanced (non-IID) data across clients and ensure that privacy defenses do not disproportionately exclude clients with lower computational resources.

Summary updated

BibTeX
@inproceedings{wei2024data,
  author = {Wenqi Wei and Tiansheng Huang and Zachary Yahn and Anoop Singhal and Margaret L. Loper and Ling Liu},
  title = {{Data Poisoning and Leakage Analysis in Federated Learning}},
  booktitle = {Springer Optimization and its Applications},
  year = {2024},
  doi = {10.1007/978-3-031-58923-2\_3},
}
Figure