Federated Learning Nodes Can Reconstruct Peers' Image Data

Ethan Wilson, Kai Yue, Chau-Wai Wong, Huaiyu Dai

TL;DR

While Federated Learning (FL) is designed to keep data private by sharing only model updates, this paper reveals a significant vulnerability: a single "honest-but-curious" participant can reconstruct the private training images of their peers. By analyzing global model updates across just two rounds and applying state-of-the-art diffusion models for post-processing, an attacker can recover recognizable, high-quality images from the aggregated data of multiple clients.

What Problem Does This Paper Address?

Federated Learning is often marketed as a privacy-first framework where data never leaves the local device. Most existing research on privacy leaks in FL focuses on a "curious server" attacking a client. However, the threat posed by other clients has been largely overlooked.

The common intuition is that because a client only sees the average update of all other participants, the individual data signals are too "diluted" to be recovered. This paper challenges that assumption, specifically targeting cross-silo FL scenarios (like hospitals or banks collaborating) where the number of participants is relatively small. The authors set out to prove that a single peer node can silently spy on others without disrupting the training process.

Methods

The authors propose a multi-stage attack framework that combines classic gradient inversion with modern generative AI:

  1. Gradient Extraction: The attacker participates in two consecutive rounds of FL. By calculating the difference between the global model weights of round $t$ and round $t+1$, they can infer the aggregated gradient used for the update.
  2. Super-client Approximation: To simplify the math, the attacker treats the entire federation as a single "super-client." The paper provides a mathematical proof (Lemma 1) showing that this approximation is highly effective when the learning rate is small or the total number of images is large.
  3. Gradient Inversion: The attacker initializes "dummy" images and iteratively optimizes them until the gradients they produce match the inferred global gradient.
  4. Diffusion-based Enhancement: Raw reconstructions are often blurry or suffer from color aliasing. The authors introduce two post-processing paths:
  5. Direct Postprocessor (DDPM): Uses a Denoising Diffusion Probabilistic Model to perform super-resolution and denoising, focusing on pixel-level correctness.
  6. Masked Diffusion Enhancer (MDE): Uses a Masked Diffusion Transformer (MDT) to refine images at a semantic level, producing sharp, photorealistic outputs that preserve the geometric shape of the original data.
Figure 1: Overview of the proposed honest-but-curious client attack. The attacker participates in two consecutive training rounds to obtain the global model’s gradient update by ①differencing the model weights. The attacker then ②inverts the update to obtain each client’s training data. To address the challenge of recovering high-quality images from diluted information hidden in the global gradient update, the raw reconstructions are postprocessed using either ③a direct technique respecting pixel-level correctness or ④a semantic technique focusing on producing photorealistic images.

Datasets

The attack was evaluated using standard computer vision benchmarks:

  • ImageNet: Used for high-resolution (128x128) reconstruction tasks.
  • MNIST: Used for baseline comparisons against prior model inversion work.
  • Models: The authors tested the attack against various global architectures, including LeNet5, ResNet9, and ResNet18.

Key Insights and Ideas

  • The "Super-client" Shortcut: One of the most surprising findings is that an attacker doesn't need to know how many clients are participating or how many images each client has. Treating the aggregate as one large batch is sufficient to leak individual data.
  • Diffusion as a Privacy Breaker: While gradient inversion gets you "close," it often fails to produce human-recognizable images from aggregated updates. By leveraging the prior knowledge embedded in pretrained diffusion models, the attacker can "fill in the blanks" to restore semantic meaning to the noise.
  • Quadratic Divergence: The authors prove that the error in the attacker's approximation grows quadratically with the number of local training iterations ($\tau$). This suggests that increasing local computation is not just an efficiency boost, but a potential privacy defense.

Key Results

  • High-Fidelity Recovery: The attack successfully reconstructed recognizable images even when gradients were averaged across 8 different clients.
  • Quantifiable Improvement: The direct post-processing method improved the LPIPS (Learned Perceptual Image Patch Similarity) score—a measure of perceptual quality—by 20–30% compared to raw reconstructions.
  • Model Sensitivity: Smaller models like LeNet are significantly more vulnerable to this attack than larger models like ResNet18, though all tested models showed some level of information leakage.
Figure 5: LPIPS of reconstructed im- ages vs. number of clients with three different models: LeNet5, ResNet9, and ResNet18.

As seen in Figure 2, the post-processing step is crucial for turning a noisy, aliased "raw" reconstruction into something that clearly resembles the ground truth.

Figure 2: Pixel-level correct images reconstructed by the proposed attack before and after direct postprocessing (Section 3.2). The second and third rows show postprocessed and raw reconstructed images. The raw reconstruction results from our attack are low-resolution and have significant color aliasing. Our direct postprocessing method increases the resolution and simultaneously de- noises the images while maintaining pixel-level correctness, revealing image details that make the reconstructions easier to recognize.

Limitations and Future Work

  • Scalability: The attack's effectiveness degrades as the number of clients increases. In massive cross-device FL (like millions of mobile phones), the dilution effect likely remains a strong defense.
  • Local Iterations: The attack works best when clients perform few local training steps. If clients train for many epochs locally before sharing, the "super-client" approximation breaks down.
  • Hyperparameter Knowledge: The current attack assumes the attacker knows (or can guess) the global learning rate and total image count. While the authors suggest search methods for these, it adds complexity to the attack.
  • Future Directions: The authors highlight the need for more robust client-side defenses, such as integrating secure aggregation or differential privacy specifically designed to thwart peer-to-peer snooping.

Summary updated

BibTeX
@misc{wilson2024federated,
  author = {Ethan Wilson and Kai Yue and Chau-Wai Wong and Huaiyu Dai},
  title = {{Federated Learning Nodes Can Reconstruct Peers' Image Data}},
  year = {2024},
  eprint = {2410.04661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.04661},
}
Figure