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

On the Power of Adaptive Weighted Aggregation in Heterogeneous Federated Learning and Beyond

Dun Zeng, Zenglin Xu, Shiyu Liu, Yu Pan, Qifan Wang, Xiaoying Tang

Abstract

Federated averaging (FedAvg) is the most fundamental algorithm in Federated learning (FL). Previous theoretical results assert that FedAvg convergence and generalization degenerate under heterogeneous clients. However, recent empirical results show that FedAvg can perform well in many real-world heterogeneous tasks. These results reveal an inconsistency between FL theory and practice that is not fully explained. In this paper, we show that common heterogeneity measures contribute to this inconsistency based on rigorous convergence analysis. Furthermore, we introduce a new measure client consensus dynamics and prove that FedAvg can effectively handle client heterogeneity when an appropriate aggregation strategy is used. Building on this theoretical insight, we present a simple and effective FedAvg variant termed FedAWARE. Extensive experiments on three datasets and two modern neural network architectures demonstrate that FedAWARE ensures faster convergence and better generalization in heterogeneous client settings. Moreover, our results show that FedAWARE can significantly enhance the generalization performance of advanced FL algorithms when used as a plug-in module.

Introduction

Federated Learning (FL) enables training models on decentralized data while preserving privacy. The standard algorithm, Federated Averaging (FedAvg), typically weights client updates based on their local dataset sizes. However, a persistent "theory-practice gap" exists: while theoretical proofs often predict failure or poor performance under extreme data heterogeneity (Non-IID data), FedAvg frequently succeeds in practical applications. This research investigates this discrepancy and introduces FedAWARE (Federated Adaptive Weighted AggREgator) to bridge the gap.

The FedAWARE Framework

FedAWARE departs from static weighting by employing an adaptive weighting strategy. At each communication round, the server solves an optimization problem to find weights that minimize the norm of the aggregated global update. This process identifies a "consensus" point among diverse client updates, effectively smoothing the optimization landscape.

To make this computationally feasible for models with millions of parameters, the authors utilize the Frank-Wolfe algorithm. Additionally, to address the challenge of "partial participation"—where only a subset of clients is active at any given time—the server maintains moving-averaged updates to estimate the contributions of offline clients.

One of the most powerful features of this approach is its modularity. FedAWARE is designed as a "plug-in" that can be integrated into existing advanced FL optimizers like FedProx, FedYogi, or FedAMS to enhance their stability and performance.

Theoretical Insights: Consensus and Diversity

The paper introduces two critical concepts that explain why FedAWARE succeeds where standard theory predicts failure:

  1. Client Consensus Dynamics: Traditional theory often assumes a worst-case, static level of heterogeneity. The authors argue that convergence depends on the dynamics of consensus. If the norm of the aggregated update (the consensus) decays over time, the model will converge regardless of how much individual clients differ.
  2. Local Update Diversity (LUD): In a counter-intuitive finding, the researchers discovered that higher diversity in local updates actually correlates with better generalization. While consensus is necessary for convergence, the "disagreement" between local updates helps the global model explore the loss landscape more effectively, finding more robust solutions.

Experimental Results

The effectiveness of FedAWARE was evaluated on CIFAR-10, CIFAR-100, and AGNews (using a fine-tuned GPT-2/Pythia-70M model). In all cases, data was partitioned using a Dirichlet distribution to simulate extreme heterogeneity.

Comparison of FedAWARE against state-of-the-art FL algorithms across three datasets.

As shown in the results, FedAWARE consistently outperforms both basic FedAvg and more complex baselines like FedDyn and FedProx. On CIFAR-10, FedAWARE achieved a test accuracy of 59.78%, a significant jump from the 42.78% achieved by standard FedAvg. It also effectively eliminates the unstable accuracy "spikes" often seen in heterogeneous training.

The Plug-in Effect

When used as an extension for other algorithms, the performance gains are even more pronounced. For instance, adding AWARE to FedAvgM (a momentum-based variant) resulted in a nearly 10% accuracy boost on both CIFAR-10 and CIFAR-100.

Impact of the AWARE plug-in on advanced FL algorithms, showing improved accuracy and diversity (e-LUD).

Conclusion and Future Work

FedAWARE provides a robust solution for the challenges of heterogeneity in Federated Learning. By balancing the need for global consensus with the benefits of local diversity, it achieves faster convergence and superior generalization. While the current implementation requires the server to store moving averages for all clients—a potential memory bottleneck for massive systems—future work may involve applying AWARE only to specific model layers or using client clustering to reduce overhead. Ultimately, this work provides a new theoretical lens through which to view and optimize decentralized learning.

Summary updated

BibTeX
@inproceedings{zeng2025power,
  author = {Dun Zeng and Zenglin Xu and Shiyu Liu and Yu Pan and Qifan Wang and Xiaoying Tang},
  title = {{On the Power of Adaptive Weighted Aggregation in Heterogeneous Federated Learning and Beyond}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=VCD8D3xSTA},
}
Figure