When can you trust feature selection? - I: A condition-based analysis of LASSO and generalised hardness of approximation

Alexander Bastounis, Felipe Cucker, Anders C. HansenarXiv 2023 · DOI

  • I: A condition-based analysis of LASSO and generalised hardness of approximation

Abstract

Feature selection via LASSO is a cornerstone of modern data science, prized for its ability to produce interpretable models. However, this paper reveals a fundamental vulnerability: when working with approximate or noisy data, it is often mathematically impossible to guarantee the selection of correct features. We introduce a "LASSO condition number" to quantify this stability and present the FSUL algorithm—a "trustworthy" solver guaranteed to either return the correct features or run indefinitely, ensuring it never produces incorrect results.

The Challenge of Finite Precision

In fields ranging from genomics to finance, researchers rely on LASSO (Least Absolute Shrinkage and Selection Operator) to identify relevant variables from high-dimensional datasets. Most theoretical guarantees for LASSO assume exact access to data. In practice, however, data is subject to floating-point approximations and measurement noise.

This paper explores the "Generalised Hardness of Approximation" (GHA). GHA describes a phenomenon where a problem might be easy to approximate to a certain degree but becomes impossible to solve exactly once the data is even slightly "ill-posed." This raises a critical question: can we trust the features selected by standard LASSO implementations?

Quantifying Stability: The LASSO Condition Number

To address this, the authors define a LASSO condition number ($\mathcal{C}_{UL}$). This metric measures the sensitivity of the support set (the list of non-zero features) to small changes in input data. Specifically, it is the inverse of the distance to the nearest "ill-posed" input where the support set would change.

The condition number acts as a "computational wall." As $\mathcal{C}_{UL}$ approaches infinity, the number of digits of precision required to identify the correct features grows exponentially. The authors break this down into three computable components based on Karush-Kuhn-Tucker (KKT) optimality conditions, tracking how close a solution is to violating optimality or how close the data matrix is to being non-invertible.

The FSUL Algorithm: A "Never Wrong" Approach

The proposed FSUL (Feature Selection in Unconstrained LASSO) algorithm prioritizes trustworthiness over speed. Unlike standard solvers that might return a "best guess" when faced with numerical instability, FSUL iteratively increases precision and verifies KKT conditions.

Its primary guarantee is safety: if the input is well-posed, it finds the correct features in polynomial time; if the input is ill-posed, it continues to run. Crucially, it will never halt and provide a "hallucinated" or incorrect feature set.

Numerical Evidence and Distributional Sensitivity

Theoretical findings are supported by numerical experiments demonstrating the fragility of standard methods.

Distributional Sensitivity

One key insight is that the underlying distribution of the data significantly impacts stability. As shown in Figure 1, LASSO is notably more stable when data is drawn from an Exponential distribution compared to Gaussian (Normal) or Uniform distributions.

Success rates of feature selection across different data distributions, showing higher stability for Exponentially distributed data.

Failure of Standard Solvers

The authors demonstrate that popular tools, such as MATLAB’s lasso routine, can frequently fail to identify the correct support set on ill-posed problems. As seen in the table below, even small perturbations in a simple 2-variable problem can lead to incorrect feature identification without any warning to the user.

Table illustrating how standard LASSO solvers fail to correctly identify features as input parameters are perturbed.

Conclusion

This research highlights the inherent risks in automated feature selection. While the FSUL algorithm provides a path toward "trustworthy" computation, the existence of a condition-based barrier means that for some datasets, reliable feature selection may be fundamentally impossible with current precision. Future work will extend this analysis to constrained LASSO problems and explore average-case stability in random data.

Summary updated

BibTeX
@misc{bastounis2023when,
  author = {Alexander Bastounis and Felipe Cucker and Anders C. Hansen},
  title = {{When can you trust feature selection? - I: A condition-based analysis of LASSO and generalised hardness of approximation}},
  year = {2023},
  eprint = {2312.11425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.11425},
}
Figure