SketchySGD: Reliable Stochastic Optimization via Randomized Curvature Estimates

Zachary Frangella, Pratik Rathore, Shipu Zhao, Madeleine Udell
11/16/2022
math.OCcs.LG

Official code: udellgroup/SketchySGD (2 stars, Jupyter Notebook, last commit 2024-01-13).

Abstract

SketchySGD improves upon existing stochastic gradient methods in machine learning by using randomized low-rank approximations to the subsampled Hessian and by introducing an automated stepsize that works well across a wide range of convex machine learning problems. We show theoretically that SketchySGD with a fixed stepsize converges linearly to a small ball around the optimum.

Show full abstract

Further, in the ill-conditioned setting we show SketchySGD converges at a faster rate than SGD for least-squares problems. We validate this improvement empirically with ridge regression experiments on real data. Numerical experiments on both ridge and logistic regression problems with dense and sparse data, show that SketchySGD equipped with its default hyperparameters can achieve comparable or better results than popular stochastic gradient methods, even when they have been tuned to yield their best performance. In particular, SketchySGD is able to solve an ill-conditioned logistic regression problem with a data matrix that takes more than $840$GB RAM to store, while its competitors, even when tuned, are unable to make any progress. SketchySGD's ability to work out-of-the box with its default hyperparameters and excel on ill-conditioned problems is an advantage over other stochastic gradient methods, most of which require careful hyperparameter tuning (especially of the learning rate) to obtain good performance and degrade in the presence of ill-conditioning.

View on arXivView PDF

Code Implementations(1)

21Jupyter Notebook, PythonFeb 2, 20232 years ago

Similar Papers

Cite this paper

@article{frangella2022sketchysgd,
  title  = {SketchySGD: Reliable Stochastic Optimization via Randomized Curvature Estimates},
  author = {Zachary Frangella and Pratik Rathore and Shipu Zhao and Madeleine Udell},
  year   = {2022},
  eprint = {2211.08597},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.08597}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.08597.svg)](https://codeofpaper.com/paper/2211.08597)

Discussion