Accelerating Heterogeneous Federated Learning with Closed-form Classifiers

Eros Fanì, Raffaello Camoriano, Barbara Caputo, Marco Ciccone

Abstract

Federated Learning (FL) faces significant challenges due to statistical heterogeneity, leading to "client drift" where local model updates diverge. This paper introduces FED3R (Federated Recursive Ridge Regression), a novel approach that replaces iterative gradient updates for the classification head with a closed-form mathematical solution. By leveraging the associative property of Ridge Regression statistics, FED3R achieves exact aggregation, effectively eliminating client drift in the final layer. Empirical evaluations on large-scale benchmarks like Landmarks-160K and iNaturalist-120K demonstrate that FED3R can reduce communication and computation costs by up to two orders of magnitude while improving final accuracy by up to 12% in highly heterogeneous environments.

Introduction

Federated Learning (FL) enables training models on decentralized data residing on edge devices without compromising privacy. However, the performance of standard FL algorithms like FedAvg is severely degraded by statistical heterogeneity (non-IID data). In such settings, local training causes the model—particularly the classification head—to "drift" toward local optima that do not generalize well to the global population. This client drift necessitates thousands of communication rounds, incurring massive overhead.

Methodology: FED3R

The proposed method, FED3R, addresses this by reformulating the classification task as a Ridge Regression problem. Unlike standard neural network layers that require iterative optimization, Ridge Regression has a closed-form solution:

$W = (A + \lambda I)^{-1} b$

where $A$ and $b$ are sufficient statistics derived from the data.

Exact Aggregation and Invariance

Because $A$ and $b$ are additive, the server can compute the global solution by simply summing the statistics sent by participating clients. This ensures that the resulting classifier is identical to one trained on a centralized dataset, making it mathematically immune to the order of client sampling or the distribution of data across clients. To handle non-linear relationships, the authors introduce FED3R-RF, which utilizes Random Features to approximate high-dimensional kernels, allowing the closed-form approach to compete with deep neural networks in terms of expressivity.

Experimental Evaluation

The researchers evaluated FED3R on large-scale, realistic FL benchmarks including Landmarks-Users-160K (1,262 clients) and iNaturalist-Users-120K (9,275 clients).

Key Results

FED3R demonstrates dramatic improvements in convergence speed and resource efficiency. On the Landmarks dataset, FED3R-RF reached 40% accuracy 19.3x faster than FedAvg and 82.4x faster than its linear probing counterpart. As shown in Figure 4, the method maintains a significant lead across communication and computation budgets, often requiring two orders of magnitude less resources to reach target accuracy.

Performance comparison of FED3R against standard FL baselines across rounds, communication costs, and computation costs for Landmarks and iNaturalist datasets.

Fine-Tuning and Stability

While FED3R can act as a standalone classifier, it is most powerful when used as a "warm start" for full-model fine-tuning (FED3R+FT). By initializing the classification head with the closed-form solution, the feature extractor is stabilized, allowing it to learn more discriminative features without the interference of a drifting head. This approach significantly outperforms standard random initialization across various base algorithms.

Fine-tuning results comparing standard random initialization (X) against FED3R initialization across different base algorithms and datasets.

Discussion and Limitations

The "one-and-done" nature of FED3R, where each client ideally only needs to be sampled once, represents a paradigm shift for cross-device FL. However, the method's reliance on a pre-trained feature extractor means its performance is partially capped by the quality of those features. Additionally, the $O(d^2)$ scaling of the $A$ matrix with respect to feature dimension $d$ may pose challenges for extremely large models. Future work may explore extending this logic to streaming data and personalized FL.

Conclusion

FED3R offers a robust solution to the client drift problem in heterogeneous federated learning. By replacing unstable iterative updates with exact statistical aggregation, it provides a path toward highly efficient and accurate federated models suitable for real-world, large-scale deployment.

Summary updated

BibTeX
@inproceedings{fani2024accelerating,
  author = {Eros Fanì and Raffaello Camoriano and Barbara Caputo and Marco Ciccone},
  title = {{Accelerating Heterogeneous Federated Learning with Closed-form Classifiers}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=cMige5MK1N},
}
Figure