When Momentum Helps Polyak--Ruppert Averaging
Organizations: Independent researcher · HSE University · MSU AI Institute · Innopolis University
Abstract
Polyak--Ruppert averaging gives SGD and momentum methods the same asymptotic covariance. We characterize how fast finite runs reach it and how far they can be parallelized. For strongly convex quadratics with additive noise, we prove an online--offline bridge: the empirical risk minimizer on the samples of a tail average is one Newton step from the tail-averaged query point of any online procedure. For SGD, heavy ball, and Nesterov's method with constant momentum, this step is a boundary term at the two ends of the tail and splits the gap to the offline estimator into center, covariance, and shape errors. Necessary and sufficient conditions show that, on the least curved direction, the center error sets the pace: SGD needs rounds but momentum only , where is the condition number, so at sample size the critical batch size grows from to . The covariance error separates the momentum methods: heavy ball has relative variance excess along the stiffest direction, whereas Nesterov has relative error in every direction. The shape error is method-independent by a Berry--Esseen bound uniform in and batch size, so confidence intervals are valid when the other two errors vanish. We further examine how the conclusions change under heavy-tailed or state-dependent noise and clipping, and establish a first-order comparison with ERM for nonlinear Nesterov averaging under explicit conditions.
Figures & tables
| Criterion in the direction | SGD | HB | NAG |
|---|---|---|---|
| Vanishing relative variance error | |||
| Negligible normalized bias and relative variance error, , fixed | |||
| Initialization-induced batch scale at fixed , up to constants |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Parameters | |||
|---|---|---|---|---|
| SGD | ||||
| HB | , | |||
| NAG | , |
| Target | Typical statement | What it resolves / what it hides |
|---|---|---|
| Optimization transient | Burn-in and conditioning; not the law of the output. | |
| Finite-budget risk | Valid at every ; constants and directional uncertainty may be hidden. | |
| Distributional limit | local geometry and inference; says little about how large must be. | |
| Offline expansion | Law of the offline estimator on the same data, being the empirical noise mean; says nothing about how an online method reaches it. |
| Description | MSE and confidence radius | Assumptions and required knowledge |
|---|---|---|
| Descent | ; | Smoothness, strong convexity, conditional variance; . |
| Contraction | ; | Additive quadratic model, finite variance; the same scalar knowledge. |
| moments | Equation 72 ; MSE without an asymptotic remainder | In addition ; for unknown the bound is used. |
| PR approximation | ; a Gaussian quantile only after controlling the center and the covariance | Not a finite-time upper bound. |
| Quantity | Cross-validated | Second | Third |
|---|---|---|---|
| of , linear model | |||
| of at , logistic model | |||
| with global constants, logistic model | |||
| Variance of log income explained by | |||
| Reduction of by the control variate | factor | ||
| Batch | Method | Oracle | Plug-in | Batch means | Random scaling |
|---|---|---|---|---|---|
| SGD | |||||
| HB | |||||
| NAG | |||||
| SGD | |||||
| HB | |||||
| NAG |
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