Stochastic Second-order Methods for Non-convex Optimization with Inexact Hessian and Gradient

Liu Liu, Cho-Jui Hsieh, Dacheng TaoarXiv 2018

TL;DR

This paper introduces practical, efficient stochastic versions of trust region and cubic regularization methods for large-scale non-convex optimization. By using inexact gradient and Hessian estimates from random subsampling, these methods achieve theoretical iteration complexity comparable to exact methods while significantly reducing computational cost, making them well-suited for deep learning.

What Problem Does This Paper Address?

Training modern deep neural networks often involves optimizing non-convex functions with a finite-sum structure (e.g., summing losses over many training samples). While second-order optimization methods (like trust region and cubic regularization) are known to be better at escaping saddle points than first-order methods (like SGD), they typically require computing the exact gradient and Hessian at each step. This is computationally prohibitive for large-scale problems. Existing stochastic second-order methods often require stronger conditions on the inexactness or still rely on exact gradient computations. This paper aims to bridge this gap by developing and analyzing stochastic trust region (STR) and stochastic adaptive regularization using cubics (SARC) methods that use inexact estimates for both gradient and Hessian, while maintaining competitive theoretical performance and practical efficiency.

Methods

The core contribution is the development of stochastic versions of trust region (STR) and cubic regularization (SARC) methods. The key innovations are:

  • Inexact Gradient and Hessian: Instead of computing exact gradients and Hessians, the methods use estimates obtained by randomly subsampling a subset of the data. This significantly reduces the computational cost per iteration.
  • Mild Inexactness Conditions: The theoretical analysis shows that these methods achieve competitive iteration complexity even under mild conditions on the inexactness of the gradient and Hessian estimates. This is crucial for practical applicability.
  • Adaptive Parameter Updates: The algorithms incorporate mechanisms to adaptively adjust the trust region radius (for STR) or the cubic regularization parameter (for SARC) based on the observed progress, which is a standard but important component of these methods.
  • Theoretical Analysis: The paper provides a rigorous theoretical analysis of the convergence and iteration complexity of both STR and SARC under these inexactness assumptions. They show that the iteration complexity is in the same order as previous work that assumed exact gradients.

Datasets

The paper uses the CIFAR-10 dataset for experimental evaluation.

Key Insights and Ideas

  • Subsampling is Sufficient: The experiments demonstrate that using a fixed batch size for estimating both gradient and Hessian is sufficient for achieving good performance and is more efficient than methods that grow the batch size over epochs or use exact gradients. This is a significant practical insight for large-scale optimization.
  • Efficiency Gains: The proposed methods (TR-fixed and ARC-fixed) are orders of magnitude faster than their "full" counterparts (TR-full and ARC-full) that use exact gradients, highlighting the computational advantage of their stochastic approach.
  • Theoretical Guarantees for Inexactness: The paper provides theoretical backing that even with inexact gradient and Hessian estimates (obtained via subsampling), the algorithms can still achieve theoretical convergence rates comparable to methods using exact information. This is a crucial step for making advanced optimization techniques practical for deep learning.

Key Results

  • Iteration Complexity: The paper shows that STR and SARC achieve iteration complexity of $O(\max\{(\epsilon_{\nabla f} - \epsilon_g)^{-2}, (\epsilon_H - \epsilon_B)^{-3}\})$ and $O(\max\{(\epsilon_{\nabla f} - \epsilon_g)^{-3/2}, (\epsilon_H - \epsilon_B)^{-3}\})$ respectively, which is in the same order as previous second-order methods that used exact gradients.
  • Computational Speedup: In experiments on training a VGG16 network on CIFAR-10, the proposed fixed-batch-size stochastic methods (TR-fixed and ARC-fixed) were significantly faster than methods using exact gradients (TR-full and ARC-full), completing an epoch in 40 seconds compared to over 3000 seconds.
  • Performance: The proposed algorithms performed well on the VGG16 network training task.

Limitations and Future Work

  • No New Datasets: The paper does not introduce new datasets or benchmarks.
  • Comparison Scope: The authors state their goal is not to show TR/ARC methods are state-of-the-art compared to all other solvers, but rather to compare different variances of TR and ARC and demonstrate the effectiveness of fixed batch sizes.
  • Phenomenon Applicability: The observation that trust region algorithms are faster than ARC algorithms in their specific task is noted, but the authors are unsure if this phenomenon applies to other tasks.
  • Future Work: The paper focuses on theoretical analysis and experimental validation on a specific deep learning task. Further exploration of the proposed methods on a wider range of deep learning architectures and tasks would be a natural next step. Investigating the impact of different subsampling strategies and their theoretical implications could also be a fruitful direction.

Summary updated

BibTeX
@misc{liu2018stochastic,
  author = {Liu Liu and Xuanqing Liu and Cho-Jui Hsieh and Dacheng Tao},
  title = {{Stochastic Second-order Methods for Non-convex Optimization with Inexact Hessian and Gradient}},
  year = {2018},
  eprint = {1809.09853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.09853},
}
Figure