Sparse High-Dimensional Regression: Exact Scalable Algorithms and Phase\n Transitions

Dimitris Bertsimas, Bart P. G. Van Parys · DOI

For decades, the "Best Subset Selection" problem—finding the smallest set of variables that best explain a dataset—has been the "white whale" of statistics. Because it involves an $\ell_0$-norm constraint, the problem is NP-hard. Most practitioners have long since abandoned exact solutions in favor of heuristics like Lasso (which uses the $\ell_1$-norm as a convex proxy).

In this paper, Dimitris Bertsimas and Bart Van Parys from MIT turn this narrative on its head. They present a new algorithm that doesn't just solve sparse regression exactly; it does so for problems with 100,000 variables in seconds, often outperforming the very heuristics meant to replace it.

TL;DR

The authors introduce a novel dual-perspective reformulation of sparse regression that transforms it into a scalable Convex Integer Optimization problem. Their cutting-plane algorithm handles dimensions two orders of magnitude larger than previous exact methods ($p=100,000+$) and reveals a "computational phase transition" where the problem actually becomes easier to solve as more data is added.

What Problem Does This Paper Address?

In linear regression, we want to find weights $w$ such that $Y \approx Xw$. To prevent overfitting and improve interpretability, we often want $w$ to be sparse (mostly zeros).

The gold standard is the $\ell_0$ constraint: $\|w\|_0 \leq k$. However, because this is a discrete choice (which variables do I pick?), it traditionally requires Mixed-Integer Optimization (MIO). Until recently, MIO approaches were limited to about 1,000 variables. Consequently, the field moved toward the Lasso, which is fast but introduces bias and often fails to recover the true "sparsity pattern" (it picks the wrong variables) when features are highly correlated or noisy.

The authors aim to bridge this gap: providing the statistical purity of exact sparse regression with the speed required for modern high-dimensional "Big Data."

Methods

The paper’s "secret sauce" is a shift in perspective from primal to dual.

  1. Binary Convex Reformulation: Instead of optimizing the weights $w$ directly (the primal view), they reformulate the problem to optimize over the selection vector $s$ (a binary vector where $s_i=1$ if a variable is included). They show that the regression loss is a convex function of this binary vector.
  2. Outer Approximation (Cutting Planes): They use a "tailored cutting plane" method. Instead of building a massive optimization tree upfront, the algorithm starts with a simple approximation and iteratively adds "cuts" (linear constraints) that tighten the search space only where needed.
  3. The Matrix Inversion Trick: A major bottleneck in dual methods is inverting large matrices ($O(n^3)$). The authors use the Matrix Inversion Lemma (Woodbury identity) to reduce this complexity to $O(k^3 + nk)$. Since the target sparsity $k$ is usually small, this makes the algorithm incredibly fast.
  4. Lazy Constraints: They implement the algorithm using "single-tree" dynamic constraint generation (available in solvers like Gurobi), which avoids rebuilding the search tree at every step.

Datasets

The authors primarily use synthetic datasets to rigorously test the limits of the algorithm:

  • Dimensions: Up to $n=100,000$ samples and $p=100,000$ regressors.
  • Parameters: They vary the Signal-to-Noise Ratio (SNR), the sparsity level ($k$), and the correlation between features ($\rho$).
  • Nonlinear Extension: They also test a "Sparse Kernel Regression" version using a synthetic nonlinear model involving trigonometric and hyperbolic functions to demonstrate feature discovery.

Key Insights and Ideas

  • The Complexity Phase Transition: This is the most counter-intuitive finding. In traditional complexity theory, bigger problems are harder. Here, as the number of samples $n$ increases beyond a certain threshold ($n_t$), the problem becomes dramatically easier to solve. At high $n$, the "signal" is so clear that the algorithm finds the optimal support almost instantly.
  • Exact is Faster than Heuristic: In the high-data regime ($n > n_t$), their exact $L_0$ method is actually faster than Lasso (specifically the popular GLMNet implementation).
  • Statistical Superiority: The paper demonstrates that exact sparse regression has a much lower "False Alarm Rate" than Lasso. Lasso tends to "bleed" and include irrelevant variables to compensate for the bias introduced by its $\ell_1$ penalty; the $L_0$ approach remains surgical.

Key Results

  • Scalability: For a problem with $n=100,000$ and $p=100,000$, the algorithm reached provable optimality in 528 seconds. For comparison, the Lasso heuristic took 884 seconds on the same hardware.
  • Phase Transitions: They identified a clear threshold for support recovery. For example, with $p=2,000$ and $k=10$, the exact method achieved 100% accuracy at $n \approx 120$, while Lasso required $n \approx 180$ to reach the same level of accuracy.
  • Robustness: Even with high correlation between variables ($\rho=0.1$), the method maintains its speed and accuracy, debunking the idea that MIO is too slow for practical high-dimensional statistics.

Limitations and Future Work

  • Memory Constraints: While the algorithm is computationally efficient, the authors noted that for extremely large matrices (e.g., $p=200,000$), they ran into hardware memory limits when building the data matrices $X$ and $Y$.
  • Regularization Dependence: The method relies on a Tikhonov regularization term ($\gamma$). While this helps with stability, the choice of $\gamma$ (usually via cross-validation) remains a critical hyperparameter.
  • Non-Gaussian Data: The theoretical phase transitions discussed are largely based on Gaussian assumptions; exploring how these transitions shift with heavy-tailed or non-independent data is a suggested path for future research.

Final Thought: This paper is a wake-up call for data scientists. It suggests that the "computational necessity" of using Lasso over exact Best Subset Selection is largely a myth of the past. With modern integer optimization, you can have your statistical cake and eat it too.

Summary updated

Abstract

We present a novel binary convex reformulation of the sparse regression\nproblem that constitutes a new duality perspective. We devise a new cutting\nplane method and provide evidence that it can solve to provable optimality the\nsparse regression problem for sample sizes n and number of regressors p in the\n100,000s, that is two orders of magnitude better than the current state of the\nart, in seconds. The ability to solve the problem for very high dimensions\nallows us to observe new phase transition phenomena. Contrary to traditional\ncomplexity theory which suggests that the difficulty of a problem increases\nwith problem size, the sparse regression problem has the property that as the\nnumber of samples $n$ increases the problem becomes easier in that the solution\nrecovers 100% of the true signal, and our approach solves the problem extremely\nfast (in fact faster than Lasso), while for small number of samples n, our\napproach takes a larger amount of time to solve the problem, but importantly\nthe optimal solution provides a statistically more relevant regressor. We argue\nthat our exact sparse regression approach presents a superior alternative over\nheuristic methods available at present.\n
BibTeX
@article{bertsimas2020sparse,
  author = {Dimitris Bertsimas and Bart P. G. Van Parys},
  title = {{Sparse High-Dimensional Regression: Exact Scalable Algorithms and Phase\textbackslash\{\}n Transitions}},
  journal = {The Annals of Statistics},
  year = {2020},
  doi = {10.1214/18-aos1804},
}
Figure