Beyond Optimal Rates in Stochastic Optimization: Trajectory-Adaptive Stopping Rules
Organizations: Department of Electrical Engineering and Computer Sciences, UC Berkeley, USA · Inria, École Normale Supérieure, PSL Research University, France · Department of Statistics, UC Berkeley, USA
Abstract
Stochastic gradient descent (SGD) is typically analyzed at a deterministic horizon chosen before the algorithm is run, even though practical stopping decisions are made adaptively by inspecting the evolving trajectory. This mismatch creates a fundamental certification problem: fixed-time guarantees do not generally remain valid at data-dependent stopping times, while deterministic horizons derived from worst-case bounds can be highly conservative. We address this problem for strongly convex stochastic optimization by constructing fully observable, trajectory-adaptive upper confidence sequences for the squared distance of the last iterate to the optimizer and the suboptimality of a weighted average. These bounds hold simultaneously over time, attain the optimal decay rate up to iterated-logarithmic factors in the worst case, and adapt to the realized stochastic gradients, allowing SGD to stop as soon as a prescribed accuracy is certified without sacrificing statistical validity. Our approach treats the evolving SGD trajectory as a sequential experiment whose observations provide evidence about the unknown optimization error. To formalize this perspective, we develop new recursive confidence-sequence techniques and a general time-uniform empirical Bernstein inequality for adapted processes with time-varying conditional means and predictable ranges that may grow without bound. We further extend these confidence-sequence constructions to minibatch SGD, with the empirical Bernstein bounds exploiting the realized second-moment structure within each minibatch. Numerical experiments show that the resulting stopping rules can require several orders of magnitude fewer iterations than natural deterministic horizons.
Figures & tables
| Label | Quantity | Anytime-valid | Trajectory-adaptive | Reference | |
|---|---|---|---|---|---|
| Ground truth | — | — | — | ||
| H | yes | yes | Theorem 2.3 10 10 10 In the minibatch experiments, we use the direct minibatch extension described at the beginning of Section 4 , replacing with in the corresponding variance processes and with in the SGD recursions. | ||
| EB | yes | yes | Corollary 4.3 | ||
| worst-case | yes | no | ( 75 ) | ||
| RSS12 | ( 77 ) | no | no | [ 36 ] | |
| Ground truth | — | — | — |
| class_sep | flip_y | |
|---|---|---|
| A (low separability) | 0.2 | 0.1 |
| B (medium separability) | 1.0 | 0.02 |
| C (high separability) | 5.0 | 0.0 |
Stochastic Optimization
Stochastic optimization studies how to find good decisions or model parameters when objectives, data, or feedback are random or noisy.
See all 210 papers