On the Interplay Between Stepsize Tuning and Progressive Sharpening
Vincent Roulet, Atish Agarwala, Fabian Pedregosa
TL;DR
The paper investigates how automatic stepsize tuners interact with loss sharpness during training, focusing on Armijo line-search and Polyak SPS_max in deterministic and stochastic settings. It finds that Armijo often underperforms fixed stepsize optimization due to progressive sharpening that prevents reaching the edge of stability (EOS), while Polyak stepsizes consistently operate near EOS or slightly beyond and yield faster progress. A simple EOS-based model shows that EOS alone cannot explain the dynamics; the joint evolution of step size and the top Hessian eigenvalue must be accounted for to understand tuning behavior. The stochastic regime reveals strong batch-size dependence, underscoring that tuning effectiveness is intertwined with sampling noise, and suggesting that incorporating sharpness dynamics is essential for designing effective stepsize tuners in deep learning.
Abstract
Recent empirical work has revealed an intriguing property of deep learning models by which the sharpness (largest eigenvalue of the Hessian) increases throughout optimization until it stabilizes around a critical value at which the optimizer operates at the edge of stability, given a fixed stepsize (Cohen et al, 2022). We investigate empirically how the sharpness evolves when using stepsize-tuners, the Armijo linesearch and Polyak stepsizes, that adapt the stepsize along the iterations to local quantities such as, implicitly, the sharpness itself. We find that the surprisingly poor performance of a classical Armijo linesearch in the deterministic setting may be well explained by its tendency to ever-increase the sharpness of the objective. On the other hand, we observe that Polyak stepsizes operate generally at the edge of stability or even slightly beyond, outperforming its Armijo and constant stepsizes counterparts in the deterministic setting. We conclude with an analysis that suggests unlocking stepsize tuners requires an understanding of the joint dynamics of the step size and the sharpness.
