Local Differential Privacy is Not Enough: A Sample Reconstruction Attack against Federated Learning with Local Differential Privacy

Zhichao You, Xuewen Dong, Shujun Li, Ximeng Liu, Siqi Ma, Yulong ShenarXiv 2025 · DOI

TL;DR

Federated Learning (FL) often relies on Local Differential Privacy (LDP) as a "gold standard" defense to prevent servers from reconstructing private user data from shared gradients. This paper demonstrates that LDP is not a silver bullet; by embedding a malicious "inference structure" into the global model, an adversary can bypass clipping and noise to reconstruct high-fidelity user samples with minimal impact on model performance.

What Problem Does This Paper Address?

In Federated Learning, users train models locally and only share gradients with a central server. While this is more private than sharing raw data, "reconstruction attacks" have shown that gradients can still leak sensitive information. To counter this, many systems use Local Differential Privacy (LDP), which clips gradients to a maximum norm and adds Gaussian noise.

Existing reconstruction attacks fail against LDP for two main reasons:

  1. Gradient Expansion: To extract more info, these attacks often make gradients very large, which triggers severe clipping in LDP, destroying the signal.
  2. Noise Sensitivity: The random noise added by LDP easily drowns out the delicate signals used by standard optimization-based reconstruction methods.

The authors set out to prove that a malicious server can systematically overcome these hurdles, making LDP-based FL less secure than previously thought.

Methods

The authors propose a sophisticated attack framework that modifies the global model distributed to users. The core components include:

  • Gradient Separation without Expansion: Instead of letting all samples affect all neurons, the server embeds a "separation layer." This layer uses a specific mathematical structure (based on Laplace distribution quantiles) to ensure that each sample in a batch only generates gradients in specific, non-overlapping neural units. This achieves "separation" without increasing the overall gradient norm, thus avoiding the "clipping trap."
  • Subject Extraction with SAM: To further compress the necessary information, the model uses the Segment Anything Model (SAM) to create masks. By focusing only on the main subject of an image and setting background pixels to zero, the attack reduces the amount of gradient information that needs to survive LDP protection.
  • Noise Cancellation via LLN: To deal with LDP noise, the authors introduce a repeated bias layer structure. By averaging these repeated, identical gradients, the server can use the Law of Large Numbers (LLN) to cancel out the zero-mean Gaussian noise added by LDP.
  • Metric-based Optimization: The model "imprints" statistical metrics of the samples (like mean and variance) into the gradients. The attacker then uses these as optimization targets to refine the final reconstructed image quality.
The framework of the global model with the embedded inference structure.

Datasets

The attack was evaluated using four widely recognized image datasets:

  • ImageNet
  • CIFAR-100
  • Caltech-256
  • Flowers102

The default target model used for these evaluations was ResNet101.

Key Insights and Ideas

  • Architecture as an Attack Vector: The most profound insight is that the server's ability to design the model architecture is a massive security loophole. Even if the training process is "private," the model itself can be a Trojan horse designed to leak data through its gradients.
  • Bypassing Clipping: The authors realized that the failure of previous attacks wasn't just the noise, but the clipping. By designing a layer where gradients are sparse and isolated per sample, they can "hide" the reconstruction signal within the allowed clipping bound.
  • Statistical Denoising: While LDP noise is meant to be destructive, it is predictable. By forcing the model to repeat information across multiple neurons, the attacker can treat the gradient as a noisy signal and apply standard statistical denoising techniques.

Key Results

The proposed attack is currently the only one capable of effective reconstruction in LDP-protected FL environments.

  • High Fidelity: On ImageNet, the attack achieved a PSNR of 28.52 dB and an SSIM of 0.836, indicating high visual similarity to the original samples. In contrast, existing state-of-the-art attacks like DLG or Fowl's work produced only meaningless noise (PSNR ~5 dB).
  • Stealthiness: The attack has a negligible impact on the target model's accuracy (typically < 1% drop), making it very difficult for users or system administrators to detect through performance monitoring.
  • Scalability: Unlike many previous attacks that only work with a batch size of 1, this method remains effective even with larger batch sizes (e.g., 16 or 64), which are more common in real-world FL.
Visual comparison showing the proposed attack succeeding where others fail under LDP.

Limitations and Future Work

  • Model Modification Detection: The attack relies on the server being able to distribute a modified model. If users implement strict "malicious structure detection" or only accept verified architectures, this attack could be thwarted.
  • Secure Aggregation: The authors note that Secure Aggregation (SA)—where the server only sees the sum of all users' gradients—would effectively block this attack, as the server could no longer isolate a specific victim's gradients. However, SA is computationally expensive and hard to combine with LDP.
  • Future Directions: The authors plan to extend this work to other data types like text and graphs, and to investigate attacks that work on "model updates" rather than just raw gradients.

Summary updated

BibTeX
@misc{you2025local,
  author = {Zhichao You and Xuewen Dong and Shujun Li and Ximeng Liu and Siqi Ma and Yulong Shen},
  title = {{Local Differential Privacy is Not Enough: A Sample Reconstruction Attack against Federated Learning with Local Differential Privacy}},
  year = {2025},
  eprint = {2502.08151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08151},
}
Figure