Breaking Secure Aggregation: Label Leakage from Aggregated Gradients in Federated Learning

Zhibo Wang, Zhiwei Chang, Jiahui Hu, Xiaoyi Pang, Jiacheng Du, Yongle Chen, Kui Ren

TL;DR

This paper introduces LIA-SA, a stealthy attack that breaks the privacy guarantees of Secure Aggregation (SA) in Federated Learning. By distributing "fishing models" that subtly modify a single Batch Normalization layer, a malicious server can disaggregate summed gradients and recover the private training labels of individual clients with 100% accuracy.

What Problem Does This Paper Address?

Federated Learning (FL) is designed to train machine learning models without moving raw data off client devices. However, researchers discovered Gradient Inversion Attacks (GIAs), where a server can reconstruct private data or labels just by looking at the gradients sent by a client.

To stop this, the community adopted Secure Aggregation (SA). SA ensures the server only sees the sum of all client gradients, effectively masking individual contributions. While SA was thought to be a robust defense against GIAs, this paper proves that SA provides a "false sense of security." The authors tackle the challenge of how an attacker can "un-sum" these gradients to leak private labels without being detected by the clients.

Methods

The authors propose a two-stage attack called Label Inference Attack against SA (LIA-SA):

  1. The Fishing Model: A malicious server modifies the global model before sending it to clients. Instead of a massive architectural change (which would be easily detected), the server only modifies the parameters ($\gamma$ and $\beta$) of a single Batch Normalization (BN) layer. By setting $\gamma$ to zero and $\beta$ to a client-specific constant, the server forces the model to produce "preset" internal embeddings and outputs (logits) that are independent of the actual input data.
  2. Gradient Disaggregation: When the clients send back their encrypted gradients, the server uses the SA decoder to get the aggregated sum. Because the server "preset" the embeddings for each client, it can treat the aggregated gradient as a system of linear equations. By solving this system (using the Moore-Penrose pseudo-inverse), the server can extract the individual gradients for the final layer's bias for every single client.
  3. Label Restoration: Once the individual bias gradients are isolated, the server uses a known analytical relationship between the bias gradient, the preset logits, and the ground-truth labels to calculate exactly how many samples of each class were in a client's local batch.

Datasets

The attack was evaluated on five widely used image recognition benchmarks:

  • MNIST: 10 classes of handwritten digits.
  • CelebA: 2 classes (gender attribute) of celebrity facial images.
  • CIFAR-10 / CIFAR-100: 10 and 100 classes of general objects.
  • ImageNet (ILSVRC 2012): 1,000 classes of high-resolution images.

The authors tested these across various architectures, including FCN-3, VGG series, and ResNet series.

Key Insights and Ideas

  • The BN Vulnerability: The most clever "aha moment" is using the Batch Normalization layer as a control knob. Because BN is designed to normalize data, it is the perfect place to inject "constant" values that make the rest of the network's behavior predictable to the attacker while appearing benign to the client.
  • Linearity is the Weak Point: Secure Aggregation is a linear operation (summation). The authors show that if an attacker can control the "coefficients" of the gradients (the embeddings), they can use standard linear algebra to reverse the summation.
  • Stealth is Priority: Unlike previous attacks that added entirely new layers or forced "all-zero" gradients (which trigger alarms), LIA-SA only changes a few parameters. The resulting gradients look statistically similar to normal training gradients (high Cosine Similarity), making the attack very difficult to detect.

Key Results

  • Perfect Accuracy: LIA-SA achieved 100% accuracy in recovering label counts for all clients across all tested datasets and model architectures.
  • Scalability: The attack remains effective even as the number of clients and the batch size increase. It successfully recovered labels from a batch size of 5,120 and up to 100 clients in a single round.
  • Efficiency: The attack is computationally light. Even in large-scale settings, the server can complete the label recovery in under 8 minutes on standard hardware.
  • Resilience to Defense: The attack is robust against common privacy defenses. It maintained high accuracy even when Differential Privacy (noise addition) or Gradient Compression (pruning) were applied, as long as the noise levels weren't high enough to destroy the model's utility entirely.

Limitations and Future Work

  • FedSGD Focus: The current theoretical framework is optimized for FedSGD (where gradients are sent every step). The authors acknowledge that extending this to FedAvg (where multiple local steps are taken before sending updates) is a more complex challenge for future research.
  • Malicious Server Assumption: The attack requires the server to be "active" and malicious (capable of modifying the model). It does not apply to a purely "honest-but-curious" server that cannot change the model parameters.
  • Data Reconstruction: While this paper perfects label recovery, it does not focus on reconstructing the actual images. The authors suggest that knowing the labels is a critical first step that makes image reconstruction attacks much more potent.

Summary updated

BibTeX
@inproceedings{wang2024breaking,
  author = {Zhibo Wang and Zhiwei Chang and Jiahui Hu and Xiaoyi Pang and Jiacheng Du and Yongle Chen and Kui Ren},
  title = {{Breaking Secure Aggregation: Label Leakage from Aggregated Gradients in Federated Learning}},
  booktitle = {INFOCOM},
  year = {2024},
  doi = {10.1109/infocom52122.2024.10621090},
}

Loading related content...

Figure