When can you trust feature selection? -- II: On the effects of random data on condition in statistics and optimisation

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

Abstract

Feature selection via LASSO is a staple of modern data science, yet its reliability in finite-precision environments is often overlooked. This paper investigates the "LASSO condition number" as a random variable, demonstrating that certain data distributions—specifically uniform distributions—lead to inherent numerical instability as the number of variables grows. We show that standard commercial software can produce "numerical hallucinations," returning incorrect feature sets without warning. We propose a trustworthy algorithm that guarantees correctness or signals failure, providing a robust framework for high-dimensional statistics.

Introduction: The Precision Gap

In theoretical statistics, we often assume infinite precision. In practice, computers operate using floating-point arithmetic. This discrepancy becomes critical in feature selection, where identifying the "support set" (the list of truly significant variables) is the primary goal.

Building on Part I, which defined the LASSO condition number ($\mathcal{C}_{UL}$), this work explores how this metric behaves under different random data ensembles. The condition number measures sensitivity: if it is high, microscopic rounding errors can lead to completely different support sets.

Distribution is Destiny

The reliability of LASSO is not universal; it depends heavily on the underlying distribution of the sensing matrix. Our analysis reveals a stark contrast between common data types:

  • Exponential Distribution: Highly stable. The condition number remains nearly constant regardless of the number of features ($N$).
  • Normal (Gaussian) Distribution: Moderately stable. The condition number grows slowly at a rate of $\sqrt{\ln N}$.
  • Uniform Distribution: Highly unstable. The condition number grows linearly with $N$, making high-dimensional problems increasingly untrustworthy.
Probability of failure (high condition number) for different distributions as the number of features $N$ increases.

As shown in the figure above, the probability of encountering an ill-conditioned problem—and thus a failure in finite-precision arithmetic—approaches certainty for uniform data as the dimensionality increases, while exponential data remains robust.

Numerical Hallucinations in Commercial Software

To test the practical implications of these theoretical bounds, we benchmarked MATLAB’s standard lasso routine. The results confirm that "numerical hallucinations" are a real risk. When the condition number is high, the software may confidently return a support set that is mathematically incorrect.

Comparison of incorrect vs. correct support sets identified by MATLAB's `lasso` routine for uniform data.

In experiments with uniform data, the number of incorrect results scales significantly with the number of features. By $N=10,000$, the software fails to find the correct support set in a vast majority of trials. This failure is not a bug in the code, but a fundamental limitation of solving ill-conditioned problems with finite precision.

Toward Trustworthy Algorithms

We propose a "trustworthy" algorithm designed to mitigate these risks. Unlike standard solvers that may return a wrong answer, our algorithm is designed to either:

  1. Produce the mathematically correct support set.
  2. Signal that the problem is too ill-conditioned to solve (or run indefinitely if the condition number is infinite).

We prove that for standard Gaussian data, this algorithm succeeds with high probability ($1 - C_1N^{-C_2}$), offering a formal guarantee for one of the most common use cases in statistics.

Conclusion

The "distance to failure" in feature selection is determined by the data's condition number. Researchers and practitioners must be aware that high-dimensional problems using certain data types, like uniform distributions, are inherently prone to numerical errors. By treating the condition number as a random variable, we can predict these failures and move toward more robust, trustworthy optimization frameworks.

Summary updated

BibTeX
@misc{bastounis2023when,
  author = {Alexander Bastounis and Felipe Cucker and Anders C. Hansen},
  title = {{When can you trust feature selection? -- II: On the effects of random data on condition in statistics and optimisation}},
  year = {2023},
  eprint = {2312.11429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.11429},
}
Figure