Adaptive collaboration for online personalized distributed learning with heterogeneous clients

Constantin Philippenko, Batiste Le Bars, Kevin Scaman, Laurent MassouliéarXiv 2025 · DOI

Introduction

In distributed learning environments, such as those involving mobile devices or medical institutions, clients often possess statistically heterogeneous data. Standard approaches like Federated Averaging (FedAvg) aim to train a single global model. However, a one-size-fits-all model frequently fails to capture the nuances of local data distributions. Personalized Federated Learning (PFL) addresses this by providing each client with a custom model.

The fundamental challenge in PFL is balancing the trade-off between variance and bias. Training locally on small datasets leads to high variance and slow convergence. Conversely, collaborating with all peers reduces variance but introduces bias from clients with dissimilar data distributions. This paper proposes the "All-for-one" algorithm, a dynamic, gradient-based strategy that allows clients to selectively aggregate gradients from similar peers.

The All-for-one Algorithm

The "All-for-one" framework focuses on exchanging stochastic gradients rather than model weights. The core innovation is a dynamic collaboration criterion that estimates weights ($\alpha_{ik}$) representing the trust client $i$ places in client $k$.

Collaboration Mechanisms

The authors introduce two practical schemas for weighting peer contributions:

  1. Binary (Hard-thresholding): A gradient filter that includes peers only if their similarity ratio $r_{ik}$—a metric comparing the distance between gradients to the local gradient norm—exceeds a specific threshold.
  2. Continuous (Soft-thresholding): A smoother approach where weights scale proportionally to the estimated similarity.

Unlike previous "oracle-based" methods, these weights are estimated on-the-fly using small, independent data batches, eliminating the need for prior knowledge of data diversity.

Theoretical Framework: The Sufficient Cluster

A key theoretical contribution is the concept of the sufficient cluster. This is defined as the set of clients whose data is helpful for achieving a specific target accuracy $\epsilon$.

The size of the sufficient cluster $\mathcal{N}_1^*(\epsilon)$ as a function of target accuracy $\epsilon$.

As shown in the figure above, the sufficient cluster naturally shrinks as the demand for precision increases (lower $\epsilon$). In the early stages of training, when noise is high, a client can benefit from a broad range of peers. As the model matures and requires higher accuracy, the algorithm becomes more selective to avoid the "poisoning" effect of dissimilar data. This mechanism effectively navigates the bias-variance Pareto frontier.

Experimental Evaluation

The researchers evaluated the All-for-one algorithm against several baselines, including FedAvg, Local training, and other PFL methods like Apfl and Ditto, across synthetic and real-world datasets (MNIST, CIFAR-10, Heart Disease, and IXI).

Convergence and Accuracy

The proposed adaptive schemes demonstrate superior convergence speed and final accuracy. On the CIFAR-10 dataset with extreme label heterogeneity, the binary collaboration variant achieved 63.9% test accuracy, significantly outperforming local training (58.5%) and FedAvg (28.9%).

Convergence of test loss over 200 epochs for various federated learning methods.

As illustrated in the convergence plots, the All-for-one variants (particularly the optimized version) converge much faster than local training. While FedAvg often hits a performance ceiling due to client conflict, the adaptive schemes continue to improve, harvesting useful information from peers without being hindered by their differences.

Discussion and Future Work

While the All-for-one algorithm provides a robust path for personalized learning, several areas for future research remain. The current implementation relies on stochastic approximations of weights; a more rigorous theoretical treatment of noisy weights is needed. Additionally, the assumption of uniform gradient noise may not hold in all real-world systems. Future work will also address partial client participation and the communication overhead associated with gradient exchange, potentially through gradient compression techniques.

Summary updated

BibTeX
@misc{philippenko2025adaptive,
  author = {Constantin Philippenko and Batiste Le Bars and Kevin Scaman and Laurent Massoulié},
  title = {{Adaptive collaboration for online personalized distributed learning with heterogeneous clients}},
  year = {2025},
  eprint = {2507.06844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.06844},
}
Figure