# Focus on Where You Aggregate: Restricted SAM for Non-IID Federated Learning

*Haotong Wen, Junkang Liu, Yi Xu, Xiao Liu, Longkun Guo, Kewen Liao*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150522) · [OpenReview](https://openreview.net/forum?id=hTzdtftVAe) · [Open on the map](../papers.html#p150522)

Category: [Optimization & Federated Learning](../pcat/13.md) › [Federated Continual Learning and Unlearning](../pgroup/618.md) · Type: new method · Keywords: federated learning, client drift, aggregation stability, cone geometry, loss flattening, non-i.i.d. optimization

Areas: [Privacy & Federated Learning](../areas/privacy-federated.md) › Federated Privacy Methods › Federated Aggregation

## Summary
FedRSAM improves federated learning stability by flattening the region where global parameters are aggregated, using a cone-shaped geometry derived from previous updates and client variance.

## Explained to a 5-year-old
In federated learning, many devices work together to improve a shared model without sending all their data. Because each device sees different data, their updates can be unpredictable and make the model unstable. The paper creates a special shape, like a cone, to guess where the updates will land when they are combined. It then smooths the loss only in that region, helping the global model stay stable. This makes the model learn better and more reliably when data is varied across devices.

## Explained to a 5-year-old, longer
Federated learning is when many computers, like phones or hospitals, train a model together without sharing their private data. Each computer sees its own kind of data, so the updates they send can be different. These differences can cause the global model to become unstable, making it learn slower or incorrectly. The paper looks at where the global model’s parameters are combined, which is called aggregation. It builds a cone-shaped region that predicts where the aggregated parameters will fall in the next round. This region is made using the direction of the previous global update and how much the clients vary. The method then only looks for loss-flattening directions inside this cone. By focusing on this region, the loss surface is smoothed where it matters most. This helps the global model stay stable even when the data across clients is very different. The approach works for both image and text models, showing it is versatile. Experiments show that the model converges more reliably and achieves better performance. Overall, the technique makes federated learning more robust and useful in real-world settings.

## For a technical reader
Federated learning aggregates model updates from many clients, but heterogeneous data can cause drift and instability. Existing sharpness-aware methods flatten local loss landscapes without considering where the global parameters will actually be combined. This paper constructs a cone-shaped region based on prior global updates and client variance to anticipate the aggregation point, then restricts loss-flattening perturbations to that region. By directly optimizing the aggregation geometry, the global model converges more stably and achieves higher accuracy under non-i.i.d. conditions.

## Problem
Federated learning with heterogeneous data and multiple local updates can cause client drift, making global model aggregation unstable. Existing methods that flatten local model neighborhoods do not directly optimize the region where global parameters are aggregated, limiting the benefit of flattening.

## Method
The approach builds a cone-shaped region using the previous global update direction and client aggregation variance to predict where aggregated parameters will fall. It then restricts the loss-flattening perturbation search to this region, ensuring the global aggregation geometry is directly optimized for stability.

## Results
The approach shows improved convergence stability and higher performance across vision and language tasks under heterogeneous federated settings.

## Contributions
It introduces a cone-shaped aggregation region that directly guides loss flattening, and it restricts perturbation search to this region for more stable federated optimization, leading to better convergence and performance without extra communication overhead.

## Research questions this paper is counted under

- [How can federated learning aggregation be made robust to client data heterogeneity and non-i.i.d. distributions?](../q/33.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150522)
