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

Dynamic Regularized Sharpness Aware Minimization in Federated Learning: Approaching Global Consistency and Smooth Landscape

Yan Sun, Li Shen, Shixiang Chen, Liang Ding, Dacheng Tao

Federated Learning (FL) is a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, deploying FL in real-world scenarios exposes two persistent challenges: client drift (where local models diverge due to highly heterogeneous data) and poor generalization (where models overfit to sharp, unstable minima).

To address these issues, researchers have introduced FedSMOO, a novel algorithm designed to tackle both problems simultaneously by seeking out a consistent, flat loss landscape for the global model.

The Challenge: Client Drift and Sharp Minima

In a typical FL setup, clients (such as mobile phones or IoT devices) perform multiple local updates before sending their model parameters back to a central server. Because each client's data distribution is unique (non-IID), they often "drift" toward local optima that deviate significantly from the true global objective.

Previous research has attempted to mitigate this using optimization techniques to enforce consistency among clients. More recently, methods like FedSAM have sought to improve generalization by making local models "flat"—meaning they are less sensitive to small parameter perturbations. However, this approach harbors a critical flaw: local flatness does not guarantee global flatness. If local models are inconsistent and drifting in different directions, their aggregated average might still land on a "sharp" peak in the global loss landscape, leading to poor performance on unseen data.

The Solution: FedSMOO

FedSMOO (Dynamic Regularized Sharpness Aware Minimization) bridges the gap between optimization consistency and global generalization. The algorithm's machinery relies on two primary components:

1. Dynamic Regularization

Borrowing concepts from proximal algorithms like FedDyn, FedSMOO employs a dynamic penalty term. This regularizer effectively "pulls" local models toward the global objective. As training progresses, it ensures that local optimization paths and the global goal align perfectly, directly combating client drift.

2. Global SAM Optimizer

Unlike previous methods that apply Sharpness Aware Minimization (SAM) locally, FedSMOO reformulates the objective to search for a global flat minimum. To achieve this without violating client privacy, the authors introduce an equality constraint on the "perturbation" (the noise added to the weights to find flat regions). They utilize a dual-variable update scheme—similar to Alternating Direction Method of Multipliers (ADMM)—to estimate the global perturbation vector across all participating clients. This allows the algorithm to communicate the shape of the global loss landscape without ever exposing raw data.

Theoretical and Empirical Highlights

Theoretical Breakthrough

The authors prove that FedSMOO achieves a fast $\mathcal{O}(1/T)$ convergence rate. Crucially, they establish this bound while relaxing the "bounded heterogeneous gradients" assumption, a common but often unrealistic simplification relied upon in many FL theoretical proofs.

Experimental Setup

The researchers evaluated FedSMOO using standard image classification benchmarks, CIFAR-10 and CIFAR-100. To simulate real-world difficulty, they applied Dirichlet sampling and pathological partitioning to create high levels of data heterogeneity. They also employed sampling with replacement, creating a highly realistic scenario where the total global dataset is imbalanced across categories.

Key Results

FedSMOO consistently outperformed seven major baselines, including FedAvg, SCAFFOLD, and FedSAM.

  • Superior Accuracy: On the highly heterogeneous CIFAR-10 (Dirichlet-0.1) setup, FedSMOO achieved 80.82% accuracy, outperforming the next best method (MoFedSAM) by 2.11%.
  • Communication Efficiency: To reach a target accuracy of 74% on CIFAR-10, FedSMOO required only 194 communication rounds, compared to 723 rounds for FedAvg and 604 rounds for FedSAM. This represents a ~3.7x speedup in communication efficiency.
  • Smoother Landscape: 3D visualizations of the loss landscape confirm that FedSMOO's basin is visibly wider and smoother than its competitors, validating its ability to find flatter global minima.

Limitations and Future Directions

While FedSMOO is highly efficient in terms of communication rounds, it incurs a local computational cost. Like all SAM-based methods, it requires two gradient calculations per update step (one to find the perturbation, and one to update the model). Although a single round takes approximately 1.5x longer to compute locally, the massive reduction in total required communication rounds still makes FedSMOO significantly faster in overall "wall-clock" time.

Future research directions could include:

  • Scaling to Larger Architectures: Testing the algorithm on Transformers or larger ResNet architectures beyond ResNet-18.
  • Adaptive Perturbations: Automatically tuning the neighborhood size ($r$) dynamically for different types of data distributions.
  • Asynchronous FL: Extending the dynamic regularizer to accommodate asynchronous environments where clients check in at irregular intervals.

Summary updated

BibTeX
@inproceedings{sun2023dynamic,
  author = {Yan Sun and Li Shen and Shixiang Chen and Liang Ding and Dacheng Tao},
  title = {{Dynamic Regularized Sharpness Aware Minimization in Federated Learning: Approaching Global Consistency and Smooth Landscape}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=oBeRvWRUvU},
}
Figure