Path following algorithms for $\ell_2$-regularized $M$-estimation with approximation guarantee

Yunzhang Zhu, Renxiong LiuNeurIPS 2023

Introduction: The Solution Path Problem

Machine learning models like Ridge Regression and $\ell_2$-regularized Logistic Regression rely heavily on a tuning parameter ($\lambda$) to balance training data fit against model complexity. To find the optimal $\lambda$, practitioners typically compute a "solution path"—a sequence of trained models across a range of $\lambda$ values.

Because computing models for an infinite number of $\lambda$ values is impossible, the standard practice is to select a discrete grid of points, solve the optimization problem at each, and interpolate between them. This raises two major computational challenges:

  1. Grid Placement: Where should the grid points be placed? Too many points waste compute, while too few ruin accuracy.
  2. Optimization Accuracy: How accurately should the optimization problem be solved at each point? Solving it perfectly is a waste of time if the gap to the next grid point is large.

Existing methods often rely on naive, equally-spaced grids (typically on a log scale) or highly specific, problem-dependent math. There has been a notable lack of general, easily implementable rules to dynamically choose these points and determine exactly when to stop optimizing.

The Core Idea: Balancing Errors

This paper introduces a smart, adaptive approach to computing the solution path for $\ell_2$-regularized models. The authors tackle the computational bottleneck by breaking the total approximation error of the solution path into two distinct components:

  • Interpolation Error: The error caused by the spacing between the chosen grid points.
  • Optimization Error: The error caused by not perfectly solving the optimization problem at a specific grid point.

The central insight of the paper is that it is computationally wasteful to make the optimization error smaller than the interpolation error. By tethering the optimization error to the interpolation error, the algorithm avoids doing useless work that does not actually improve the overall path approximation.

Methodology: An Algorithm-Agnostic Approach

To exploit this insight, the authors propose a two-pronged "meta-algorithm" that works with any base optimization algorithm (e.g., Gradient Descent, Newton's method):

  1. Adaptive Stopping Criterion: The authors derive a mathematical bound based on the gradient norm. The chosen optimizer runs at a grid point only until the optimization error drops below the interpolation error. Once that threshold is crossed, optimization stops.
  2. Adaptive Grid Selection Scheme: A dynamic formula calculates the step size to the next grid point. If the model weights are relatively stable, the algorithm takes large steps along the path. If the weights are highly sensitive in a certain region, it takes smaller, more cautious steps.

Furthermore, while the primary focus is on convex loss functions, the authors successfully extend their method to handle certain non-convex loss functions that satisfy the Polyak-Łojasiewicz (PL) inequality.

Experimental Validation

The approach was rigorously evaluated on both simulated and real-world datasets:

  • Simulated Data: Tested on Ridge Regression and $\ell_2$-regularized logistic regression in both low-dimensional ($n=1000, p=500$) and high-dimensional ($n=1000, p=10000$) scenarios.
  • Real Data: Utilized the a9a dataset from LIBSVM (predicting if an adult's income exceeds $50k), containing 32,561 examples and 123 features, to test $\ell_2$-logistic regression.

Key Findings and Theoretical Guarantees

  • Superior Speed/Accuracy Tradeoff: In both simulated and real-world tests, the proposed method drastically outperformed standard equally-spaced grids and a recent state-of-the-art adaptive method. It achieved tighter error bounds in significantly less runtime.
  • Theoretical Guarantees: The authors mathematically prove that to guarantee an overall path error of at most $\epsilon$, their algorithm requires at most $\mathcal{O}(\epsilon^{-1/2})$ grid points.
  • Constant Iterations per Point: Empirically, when using Newton's method as the base solver, the proposed scheme required only a constant number of iterations (often just 1) at each grid point, regardless of how tight the desired accuracy ($\epsilon$) was.
  • High-Dimensional Robustness: The method maintained its efficiency advantages even in the $p \gg n$ regime (e.g., 10,000 features versus 1,000 samples).

Limitations and Future Directions

While the authors successfully proved the upper bound for the number of grid points ($\mathcal{O}(\epsilon^{-1/2})$), they have not yet formally proven the bounds for the total number of inner iterations (e.g., total gradient steps across the entire path). They conjecture it to be $\mathcal{O}(\epsilon^{-1} \ln(\epsilon^{-1}))$ for Gradient Descent, leaving the formal proof for future work.

Additionally, the current mathematical framework relies heavily on both the loss function and the regularization function being differentiable. The authors note that extending this framework to non-differentiable problems—most notably $\ell_1$ regularization (Lasso)—is a major, challenging next step for this line of research.

Summary updated

BibTeX
@inproceedings{zhu2023path,
  author = {Yunzhang Zhu and Renxiong Liu},
  title = {{Path following algorithms for $\textbackslash\{\}ell\_2$-regularized $M$-estimation with approximation guarantee}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=hgLMht2Z3L},
}
Figure