Recovering Labels from Local Updates in Federated Learning

Huancheng Chen, Haris Vikalo · DOI

Introduction

Federated Learning (FL) is a distributed machine learning paradigm designed to enhance privacy by allowing clients to train models locally and share only model updates (gradients) with a central server. However, recent research into Gradient Inversion (GI) attacks has demonstrated that these updates can sometimes be reverse-engineered to reconstruct sensitive training data. A critical bottleneck in these attacks is label recovery: identifying which classes are present in a training batch. Existing label recovery methods are often fragile, failing in realistic scenarios involving multiple local training epochs, diverse optimizers, or well-trained models.

This paper introduces RLU (Recovering Labels from Local Updates), a robust analytical attack that achieves near-perfect label recovery accuracy by exploiting correlations in the output layer's bias updates.

The Challenge of Label Recovery in Realistic FL

Most prior label recovery attacks assume a simplified "one-step" training process. In practice, FL clients typically perform multiple local epochs to reduce communication overhead. This complexity, along with the use of various activation functions and pre-trained models, often breaks traditional recovery techniques. RLU addresses these gaps by focusing on the fundamental relationship between model bias and class distribution, making it agnostic to many architectural choices.

Methodology: The RLU Framework

The core of RLU is the observation that local updates to the output layer's bias are strongly correlated with the ground-truth labels in a training batch. The framework employs two primary strategies:

  1. Least-Squares Optimization: RLU formulates label recovery as a least-squares problem. It minimizes the difference between the observed bias updates and the expected updates based on "erroneous confidence"—the probability the model assigns to incorrect classes.
  2. Monte Carlo Simulation for Multiple Epochs: To handle the model's evolution over multiple local epochs, RLU uses a small auxiliary dataset (e.g., 100 samples per class) to simulate local training. This allows the attacker to "predict" how the model's internal state shifts, maintaining high accuracy even when clients run many local steps.

Experimental Evaluation

RLU was evaluated using standard computer vision benchmarks, including SVHN, CIFAR10, CIFAR100, and Tiny-ImageNet, across various architectures such as LeNet-5, VGG-16, and ResNet-50. The researchers tested the method against different activation functions (ReLU, Tanh, ELU) and optimizers (SGD, Momentum, FedProx).

Results and Discussion

RLU demonstrates remarkable resilience where other methods fail. On untrained models with a single local epoch, it achieves 100% accuracy. More importantly, it remains effective as training progresses and model accuracy increases.

Instance-level label recovery accuracy across different datasets and global training rounds.

As shown in Figure 4, while competing methods like iRLG and ZLG+ see their performance plummet as the global model matures, RLU maintains high instance-level accuracy. Even in the challenging "10 local epochs" setting, RLU maintains over 90% accuracy on complex datasets like CIFAR100.

Impact on Image Reconstruction

The primary danger of accurate label recovery is its role as a precursor to full image reconstruction. When RLU is used to provide ground-truth labels for Gradient Inversion attacks, the quality of the stolen images improves significantly.

Visual comparison of image reconstruction quality using RLU-assisted gradient inversion.

Figure 6 illustrates this impact: images reconstructed using RLU-assisted labels are much clearer and more accurate (higher PSNR and lower LPIPS) than those generated by joint optimization methods. This highlights that label leakage is not just a statistical curiosity but a direct threat to data confidentiality.

Conclusion and Future Work

RLU serves as a significant wake-up call for the Federated Learning community, proving that model updates leak far more information than previously thought. The robustness of RLU across epochs and architectures suggests that current FL implementations are highly vulnerable to curious servers. Future work must prioritize the development of specialized defense mechanisms, such as targeted differential privacy or advanced gradient compression, to mitigate these specific leakage vectors without compromising model utility.

Summary updated

BibTeX
@inproceedings{chen2024recovering,
  author = {Huancheng Chen and Haris Vikalo},
  title = {{Recovering Labels from Local Updates in Federated Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=E41gvBG4s6},
}
Figure