Series of Hessian-Vector Products for Tractable Saddle-Free Newton Optimisation of Neural Networks

Elre Talea Oldewage, Ross M. Clarke, José Miguel Hernández-Lobato

Introduction: The Challenge of Second-Order Optimization

Newton’s method is theoretically superior for optimization because it utilizes second-order curvature information from the Hessian matrix. However, in deep learning, it faces two critical obstacles: the computational impossibility of storing or inverting trillion-parameter matrices and the "Saddle Point Problem." In high-dimensional non-convex landscapes, standard Newton methods are often attracted to saddle points, where the gradient is zero but the loss is not minimized.

Visualization of optimization paths near a saddle point. Standard Newton is attracted to the saddle, while the proposed method ("Ours") and Exact SFN successfully navigate away.

To address this, researchers previously proposed Saddle-Free Newton (SFN), which modifies the Hessian by taking the absolute value of its eigenvalues. This transformation turns saddle points into repellers. However, calculating the absolute value of a massive matrix typically requires an expensive eigendecomposition, making it impractical for modern neural networks.

Methodology: Scaling SFN via Infinite Series

This paper introduces a scalable algorithm to approximate the SFN update without explicit matrix operations. The core innovation lies in expressing the inverse absolute Hessian operator, $|H|^{-1}$, as a generalized binomial series based on the identity $|x| = \sqrt{x^2}$. By expanding this into a series, the authors can compute the update step using only Hessian-vector products (HVPs).

HVPs are computationally efficient, costing roughly the same as a standard gradient backpropagation step via Pearlmutter’s trick. To ensure rapid convergence of this series, the authors employ Wynn’s $\epsilon$-algorithm for numerical acceleration. This approach allows the optimizer to capture high-curvature information early in the series, providing a useful "saddle-free" update even with a truncated number of terms.

Experimental Evaluation

The authors evaluated their method against standard optimizers like SGD, Adam, and KFAC across several benchmarks, ranging from small-scale UCI datasets to ResNet-18 architectures on CIFAR-10.

Training and test loss comparison across runtime and steps. The proposed method remains competitive with established optimizers like Adam and KFAC while scaling to complex architectures.

Key Findings:

  • Scalability: The method successfully trained a ResNet-18 on CIFAR-10, proving that second-order SFN optimization is finally tractable for real-world architectures.
  • Fidelity: On smaller datasets where exact calculations are possible, the series approximation closely tracked the performance of "Exact SFN," validating the mathematical approach.
  • Stability: The algorithm demonstrated high stability, avoiding the occasional divergence issues seen in other adaptive methods during specific training phases.

Conclusion and Future Directions

This work provides a mathematically grounded bridge between theoretical second-order optimization and the practical constraints of deep learning. While the method is competitive, challenges remain regarding numerical conditioning in extremely poorly-behaved landscapes and the computational trade-off of series truncation. Future work may explore combining this series approach with Kronecker-factored approximations to further enhance efficiency across different network layers.

Summary updated

BibTeX
@article{oldewage2024series,
  author = {Elre Talea Oldewage and Ross M. Clarke and José Miguel Hernández-Lobato},
  title = {{Series of Hessian-Vector Products for Tractable Saddle-Free Newton Optimisation of Neural Networks}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure