[Paper Review] On the Practicality of Differential Privacy in Federated Learning by Tuning Iteration Times
This paper proposes tuning local iteration counts in Federated Learning (FL) to improve the practicality of Differential Privacy (DP), showing that optimal local iterations can stabilize convergence despite DP noise. It theoretically proves that Gaussian mechanism-based DP-FedAvg converges to a bounded error, while Laplace-based versions diverge but with reduced rates when iterations are tuned.
In spite that Federated Learning (FL) is well known for its privacy protection when training machine learning models among distributed clients collaboratively, recent studies have pointed out that the naive FL is susceptible to gradient leakage attacks. In the meanwhile, Differential Privacy (DP) emerges as a promising countermeasure to defend against gradient leakage attacks. However, the adoption of DP by clients in FL may significantly jeopardize the model accuracy. It is still an open problem to understand the practicality of DP from a theoretic perspective. In this paper, we make the first attempt to understand the practicality of DP in FL through tuning the number of conducted iterations. Based on the FedAvg algorithm, we formally derive the convergence rate with DP noises in FL. Then, we theoretically derive: 1) the conditions for the DP based FedAvg to converge as the number of global iterations (GI) approaches infinity; 2) the method to set the number of local iterations (LI) to minimize the negative influence of DP noises. By further substituting the Laplace and Gaussian mechanisms into the derived convergence rate respectively, we show that: 3) The DP based FedAvg with the Laplace mechanism cannot converge, but the divergence rate can be effectively prohibited by setting the number of LIs with our method; 4) The learning error of the DP based FedAvg with the Gaussian mechanism can converge to a constant number finally if we use a fixed number of LIs per GI. To verify our theoretical findings, we conduct extensive experiments using two real-world datasets. The results not only validate our analysis results, but also provide useful guidelines on how to optimize model accuracy when incorporating DP into FL
Motivation & Objective
- To address the critical challenge of model accuracy degradation when applying Differential Privacy (DP) to Federated Learning (FL).
- To investigate how the number of local iterations (LIs) and global iterations (GIs) affect convergence and model accuracy under DP.
- To derive theoretical conditions under which DP-enhanced FedAvg converges, especially with Laplace and Gaussian mechanisms.
- To provide a principled method for setting LIs that minimizes the negative impact of DP noise on FL model convergence.
Proposed method
- Derives the convergence rate of DP-enhanced FedAvg by modeling the impact of DP noise on gradient updates.
- Introduces a time-varying learning rate ηₖ = α/(k + γ) to analyze convergence behavior over global iterations.
- Establishes convergence conditions by bounding the expected squared norm of model weights under DP noise.
- Uses induction to prove that the error bound Yₖ ≤ φ/(k+γ) + (α²t)/(k+γ−1)² ω₁ holds under specific learning rate and noise assumptions.
- Substitutes Laplace and Gaussian mechanisms into the convergence framework to compare their behavior under tuned LIs.
- Derives explicit constants Cₘ for Laplace (Cₘ = 8pbξ₁²/(N²ε²)) and Gaussian (Cₘ = 8pc₂²log(1/δ)ξ₂²/(Nε²)) mechanisms to quantify noise impact.
Experimental results
Research questions
- RQ1Under what conditions does DP-enhanced FedAvg converge as the number of global iterations approaches infinity?
- RQ2How can the number of local iterations be optimally tuned to minimize the negative impact of DP noise on model convergence?
- RQ3Does the DP-based FedAvg with the Laplace mechanism converge, or does it diverge, and can the divergence rate be controlled?
- RQ4Can the learning error of DP-based FedAvg with the Gaussian mechanism converge to a constant, and under what conditions?
Key findings
- The DP-based FedAvg with the Laplace mechanism cannot converge as global iterations increase, but the divergence rate can be significantly reduced by tuning the number of local iterations.
- The learning error of DP-based FedAvg with the Gaussian mechanism converges to a constant value if a fixed number of local iterations is used per global iteration.
- The theoretical convergence bound shows that the error decays as O(1/k) for the main term and O(t/(k+γ)²) for the noise-affected term, where t is the number of DP noise injections.
- With optimal tuning of local iterations, the model accuracy degradation caused by DP noise is minimized, as validated by experiments on real-world datasets.
- The derived convergence conditions depend on the learning rate schedule and the noise magnitude, with the bound being tighter when the number of local iterations is carefully selected.
- The analysis reveals that noise injection after every local iteration (rather than only the last) is suboptimal, and delaying noise injection to the final local update reduces its negative impact.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.