TL;DR
This paper introduces SketchySGD, a novel stochastic optimization method that uses randomized sketching to approximate the curvature of the loss function. SketchySGD offers improved convergence rates, especially for ill-conditioned problems, and provides a robust, automated learning rate that works well out-of-the-box, making it a practical alternative to standard methods like SGD.
What Problem Does This Paper Address?
Training modern machine learning models, especially large-scale ones, requires efficient optimization algorithms. While Stochastic Gradient Descent (SGD) and its variants are widely used due to their simplicity and scalability, they struggle with "ill-conditioned" problems – where the loss landscape is highly stretched in some directions and compressed in others. This ill-conditioning leads to very slow convergence, even with carefully tuned learning rates. Traditional methods for handling ill-conditioning, like Newton's method or quasi-Newton methods, are computationally expensive and don't easily adapt to the stochastic nature of large-scale machine learning. Existing stochastic quasi-Newton methods often require impractical conditions (like growing batch sizes) or extensive hyperparameter tuning, making them difficult to use in practice. The authors aim to bridge this gap by developing a stochastic quasi-Newton method that is both theoretically sound and practically effective, offering improved performance and reliability without the need for extensive tuning.
Methods
SketchySGD's core innovation lies in its use of randomized sketching to approximate the Hessian (the matrix of second derivatives of the loss function). Instead of computing the full Hessian, which is computationally prohibitive, SketchySGD:
- Approximates the Hessian: It uses randomized low-rank approximations to estimate the Hessian from minibatch Hessian-vector products. This is achieved through a technique called the Nyström approximation.
- Forms a Preconditioner: The approximated Hessian is used to construct a preconditioner. A preconditioner effectively "reshapes" the problem's curvature, making it less ill-conditioned and thus easier for the optimizer to navigate.
- Automated Learning Rate: SketchySGD incorporates a novel, theoretically motivated learning rate that is automatically determined when the preconditioner is updated. This eliminates the need for manual learning rate tuning, a common pain point with SGD.
- Rare Preconditioner Updates: The preconditioner is updated infrequently (e.g., every epoch), making the method computationally efficient and compatible with standard machine learning workflows.
The method is formally presented as Algorithm 1.1 (practical version) and Algorithm 4.1 (theoretical version).
Datasets
The paper evaluates SketchySGD on a variety of datasets, including:
- Ridge Regression: E2006-tfidf, YearPredictionMSD-rf, yolanda-rf.
- Logistic Regression: ijcnn1-rf, real-sim, susy-rf, HIGGS.
- Tabular Deep Learning: Fashion-MNIST, Devnagari-Script, volkert.
For large-scale experiments, datasets were augmented to increase their size.
Key Insights and Ideas
- Sketching for Practical Quasi-Newton: The paper demonstrates that randomized sketching is a viable and effective technique for approximating the Hessian in a way that is computationally feasible for large-scale stochastic optimization.
- Preconditioning as a General Improvement: By preconditioning the optimization problem, SketchySGD can significantly improve convergence, especially for ill-conditioned problems where standard SGD struggles. This is achieved by making the Hessian's eigenvalues more uniform.
- "Works Out-of-the-Box" Optimization: The automated learning rate and default hyperparameter settings are a major practical advantage, reducing the burden of hyperparameter tuning that plagues many other advanced optimizers.
- Theoretical Guarantees for Practical Methods: The authors provide theoretical convergence guarantees for SketchySGD, showing it can converge to a small ball around the minimum, and even at a faster rate than SGD for ill-conditioned least-squares problems.
Key Results
- Outperforms First-Order Methods: SketchySGD consistently matches or outperforms SGD, SVRG, SAGA, and L-Katyusha, even when these methods are carefully tuned. On some datasets, competitors made little to no progress.
- Competitive with Second-Order Methods: SketchySGD performs comparably to or better than established second-order methods like L-BFGS, SLBFGS, RSN, and Newton Sketch.
- Scales to Large Datasets: SketchySGD successfully tackles very large-scale logistic regression problems (e.g., a 840GB dataset) where computing full gradients is prohibitive, significantly outperforming SGD and SAGA.
- Improved Conditioning: Experiments show that SketchySGD's preconditioning significantly improves the conditioning of the Hessian, leading to faster convergence.
- Robustness: The method's default hyperparameters and automated learning rate lead to reliable performance across a wide range of datasets and problem types.
Limitations and Future Work
- Deep Learning Performance: While SketchySGD shows promise in deep learning tasks, its performance is comparable to, rather than consistently superior to, some first-order optimizers like Adam and Yogi. The authors suggest this is an interesting direction for future work.
- Non-Convexity: The theoretical analysis primarily focuses on convex and strongly convex objectives. While experiments touch upon deep learning (which is non-convex), further theoretical work for non-convex settings would be valuable.
- Hyperparameter Sensitivity: While the default hyperparameters are generally good, the paper does explore sensitivity to rank and update frequency, suggesting that optimal settings might still depend on the specific problem.
Summary updated