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

Leveraging Function Space Aggregation for Federated Learning at Scale

Nikita Dhawan, Nicole Mitchell, Zachary Charles, Zachary Garrett, Gintare Karolina Dziugaite

Introduction

Federated Learning (FL) enables training global models across decentralized edge devices without compromising data privacy. However, the standard approach, Federated Averaging (FedAvg), often struggles with data heterogeneity, leading to a phenomenon known as "client drift." This paper introduces FedFish, an algorithm that mitigates drift by aggregating models in function space rather than parameter space.

The Challenge of Client Drift

In FL, a central server averages model parameters from diverse clients. When client data distributions differ significantly (e.g., different languages or handwriting styles), local models drift in divergent directions. Simple parameter averaging often results in a global model that performs poorly on all local distributions. To avoid this, practitioners typically limit local training steps, which increases communication overhead and slows convergence.

FedFish: Aggregation in Function Space

FedFish shifts the focus from raw weight matrices (parameter space) to how the model maps inputs to outputs (function space). The objective is to find a global model that minimizes the functional distance to local client models.

Conceptual illustration of function space aggregation vs. parameter space averaging.

The researchers utilize a second-order Taylor approximation to estimate this functional distance. This derivation reveals that the optimal aggregation is a weighted average where each parameter is weighted by its Fisher Information. Unlike FedAvg, which weights clients by dataset size, FedFish weights individual parameters based on their importance to a client's specific data. For scalability, a diagonal approximation of the Fisher matrix is used, computed efficiently via squared gradients during local training.

Key Insights and Results

A central contribution of the paper is the "Client-Server Barrier" metric, which quantifies the performance loss when moving from a locally optimized model to the aggregated global model. A lower barrier indicates that the aggregation method is more effective at merging knowledge without degradation.

Comparison of FedFish and FedAvg across different data overlap scenarios and the resulting Client-Server Barrier.

Key findings from large-scale evaluations on EMNIST, Stack Overflow, and the C4 dataset include:

  • Reduced Client Drift: FedFish consistently achieves a lower Client-Server Barrier than FedAvg, particularly in heterogeneous settings.
  • Robustness to Local Training: FedFish maintains stability even as the number of local epochs increases. While FedAvg's performance often collapses with more local effort, FedFish allows for fewer communication rounds by enabling longer local training.
  • Superior Personalization: On the Stack Overflow benchmark, FedFish improved next-token prediction accuracy by 7% over FedAvg when fine-tuning from a large-scale pretrained model.

Conclusion

By leveraging Fisher Information to perform aggregation in function space, FedFish addresses the fundamental limitation of client drift in federated learning. This approach allows for more extensive local training and produces global models that serve as superior starting points for personalization, paving the way for more efficient and effective large-scale FL systems.

Summary updated

BibTeX
@article{dhawan2024leveraging,
  author = {Nikita Dhawan and Nicole Mitchell and Zachary Charles and Zachary Garrett and Gintare Karolina Dziugaite},
  title = {{Leveraging Function Space Aggregation for Federated Learning at Scale}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=uNfR0wdmGS},
}
Figure