Client-side Gradient Inversion Against Federated Learning from Poisoning

Jiaheng Wei, Yanjun Zhang, Leo Yu Zhang, Chao Chen, Shirui Pan, Kok-Leong Ong, Jun Zhang, Yang XiangarXiv 2023 · DOI

Introduction

Federated Learning (FL) is a distributed machine learning paradigm designed to preserve data privacy by keeping training data on local devices. However, Gradient Inversion Attacks (GIAs) have emerged as a significant threat, demonstrating that private data can be reconstructed from shared model updates. Traditional GIAs typically require server-side control or unrealistic constraints, such as very small batch sizes. This paper introduces Client-side poisoning Gradient Inversion (CGI), a novel attack that enables a single malicious client to perform high-fidelity data reconstruction even under robust security defenses and large batch settings.

The CGI Attack Framework

The CGI attack operates through a sophisticated three-step process that leverages model poisoning to amplify specific data signals within aggregated gradients.

The three-step CGI attack framework: crafting the malicious model, poisoning the global model, and inverting the target gradient.
  1. Step 1: Crafting a Malicious Model: The attacker identifies a target class (e.g., "apples") and optimizes a local model to maximize the loss for that specific class while maintaining standard performance for others. This ensures that any subsequent gradients related to the target class from honest clients will be disproportionately large.
  2. Step 2: Poisoning the Global Model: To inject this malicious logic into the global model without detection, the attacker uses an optimization-based poisoning strategy. This "camouflages" the malicious update to bypass Byzantine-robust Aggregation Rules (AGRs) like Multi-krum or AFA.
  3. Step 3: Inverting the Gradient: Once the poisoned model is deployed, the victim's updates become dominated by the amplified target class signal. The attacker retrieves the aggregate update and employs similarity-based optimization to reconstruct the victim's private image.

Mechanism: Poisoning as a Signal Amplifier

The core innovation of CGI is the use of poisoning as a "magnifying glass." In standard FL with large batch sizes (e.g., 32), the shared gradient is a complex mixture of many images, making individual reconstruction nearly impossible. By making the global model "blind" to a specific class, CGI forces the gradient of that class to become the dominant component of the batch update.

Visualization of gradient steering: the batch gradient is manipulated to align with the target gradient through model poisoning.

As shown in the gradient contour plots, the malicious update steers the batch gradient ($\delta_{batch}$) to align closely with the target gradient ($\delta_{tar}$), effectively filtering out the "noise" from other samples in the batch. This allows for successful reconstruction even at batch sizes where traditional attacks only produce static.

Experimental Evaluation

The researchers evaluated CGI on CIFAR-100, TinyImageNet, and CalTech256. The results demonstrate that CGI significantly outperforms existing baselines like DLG and iDLG. While traditional methods fail to produce recognizable images at a batch size of 32, CGI successfully recovers clear semantic features.

Furthermore, the attack proved resilient against several state-of-the-art robust aggregation defenses, including Multi-krum, Bulyan, AFA, and Fang. Even defenses designed to filter outliers were unable to detect the optimized, camouflaged updates used by CGI. The attack also showed flexibility across varying levels of adversary knowledge, working even when the attacker had no prior samples of the target class.

Conclusion and Future Directions

CGI represents a paradigm shift in GIA research, proving that client-side adversaries can compromise privacy without server control or small batch constraints. While the attack faces challenges like "semantic blurring" when multiple target-class images appear in one batch, it highlights a critical vulnerability in current FL defenses. Future defensive strategies may need to incorporate local loss monitoring to detect unexpected spikes in specific class errors following global model updates, or develop more sophisticated homogeneity checks for submitted gradients.

Summary updated

BibTeX
@misc{wei2023client,
  author = {Jiaheng Wei and Yanjun Zhang and Leo Yu Zhang and Chao Chen and Shirui Pan and Kok-Leong Ong and Jun Zhang and Yang Xiang},
  title = {{Client-side Gradient Inversion Against Federated Learning from Poisoning}},
  year = {2023},
  eprint = {2309.07415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.07415},
}
Figure