Coupling-based Convergence Diagnostic and Stepsize Scheme for Stochastic Gradient Descent
Xiang Li, Qiaomin Xie
TL;DR
The paper addresses the challenge of efficiently tuning SGD with a constant stepsize by exploiting the Markov-chain view of the iterates and detecting the transition from the transient to stationary phase. It introduces a coupling-based stationarity diagnostic that runs two coupled SGD sequences and monitors the ratio $\|D_k\|^2/\|D_0\|^2$ of their differences, triggering a stepsize reduction when the statistic indicates stationarity; the approach is theoretically justified in both quadratic and general convex settings via $W_2$ convergence bounds. Key contributions include a simple, practical diagnostic, an adaptive threshold variant, and extensive empirical validation across convex and non-convex problems (e.g., logistic regression, least squares, and ResNet-18 on CIFAR-10) showing superior performance and robustness compared to existing diagnostics. The method enables more efficient use of fixed-stepsize SGD, with potential impact on broad stochastic optimization tasks and reinforcement learning where data are costly or limited.
Abstract
The convergence behavior of Stochastic Gradient Descent (SGD) crucially depends on the stepsize configuration. When using a constant stepsize, the SGD iterates form a Markov chain, enjoying fast convergence during the initial transient phase. However, when reaching stationarity, the iterates oscillate around the optimum without making further progress. In this paper, we study the convergence diagnostics for SGD with constant stepsize, aiming to develop an effective dynamic stepsize scheme. We propose a novel coupling-based convergence diagnostic procedure, which monitors the distance of two coupled SGD iterates for stationarity detection. Our diagnostic statistic is simple and is shown to track the transition from transience stationarity theoretically. We conduct extensive numerical experiments and compare our method against various existing approaches. Our proposed coupling-based stepsize scheme is observed to achieve superior performance across a diverse set of convex and non-convex problems. Moreover, our results demonstrate the robustness of our approach to a wide range of hyperparameters.
