DynaNewton - Accelerating Newton's Method for Machine Learning

Hadi Daneshmand, Aurélien Lucchi, Thomas HofmannarXiv 2016

Abstract

DynaNewton is a novel continuation method designed to accelerate second-order optimization in machine learning. By solving a sequence of intermediate problems with increasing data subsets and decreasing regularization, DynaNewton ensures that each solution remains within the quadratic convergence region of the subsequent problem. This approach effectively bypasses the slow initial phase of standard Newton methods. Empirical results on large-scale datasets demonstrate that DynaNewton achieves optimal test performance in as few as two effective epochs, significantly outperforming both standard Newton's method and state-of-the-art first-order methods like SAGA.

Introduction

Empirical Risk Minimization (ERM) is the standard framework for training machine learning models. While first-order methods like Stochastic Gradient Descent (SGD) are widely used due to their simplicity and scalability, they often struggle with ill-conditioned problems. Newton's method, a second-order approach, offers the theoretical advantage of quadratic convergence near the optimum. However, its application to large-scale ML is hindered by three major "deal-breakers": a slow initial damped phase when starting far from the optimum, the requirement for full-batch processing in every iteration, and the high computational cost of Hessian inversion in high-dimensional spaces.

DynaNewton addresses these challenges by bridging the gap between efficient subsampling and the rapid convergence of second-order methods.

Methods

The core of DynaNewton is a continuation method. Instead of attacking the final, complex objective directly, it solves a sequence of increasingly difficult intermediate problems. These problems are defined by two primary "levers":

  1. Subsampling ($n$): The algorithm starts with a very small number of training samples and gradually increases the sample size.
  2. Regularization ($\nu$): It begins with strong regularization, which smooths the optimization landscape, and gradually decreases it toward the target value.

The critical innovation is a theoretical hand-over guarantee. Utilizing the concepts of the Newton decrement and self-concordance, the authors prove that if the sample size growth and regularization reduction are carefully controlled, the solution to the current problem is guaranteed to lie within the quadratic convergence region of the next one.

Conceptual illustration of the DynaNewton continuation path, showing how intermediate solutions stay within the quadratic convergence regions of successive problems.

The paper introduces two versions of the algorithm:

  • A Priori (V1): Uses a fixed schedule for data growth and regularization reduction.
  • Data-Adaptive (V2): Employs a greedy approach that uses a Taylor approximation of the inverse Hessian to calculate the largest possible jump in data size or regularization that still maintains the convergence guarantee.

Experimental Evaluation

The researchers evaluated DynaNewton on four standard large-scale datasets for $\ell_2$-regularized logistic regression:

  • A9A: 32,561 samples, 123 features.
  • W8A: 49,749 samples, 300 features.
  • COVTYPE.BINARY: 581,012 samples, 54 features.
  • SUSY: 5,000,000 samples, 18 features.

Additionally, a quasi-Newton extension (DYNALBFGS) was tested on a convolutional neural network using the MNIST dataset to demonstrate the method's applicability to non-convex problems.

Key Results

DynaNewton significantly outperforms both standard Newton's method and SAGA (a state-of-the-art first-order method) in terms of "effective epochs" (total passes over the data). As shown in Figure 2, DynaNewton reaches high accuracy much faster than competing methods.

Convergence comparison of Dyna-Newton, standard Newton, and SAGA across four datasets. Dyna-Newton consistently reaches optimal performance in fewer effective epochs.

Key insights from the study include:

  • Matching Statistical and Computational Accuracy: DynaNewton dynamically matches optimization effort to the statistical significance of the current data subset, avoiding over-optimization on small samples.
  • Regularization as an Optimization Tool: High initial regularization serves as a "warm-up" mechanism, providing a high-quality starting point for subsequent, less-regularized problems.
  • Robustness to Initialization: By effectively "re-initializing" at every step of the continuation path, DynaNewton is much more robust to the initial starting point ($x_0$) than standard Newton methods.

Conclusion

DynaNewton offers a powerful framework for accelerating second-order optimization, reaching optimal test performance in as few as two effective epochs. While it addresses the damped phase and batch processing issues, Hessian inversion remains a computational bottleneck for extremely high-dimensional models. Future work will focus on extending the theoretical framework to non-convex objectives and exploring performance on large-scale distributed systems.

Summary updated

BibTeX
@misc{daneshmand2016dynanewton,
  author = {Hadi Daneshmand and Aurélien Lucchi and Thomas Hofmann},
  title = {{DynaNewton - Accelerating Newton's Method for Machine Learning}},
  year = {2016},
  eprint = {1605.06561},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.06561},
}
Figure