Deciphering Lasso-based Classification Through a Large Dimensional Analysis of the Iterative Soft-Thresholding Algorithm

Malik Tiomoko, Ekkehard Schnoor, Mohamed El Amine Seddik, Igor Colin, Aladin VirmauxICML 2022

Introduction

The Lasso (Least Absolute Shrinkage and Selection Operator) is a cornerstone of modern statistics, prized for its ability to perform feature selection via $\ell_1$-regularization. While its behavior in regression is well-studied, its precise performance in classification tasks has remained surprisingly opaque. This is especially true in the "realistic" high-dimensional regime where the number of features $p$ and the number of samples $n$ are both large and comparable ($p \approx n$).

This paper provides the first exact theoretical characterization of Lasso-based classification performance in this high-dimensional regime. By analyzing the Iterative Soft-Thresholding Algorithm (ISTA) through the lens of Random Matrix Theory, the authors derive a precise formula for classification error, enabling optimal hyperparameter tuning without the need for costly cross-validation.

The Problem with Empirical Tuning

Practitioners typically rely on cross-validation to choose the regularization parameter $\lambda$. However, this process is computationally expensive and often unstable on small datasets. Furthermore, without a solid theoretical footing, it is difficult to predict when Lasso will actually outperform simpler methods like ridge regression, or when the sparsity constraint might inadvertently harm classification accuracy.

Methodology: RMT Meets ISTA

The authors tackle this gap by analyzing ISTA, the standard solver for Lasso problems. Their approach leverages Random Matrix Theory (RMT) and a "leave-one-out" (or cavity) method to handle the complex statistical dependencies that arise during the iterative optimization process.

Key methodological highlights include:

  • Large Dimensional Regime: The analysis assumes $n, p \to \infty$ such that the ratio $p/n$ converges to a constant.
  • Concentrated Random Vectors: Instead of assuming strictly Gaussian data, the authors use a broader "concentration of measure" framework. This allows their theory to apply to a wide range of data types, including complex images.
  • Deterministic Iteration: They derive a set of deterministic equations that track the mean and variance of the ISTA iterates. Remarkably, this theoretical iteration converges faster than the empirical ISTA itself because it avoids the random fluctuations inherent in finite data samples.

Key Insights: The Phase Diagram of Lasso

One of the most compelling findings is the identification of specific regions where Lasso provides a significant gain over ridge-less regression, and regions where it performs worse. The benefit of Lasso is revealed to be a delicate balance between the "task difficulty" (signal-to-noise ratio) and the underlying sparsity of the data.

Phase diagram illustrating the relative gain in accuracy of Lasso versus ridge-less regression.

Exact Error Prediction and Theory-Driven Tuning

The paper's central theorem provides a closed-form expression for the asymptotic classification error. Because the authors can calculate the exact classification error for any $\lambda$ analytically, they can perform a "grid search" on the theoretical formula to find the optimal hyperparameter.

Close fit between theoretical predictions (lines) and empirical classification accuracy (markers) across different sparsity levels.

This theory-driven tuning is shown to be as effective as $k$-fold cross-validation but significantly faster and more stable. In experiments, the theory-based hyperparameter selection consistently matched or outperformed various cross-validation folds while exhibiting much lower variance.

Validation on Real-World Data

The authors validate their theoretical findings using both synthetic datasets (Gaussian mixture models with varying sparsity) and real-world datasets, including Amazon Reviews (encoded as tf-idf vectors), MNIST, and CIFAR-10. The match between theory and practice is strikingly close, even for non-Gaussian real-world data. This confirms that the "concentrated random vector" assumption is a powerful and universally applicable tool for modeling real-world high-dimensional data.

Limitations and Future Work

While the framework is robust, the main derivations assume an identity covariance matrix for simplicity (though extensions to generic covariances are detailed in the supplementary material). Additionally, while the deterministic algorithm converges very quickly in practice, a formal proof of its convergence remains an open theoretical challenge. Finally, the current analysis is restricted to the square loss (Lasso). Extending this "leave-one-out" analysis to logistic or hinge loss would be a highly valuable next step for the field.

Summary updated

BibTeX
@inproceedings{tiomoko2022deciphering,
  author = {Malik Tiomoko and Ekkehard Schnoor and Mohamed El Amine Seddik and Igor Colin and Aladin Virmaux},
  title = {{Deciphering Lasso-based Classification Through a Large Dimensional Analysis of the Iterative Soft-Thresholding Algorithm}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=Fdf6g2FhOWy},
}
Figure