arXiv:2610.21832cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21832

Local Epochs as Optimal Stopping: Theory and Evidence in Federated Learning

Ke Xiao, Qiyuan Wang, Christos Anagnostopoulos

Abstract

How long should each client train before communicating? Federated learning usually answers with a fixed, hand-tuned number of local epochs, yet an extra epoch helps only while the loss it removes outweighs the client drift it adds. We cast local training as finite-horizon optimal stopping: a client trains while the next epoch's expected loss reduction exceeds its priced squared drift. We prove that this one-stage look-ahead threshold is optimal whenever stopping decisions are nested, derive closed forms for geometric and power-law returns, and show that an estimated rule loses utility only through wrong-signed decisions. Epoch-level evidence supports the model's structure (geometric diminishing returns and additive drift) and reveals a simple regularity: the stage of training, not the client, sets the budget. The resulting rule, FEDSTOP, is never more than one point below tuned FedAvg in mean accuracy. Where its budgets vary, it raises worst-decile accuracy by 4–8 points over tuned FedAvg and an adaptive-interval baseline, and every one of these gains remains significant after a Holm correction. Against the client-side stopping rules ALT and FLASH, it has the highest CIFAR-10 worst decile on every seed and is level elsewhere. It stays stable where per-client early stopping collapses, and each stopping decision takes constant time.

1 Introduction

In federated learning (FL) with federated averaging (FedAvg), each round the server broadcasts the global model, a sample of clients train it locally for E epochs, and the server averages the returned models (McMahan et al., 2017). The local epoch count E governs a basic trade-off. More local work reduces how often clients must communicate. Under statistical heterogeneity, however, it also lets each local model drift toward its own optimum and away from the global one, which degrades the aggregate (Li et al., 2020a; Karimireddy et al., 2020).

In practice E is a tuned constant, and a fragile one. In a grid that also varies the learning rate, the best fixed configuration is two epochs on CIFAR-10 but one on CIFAR-100, where two epochs diverge (Section 8). More fundamentally, a tuned constant says nothing about why a budget works, how it should change as training proceeds, or whether it should differ across clients.

We take a modelling view. Every local epoch is an investment: after it, a client observes what it bought, a reduction in its local loss, and what it paid, a further displacement from the round's starting model. Returns diminish as the local loss flattens while the displacement keeps accruing, so deciding when to stop can be cast as a finite-horizon optimal stopping problem. A model of this kind is worth having only to the extent that it describes real local training, so we derive what it predicts and test those predictions against epoch-level logs. To our knowledge, this is the first formulation of a client's choice of local epochs as an optimal stopping problem. The resulting rule, FEDSTOP (Federated optimal Stopping), runs locally on each client and ends its training as soon as another epoch is no longer worth its drift.

References (25)