Abstract
In federated learning, differences in the data or objectives between the participating nodes motivate approaches to train a personalized machine learning model for each node. One such approach is weighted averaging between a locally trained model and the global model. In this theoretical work, we study weighted model averaging for arbitrary scalar mean estimation problems under minimal assumptions on the distributions. In a variant of the bias-variance trade-off, we find that there is always some positive amount of model averaging that reduces the expected squared error compared to the local model, provided only that the local model has a non-zero variance. Further, we quantify the (possibly negative) benefit of weighted model averaging as a function of the weight used and the optimal weight. Taken together, this work formalizes an approach to quantify the value of personalization in collaborative learning and provides a framework for future research to test the findings in multivariate parameter estimation and under a range of assumptions.
Introduction
Federated Learning (FL) typically aims to produce a single global model that generalizes across all participating nodes. However, in practice, data is often heterogeneous; a model optimized for one demographic or geographic region may perform poorly in another. This challenge has spurred interest in personalization, where individual agents adapt a global model to their specific local tasks.
One of the most straightforward methods for personalization is weighted model averaging. This involves taking a linear combination of a locally trained model and the global model. Despite its popularity, fundamental questions remain: Under what conditions is it mathematically guaranteed that incorporating external data will improve local performance? If the global model is significantly biased relative to the local task, could it potentially degrade performance? This paper addresses these questions through the lens of scalar mean estimation.
Theoretical Framework
The authors analyze a two-agent scenario consisting of a local agent ($a_X$) with $n_X$ samples and a "helper" agent ($a_Y$) with $n_Y$ samples. The objective is to estimate the local true mean $\mu_X$ using a weighted average: $$\bar{\mu}_\alpha = (1 - \alpha) \bar{X} + \alpha \bar{Y}$$ where $\bar{X}$ is the local empirical mean, $\bar{Y}$ is the helper's mean, and $\alpha \in [0, 1]$ is the weight assigned to the helper.
Unlike prior research that often assumes identical variances or negligible bias between agents, this work operates under minimal assumptions. By employing a classic bias-variance decomposition, the authors calculate the Expected Squared Error (ESE) and derive the optimal weight $\alpha^*$ that minimizes this error.
The "Always Better" Guarantee and the Safety Zone
A central contribution of this work is the proof of the "Always Better" Guarantee. The authors demonstrate that if the local model possesses any non-zero variance ($\sigma_X^2 > 0$), there is always a positive weight $\alpha^* > 0$ that yields a lower ESE than the local-only model ($\alpha = 0$). This implies that agents should almost never completely ignore collaborative data, even if that data comes from a biased source.
Furthermore, the research identifies a "Safety Zone" for model averaging. Any weight $\alpha$ chosen within the interval $(0, 2\alpha^*)$ will result in an improvement over the local model. However, "over-trusting" the global model by selecting a weight $\alpha > 2\alpha^*$ will lead to an increase in error, as illustrated in Figure 1.
Quantifying the Optimal Weight
The optimal weight $\alpha^*$ is shown to be a simple ratio of the local variance to the total expected error (the sum of local variance, helper variance, and the squared bias between the two). A key insight is that the reduction in ESE achieved by using $\alpha^*$ is exactly equal to the value of $\alpha^*$ itself. For example, if $\alpha^* = 0.3$, the optimal weighted average reduces the expected error by 30%.
The behavior of $\alpha^*$ is sensitive to the relationship between local noise and helper reliability. As shown in Figure 2, $\alpha^*$ is highest when the local model is noisy (high variance) and the helper is both relevant (low bias) and reliable (low variance). Conversely, as the helper's data grows ($n_Y \to \infty$), the optimal weight reaches a plateau determined by the bias; once the helper's variance is negligible, adding more data provides diminishing returns.
Connection to Shrinkage Estimation
The authors frame weighted model averaging as a generalized form of shrinkage estimation, akin to the James-Stein estimator. In this context, the local estimate is "shrunk" not toward zero, but toward a collaborative global estimate. This formalization provides a rigorous way to quantify the "value of personalization" in collaborative environments.
Conclusion and Future Work
While this study provides foundational theoretical guarantees, it is currently limited to one-dimensional scalar estimation. Real-world machine learning involves high-dimensional parameter vectors, and extending these proofs to multivariate settings is a critical next step. Additionally, calculating the true $\alpha^*$ requires knowledge of underlying distribution parameters (means and variances) that are typically unknown. Future research must focus on robust methods for estimating these parameters from data to realize the theoretical benefits of optimal model averaging in practice.
Summary updated