Beyond Local Sharpness: Communication-Efficient Global Sharpness-aware Minimization for Federated Learning

Debora Caldarola, Pietro Cagnasso, Marco Ciccone, Barbara Caputo

Abstract

Federated learning (FL) enables collaborative model training with privacy preservation. Data heterogeneity across edge devices (clients) can cause models to converge to sharp minima, negatively impacting generalization and robustness. Recent approaches use client-side sharpness-aware minimization (SAM) to encourage flatter minima, but the discrepancy between local and global loss landscapes often undermines their effectiveness, as optimizing for local sharpness does not ensure global flatness. This work introduces FedGloSS (Federated Global Server-side Sharpness), a novel FL approach that prioritizes the optimization of global sharpness on the server, using SAM. To reduce communication overhead, FedGloSS cleverly approximates sharpness using the previous global gradient, eliminating the need for additional client communication. Our extensive evaluations demonstrate that FedGloSS consistently reaches flatter minima and better performance compared to state-of-the-art FL methods across various federated vision benchmarks.

Introduction

In Federated Learning (FL), a central server coordinates training across thousands of edge devices (clients) without accessing their private data. A major hurdle in this setting is data heterogeneity: different users have different habits and environments, leading to "non-IID" (not identically and independently distributed) data. This heterogeneity often causes "client drift," where local updates pull the model in conflicting directions. Consequently, the aggregated global model often lands in a sharp minimum—a narrow valley in the loss landscape where minor weight perturbations lead to significant increases in error, harming generalization.

The Local-Global Disconnect

While recent research has applied Sharpness-aware Minimization (SAM) to FL, these methods typically focus on the client side. The authors identify a critical gap: local flatness does not guarantee global flatness. A model might appear stable to an individual device but highly unstable when viewed through the lens of the aggregated global dataset.

Visualization of the local-global disconnect: a model trained on a single class (e.g., 'sea') may find a flat local minimum (bottom) that corresponds to a sharp global peak (top).

As shown in the visualization above, a model trained on a specific subset (e.g., the "sea" class) might reside in a flat region of its local loss landscape. However, when evaluated against the global distribution, that same point might sit atop a sharp peak. This disconnect explains why local SAM often fails to improve global performance in highly heterogeneous scenarios.

Methodology: FedGloSS

To address this, the authors propose FedGloSS (Federated Global Server-side Sharpness), which shifts the focus of sharpness optimization from the client to the server. FedGloSS introduces two key innovations:

  1. Efficient Global Sharpness Approximation: Standard SAM requires two communication rounds per update: one to find the "sharp" direction and one to update the weights. To maintain efficiency, FedGloSS uses the pseudo-gradient from the previous round to estimate the current sharpness perturbation. This allows the server to "look ahead" at the global landscape's geometry without additional communication overhead.
  2. ADMM for Consistency: To ensure the previous round's gradient remains a reliable proxy, the authors employ the Alternating Direction Method of Multipliers (ADMM). This framework enforces consistency between local client updates and the global model trajectory, keeping the updates "aligned" and the approximation accurate.

Experimental Evaluation

The researchers evaluated FedGloSS on standard and large-scale computer vision benchmarks, including CIFAR-10, CIFAR-100, and the Landmarks-User-160K dataset (featuring over 2,000 classes and 1,200+ clients). They tested various architectures, including CNNs, ResNet18, and MobileNetv2.

Key Results

FedGloSS consistently outperformed state-of-the-art (SOTA) methods across all benchmarks:

  • Accuracy Boost: On CIFAR-10 with extreme heterogeneity ($\alpha=0$), FedGloSS achieved 83.9% accuracy, significantly outperforming FedSAM (70.2%) and FedAvg (59.9%).
  • Superior Flatness: Using the "Maximum Hessian Eigenvalue" ($\lambda_1$) as a proxy for sharpness, the authors confirmed that FedGloSS consistently finds flatter global regions compared to baselines.
  • Communication Efficiency: By approximating sharpness on the server, FedGloSS maintains a 1x communication cost, identical to standard FedAvg, while competing global methods like FedSMOO require 2x.
Global loss landscapes for CIFAR-10 and CIFAR-100 under varying degrees of data heterogeneity (alpha).

Furthermore, the authors found that SAM acts as a regularizer for ADMM. In highly heterogeneous settings, ADMM-based methods can suffer from "parameter explosion" where weights grow uncontrollably. SAM encourages smaller, more stable steps, preventing this instability and improving overall robustness.

Conclusion and Future Work

FedGloSS demonstrates that optimizing for global sharpness is essential for robust Federated Learning in heterogeneous environments. By leveraging previous gradients and ADMM, it achieves this without increasing communication costs.

A current limitation is the requirement for stateful clients, as ADMM assumes clients can store local variables between rounds. This may be challenging in "cross-device" FL where client participation is sporadic. Future research could focus on adapting FedGloSS for stateless environments or extending these global sharpness principles to other domains like Natural Language Processing.

Summary updated

BibTeX
@misc{caldarola2024beyond,
  author = {Debora Caldarola and Pietro Cagnasso and Marco Ciccone and Barbara Caputo},
  title = {{Beyond Local Sharpness: Communication-Efficient Global Sharpness-aware Minimization for Federated Learning}},
  year = {2024},
  eprint = {2412.03752},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.03752},
}
Figure