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.
1. Introduction: Bridging the Theory-Practice Gap
Federated Learning (FL) enables collaborative model training across decentralized clients while preserving data privacy. Federated Averaging (FedAvg) remains the cornerstone of FL; however, a significant discrepancy exists between its theoretical analysis and practical performance. While traditional theory predicts poor convergence and generalization under data heterogeneity, empirical evidence often shows FedAvg to be remarkably robust. This paper addresses this inconsistency by introducing "client consensus dynamics" and a novel algorithm, FedAWARE, which leverages adaptive weighted aggregation to stabilize training and improve generalization.
2. Methodology and Theoretical Framework
The authors propose two primary metrics to understand FL dynamics in heterogeneous environments:
- Client Consensus Dynamics: This measure tracks the cumulative expected norm of aggregated updates. The paper proves that a decaying consensus dynamic allows FedAvg to effectively manage heterogeneity.
- Local Update Diversity (LUD): Contrary to the common belief that heterogeneity is purely detrimental, the authors argue that LUD—the divergence of local updates from the global update—is a critical driver for model generalization. A model exposed to diverse updates is less likely to overfit to specific local distributions.
Building on these insights, the FedAWARE (Federated Adaptive Weighted AggREgator) algorithm is introduced. It employs:
- Moving-Averaged Updates: To mitigate the issues of partial client participation, the server maintains momentum-based update vectors for each client.
- Global Norm Minimization: Instead of uniform averaging, FedAWARE solves a constrained minimization problem to find optimal aggregation weights. By finding a "consensus" point with the minimum norm within the convex hull of client updates, it greedily reduces data drift.
Experimental Setup
The performance of FedAWARE was evaluated on three datasets simulating extreme heterogeneity: CIFAR-10, CIFAR-100 (using a Dirichlet distribution Dir(0.1)), and the AGNews text classification task. The experiments utilized diverse architectures, including a 5-layer CNN, ResNet-18 (with Group Normalization), and a fine-tuned GPT-2 (Pythia-70M).
3. Key Results and Discussion
FedAWARE demonstrates superior performance across all benchmarks. As shown in Figure 4, FedAWARE consistently achieves faster convergence and higher final test accuracy compared to FedAvg, FedProx, and other state-of-the-art baselines. For instance, on CIFAR-10, FedAWARE reaches approximately 60% accuracy, significantly outperforming the ~43% achieved by standard FedAvg.
Beyond its standalone performance, FedAWARE serves as a powerful plug-in module. When integrated into advanced algorithms like FedYogi or FedAMS, it effectively smooths the "accuracy spikes" typically caused by heterogeneity. Figure 6 illustrates how the AWARE-enhanced versions of these algorithms exhibit more stable training trajectories and improved final generalization.
4. Conclusion and Future Work
This work bridges the gap between FL theory and practice by highlighting the benefits of update diversity and the efficacy of adaptive aggregation. While FedAWARE requires additional server-side storage for client momentum, its ability to stabilize training and boost generalization makes it a compelling solution for heterogeneous FL. Future research will explore the causal links between LUD and algorithmic stability, as well as methods to reduce the storage overhead for large-scale deployments.
Summary updated