Inexact Newton-type Methods for Optimisation with Nonnegativity Constraints

Oscar Smee, Fred Roosta · DOI

TL;DR

This paper introduces a scalable, "Hessian-free" second-order optimization method specifically designed for large-scale nonconvex problems with nonnegativity constraints. By combining the simplicity of projected gradient descent with the power of inexact Newton steps (via the MINRES solver), the authors achieve state-of-the-art convergence rates and superior practical performance on tasks like Nonnegative Matrix Factorization and neural network training.

What Problem Does This Paper Address?

Many real-world machine learning problems—such as Nonnegative Matrix Factorization (NMF), sparse regression, and certain neural network architectures—require variables to stay non-negative ($x \ge 0$).

Currently, practitioners usually choose between two extremes:

  1. First-order methods (like Gradient Descent): These are easy to implement but struggle with "ill-conditioned" problems (where the optimization surface is a very narrow valley) and can get stuck near saddle points.
  2. Second-order methods (like Newton’s Method): These use curvature information to navigate valleys quickly, but handling constraints usually makes the "subproblems" (the math you have to solve at each step) incredibly expensive or complex, especially when the problem is non-convex.

The authors aim to bridge this gap by extending the Two-Metric Projection (TMP) framework. TMP is a "best of both worlds" approach: it uses simple gradient steps for variables hitting the "zero wall" (the boundary) and fast Newton steps for variables moving freely in the interior.

Methods

The authors propose two new algorithms (Newton-MR TMP) that modernize the TMP framework for the era of deep learning and big data:

  • Inexact Subproblems: Instead of perfectly solving a massive linear system to find the Newton direction (which is impossible for high-dimensional data), they solve it approximately using the MINRES (Minimum Residual) method.
  • Hessian-Free: The algorithms only require "Hessian-vector products." Thanks to modern automatic differentiation, these can be computed without ever actually building or storing the massive Hessian matrix.
  • Handling Nonconvexity: Unlike the standard Conjugate Gradient (CG) method, which can fail if the optimization surface curves downward (negative curvature), MINRES can detect these directions. The authors use these "Non-Positive Curvature" (NPC) directions to help the algorithm escape saddle points.
  • Two Variants:
    • Algorithm 1: A robust version with minimal assumptions that matches the convergence rates of first-order methods.
  • Algorithm 2: An "Improved Rate" version that utilizes more aggressive curvature information to achieve a faster $O(\epsilon^{-3/2})$ global convergence rate.

Datasets

The authors evaluated their methods on several standard benchmarks across different optimization tasks:

  • MNIST: Used for binarized logistic regression.
  • CIFAR10: Used for multinomial regression.
  • Fashion MNIST: Used to train a two-layer neural network with nonnegativity constraints.
  • 20 Newsgroups: Used for Nonnegative Matrix Factorization (NMF) using text features.
  • Olivetti Faces: Used for NMF on image data with a nonconvex regularizer.

Key Insights and Ideas

  • The Active/Inactive Split: The core "aha" moment is the division of indices. If a variable is at zero and its gradient wants to push it further into the negative, it's "active" and gets a simple gradient step. Everything else is "inactive" and gets the high-performance Newton treatment.
  • MINRES over CG: Most second-order ML methods use Conjugate Gradient. However, CG assumes the Hessian is "positive definite" (bowl-shaped). In nonconvex landscapes, this isn't true. MINRES remains stable even when the landscape is "indefinite" (saddle-shaped), allowing the algorithm to navigate complex nonconvex terrain.
  • Simultaneous Steps: Unlike some previous hybrid methods that alternate between gradient and Newton phases, these algorithms take both types of steps simultaneously across different dimensions, leading to smoother and faster progress.

Key Results

The authors measured performance using "Oracle Calls"—a fair metric that counts how many times the algorithm has to evaluate the function, gradient, or Hessian-vector product.

  • Superior Scaling: On nonconvex problems like Neural Networks and NMF, the proposed MR (Newton-MR) method significantly outperformed standard Projected Gradient (PG) and even the popular Projected Newton-CG (CG) in terms of reaching lower objective values with fewer computations.
  • Fast Local Convergence: The paper theoretically proves and numerically demonstrates that once the algorithm identifies which variables should be zero, it achieves "superlinear" convergence—essentially sprinting to the finish line.
  • State-of-the-Art Rates: They proved that their second-order approach achieves a complexity of $O(\epsilon^{-3/2})$, which is the theoretical speed limit for this class of optimization problems.

Limitations and Future Work

  • Constraint Variety: The current work is strictly focused on nonnegativity ($x \ge 0$). The authors note that extending this to "box constraints" (where variables have both upper and lower bounds) is a logical next step.
  • Stochasticity: The current algorithms are "batch" methods, meaning they look at the whole dataset at once. For truly massive-scale deep learning, a stochastic version (using mini-batches) would be required.
  • Second-Order Optimality: While the paper guarantees reaching a first-order stationary point (where the gradient is zero), they suggest that future versions could explicitly guarantee avoiding saddle points to reach second-order stationary points.

Summary updated

BibTeX
@inproceedings{smee2024inexact,
  author = {Oscar Smee and Fred Roosta},
  title = {{Inexact Newton-type Methods for Optimisation with Nonnegativity Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=p7gpooFIr3},
}
Figure