Fast Unconstrained Optimization via Hessian Averaging and Adaptive Gradient Sampling Methods

Thomas O'Leary-Roseberry,Raghu Bollapragada
2024-08-14
Abstract:We consider minimizing finite-sum and expectation objective functions via Hessian-averaging based subsampled Newton methods. These methods allow for gradient inexactness and have fixed per-iteration Hessian approximation costs. The recent work (Na et al. 2023) demonstrated that Hessian averaging can be utilized to achieve fast $\mathcal{O}\left(\sqrt{\tfrac{\log k}{k}}\right)$ local superlinear convergence for strongly convex functions in high probability, while maintaining fixed per-iteration Hessian costs. These methods, however, require gradient exactness and strong convexity, which poses challenges for their practical implementation. To address this concern we consider Hessian-averaged methods that allow gradient inexactness via norm condition based adaptive-sampling strategies. For the finite-sum problem we utilize deterministic sampling techniques which lead to global linear and sublinear convergence rates for strongly convex and nonconvex functions respectively. In this setting we are able to derive an improved deterministic local superlinear convergence rate of $\mathcal{O}\left(\tfrac{1}{k}\right)$. For the %expected risk expectation problem we utilize stochastic sampling techniques, and derive global linear and sublinear rates for strongly convex and nonconvex functions, as well as a $\mathcal{O}\left(\tfrac{1}{\sqrt{k}}\right)$ local superlinear convergence rate, all in expectation. We present novel analysis techniques that differ from the previous probabilistic results. Additionally, we propose scalable and efficient variations of these methods via diagonal approximations and derive the novel diagonally-averaged Newton (Dan) method for large-scale problems. Our numerical results demonstrate that the Hessian averaging not only helps with convergence, but can lead to state-of-the-art performance on difficult problems such as CIFAR100 classification with ResNets.
Optimization and Control,Numerical Analysis,Machine Learning
What problem does this paper attempt to address?
The paper aims to address the following issues: 1. **Optimization Problem**: The paper primarily focuses on the optimization problems of finite-sum and expectation objective functions. Specifically, these problems can be solved using subsampled Newton methods, which utilize Hessian averaging techniques to reduce the approximation cost of the Hessian matrix in each iteration. 2. **Hessian Matrix Approximation Problem**: Traditional subsampled Newton methods require a large sample size to achieve fast local linear or superlinear convergence, leading to high computational costs. The paper proposes a path-averaging-based Hessian matrix approximation method to overcome this limitation by reducing the variance in the estimation, allowing for good performance even with imprecise gradients. 3. **Gradient Imprecision**: In large-scale optimization problems, precisely calculating gradients is often impractical. The paper considers the case of imprecise gradients and proposes deterministic and stochastic adaptive gradient sampling strategies. These strategies ensure global linear and sublinear convergence rates even with imprecise gradient estimates and achieve superlinear convergence in locally strongly convex regions. 4. **Efficient Implementation**: To tackle large-scale problems, the paper also proposes several efficient algorithm variants, such as reducing the cost of Hessian matrix multiplication in each iteration through diagonal approximation and designing algorithms suitable for vectorized operations on GPUs. In summary, the main goal of the paper is to improve the efficiency of solving finite-sum and expectation optimization problems by introducing Hessian averaging and adaptive gradient sampling strategies while maintaining theoretical convergence.