A Combinatorial Algorithm to Compute Regularization Paths

Bernd Gärtner, Joachim Giesen, Martin Jaggi, Torsten WelscharXiv 2009

Introduction

In machine learning, regularization is a fundamental technique used to prevent overfitting by introducing a trade-off parameter—such as $C$ in Support Vector Machines (SVMs) or $\lambda$ in LASSO. Rather than training a model for a single parameter value, "solution path" algorithms aim to track how the optimal solution evolves as this parameter varies across its entire range. While powerful, existing path-following techniques are often brittle, failing when confronted with the singular or low-rank matrices common in high-dimensional real-world data.

This paper introduces a robust, generic combinatorial algorithm based on the criss-cross method to compute these paths. By framing regularization as a Parametric Quadratic Programming (pQP) problem, the authors provide a unified framework that handles low-rank matrices naturally and applies to a wide variety of models.

The Challenge of Singularity

Traditional path-following algorithms, such as the one developed by Hastie et al. for SVMs, typically require the kernel matrix to be non-singular and all principal minors to be invertible. In practice, especially with linear kernels or high-dimensional datasets, these conditions are frequently violated. To circumvent this, researchers often resort to "perturbing" the data—adding a small value to the diagonal of the matrix. However, this modification changes the underlying problem, increases computational overhead, and can introduce numerical inaccuracies.

A Unified Combinatorial Framework

The proposed method avoids these pitfalls by transforming the quadratic program into a Linear Complementarity Problem (LCP) using Karush-Kuhn-Tucker (KKT) optimality conditions. The core of the solution is the criss-cross algorithm, a combinatorial pivoting method.

Unlike the Simplex method, which traverses the edges of a feasible region, the criss-cross method can move through the interior of the arrangement. Its primary advantage is its ability to handle any positive semi-definite (PSD) matrix, regardless of whether it is singular.

The duality between points in the primal space (left) and lines in the dual space (right) illustrates the combinatorial nature of the arrangement-based approach.

To track the path, the algorithm identifies "events"—specific parameter values where the set of active constraints changes. Because the solution path is piecewise linear, the algorithm only needs to find these "bends." To transition between linear segments without numerical instability, the authors employ symbolic perturbation ($\epsilon$), allowing the algorithm to find the next segment without actually altering the data.

Key Insights and Advantages

  • Generality: By treating regularization as a parametric LCP, the same algorithm can be applied to SVMs, Support Vector Regression (SVR), LASSO, and Conjoint Analysis without modification.
  • Robustness: The criss-cross method does not require matrix inversions, making it inherently resistant to the singular sub-matrices that cause other algorithms to crash.
  • Numerical Stability: As a combinatorial method, it avoids the accumulation of floating-point errors common in traditional active-set methods.
  • Efficiency in Sparsity: The algorithm's complexity scales with the number of non-zero entries in the solution, making it highly efficient for the sparse models typically produced by regularization.

Experimental Validation

The authors evaluated their method using a Choice Based Conjoint Analysis (CBC) dataset from a user study on visualization quality. The problem involved estimating "part-worth" values for 24 attribute levels across various choice experiments.

The algorithm successfully solved this "very low rank" problem where existing path-tracking methods failed. In tests with 40 choice experiments, the algorithm efficiently identified the first three "bends" in the solution path. While the LCP solutions can theoretically exhibit jumps, the authors demonstrate that the actual model weights ($x$-part) remain continuous due to the convexity of the original quadratic program.

Conclusion and Future Work

While the current implementation serves as a robust proof of concept, the authors note that finding the initial starting point of the path can be computationally expensive compared to following the path once established. Future work includes optimizing the initial solver and extending the framework to handle multi-parametric paths—such as simultaneously tracking changes in both the regularization parameter and the kernel width.

Summary updated

BibTeX
@misc{gartner2009combinatorial,
  author = {Bernd Gärtner and Joachim Giesen and Martin Jaggi and Torsten Welsch},
  title = {{A Combinatorial Algorithm to Compute Regularization Paths}},
  year = {2009},
  eprint = {0903.4856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0903.4856},
}
Figure