Approximate Secular Equations for the Cubic Regularization Subproblem

Yihang Gao, Man-Chung Yue, Michael K. Ng

This paper, presented at NeurIPS 2022, introduces a more efficient way to solve the Cubic Regularization Subproblem (CRS), a core component of modern non-convex optimization. By replacing the computationally expensive requirement for a full matrix spectrum with an Approximate Secular Equation (ASE), the authors provide a "matrix-free" solver that is both theoretically grounded and practically faster for high-dimensional problems.

TL;DR

The authors propose a novel solver for the cubic regularization subproblem that avoids the $O(n^3)$ cost of full eigendecomposition by using only a few of the Hessian's smallest eigenvalues. Their "Approximate Secular Equation" (ASEM) method provides rigorous theoretical error bounds and significantly outperforms state-of-the-art solvers in high-dimensional settings like deep learning and low-rank recovery.

What Problem Does This Paper Address?

In non-convex optimization, the Cubic Regularization (CR) method is a powerful alternative to standard Newton methods. At each step, it solves a subproblem (the CRS) that minimizes a quadratic approximation of the objective function plus a cubic penalty term to ensure global convergence.

The standard way to solve this subproblem involves the secular equation. However, this equation requires knowing all the eigenvalues of the Hessian matrix. For a problem with $n$ variables, computing the full spectrum costs $O(n^3)$, which is prohibitive for modern large-scale applications (e.g., training a neural network with millions of parameters). While iterative methods like the Lanczos process exist, they often lack the theoretical guarantees or the efficiency needed when the Hessian is large and indefinite.

Methods

The authors bridge the gap between efficiency and theoretical rigor by developing two types of Approximate Secular Equations (ASEs):

  1. First-Order Truncated Secular Equation: This version uses the $m$ smallest eigenvalues (where $m \ll n$) and approximates the remaining "tail" of the spectrum using a single parameter $\mu$ (typically the average of the unobserved eigenvalues).
  2. Second-Order Truncated Secular Equation: This version uses a second-order Taylor approximation to better capture the influence of the unobserved eigenvalues.

The ASEM Algorithm: * Step 1: Use a Krylov subspace method (like Lanczos) to compute only the $m$ smallest eigenvalues and eigenvectors. This is "matrix-free," requiring only Hessian-vector products ($O(mn^2)$). * Step 2: Solve the ASE (a 1D root-finding problem) to find the optimal regularization shift $\sigma^*$. * Step 3: Solve the resulting linear system $(A + \sigma^* I)x = -b$ using an iterative solver like Conjugate Gradient.

Datasets

The authors evaluated their method using:

  • Synthetic CRS Instances: Designed with specific eigenvalue distributions (evenly spaced, separated, or clustered) to test how the "shape" of the spectrum affects the approximation.
  • CUTEst Library: A standard benchmark for constrained and unconstrained optimization, featuring real-world problems like TOINTGSS, BRYBAND, DIXMAANG, and TQUARTIC with dimensions up to $n=5000$.

Key Insights and Ideas

  • The Power of the Tail: You don't need the whole spectrum to find a good solution. The smallest eigenvalues dominate the behavior of the CRS, and the "tail" can be effectively summarized by a simple average ($\mu$).
  • Theoretical Guarantees: Unlike many heuristic solvers, the authors prove that their approximate solution stays close to the true solution. The error is bounded by the spread of the unobserved eigenvalues: $|\sigma^*_{\text{approx}} - \sigma^*_{\text{true}}| \leq C_m \cdot \max_{i > m} |\lambda_i - \mu|$.
  • Matrix-Free Scalability: Because the method only requires Hessian-vector products, it avoids the memory and time bottlenecks of matrix inversion, making it ideal for high-dimensional "big data" problems.

Key Results

  • Superior Efficiency: In synthetic experiments, ASEM converged to high accuracy using significantly fewer Hessian-vector products than standard gradient descent or pure Krylov subspace methods.
Figure 4: Trajectories of suboptimality (gradient norm ∥∇fA,b,ρ(x)∥) for ASEM, the Krylov sub- space method and the gradient descent method in Experiment 4.
Figure 4: Trajectories of suboptimality for ASEM vs. competitors. ASEM (green) achieves much lower gradient norms faster as the number of Hessian-vector products increases.
  • Robustness to Distribution: The method is particularly effective when unobserved eigenvalues are clustered. Even in "harder" cases where eigenvalues are spread out, ASEM remains competitive.
  • Performance on Real Data: On CUTEst benchmarks, the ASEM-based ARC algorithm (Adaptive Regularization using Cubics) was often the fastest and most accurate. Surprisingly, the authors found that even using just one eigenvalue ($m=1$) was enough to perform well on several real-world problems.

Limitations and Future Work

  • Hyperparameter Selection: The choice of $m$ (how many eigenvalues to compute) is crucial. While $m=1$ often works, some problems might require more. The authors suggest adaptive methods for selecting $m$ as a promising area for future research.
  • The "Hard Case": The paper primarily focuses on the "easy case" where the linear term $b$ is not orthogonal to the first eigenvector. While the "hard case" is rare in practice and can be handled via perturbation, a more direct ASE treatment for it could be explored.
  • Stochastic Settings: Extending this deterministic solver to stochastic cubic regularization (used in mini-batch training for deep learning) is a natural next step.

Reference: Gao, Y., Yue, M.-C., & Ng, M. K. (2022). Approximate Secular Equations for the Cubic Regularization Subproblem. 36th Conference on Neural Information Processing Systems (NeurIPS 2022).

Summary updated

Abstract

The cubic regularization method (CR) is a popular algorithm for unconstrained non-convex optimization. At each iteration, CR solves a cubically regularized quadratic problem, called the cubic regularization subproblem (CRS). One way to solve the CRS relies on solving the secular equation, whose computational bottleneck lies in the computation of all eigenvalues of the Hessian matrix. In this paper, we propose and analyze a novel CRS solver based on an approximate secular equation, which requires only some of the Hessian eigenvalues and is therefore much more efficient. Two approximate secular equations (ASEs) are developed. For both ASEs, we first study the existence and uniqueness of their roots and then establish an upper bound on the gap between the root and that of the standard secular equation. Such an upper bound can in turn be used to bound the distance from the approximate CRS solution based ASEs to the true CRS solution, thus offering a theoretical guarantee for our CRS solver. A desirable feature of our CRS solver is that it requires only matrix-vector multiplication but not matrix inversion, which makes it particularly suitable for high-dimensional applications of unconstrained non-convex optimization, such as low-rank recovery and deep learning. Numerical experiments with synthetic and real data-sets are conducted to investigate the practical performance of the proposed CRS solver. Experimental results show that the proposed solver outperforms two state-of-the-art methods.
BibTeX
@inproceedings{gao2022approximate,
  author = {Yihang Gao and Man-Chung Yue and Michael K. Ng},
  title = {{Approximate Secular Equations for the Cubic Regularization Subproblem}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure