Statistical inference with implicit SGD: proximal Robbins-Monro vs. Polyak-Ruppert

Yoonhyung Lee, Sungdong Lee, Joong-Ho Won

The Challenge of Standard SGD

Stochastic Gradient Descent (SGD) is the workhorse of modern machine learning, but it suffers from a well-known vulnerability: sensitivity to the learning rate (step size). If the step size is too small, convergence is painfully slow; if it is too large, the algorithm can diverge and "explode."

Implicit SGD (ISGD) was introduced as a more stable alternative. By using an "implicit" update rule—where the gradient is evaluated at the next iterate rather than the current one—it gains incredible stability. However, the theoretical understanding of ISGD has historically lagged behind its empirical success. Previous analyses often relied on restrictive "Generalized Linear Model" (GLM) assumptions or contained mathematical contradictions. Furthermore, there was no established way to perform statistical inference (calculating the uncertainty of the estimated parameters) directly and efficiently during a single run of ISGD.

Summary of contributions to implicit SGD compared to prior work.

A New Theoretical Foundation

This paper provides a rigorous theoretical foundation for ISGD, deriving the first non-asymptotic error bounds and on-line covariance estimators for two distinct ISGD variants. This enables researchers to perform reliable statistical inference, such as building confidence intervals, from a single run of the algorithm without needing restrictive model assumptions.

The authors analyze two main modes of ISGD:

  1. Proximal Robbins-Monro (proxRM): The standard ISGD iteration.
  2. Proximal Polyak-Ruppert (proxPR): A version that averages the iterates of proxRM to achieve better statistical efficiency.

The core technical contribution is a set of non-asymptotic point estimation error bounds that are entirely free of the GLM assumption. Crucially, the authors propose on-line estimators for the asymptotic covariance matrices. By estimating the Hessian (curvature) and Fisher information of the loss function "on the fly" as data arrives, they allow for the construction of valid confidence intervals without needing to restart the algorithm or store massive amounts of data.

Key Insights and Results

"Catastrophe-Free" Stability

ISGD is remarkably robust. While standard explicit SGD requires carefully tuned, small initial step sizes to avoid divergence, ISGD can handle very large initial steps. This allows it to "forget" the starting point quickly and move toward the optimum faster. Experiments show that even with an initial step size as large as 100, ISGD iterates do not explode, whereas explicit SGD would typically fail.

ISGD (proxRM and proxPR) is highly robust to the choice of initial step size ($\gamma_1$), showing no signs of explosion even with very large values.

Minimax Optimality of Averaging

The authors prove that proxPR (averaging) achieves the minimax optimal convergence rate of $O(n^{-1/2})$ even in the absence of strong convexity. This confirms a long-standing conjecture in the field. The theoretical $O(n^{-\gamma})$ rate for proxRM and $O(n^{-1/2})$ for proxPR are confirmed experimentally across different learning rate schedules.

Inference from a Single Pass

The proposed on-line covariance estimators are the first of their kind for ISGD. They enable "legitimate inference"—meaning you can trust your error bars—using only a single run of the optimizer. In linear regression and quantile estimation tasks, the 95% confidence intervals constructed using the new on-line estimators consistently achieved near-nominal coverage (around 95%), proving their practical utility for statistical inference.

Limitations and Future Work

The current analysis focuses on smooth convex functions. While the authors demonstrate success on a smoothed quantile estimation problem, extending these rigorous non-asymptotic bounds to truly non-smooth or non-convex landscapes (like deep neural networks) remains an open challenge.

Additionally, while proxPR is more efficient in the long run, it can be slower in the very early stages of training. The authors suggest using a "burn-in" period before starting the averaging, and future work could investigate more sophisticated ways to transition between the two modes.

Summary updated

BibTeX
@inproceedings{lee2022statistical,
  author = {Yoonhyung Lee and Sungdong Lee and Joong-Ho Won},
  title = {{Statistical inference with implicit SGD: proximal Robbins-Monro vs. Polyak-Ruppert}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=RNPCcYZ1Vx},
}
Figure