TL;DR
In Federated Learning (FL), aggregating models more frequently helps decrease empirical training loss, but does it improve generalization on unseen data? This paper proves that the expected generalization error actually increases with the number of communication rounds $R$. Consequently, communication frequency is a crucial trade-off parameter that must be tuned to minimize true population risk rather than just training error.
What Problem Does This Paper Address?
In standard Federated Learning (such as FedAvg or FL-SGD), $K$ client devices train local models over their local datasets of size $n$ and periodically communicate their parameters to a central server over $R$ communication rounds. Prior literature has firmly established that more frequent communication drives down empirical risk (training loss).
However, very little was known about how communication frequency affects the generalization error—the gap between population risk (test loss) and empirical risk (training loss). Most previous theoretical bounds either focused on one-shot FL ($R=1$) or used artificial proxies that circumvent the complex statistical dependencies induced across clients when local models are periodically averaged and redistributed. This paper directly analyzes the true expected generalization error for multi-round FL-SGD.
Methods
The authors consider a multi-round FL-SGD setup where clients train for one epoch total (each client takes $\tau = n/R$ local gradient steps per round):
- Bregman Divergence Losses: The loss function $\ell(z, w)$ is modeled as a Bregman divergence $D_F(w, z)$ generated by a continuously differentiable, strictly convex, and $L$-smooth function $F$ (e.g., squared Euclidean distance in regression).
- Leave-One-Out Stability Analysis: To tackle the cross-client statistical coupling caused by intermediate aggregations, the authors extend the Leave-One-Out Expansion Lemma (algorithmic stability framework). Replacing a sample in one client’s dataset alters its local updates, which perturbs subsequent global averages and cascades into other clients' updates in later rounds.
- Error Decomposition: The proof decomposes the generalization error into:
- A sum of generalization errors of a modified centralized SGD over local dataset slices across rounds.
- Cross-round coupling/perturbation terms tracking how local innovations propagate across rounds $r+1$ to $R$.
Datasets
The authors evaluated their bounds using regression benchmarks from scikit-learn:
- friedman1 (synthetic regression dataset; results plotted in Figure 3 with $d=10$ features, local dataset size $n=500$, and $K=10$ clients).
- california_housing (real-world benchmark; noted in Appendix B as yielding consistent results).
No new datasets were introduced.
Key Insights and Ideas
- Communication Breeds Overfitting to the Joint Sample: Intuitively, infrequent communication preserves diversity and acts as an implicit regularizer. Frequent model averaging ($R \to n$) homogenizes the local models, making the aggregate system behave like centralized mini-batch SGD with batch size $b = K$, which is known to exhibit worse generalization bounds than decentralized or one-shot averaging.
- The Second Term Vanishes at $R=1$: For one-shot learning ($R=1$), cross-round cascading dependencies disappear entirely, reducing the bound to $\mathcal{O}(1/(\sqrt{n} K^2))$, which provides an explicit $1/K$ boost over the individual clients' local generalization errors.
- The Population Risk Trade-off: $$\text{Population Risk} = \text{Empirical Risk} + \text{Generalization Error}$$ Because empirical risk drops with $R$ while generalization error grows with $R$, communication frequency should not simply be maximized. Instead, $R$ is a regularizing hyperparameter that can be optimized to achieve minimum test error.
Key Results
- Theoretical Bound: Under $L$-smooth Bregman divergence losses, the authors establish an upper bound showing explicit linear and polynomial accumulation terms in $R$ via the step-size growth factor $b_{r+1} = \sum_{q=r+1}^R \sum_{t=1}^\tau \eta_{q,t} \prod_{h=1}^{t-1} (1 + L \eta_{q,h})$.
- Asymptotic Comparison:
- At $R = 1$: Generalization error scales as $\mathcal{O}\left(\frac{f(1/\eta)}{\sqrt{n}K^2}\right)$.
- At $R = n$ (communicating every step): Generalization error scales as $\mathcal{O}\left(\frac{f(K/\eta)}{\sqrt{n}K}\right)$. Since $f(\cdot)$ is monotonically increasing with its argument, the bound strictly worsens.
- Empirical Validation: On the
friedman1benchmark ($n=500, K=10, d=10, \eta=0.01$), the empirical generalization error grew monotonically from $\approx 0.20$ at $R=1$ to nearly $0.40$ at $R=500$, matching the trajectory predicted by the theoretical bound.
Limitations and Future Work
- Single Epoch & Convex Bregman Losses: The analysis is restricted to one pass over local data (one epoch total) and requires the loss to be a Bregman divergence with an $L$-smooth generator, excluding non-smooth losses and deep neural networks with complex non-convex objectives.
- Bound Gap for Small $n$: While the bound captures the increasing trend with $R$ and is tight for large $n$, there is a noticeable gap between the bound and empirical error for moderate sample sizes (decaying faster than $1/n$ empirically).
- Extensions: The paper outlines that the mathematical framework naturally accommodates heterogeneous (non-i.i.d.) client data, aperiodic communication schedules, noisy local SGD updates, and general deterministic aggregation rules, though detailed empirical exploration of these variations is left for future research.
Summary updated