ParaDeAl: GPU Parallel Descent for Best Subset Selection Past 100,000 Features
ParaDeAl keeps the hard constraint on the number of nonzeros while adding L1 and L2 penalties, solving up to a thousand hyperparameter configurations at once on a GPU and running up to 15x faster than the best CPU competitors above 100,000 features, at the cost of approximate solutions and a 48GB card.
On this page
A team has 1,000 hyperparameter settings to try, but the CPU solver on the desk grinds through them one at a time. The business side wants a model with exactly 50 nonzero coefficients, because a risk analyst has to read each one aloud in a review meeting. The usual advice is to fit a penalized regression and accept whatever sparsity falls out, which is fast but gives no control over that count of 50. The paper discussed here [1] takes the other route: keep the hard constraint, add the penalties anyway, and push thousands of parameter combinations onto a GPU in parallel. The interesting part is where that trade actually pays off.
Why capping the number of nonzero coefficients is its own problem
Linear regression explains a response y using some columns of a data matrix X. Requiring at most k nonzero coefficients gives min ||y - Xβ||² subject to ||β||₀ ≤ k. The L0 norm here simply counts nonzeros, and the set of column indices carrying them is called the support. The difficulty is combinatorial: choosing k columns out of p offers a number of candidates that grows like a binomial, so no smooth optimizer can slide downhill to the answer.
Exact solving goes through mixed integer optimization, encoding each column as a 0-1 decision variable and searching with branch and bound. The earlier results cited in the paper put p around 1,000 within a few minutes of near-optimal solutions, with runtimes degrading sharply as k grows. Iterative hard thresholding, which keeps the k largest magnitudes after each gradient step, also returns approximations, yet it pays for large matrix multiplications and slow gradient descent convergence [1].
Most modern work therefore avoids the hard constraint and encourages sparsity with penalties instead. The paper lists Lasso with an L1 penalty, Elastic Net combining L1 and L2 as implemented in glmnet, and the L0+L1 and L0+L2 formulations behind L0Learn. These scale, but none of them directly controls the support size, so asking for exactly 50 variables gets you whatever the penalty happens to produce.
| Method | Directly controls nonzero count | Scale or cost reported in the paper |
|---|---|---|
| MIO (mixed integer optimization) | Yes, exact optimum | About a few minutes at p near 1,000; worsens as k grows |
| Iterative hard thresholding | Yes | Heavy matrix products, slow gradient descent |
| Lasso / Elastic Net | No | Penalty encourages sparsity, count not specified |
| L0Learn (L0+L1, L0+L2) | No | Tractable near p of 100,000, gives up direct sparsity control |
| L0BnB (branch and bound, L0+L2) | Exact solution | Computationally expensive |
| ParaDeAl | Yes, constraint holds every iterate | p above 100,000, via GPU parallelism |
ParaDeAl tries to keep both ends: the hard constraint on the number of nonzeros, plus optional L1 and L2 penalties for out-of-sample behavior, with GPUs absorbing the cost of exploring many parameter settings at once [1].
Two stages: pick the support first, then refit the values on it
The core is a variant of proximal gradient descent, which reads as taking a gradient step and then applying a correction that pulls the solution back into the feasible region. Each iteration here does three things: a gradient step, soft thresholding that shrinks every coefficient toward zero by a fixed amount and zeroes out the small ones, and hard thresholding that keeps only the k largest magnitudes. The paper calls this combination a hard-soft thresholding update, and every iterate already satisfies the constraint on the number of nonzeros, so stopping anywhere leaves a feasible answer.
A good support does not guarantee good values on that support, however. The second stage freezes the support found in stage one and re-solves only over those k variables, where the problem is convex and admits preconditioned conjugate gradient, an iterative linear-system solver typically faster than rerunning gradient descent on those columns. The paper states the point plainly: the best support before value modification is not always the best support after it. So the second stage is not redundant work.
There is also a repair step called pair swaps, which trades one selected variable for one unselected variable and checks whether the objective improves. Swaps are inherently parallel because distinct pairs do not depend on each other. According to the paper, pair swaps are what let the L0+L1 and L0+L2 modes match L0Learn's accuracy on sparse supports while still running faster [1].
What runs in parallel is the hyperparameter grid, not the samples
The paper calls one tuple of k, λ1, λ2, learning rate η and starting β a configuration, and each configuration traces its own path of β iterates. In practice you already want many (k, λ1, λ2) triples to see which is both accurate and interpretable, and conventional solvers try them one after another. ParaDeAl packs those configurations into tensors and sends them to the GPU together.
The awkward part is that configurations need different numbers of iterations, so devices sit idle waiting on each other. The paper names this control-dependent parallelization and handles it with dynamic shrinking, letting converged configurations drop out and free capacity. Two engineering tradeoffs sit alongside: whether to compute (XᵀX)β or Xᵀ(Xβ), where the first needs a p-by-p matrix in memory and the second saves storage at the cost of an extra multiply, and how to pick the learning rate, which the method also parallelizes.
Above p of roughly 10,000 the method adds an active set procedure that iterates over a small slice of features first and expands gradually, following the glmnet line of work. Those pieces together produce the speedups, and matrix multiplication alone does not explain the larger multiples [1].
15x, 40x and 1,000 configurations: what each number measures
The headline figures describe different experiments and should not be multiplied or swapped.
- Batched configurations: 1,000 simultaneous configurations at roughly n of 10,000 and p of 100,000, solved within an hour on a single L40S GPU with 48GB of memory.
- Same setup against competitors: the best existing algorithms need over 40x as long.
- Single-instance ceiling: one problem at roughly n of 100,000 and p of 1,000,000 within an hour, one to two orders of magnitude larger than existing solvers handle.
- Against the best CPU solvers: up to 15x faster on large synthetic and real datasets with p above 100,000, with almost identical test accuracy at the same support size.
- By mode: L0+L1 and L0+L2 beat L0Learn on speed and match it on accuracy once pair swaps are used; in the L1+L2 setting FISTA matches the competitors and is faster than all of them.
Note that 15x is an upper bound and 40x is a lower bound on a competitor's runtime, measured under different conditions. The paper also fixes the comparison carefully: near-identical test accuracy holds at the same support size, not unconditionally [1].
When this approach does not apply
First, the output is approximate. Guaranteeing a global optimum still means mixed integer optimization, which drops you back to p near 1,000. Second, it needs a GPU; with 48GB on one card, n of 100,000 and p of 1,000,000 is the largest single instance the paper reports, and beyond that you need something else.
Third, the speedup assumes many configurations. Try two or three settings and the parallel-over-configurations layer buys you little, leaving only ordinary matrix multiplication gains. Fourth, small problems do not benefit: at p near 1,000 an exact solver finishes in minutes, so standing up a GPU pipeline is wasted effort.
One more point is easy to miss. The appendices examine why the active set procedure returns a different support than other methods, and test pair swaps separately on more strongly correlated synthetic data. Selecting which k variables enter the model has no unique answer, and different solvers returning different supports is normal. Treat this as a faster approximate solver, not an authority that settles which variables matter [1].
