Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while keeping data localized. However, standard FL implementations typically rely on uniform sampling for both agent selection and local data point selection. In heterogeneous, "non-IID" (not independently and identically distributed) environments, this uniform approach is often suboptimal. Some agents possess data that is significantly more critical for global model progress, while others may contribute redundant or noisy updates.
This paper introduces ISFedAvg, a novel framework that replaces uniform sampling with a hierarchical importance sampling scheme. By prioritizing informative agents and data points based on gradient norms, the authors demonstrate significantly faster convergence and higher accuracy in challenging distributed settings.
The ISFedAvg Framework
The core innovation of ISFedAvg is a two-layer importance sampling strategy designed to reduce the variance of stochastic gradient estimates:
- Local Agent Level: Instead of uniform mini-batch sampling, each agent calculates inclusion probabilities based on the norm of the stochastic gradient. Data points that induce larger changes in the model (higher gradient norms) are sampled more frequently.
- Global Cloud Level: The central server selects agents based on their potential to reduce the variance of the global gradient estimate. This selection accounts for local data variability and the deviation of local models from the global average.
To address the practical challenge that optimal importance sampling requires knowing the true solution, the authors developed an adaptive version. Here, probabilities are estimated on-the-fly using current model iterates and mini-batch approximations. A rigorous convergence analysis confirms that the model reaches the global optimum even with these adaptive, non-uniform layers.
Experimental Evaluation
The researchers evaluated ISFedAvg across two distinct scenarios: a simulated regression task and a real-world classification task.
Simulated Regression
In a synthetic environment with 300 agents using quadratic risk functions, the authors measured the Mean-Square Deviation (MSD). The results showed a dramatic improvement in performance.
As shown in the figure above, the adaptive importance sampling versions (red and purple curves) converge significantly faster and reach a much lower steady-state error than the uniform baseline (blue curve). Specifically, ISFedAvg improved the MSD by approximately 23.1 dB.
Real-World Classification
The framework was also tested on the ijcnn1 dataset, distributed across 100 agents in a non-IID fashion.
On this classification task, ISFedAvg reduced the testing error from 22.45% to 18.46%. The green curve in the plot demonstrates both faster initial convergence and superior final accuracy compared to the standard FedAvg baseline.
Key Insights
- Variance Reduction: The primary driver of performance is variance reduction. By focusing on high-gradient samples, the algorithm takes more purposeful steps toward the optimum, increasing "sample efficiency."
- Robustness of Approximations: Interestingly, using approximate probabilities calculated from the current model sometimes outperformed the theoretical "true" optimal probabilities. This suggests that the importance sampling approach is highly robust to estimation errors.
- Handling Heterogeneity: The performance of the sampling strategy is governed by two factors: data variability within agents and model variability across the network. ISFedAvg effectively balances these to navigate non-IID landscapes.
Conclusion and Future Work
ISFedAvg offers a principled way to accelerate federated learning by moving beyond uniform sampling. While the approach introduces some computational overhead for calculating gradient norms, the trade-off is a significant reduction in the total number of iterations required for convergence.
Future research directions include optimizing the communication of metadata required for cloud-level sampling and extending the formal convergence analysis to highly non-convex landscapes, such as deep neural networks.
Summary updated