Skip to main content
QUICK REVIEW

[Paper Review] Apollo: An Adaptive Parameter-wise Diagonal Quasi-Newton Method for Nonconvex Stochastic Optimization

Xuezhe Ma|arXiv (Cornell University)|Sep 28, 2020
Stochastic Gradient Optimization TechniquesComputer Science14 citations
TL;DR

Apollo is a parameter-wise diagonal quasi-Newton method for nonconvex stochastic optimization that adaptively approximates the Hessian using a diagonal matrix, rectifying its absolute value to ensure positive-definiteness. It achieves linear time and memory complexity, outperforming SGD and Adam variants in convergence speed and generalization across vision and language tasks.

ABSTRACT

In this paper, we introduce Apollo, a quasi-Newton method for nonconvex stochastic optimization, which dynamically incorporates the curvature of the loss function by approximating the Hessian via a diagonal matrix. Importantly, the update and storage of the diagonal approximation of Hessian is as efficient as adaptive first-order optimization methods with linear complexity for both time and memory. To handle nonconvexity, we replace the Hessian with its rectified absolute value, which is guaranteed to be positive-definite. Experiments on three tasks of vision and language show that Apollo achieves significant improvements over other stochastic optimization methods, including SGD and variants of Adam, in term of both convergence speed and generalization performance. The implementation of the algorithm is available at https://github.com/XuezheMax/apollo.

Motivation & Objective

  • Address the limitations of first-order adaptive methods like Adam, which may converge to poor local optima and generalize poorly.
  • Overcome the inefficacy of classical quasi-Newton methods in high-dimensional, nonconvex, stochastic settings such as deep learning.
  • Develop a scalable quasi-Newton method that incorporates curvature information efficiently without incurring high computational or memory costs.
  • Ensure stability and convergence in nonconvex settings by modifying the Hessian approximation to be positive-definite via rectified absolute values.

Proposed method

  • Approximates the Hessian using a diagonal matrix that is updated iteratively based on gradient differences, satisfying a parameter-wise weak secant condition.
  • Applies a rectified absolute value operation to the diagonal Hessian approximation to guarantee positive-definiteness and handle nonconvexity.
  • Uses a linearly warmed-up learning rate schedule to improve initial convergence stability.
  • Maintains linear time and memory complexity by storing only diagonal entries and updating them incrementally.
  • Introduces a scale-invariant variant by coupling the rectification threshold with the infinity norm of gradient differences, eliminating the need for additional hyperparameters.
  • Supports parameter-wise gradient clipping as a natural extension, improving robustness in training.

Experimental results

Research questions

  • RQ1Can a diagonal quasi-Newton method be made both efficient and effective for nonconvex stochastic optimization in deep learning?
  • RQ2How does incorporating curvature information via a diagonal Hessian approximation affect convergence speed and generalization compared to first-order methods?
  • RQ3Can the Hessian approximation be made robust to nonconvexity while preserving linear complexity?
  • RQ4Does the rectified absolute value of the Hessian approximation improve training stability and generalization in practice?
  • RQ5Can the method be made scale-invariant without introducing new hyperparameters?

Key findings

  • Apollo achieves 1.42× faster training speed than SGD on CIFAR-10 and 1.49× faster on ImageNet, with 1.62× lower memory cost on ResNeXt-50.
  • On the One Billion Words language modeling task, Apollo achieves a test loss of 31.75 ± 0.10, outperforming standard gradient clipping (31.94 ± 0.09).
  • On WMT-14 neural machine translation, Apollo achieves 28.39 ± 0.11 BLEU, slightly better than standard gradient clipping (28.34 ± 0.10).
  • Apollo converges faster than SdLBFGS on a small CNN model, despite being over 10× faster per iteration and using significantly less memory.
  • The scale-invariant variant of Apollo eliminates the need for additional hyperparameters while maintaining performance.
  • AdaHessian, a second-order method, incurs significantly higher cost—5.76× and 11.78× slower on CIFAR-10 and ImageNet, respectively—highlighting Apollo’s efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.