NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Newton Sketch: A Linear-time Optimization Algorithm with Linear-Quadratic Convergence

Mert Pilanci, Martin J. WainwrightarXiv 2015

Abstract

We propose a randomized second-order method for optimization known as the Newton Sketch: it is based on performing an approximate Newton step using a randomly projected or sub-sampled Hessian. For self-concordant functions, we prove that the algorithm has super-linear convergence with exponentially high probability, with convergence and complexity guarantees that are independent of condition numbers and related problem-dependent quantities. Given a suitable initialization, similar guarantees also hold for strongly convex and smooth objectives without self-concordance. When implemented using randomized projections based on a sub-sampled Hadamard basis, the algorithm typically has substantially lower complexity than Newton's method. We also describe extensions of our methods to programs involving convex constraints that are equipped with self-concordant barriers. We discuss and illustrate applications to linear programs, quadratic programs with convex constraints, logistic regression and other generalized linear models, as well as semidefinite programs.

Introduction

Newton’s method is the "gold standard" for optimization due to its rapid convergence, but it is often computationally prohibitive for large-scale datasets because calculating the Hessian matrix is expensive. This paper introduces the Newton Sketch, a randomized second-order method that approximates the Hessian using random projections. This approach maintains near-Newton convergence speeds while reducing the per-iteration computational cost to linear time relative to the input size.

In convex optimization, there is a classic trade-off between first-order methods (like Gradient Descent) and second-order methods (like Newton’s Method). First-order methods are computationally cheap per iteration but require many steps and are sensitive to poorly conditioned data. Newton’s method solves the conditioning problem and converges quadratically, but for a dataset with $n$ observations and $d$ features, each step requires $O(nd^2)$ operations. The Newton Sketch aims to bridge this gap, providing the robust convergence of second-order methods with a per-iteration cost comparable to first-order methods.

Methodology

The core innovation is the Newton Sketch. Instead of computing the full $d \times d$ Hessian, the algorithm "sketches" it using a random projection matrix $S$.

  1. The Sketching Step: The algorithm takes the square root of the Hessian (often the data matrix weighted by scalars) and multiplies it by a random matrix $S$ of size $m \times n$, where $m \ll n$.
  2. The Update: It performs a Newton-like step using this smaller, sketched approximation. Because the dimensionality is reduced, the linear system is solved much faster.
  3. Randomization Techniques: The authors utilize Randomized Orthonormal Systems (ROS), specifically the Sub-sampled Randomized Hadamard Transform, to perform sketching in $O(n \log m)$ time.
Visualizing the convergence of Newton Sketch vs. Exact Newton on a 2D polytope. As the sketch size $m$ increases from $d$ to $16d$, the Newton Sketch path (red) increasingly aligns with the exact Newton path (black).

Theoretical Insights and Key Results

The Newton Sketch offers several theoretical advantages over standard optimization techniques:

  • Linear-Quadratic Convergence: Unlike most randomized methods that achieve only linear convergence, the Newton Sketch retains a "linear-quadratic" rate. It behaves like Newton's method (quadratic) when close to the solution and like a fast linear method further away.
  • Affine Invariance: For self-concordant functions, the algorithm's performance is independent of the data's condition number, a significant advantage over Gradient Descent.
  • Complexity Speedup: For large problems where $n \ge d^2$, the complexity per iteration drops from $O(nd^2)$ to $O(nd \log d)$. In empirical tests, the Newton Sketch significantly outperformed Gradient Descent, BFGS, and SGD in wall-clock time to reach high-accuracy solutions.
  • Intrinsic Dimension: The required sketch size $m$ scales with the Gaussian width of the problem's tangent cone rather than the full dimension $d$, allowing for efficient sketching in constrained problems like sparse recovery.

Conclusion and Future Work

The Newton Sketch provides a powerful framework for large-scale optimization, combining the speed of randomization with the robustness of second-order methods. While the current approach is highly effective, future work may focus on exploiting inherent data sparsity through specialized sketches and determining the absolute minimum sketch size required for optimal performance. Implementing these methods requires careful engineering of fast transforms, but the theoretical and practical gains in convergence speed make it a compelling alternative for big data applications.

Summary updated

BibTeX
@misc{pilanci2015newton,
  author = {Mert Pilanci and Martin J. Wainwright},
  title = {{Newton Sketch: A Linear-time Optimization Algorithm with Linear-Quadratic Convergence}},
  year = {2015},
  eprint = {1505.02250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.02250},
}
Figure