Abstract: Recent studies have revealed severe privacy risks in federated learning, represented by Gradient Leakage Attacks. However, existing studies mainly aim at increasing the privacy attack success rate and overlook the high computation costs for recovering private data, making the privacy attack impractical in real applications. In this study, we examine privacy attacks from the perspective of efficiency and propose a framework for improving the Efficiency of Privacy Attacks in Federated Learning (EPAFL). We make three novel contributions. First, we systematically evaluate the computational costs for representative privacy attacks in federated learning, which exhibits a high potential to optimize efficiency. Second, we propose three early-stopping techniques to effectively reduce the computational costs of these privacy attacks. Third, we perform experiments on benchmark datasets and show that our proposed method can significantly reduce computational costs and maintain comparable attack success rates for state-of-the-art privacy attacks in federated learning.
Introduction
Federated Learning (FL) is a popular paradigm for privacy-sensitive applications, such as healthcare and finance, because it allows models to be trained on local devices without sharing raw data. Instead, only model updates (gradients) are sent to a central server. However, Gradient Leakage Attacks (GLA) have exposed a critical vulnerability: an adversary can iteratively optimize "dummy" data until its gradients match the user's shared gradients, eventually reconstructing the private raw data.
While effective, current GLAs are computationally expensive, typically running for a fixed, high number of iterations (e.g., 300) regardless of how quickly the data is recovered. This study introduces the EPAFL framework to address this efficiency gap, making privacy attacks more practical and providing a benchmark for designing better defenses.
The EPAFL Framework
The EPAFL framework optimizes the reconstruction process by monitoring the distance between dummy and actual gradients in real-time. Rather than using a "brute-force" fixed-iteration approach, it applies three early-stopping strategies:
- Threshold-based: The attack terminates once the reconstruction loss falls below a predefined value ($T$).
- Plateau-based: The attack stops if the loss fails to improve for a set number of iterations (a "patience" parameter, $P$), accounting for images that are inherently harder to reconstruct.
- Hybrid: A combination of both methods, stopping if either a target loss is reached or the optimization hits a dead end.
Key Insights: Varying Reconstruction Difficulty
A primary observation of this research is that "one size does not fit all" in data reconstruction. Different images require vastly different amounts of computational effort to leak. As shown in the visualization below, some MNIST digits are recognizable within very few iterations, while more complex images like cars or horses require significantly more optimization steps. By dynamically adjusting iterations, EPAFL avoids wasting GPU cycles on data that has already been successfully reconstructed.
Experimental Results
The researchers evaluated EPAFL on standard benchmarks, including MNIST (grayscale digits) and CIFAR-10 (color images). The framework demonstrated significant improvements over state-of-the-art attacks like DLG and iDLG:
- Computational Speedup: On MNIST, EPAFL reduced reconstruction time by over 73% (from ~1029 seconds to ~274 seconds). On the more complex CIFAR-10, it achieved a 30% reduction in time.
- Attack Success Rate (ASR): Despite the reduced compute, the ASR remained comparable or even improved. For MNIST, EPAFL achieved an 80% ASR, outperforming the baseline iDLG (79%) and DLG (66%).
- Regularization Effect: Interestingly, early stopping can prevent the optimizer from overfitting to noise in the later stages of an attack, which sometimes leads to cleaner reconstructed images and a higher success rate.
Conclusion
EPAFL proves that privacy attacks in Federated Learning can be made significantly more efficient without sacrificing success rates. By identifying that different data samples converge at different rates, the framework reduces resource waste. These findings highlight the need for more robust FL defenses, such as differential privacy or gradient clipping, to protect against increasingly practical and efficient adversaries.
Summary updated