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.
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:
- 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.
- 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).
- 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.
- 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.
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