Abstract
Federated Learning (FL) faces significant challenges due to statistical heterogeneity across edge devices, leading to a phenomenon known as "client drift." This paper introduces Window-based Model Averaging (WIMA), a server-side technique that stabilizes training by averaging the last $W$ global models. WIMA acts as an implicit learning rate decay, mitigating catastrophic forgetting without increasing communication overhead. Empirical results across vision and NLP benchmarks demonstrate that WIMA consistently improves generalization, particularly in highly non-IID environments.
1. Introduction
Federated Learning (FL) enables the collaborative training of machine learning models across decentralized edge devices while keeping data localized. However, the real-world deployment of FL is hindered by statistical heterogeneity—where data distributions vary significantly between users (e.g., geographic or behavioral differences). During training, the global model is updated by a small subset of biased clients in each round, causing the optimization path to become volatile. This instability, often termed "client drift," leads the model to overfit to recent updates and forget knowledge from previous rounds.
While existing solutions attempt to address this through client-side constraints or late-stage averaging (such as Stochastic Weight Averaging), these often impose computational burdens on resource-constrained devices or only provide benefits at the end of the training cycle. This paper proposes Window-based Model Averaging (WIMA), a simple, plug-and-play server-side modification that stabilizes the entire training process.
2. The WIMA Framework
Unlike standard Federated Averaging (FedAvg), where the server broadcasts the most recent aggregated model to the next cohort of clients, WIMA maintains a sliding window of the previous $W$ global models. The model sent to clients is the simple average of all models within this window.
2.1 Server-Side Efficiency
A primary advantage of WIMA is that it is implemented entirely on the server. It requires zero additional communication bandwidth and places no extra computational load on the edge devices. This makes it ideal for large-scale deployments involving smartphones or IoT sensors where battery and processing power are limited.
2.2 Implicit Learning Rate Decay
The authors provide a mathematical foundation for WIMA, proving that averaging over a sliding window is equivalent to applying a specific schedule of learning rate decay to the server-side aggregation. By assigning higher significance to the historical trajectory of the model while integrating new updates at a controlled rate, WIMA smooths the "jagged" learning curves typical of heterogeneous FL.
3. Experimental Evaluation
The researchers evaluated WIMA across several standard FL benchmarks designed to simulate extreme data skew (Non-IID):
- Computer Vision: CIFAR-10 and CIFAR-100 (using Dirichlet distributions) and FEMNIST (partitioned by writer).
- Large-Scale Vision: Google Landmarks v2 (GLDV2), featuring over 2,000 clients and significant label imbalance.
- Natural Language Processing: Next Character Prediction (NCP) using the Shakespeare dataset.
3.1 Key Results
- Generalization Gains: On CIFAR-100, integrating WIMA with the MIME algorithm resulted in a final accuracy boost of over 11 percentage points. On the massive GLDV2 dataset, WIMA improved FedAvg from 58.17% to 63.05% and enhanced the state-of-the-art SCAFFOLD algorithm from 62.32% to 68.30%.
- Training Stability: WIMA transforms volatile, oscillating accuracy trends into smooth, steadily climbing curves, indicating more robust convergence.
- Participation Efficiency: WIMA allows for high accuracy even with lower client participation rates. For instance, WIMA with 10% participation can outperform standard FedAvg with 20% participation, a critical factor for real-world systems where many devices are frequently offline.
4. Discussion and Insights
Ablation studies reveal that WIMA primarily benefits the neural network's backbone (the feature extractor). By stabilizing the backbone, the model develops more robust features that allow the final classification layers to achieve higher precision. Furthermore, WIMA is not a standalone replacement for existing algorithms; it is a modular enhancement that can be layered on top of optimizers like FedProx, SCAFFOLD, or MIME to improve their performance in heterogeneous settings.
5. Conclusion and Future Work
WIMA offers a computationally efficient and communication-free method to combat client drift in Federated Learning. By leveraging a sliding window of model states, it provides the benefits of learning rate decay and weight averaging throughout the training process. While the current study focuses on vision and text, future research may explore its efficacy in other modalities such as audio or sensor data, and investigate automated methods for tuning the window size $W$ based on the degree of observed data heterogeneity.
Summary updated