NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient Diffusion: A Perturbation-Resilient Gradient Leakage Attack

Xuan Liu, Siqi Cai, Qihua Zhou, Song Guo, Ruibin Li, Kaiwei Lin · DOI

Introduction

Federated Learning (FL) is widely adopted for its privacy-preserving nature, keeping raw data on local devices and sharing only model updates, or gradients. However, the emergence of "Gradient Inversion Attacks" has demonstrated that these shared gradients can be exploited to reconstruct original training data. To mitigate this, researchers often employ Gradient Perturbation techniques, such as Differential Privacy (DP), which inject random Gaussian or Laplace noise into gradients to mask sensitive information.

This paper introduces Mjölnir, a novel attack framework that proves these noise-based defenses are not as robust as previously thought. By leveraging diffusion models, Mjölnir can effectively "clean" perturbed gradients, allowing for high-fidelity data reconstruction even under significant noise levels.

Overview of the Mjölnir attack scenario in Federated Learning, showing the interception and denoising of protected gradients.

The Mjölnir Attack Framework

Mjölnir is the first practical gradient leakage attack based on diffusion models. The attack process is structured into four primary phases:

  1. Surrogate Model Construction: The attacker builds a surrogate model that mimics the target's gradient structure, bypassing the need for direct access to the client’s specific model or private data.
  2. Gradient Diffusion Training: Treating noise injection as a forward diffusion process, the attacker trains a Gradient Diffusion Model (based on DDPM) using clean gradients from the surrogate model. This model learns to reverse the perturbation process.
  3. M-Adaptive Process: To handle scenarios where the exact noise level (perturbation level $M$) is unknown, Mjölnir employs an adaptive sampling process. It monitors disturbance levels during reverse diffusion to identify the optimal starting point for denoising.
  4. Data Recovery: Once gradients are denoised, standard Gradient Inversion techniques (e.g., DLG) are applied to the recovered gradients to reconstruct the private images.

Experimental Evaluation

The effectiveness of Mjölnir was tested against standard image benchmarks, including MNIST, CIFAR100, and STL10. Crucially, the diffusion model was trained on FashionMNIST, a different dataset than the target. This cross-dataset success demonstrates that the attack is robust and does not require the attacker to possess samples of the actual private data distribution.

Key Results and Insights

Mjölnir significantly outperforms traditional gradient leakage attacks in both quantitative metrics and visual clarity:

  • Reconstruction Quality: On CIFAR100 with high noise ($\epsilon=1$), Mjölnir achieved a Peak Signal-to-Noise Ratio (PSNR) of 18.25, whereas the traditional DLG attack failed completely with a PSNR of 0.112.
  • Denoising Superiority: Mjölnir improved denoising quality by over 27% compared to state-of-the-art non-diffusion denoisers like NBNet.
  • Computational Efficiency: The framework showed a 32.7% improvement in inference time over competing non-diffusion methods.
Qualitative comparison showing Mjölnir's ability to recover recognizable images compared to the failure of traditional attacks (GRNN, IG, DLG) under perturbation.

Discussion and Future Work

The success of Mjölnir suggests that gradients are structurally stable and predictable, making them vulnerable to generative denoising. While highly effective against additive noise, the attack currently struggles with non-noise perturbations (like representation perturbation) and complex Transformer-based architectures.

The authors conclude that the FL community must look beyond simple perturbation. Future defenses may require more robust methods such as Homomorphic Encryption or fundamental changes to local training architectures to ensure true data privacy.

Summary updated

BibTeX
@inproceedings{liu2025gradient,
  author = {Xuan Liu and Siqi Cai and Qihua Zhou and Song Guo and Ruibin Li and Kaiwei Lin},
  title = {{Gradient Diffusion: A Perturbation-Resilient Gradient Leakage Attack}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=JnHVBCBMhA},
}
Figure