SNAP: Finding Approximate Second-Order Stationary Solutions Efficiently for Non-convex Linearly Constrained Problems

Songtao Lu, Meisam Razaviyayn, Bo Yang, Kejun Huang, Mingyi HongarXiv 2019

Abstract

In non-convex optimization, the presence of saddle points poses a significant hurdle for traditional first-order methods. While escaping saddle points is well-studied in unconstrained settings, the introduction of linear constraints makes finding second-order stationary points (SOSPs) computationally intractable (NP-hard) in the general case. This paper introduces SNAP (Successive Negative-curvature grAdient Projection), an algorithm designed to find approximate SOSPs for non-convex problems with linear constraints. By leveraging the property that "generic" problem instances satisfy strict complementarity, the authors establish an equivalence between a computationally tractable notion of stationarity and the standard SOSP definition. SNAP and its first-order variant, SNAP+, achieve a global convergence rate of $\mathcal{O}(1/\epsilon^{2.5})$ with polynomial per-iteration complexity, marking a significant advancement in constrained non-convex optimization.

1. Introduction: The Saddle Point Problem

Optimization in non-convex landscapes is a cornerstone of modern machine learning, from deep neural networks to matrix factorization. In these landscapes, first-order stationary points (where the gradient is zero) are not created equal. Many are saddle points—locations where the function looks like a minimum in some directions but a maximum in others. For effective minimization, algorithms must reach Second-Order Stationary Points (SOSPs), where the Hessian (the matrix of second derivatives) is positive semi-definite, ensuring no "downward" directions remain.

2. The Challenge of Constraints

While escaping saddle points in unconstrained optimization is relatively straightforward, adding linear constraints (e.g., $Ax \le b$) introduces a layer of complexity. In constrained settings, checking whether a point is an SOSP is generally NP-hard. This is because the algorithm must determine if there is a feasible direction of negative curvature, a task that becomes exponentially difficult as the number of constraints increases. Previous methods often required exponential time relative to the number of constraints to guarantee convergence to an SOSP.

3. Theoretical Breakthrough: Generic Tractability

The authors overcome this NP-hardness by focusing on "generic" problem instances. They prove that for almost all instances of a linearly constrained problem (specifically, those where a tiny random perturbation is applied), a condition called Strict Complementarity (SC) holds for all Karush-Kuhn-Tucker (KKT) solutions with probability one.

Under SC, two definitions of stationarity become equivalent:

  1. SOSP1: A definition based on identifying "active" constraints (those where the equality holds), which is computationally easy to verify.
  2. SOSP2: The standard, computationally difficult definition of an SOSP.

By proving this equivalence for generic cases, the authors provide a theoretical bridge that allows efficient algorithms to target SOSP1 while effectively solving the SOSP2 problem.

4. The SNAP Algorithm

The Successive Negative-curvature grAdient Projection (SNAP) algorithm operates by alternating between two distinct phases:

  • Projected Gradient Descent (PGD): This is the standard "workhorse" phase. The algorithm follows the gradient and projects the result back onto the feasible set to reduce the objective value.
  • Negative Curvature Descent (NCD): When the gradient becomes small (indicating the algorithm is near a stationary point), SNAP checks for negative curvature in the Hessian. If a direction of negative curvature is found within the "free" space of the constraints, the algorithm takes a specific step to "jump" out of the potential saddle point.

4.1 SNAP+: A First-Order Extension

Calculating the full Hessian matrix is often computationally prohibitive in high-dimensional problems. To address this, the authors developed SNAP+. This version uses a Subspace Perturbed Gradient Descent technique. Instead of explicit second-order calculations, it adds a small amount of noise to the iterates and observes how the gradient changes. This allows the algorithm to "feel" the curvature of the landscape using only first-order (gradient) information, avoiding expensive eigenvalue decompositions.

5. Convergence and Complexity

A key contribution of this work is the rigorous analysis of SNAP's efficiency. The authors prove that both SNAP and SNAP+ reach an $(\epsilon, \sqrt{\epsilon})$-SOSP within $\mathcal{O}(1/\epsilon^{2.5})$ iterations. Crucially, the per-iteration complexity remains polynomial in the number of constraints and the problem dimension. This is the first time a first-order algorithm has achieved a global sublinear rate for finding SOSPs in this class of problems without exponential per-step costs.

6. Empirical Results

The algorithms were tested on several challenging non-convex tasks:

  • Non-negative Matrix Factorization (NMF): On both synthetic data and the USPS handwritten digits dataset, SNAP and SNAP+ successfully escaped the origin—a notorious saddle point where standard PGD often gets stuck. This resulted in significantly lower-loss, higher-quality solutions.
  • Non-negative Neural Networks: In simulations of two-layer networks with non-negativity constraints, the SNAP framework consistently outperformed first-order baselines by navigating away from suboptimal stationary points.

The experiments also highlighted that SNAP+ is often faster in practice than the base SNAP algorithm because it estimates curvature through gradient perturbations rather than direct Hessian analysis.

7. Conclusion and Future Work

SNAP represents a significant step forward in making second-order optimization practical for constrained non-convex problems. By identifying that the "hard" cases of constrained optimization are rare in practice, the authors have opened a path for efficient, polynomial-time algorithms that can navigate complex landscapes.

While the current framework is limited to linear constraints, it provides a foundation for future research into general non-linear constraints. Additionally, the authors suggest that incorporating Nesterov-style acceleration could further improve the convergence rates of SNAP+, making it even more viable for large-scale machine learning applications.

Summary updated

BibTeX
@misc{lu2019snap,
  author = {Songtao Lu and Meisam Razaviyayn and Bo Yang and Kejun Huang and Mingyi Hong},
  title = {{SNAP: Finding Approximate Second-Order Stationary Solutions Efficiently for Non-convex Linearly Constrained Problems}},
  year = {2019},
  eprint = {1907.04450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04450},
}
Figure