Improving Implicit Regularization of SGD with Preconditioning for Least Square Problems
Junwei Su, Difan Zou, Chuan Wu
TL;DR
This work investigates why SGD can exhibit weaker generalization than ridge in least-squares problems due to unequal optimization across covariance directions. It proposes a simple preconditioning design $\mathbf{G}= (\beta\mathbf{H}+\mathbf{I})^{-1}$ to rebalance updates and derives non-asymptotic excess-risk bounds for both preconditioned SGD and ridge, including cases where the covariance $\mathbf{H}$ must be estimated from unlabeled data. The authors prove that there exist choices of $\beta$ and learning rate $\eta$ making preconditioned SGD comparable to ridge (and preconditioned ridge), and they extend these results to settings where $\mathbf{H}$ is unknown but estimated with high probability bounds. Empirical results on Gaussian least-squares problems corroborate the theory, showing robust improvements and demonstrating practical viability of learning the preconditioner from unlabeled data.
Abstract
Stochastic gradient descent (SGD) exhibits strong algorithmic regularization effects in practice and plays an important role in the generalization of modern machine learning. However, prior research has revealed instances where the generalization performance of SGD is worse than ridge regression due to uneven optimization along different dimensions. Preconditioning offers a natural solution to this issue by rebalancing optimization across different directions. Yet, the extent to which preconditioning can enhance the generalization performance of SGD and whether it can bridge the existing gap with ridge regression remains uncertain. In this paper, we study the generalization performance of SGD with preconditioning for the least squared problem. We make a comprehensive comparison between preconditioned SGD and (standard \& preconditioned) ridge regression. Our study makes several key contributions toward understanding and improving SGD with preconditioning. First, we establish excess risk bounds (generalization performance) for preconditioned SGD and ridge regression under an arbitrary preconditions matrix. Second, leveraging the excessive risk characterization of preconditioned SGD and ridge regression, we show that (through construction) there exists a simple preconditioned matrix that can make SGD comparable to (standard \& preconditioned) ridge regression. Finally, we show that our proposed preconditioning matrix is straightforward enough to allow robust estimation from finite samples while maintaining a theoretical improvement. Our empirical results align with our theoretical findings, collectively showcasing the enhanced regularization effect of preconditioned SGD.
