[Paper Review] Generalized Federated Learning via Sharpness Aware Minimization
FedSAM and MoFedSAM use Sharpness Aware Minimization to improve generalization and reduce learning deviation in non-IID federated learning, with theoretical convergence and generalization bounds and strong empirical results.
Federated Learning (FL) is a promising framework for performing privacy-preserving, distributed learning with a set of clients. However, the data distribution among clients often exhibits non-IID, i.e., distribution shift, which makes efficient optimization difficult. To tackle this problem, many FL algorithms focus on mitigating the effects of data heterogeneity across clients by increasing the performance of the global model. However, almost all algorithms leverage Empirical Risk Minimization (ERM) to be the local optimizer, which is easy to make the global model fall into a sharp valley and increase a large deviation of parts of local clients. Therefore, in this paper, we revisit the solutions to the distribution shift problem in FL with a focus on local learning generality. To this end, we propose a general, effective algorithm, exttt{FedSAM}, based on Sharpness Aware Minimization (SAM) local optimizer, and develop a momentum FL algorithm to bridge local and global models, exttt{MoFedSAM}. Theoretically, we show the convergence analysis of these two algorithms and demonstrate the generalization bound of exttt{FedSAM}. Empirically, our proposed algorithms substantially outperform existing FL studies and significantly decrease the learning deviation.
Motivation & Objective
- Address distribution shift in cross-device FL due to non-IID data.
- Improve local training generality to better align with the global objective.
- Introduce FedSAM as a SAM-based local optimizer to smooth loss surfaces.
- Develop MoFedSAM to bridge local and global models via momentum.
- Provide convergence analysis and generalization bounds for the proposed methods.
Proposed method
- Formalize FedSAM as a min_w max_{||δ||≤ρ} f(w, {δ_i}) problem, where f aggregates perturbed local losses across clients.
- Approximate the inner perturbation δ_i via a first-order Taylor expansion leading to δ_i ≈ ρ ∇F_i(w)/||∇F_i(w)||.
- Implement FedSAM with a two-step local update: perturbation then gradient step on the perturbed loss (Eq. 4).
- Develop MoFedSAM by incorporating previous round global updates Δ^r and a momentum term to blend local and global information (Eq. 6).
- Provide theoretical results: convergence rates matching best non-IID FL rates and generalization bounds for FedSAM (Theorem 3.1 and Theorem 3.5).
- Show that MoFedSAM offers faster convergence and improved generalization by bridging sharpness between local and global models (Theorem 4.1).
Experimental results
Research questions
- RQ1How does applying sharpness-aware minimization at the local level affect global FL generalization under non-IID data?
- RQ2Can a momentum-based mechanism (MoFedSAM) effectively couple local updates with global information to improve convergence and generalization in FL?
- RQ3What are the convergence rates and generalization guarantees of FedSAM and MoFedSAM under full and partial client participation?
- RQ4Do FedSAM and MoFedSAM provide robust performance across standard FL benchmarks and non-IID data partitions?],
- RQ5key_findings':['FedSAM improves global generalization and convergence over ERM-based FedAvg in non-IID FL settings.','MoFedSAM yields faster convergence and better generalization by integrating global updates through momentum.','Both FedSAM and MoFedSAM reduce learning deviation across diverse clients, improving robustness to data heterogeneity.','Experiments on EMNIST, CIFAR-10, and CIFAR-100 show authors’ methods outperforming FedAvg, SCAFFOLD, FedRobust, MimeLite, and FedCM under varying non-IID conditions.','Theoretical analyses provide convergence rates comparable to or better than existing non-IID FL methods and a margin-based generalization bound for FedSAM.','MoFedSAM maintains effectiveness under full and partial client participation, with performance gains amplified on more complex datasets like CIFAR-100.'],
- RQ6table_headers[]
- RQ7table_rows[]
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.