Abstract: Despite their popularity in the field of continuous optimisation, second-order quasi-Newton methods are challenging to apply in machine learning, as the Hessian matrix is intractably large. This computational burden is exacerbated by the need to address non-convexity, for instance by modifying the Hessian's eigenvalues as in Saddle-Free Newton methods. We propose an optimisation algorithm which addresses both of these concerns - to our knowledge, the first efficiently-scalable optimisation algorithm to asymptotically use the exact (eigenvalue-modified) inverse Hessian. Our method frames the problem as a series which principally square-roots and inverts the squared Hessian, then uses it to precondition a gradient vector, all without explicitly computing or eigendecomposing the Hessian. A truncation of this infinite series provides a new optimisation algorithm which is scalable and comparable to other first- and second-order optimisation methods in both runtime and optimisation performance. We demonstrate this in a variety of settings, including a ResNet-18 trained on CIFAR-10.
Introduction
Training deep neural networks typically relies on first-order optimization methods like Stochastic Gradient Descent (SGD) or Adam. While these methods are computationally efficient per iteration, they only utilize the local gradient (the "slope") of the loss surface. Second-order methods, such as Newton's method, leverage the Hessian matrix (the "curvature") to achieve faster convergence. However, applying these methods to modern deep learning has historically been blocked by two primary issues: the extreme dimensionality of the parameter space and the prevalence of saddle points in non-convex loss landscapes.
Researchers at the University of Cambridge have recently proposed a novel approach that overcomes these hurdles. By representing the Saddle-Free Newton (SFN) update as an infinite series of Hessian-vector products, they provide a scalable second-order optimizer that avoids the need to explicitly store or invert the massive Hessian matrix.
The Challenge of Saddle Points and Tractability
In high-dimensional non-convex optimization, saddle points—where the surface curves up in some directions but down in others—are far more common than local minima. Standard Newton methods are problematic here because they are naturally attracted to these saddle points. The Saddle-Free Newton (SFN) approach addresses this by taking the absolute value of the Hessian's eigenvalues, effectively turning saddle points into "repellers" and ensuring the update always moves toward lower loss.
However, implementing SFN for large networks is traditionally impossible. For a model with $N$ parameters, the Hessian is an $N \times N$ matrix. With millions of parameters, even storing the matrix is unfeasible, let alone performing the eigendecomposition required for the SFN update. Previous attempts have relied on low-rank approximations, which often sacrifice the accuracy of the curvature information.
Proposed Method: SFN via Series Expansion
The core innovation of this work is a mathematical detour that treats the absolute value of the Hessian as the principal square root of its square: $|H| = \sqrt{H^2}$. The authors target the inverse of this operator, $(H^2)^{-1/2}$, to precondition the gradient.
To make this tractable, they employ several key techniques:
- Infinite Series Expansion: Using the generalized binomial theorem, the operator $(H^2)^{-1/2}$ is expressed as an infinite series.
- Hessian-Vector Products (HVPs): Instead of computing the matrix itself, the algorithm computes the product of this series and the gradient vector. Using the "Pearlmutter trick," an HVP can be calculated with just two backpropagation passes, keeping memory costs linear ($O(N)$) relative to the number of parameters.
- Series Acceleration: To ensure rapid convergence of the truncated series, the authors use Wynn’s $\epsilon$-algorithm. This allows for a highly accurate approximation of the full SFN update using only 5 to 15 terms.
- Convergence Scaling: A scaling factor $V$ is introduced to ensure the spectral radius of the terms remains within the unit circle, guaranteeing the stability of the series expansion.
Experimental Results
The algorithm was evaluated across several benchmarks, ranging from small-scale "proof of concept" datasets like UCI Energy to high-dimensional tasks like training a ResNet-18 on CIFAR-10.
On the UCI Energy dataset, the method successfully matched the behavior of an "Exact SFN" baseline, proving its asymptotic exactness. In more complex settings like CIFAR-10, the "Adaptive" version of the algorithm performed competitively with established optimizers like Adam and KFAC (Kronecker-factored Approximate Curvature). While the per-step cost is higher than first-order methods, the directional accuracy—measured by cosine similarity to the true SFN update—is significantly higher than standard Neumann series approximations.
Discussion and Limitations
While this method represents a significant step toward scalable second-order optimization, some challenges remain. The truncation of the series inevitably introduces some error, and the method can be sensitive to the numerical conditioning of the Hessian. Furthermore, unlike KFAC, which can smooth curvature estimates across mini-batches, this approach currently re-calculates curvature at every step. Future work may involve combining this series-based approach with Kronecker-factored approximations to incorporate temporal smoothing and further improve efficiency.
In conclusion, this research demonstrates that complex second-order operations like matrix inversion and square-rooting can be performed efficiently in deep learning through the power of Hessian-vector products and accelerated series expansions, opening new doors for robust non-convex optimization.
Summary updated