Linear Speedup in Personalized Collaborative Learning

El Mahdi Chayti, Sai Praneeth Karimireddy, Sebastian U. Stich, Nicolas Flammarion, Martin JaggiarXiv 2021

Introduction: The Bias-Variance Tradeoff in PCL

In traditional Federated Learning, the objective is typically to train a single global model. However, real-world users are often heterogeneous, requiring Personalized Collaborative Learning (PCL). In this setting, a "main user" aims to optimize their specific objective ($f_0$) by leveraging data from $N$ auxiliary users ($f_1, \dots, f_N$).

This setup introduces a classic bias-variance tradeoff. Training alone avoids bias but suffers from high variance due to limited local data. Conversely, simple collaboration reduces variance but introduces bias if the auxiliary users' goals diverge from the main user's optimum. This paper investigates the conditions under which a user can achieve a "linear speedup"—reducing error variance by a factor of $N$—without the performance-crushing effects of heterogeneity.

Methodology: From Averaging to Bias Correction

The authors analyze two primary algorithmic approaches within a stochastic optimization framework:

  1. Weighted Gradient Averaging (WGA): A baseline where the main user takes a weighted average of their own gradient and the collaborators' gradients. The authors demonstrate that WGA's performance is strictly limited by user dissimilarity; as heterogeneity increases, the bias persists, eventually forcing the user to reduce collaboration to maintain accuracy.
  2. Bias Correction (BC): The proposed method uses an Exponential Moving Average (EMA) to estimate the difference between the main user's gradients and those of the collaborators. By subtracting this estimated bias from the incoming collaborative gradients, the user can benefit from the group's variance reduction without being pulled away from their local optimum.

Theoretical Insights: Curvature vs. Optima

A key theoretical contribution is the distinction between optima shift and curvature difference. The authors prove that the distance between users' optima (the bias $\zeta$) does not prevent linear speedup when using BC. Instead, the fundamental bottleneck is Hessian Dissimilarity ($\delta$)—the difference in the curvature of the loss functions. If the functions "bend" in similar ways, the shift in their centers can be effectively corrected.

Empirical Results: Linear Speedup and Robustness

The authors validate these insights using a Noisy Quadratic Model, which allows for precise control over parameters like bias and curvature.

Comparison of Bias Correction (BC) against Weighted Gradient Averaging (WGA) and training alone. BC achieves a significantly lower error floor than both alternatives after an initial bias-learning phase.

As shown in the comparison above, the BC method consistently reaches a lower error level than both training in isolation and the standard WGA approach. While WGA's error floor is limited by the heterogeneity of the participants, BC successfully filters out this bias to leverage the collective data.

The "linear speedup" property—where the variance of the gradient estimate decreases by a factor of $N$—is further confirmed by varying the number of collaborators.

The effect of the number of collaborators $N$ on the Bias Correction method. Increasing $N$ reduces the final error variance, demonstrating the predicted linear speedup.

As $N$ increases, the final error floor drops proportionally, confirming that the user successfully benefits from the additional data provided by the auxiliary users. Furthermore, experiments showed that while larger biases ($\zeta$) require more iterations to learn the initial correction factor, the final error reached by BC remains constant regardless of how far away the collaborators' optima are.

Conclusion

By shifting the focus from simple gradient averaging to active bias correction, this work provides a framework for effective personalized collaboration. The results show that linear speedup is achievable even in highly heterogeneous environments, provided there is sufficient similarity in the underlying loss curvatures. Future research will focus on extending these techniques to communication-efficient settings and complex deep learning architectures.

Summary updated

BibTeX
@misc{chayti2021linear,
  author = {El Mahdi Chayti and Sai Praneeth Karimireddy and Sebastian U. Stich and Nicolas Flammarion and Martin Jaggi},
  title = {{Linear Speedup in Personalized Collaborative Learning}},
  year = {2021},
  eprint = {2111.05968},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.05968},
}
Figure