Abstract
We study the generalization error of statistical learning models in a Federated Learning (FL) setting. Specifically, there are $K$ devices or clients, each holding an independent dataset of size $n$. Individual models, learned locally via Stochastic Gradient Descent, are aggregated (averaged) by a central server into a global model and then sent back to the devices. We consider multiple ($R \in \mathbb N^*$) rounds of model aggregation and study the effect of $R$ on the generalization error of the final aggregated model. We establish an upper bound on the generalization error that accounts explicitly for the effect of $R$ (in addition to the number of participating devices $K$ and dataset size $n$). It is observed that, for fixed $(n, K)$, the bound increases with $R$, suggesting that the generalization of such learning algorithms is negatively affected by more frequent communication with the parameter server. Combined with the fact that the empirical risk generally decreases for larger values of $R$, this indicates that $R$ might be a parameter to optimize to reduce the population risk of FL algorithms.
Introduction
In the traditional Federated Learning (FL) paradigm, the primary focus has been on optimizing communication efficiency to reduce training error (empirical risk). The prevailing intuition suggests that more frequent synchronization between local clients and a central server leads to a more accurate global model. However, this paper challenges that assumption by shifting the focus from training performance to generalization performance—the model's ability to perform on unseen data.
The authors demonstrate that while increasing the number of communication rounds ($R$) helps the model fit the training data more closely, it simultaneously increases the generalization error. This creates a fundamental trade-off: communication frequency acts as a form of implicit regularization, and finding the "sweet spot" for $R$ is essential for minimizing the total population risk.
The Problem: Coupling and Correlation
In FL, $K$ devices each possess a local dataset of size $n$. These devices perform local updates and periodically send their parameters to a central server for averaging. This process is repeated for $R$ rounds.
Analyzing the generalization error in this multi-round setting is mathematically complex. In single-device learning, stability proofs are straightforward; however, in FL, each communication round "couples" the devices. The global average sent back to clients at the start of a new round contains information derived from every other client's data. This creates intricate statistical correlations that accumulate over time, making the global model increasingly sensitive to the specific noise present in the aggregate training set.
Methodology
The study focuses on Multi-round Federated Stochastic Gradient Descent (FL-SGD). The researchers analyzed loss functions within the family of Bregman divergences, which includes common metrics like squared Euclidean distance used in regression tasks.
To derive a theoretical bound for generalization error, the authors employed a "Leave-one-out" expansion lemma. This allowed them to decompose the error into two distinct components:
- Innovation: The new information learned locally by a device from its own data.
- Correlation: The influence of data from other devices, filtered through the server's averaging and redistribution process.
Key Theoretical Insights
The Homogeneity Trap
As $R$ increases, the models across different devices become more homogeneous. While homogeneity is often a goal in distributed optimization (ensuring all clients converge to the same solution), the paper reveals a hidden cost: high homogeneity makes the global model more likely to overfit the specific realization of the training data across the network.
The $1/K$ Advantage
The research confirms that in "one-shot" Federated Learning ($R=1$), the generalization error is significantly lower than in local training. Specifically, it decays by a factor of $1/K$ compared to a single device training on its own. However, as the number of rounds $R$ increases, this $1/K$ advantage is gradually eroded by the rising correlation between devices.
$R$ as a Regularization Parameter
The most significant takeaway is that the number of communication rounds $R$ behaves like a regularization hyperparameter.
- Low $R$: The model may suffer from high empirical risk (underfitting) because it hasn't communicated enough to find a global optimum.
- High $R$: The model achieves low empirical risk but suffers from high generalization error (overfitting) due to excessive coupling.
Empirical Validation
The authors validated their theoretical bounds using numerical simulations of Ordinary Least Squares (OLS) regression on the "friedman1" and "california_housing" datasets.
In these experiments, with $K=10$ clients and $n=500$ samples, the researchers observed that as $R$ increased from 1 to 500, the measured generalization error rose sharply. This empirical trajectory closely matched the theoretical upper bound derived in their proofs, confirming that more communication consistently leads to a wider generalization gap in these settings.
Conclusion and Future Directions
This research provides a new lens through which to view Federated Learning optimization. It suggests that the common practice of communicating as often as bandwidth allows may be counterproductive for model generalization. Instead, $R$ must be carefully tuned alongside learning rates and batch sizes.
While the study provides a rigorous foundation for Bregman divergences and i.i.d. data, future work remains to extend these findings to non-convex landscapes (such as deep neural networks) and highly heterogeneous (non-i.i.d.) data distributions. Additionally, developing automated methods to determine the optimal $R$ for a specific task remains a vital challenge for the field.
Summary updated