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

Mjölnir: Breaking the Shield of Perturbation-Protected Gradients via Adaptive Diffusion

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

Introduction

Federated Learning (FL) has emerged as a cornerstone for privacy-preserving machine learning, allowing multiple clients to collaboratively train models without sharing raw data. Instead, clients share model updates, or gradients. However, the security of this approach is threatened by "gradient inversion attacks," where an adversary reconstructs private training data from these shared updates. To counter this, practitioners often employ gradient perturbation, typically through Differential Privacy (DP), which injects random noise to mask sensitive information.

Overview of the Mjölnir attack framework in a Federated Learning environment, showing how protected gradients are intercepted and denoised to leak private data.

This paper introduces Mjölnir, a novel attack framework that demonstrates that these noise-based "shields" are not as robust as previously believed. By framing privacy-preserving perturbations as a controlled diffusion process, Mjölnir can adaptively denoise gradients and recover high-quality private images.

The Challenge of Gradient Perturbation

Gradient perturbation defenses, such as Gaussian or Laplace noise injection, aim to provide a mathematical guarantee of privacy. The assumption is that the added noise makes the optimization landscape of gradient inversion too complex for standard reconstruction algorithms. Mjölnir challenges this by asking whether the structural properties of gradients—which are derived from stable image data—can be exploited to reverse the noise injection.

Methodology: Perturbation as Diffusion

The core innovation of Mjölnir is viewing noise injection through the lens of Denoising Diffusion Probabilistic Models (DDPM). The attack follows a four-step pipeline:

  1. Surrogate Model Construction: The attacker builds a surrogate model with a similar architecture to the victim's and generates a dataset of "clean" gradients using random images.
  2. Diffusion Training: A Gradient Diffusion Model is trained on these clean gradients. Notably, the model can be trained on a different dataset (e.g., FashionMNIST) and still generalize to the victim's data (e.g., MNIST or CIFAR).
  3. M-Adaptive Process: The attacker maps the privacy noise level (the $\epsilon$ in DP) to a specific starting point in the diffusion model's reverse process. This allows the model to adaptively determine the number of denoising steps required based on the protection level.
  4. Data Recovery: The denoised gradient ($\nabla W^R$) is then passed to standard gradient inversion techniques to reconstruct the private training images.

Experimental Results

The authors evaluated Mjölnir against standard benchmarks including MNIST, CIFAR100, and STL10. The results indicate a significant breach of current privacy defenses.

Quantitative Performance

On the MNIST dataset with a privacy budget of $\epsilon=5$, Mjölnir achieved a Peak Signal-to-Noise Ratio (PSNR) of 24.17, vastly outperforming the traditional Deep Leakage from Gradients (DLG) attack, which managed only 8.02. Furthermore, Mjölnir reached an overall attack success rate of 0.83, while traditional methods like IG and DLG hovered between 0.12 and 0.39 under identical protected conditions.

Visual Fidelity

Qualitative results highlight the framework's ability to recover recognizable features where other methods fail. As shown in the comparison below, Mjölnir variants consistently produce clearer reconstructions of the target images across various iteration counts.

Visual comparison of image reconstruction over iterations. Mjölnir and its variants successfully recover recognizable images (e.g., a tree or a cow) while traditional methods struggle under perturbation.

Discussion and Limitations

While Mjölnir proves highly effective against additive noise perturbations, it faces challenges with more complex architectures. The authors note that Transformer-based models, with their massive parameter counts and attention mechanisms, produce gradients that are significantly harder to denoise. Additionally, the attack is currently specialized for additive noise and may not be as effective against non-diffusion-based defense strategies like representation perturbation.

Conclusion

Mjölnir demonstrates that simple additive noise is no longer a sufficient defense for gradients in Federated Learning. By leveraging the generative power of diffusion models, attackers can effectively "strip away" privacy protections. This research underscores the need for the development of more sophisticated, non-perturbation-based privacy-preserving methods to secure distributed machine learning systems.

Summary updated

BibTeX
@inproceedings{liu2025mjolnir,
  author = {Xuan Liu and Siqi Cai and Qihua Zhou and Song Guo and Ruibin Li and Kaiwei Lin},
  title = {{Mjölnir: Breaking the Shield of Perturbation-Protected Gradients via Adaptive Diffusion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=JnHVBCBMhA},
}
Figure