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

Locally Estimated Global Perturbations are Better than Local Perturbations for Federated Sharpness-aware Minimization

Ziqing Fan, Shengchao Hu, Jiangchao Yao, Gang Niu, Ya Zhang, Masashi Sugiyama, Yanfeng Wang

Introduction

Federated Learning (FL) enables collaborative model training across decentralized clients without raw data exchange. However, two major hurdles often lead to poor performance: data heterogeneity (non-IID data distributions) and multi-step local updates. These factors often push the model toward "sharp" minima in the loss landscape—regions where minor changes in model weights cause significant spikes in error, leading to poor generalization.

To address this, researchers often employ Sharpness-Aware Minimization (SAM), which seeks "flat" minima by adding a small perturbation to model weights in the direction of the steepest gradient. In FL, however, clients typically calculate these perturbations based on their biased local data. This "perturbation drift" often points toward local flat spots that do not align with the global model's objective, potentially hindering performance.

The FedLESAM Framework

The authors introduce FedLESAM (Federated Locally Estimated SAM), which innovates by estimating global perturbation directions rather than relying on local gradients.

Comparison of loss landscapes and conceptual diagrams for local SAM vs. FedLESAM.

Global Estimation and Efficiency

Instead of performing an extra backpropagation to find the local steepest ascent, FedLESAM estimates the global perturbation direction using the difference between the current global model ($w^t$) and the global model from the client's last active round ($w^{old}$). This global proxy aligns local training with the global objective "for free."

Because the perturbation direction is pre-calculated from previous rounds, clients only need one backpropagation per iteration, whereas standard SAM requires two. This effectively cuts the computational cost of SAM in half. Furthermore, by maintaining a consistent perturbation direction during local training, the algorithm avoids the erratic "zig-zagging" caused by noisy local gradients.

Experimental Results

FedLESAM was evaluated on major federated benchmarks, including CIFAR-10/100 and domain adaptation datasets like OfficeHome and DomainNet. The results demonstrate that FedLESAM consistently produces flatter loss landscapes and superior accuracy.

Quantitative analysis of perturbation drift and global sharpness across communication rounds.

Key Findings

  • Superior Accuracy: On CIFAR-100 (Dirichlet 0.1), FedLESAM-S achieved 48.07% accuracy, outperforming standard FedAvg (42.64%) and the previous state-of-the-art FedSMOO (46.48%).
  • Efficiency Gains: FedLESAM reached target accuracy levels in significantly fewer communication rounds and with ~50% less computational time compared to standard FedSAM.
  • Drift Mitigation: As shown in the performance plots, FedLESAM significantly reduces perturbation drift and maintains lower global sharpness compared to other SAM-based federated methods.

Conclusion and Future Work

FedLESAM offers a rare "computational free lunch," improving generalization while reducing local training overhead. While the method introduces a small memory requirement for storing previous global models, its ability to find flatter minima in heterogeneous environments makes it a robust choice for large-scale FL. Future work will focus on extending theoretical proofs to more complex multi-step local update scenarios and optimizing hyperparameter sensitivity.

Summary updated

BibTeX
@inproceedings{fan2024locally,
  author = {Ziqing Fan and Shengchao Hu and Jiangchao Yao and Gang Niu and Ya Zhang and Masashi Sugiyama and Yanfeng Wang},
  title = {{Locally Estimated Global Perturbations are Better than Local Perturbations for Federated Sharpness-aware Minimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=6axTFAlzRV},
}
Figure