Skip to main content
QUICK REVIEW

[Paper Review] GPU Accelerated Sub-Sampled Newton's Method

Sudhir B. Kylasa, Farbod Roosta-Khorasani|arXiv (Cornell University)|Feb 26, 2018
Stochastic Gradient Optimization TechniquesComputer Science28 references5 citations
TL;DR

This paper proposes a GPU-accelerated sub-sampled Newton's method that leverages randomized Hessian and gradient sampling to achieve fast, robust convergence in large-scale machine learning. By exploiting GPU parallelism, the method achieves higher test accuracy in milliseconds—up to 100x faster than first-order methods—while requiring minimal hyper-parameter tuning.

ABSTRACT

First order methods, which solely rely on gradient information, are commonly used in diverse machine learning (ML) and data analysis (DA) applications. This is attributed to the simplicity of their implementations, as well as low per-iteration computational/storage costs. However, they suffer from significant disadvantages; most notably, their performance degrades with increasing problem ill-conditioning. Furthermore, they often involve a large number of hyper-parameters, and are notoriously sensitive to parameters such as the step-size. By incorporating additional information from the Hessian, second-order methods, have been shown to be resilient to many such adversarial effects. However, these advantages of using curvature information come at the cost of higher per-iteration costs, which in \enquote{big data} regimes, can be computationally prohibitive. In this paper, we show that, contrary to conventional belief, second-order methods, when implemented appropriately, can be more efficient than first-order alternatives in many large-scale ML/ DA applications. In particular, in convex settings, we consider variants of classical Newton extsf{'}s method in which the Hessian and/or the gradient are randomly sub-sampled. We show that by effectively leveraging the power of GPUs, such randomized Newton-type algorithms can be significantly accelerated, and can easily outperform state of the art implementations of existing techniques in popular ML/ DA software packages such as TensorFlow. Additionally these randomized methods incur a small memory overhead compared to first-order methods. In particular, we show that for million-dimensional problems, our GPU accelerated sub-sampled Newton extsf{'}s method achieves a higher test accuracy in milliseconds as compared with tens of seconds for first order alternatives.

Motivation & Objective

  • Address the poor convergence and high sensitivity to hyper-parameters of first-order methods in ill-conditioned machine learning problems.
  • Overcome the high per-iteration cost of classical Newton methods in big data regimes by using randomized sub-sampling of gradients and Hessians.
  • Demonstrate that second-order methods can be made practical and efficient on modern hardware, particularly GPUs, for large-scale ML applications.
  • Show that sub-sampled Newton methods with GPU acceleration outperform state-of-the-art first-order implementations (e.g., in TensorFlow) in both speed and accuracy.
  • Reduce the need for extensive hyper-parameter tuning by leveraging the natural step-size α=1 in Newton-type methods.

Proposed method

  • Use randomized sub-sampling of the Hessian and gradient in Newton-type methods to reduce per-iteration cost from O(n) to near-constant with respect to n.
  • Implement a GPU-optimized variant of the sub-sampled Newton method using CUDA to parallelize matrix operations and linear system solves.
  • Apply inexact solve techniques for the Newton system using iterative solvers (e.g., conjugate gradient) with early termination, further reducing computational cost.
  • Use a line-search strategy only occasionally, as the method is inherently stable due to curvature information, reducing reliance on manual tuning.
  • Maintain low memory overhead by storing only sub-sampled Hessian and gradient approximations, not full matrices.
  • Integrate the method into a scalable framework that supports large-scale finite-sum problems common in ML, such as empirical risk minimization.

Experimental results

Research questions

  • RQ1Can sub-sampled Newton methods, when accelerated on GPUs, outperform first-order methods in terms of convergence speed and final test accuracy on large-scale ML problems?
  • RQ2To what extent does GPU acceleration mitigate the high per-iteration cost of second-order methods in big data settings?
  • RQ3How does the performance of sub-sampled Newton methods compare to first-order methods like SGD, Adam, and RMSProp in terms of robustness to ill-conditioning?
  • RQ4How sensitive are first-order methods to learning rate selection, and can Newton-type methods reduce the need for extensive hyper-parameter tuning?
  • RQ5Can sub-sampled Newton methods achieve high test accuracy in milliseconds, even for million-dimensional problems, where first-order methods require tens of seconds?

Key findings

  • For million-dimensional problems, the GPU-accelerated sub-sampled Newton method achieves higher test accuracy in milliseconds, while first-order methods require tens of seconds.
  • On the Gisette dataset, FullNewton reached 98.3% test accuracy in 0.6 seconds (11 iterations), outperforming first-order methods that required 100 iterations to reach 97%.
  • SubsampledNewton-100 achieved 98% test accuracy in 34 iterations on Gisette, while first-order methods made slow progress, especially at 20% batch size.
  • On the Real-Sim dataset, Newton-type methods achieved similar or lower objective function values than first-order methods in comparable or shorter time, with FullNewton reaching 97.3% accuracy in just 2 iterations.
  • First-order methods like SGD with Momentum, Adagrad, RMSProp, and Adam showed high sensitivity to learning rate: small values caused stagnation, large values caused divergence, with only a narrow range yielding acceptable performance.
  • The sub-sampled Newton method uses a natural step-size of α=1 and requires line-search only occasionally, in contrast to first-order methods that often demand extensive tuning and are sensitive to initial step-size choices.

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.