Best subset selection via a modern optimization lens
Paper · 2016 · Dimitris Bertsimas, Angela King and Rahul Mazumder
Summary
When several predictors carry similar information, a regression can fit well while leaving it unclear which predictors matter. Best subset selection asks a direct question: given a limit on how many predictors may be used, which combination fits the observations best? Once a combination is chosen, ordinary least squares can determine its coefficients. Finding the combination is the hard part. The number of possibilities grows quickly, and a variable that looks dispensable by itself can become valuable alongside another. The paper revisits this search using an optimizer that can both improve a candidate fit and establish how much room for improvement remains.
The authors combine a fast search for promising subsets with mixed integer optimization, or MIO. The fast search takes a step that would improve a continuous fit and then keeps only the coefficients with the largest magnitudes, restoring the size limit. It refits the coefficients on the resulting subset and passes the fit to the integer optimizer as a starting point. The optimizer uses binary decisions to control which coefficients can be non-zero. It tracks the loss of its best feasible fit and a lower bound on the loss any feasible fit could achieve. These bounds can establish optimality, or quantify the remaining uncertainty if the run stops early.
The authors report certificates of optimality within minutes on instances with observations in the 1000s and predictors in the 100s. With observations in the 100s and predictors in the 1000s, useful fits frequently arrived well before their certificates. On the Diabetes data with 350 observations and 64 predictors, the optimizer found the optimal fits for size limits of 6 and 7 within a few seconds, while the proofs took 10-20 minutes. The paper also shows how to add linear restrictions on the coefficients and adapt the search to least absolute deviation, which measures residuals by their absolute sizes.
In synthetic comparisons, the authors chose tuning settings on separate validation responses and then measured prediction error against the known signal. Best subset selection frequently kept fewer predictors than Lasso while matching or improving prediction. The difference was particularly clear in examples where relevant predictors had strongly correlated substitutes. With independent predictors, equally sized effects, and the lowest signal-to-noise setting in one high-dimensional comparison, Lasso predicted best while the subset fit still used fewer predictors. The optimization certificate answers a question about training loss at a fixed size. The prediction experiments ask a separate question about what happens when the selected fit is used to estimate the signal.
Deep dive: Best subset selection via a modern optimization lens
Best subset selection uses mixed integer optimization to find sparse linear regressions and bound how far their training loss is from optimal. · about 36 minutes to read
The problem and its context
Choosing variables that work together
A linear regression expresses a response through weighted predictor values. If a coefficient is zero, its predictor contributes nothing to the fitted response. A sparse regression therefore uses few predictors, even when there are many available. The paper is concerned with settings where a short list may be valuable in its own right and where estimating a coefficient for every available predictor may be impractical. This is particularly relevant when there are many more predictor columns than observations. The working statistical premise is that the real coefficient vector is sparse or can be approximated well by a sparse vector.
Best subset selection puts the desired sparsity directly into the fitting problem. The analyst specifies the largest permitted number of non-zero coefficients. The search then compares subsets within that budget by how well they fit the observed responses. The fit for any given subset is a familiar least-squares calculation. The difficulty lies in choosing which variables enter together. A feature can account for part of the variation that another feature already explains. Once the second feature is included, the first may contribute little. Conversely, a predictor that appears weak in an individual comparison may improve a fit that already includes other variables.
The size constraint makes the problem NP-hard. Earlier exact methods already exploited ways of discarding groups of subsets instead of fitting every possibility. In the classical setting with more observations than predictors, the leaps-and-bounds procedure underlying the R package leaps illustrates that approach. The paper describes its practical range as up to 30 predictors. It also discusses a specialized branch-and-bound procedure that combined this line of work with quadratic optimization. That procedure focused on finding good feasible values, an important part of the task since a strong candidate can help rule out other possibilities. The authors regarded its scale as a reason to revisit the problem with more recent integer optimization machinery.
Why continuous alternatives became attractive
Lasso replaces the count of non-zero coefficients with a penalty on the sum of their absolute magnitudes. The penalty both pulls coefficients toward zero and can set some of them exactly to zero. Its size is controlled by a tuning parameter. The resulting objective is convex, so continuous optimization can handle problems beyond the practical range of the earlier exact subset searches. The paper describes established guarantees for predictive performance and sparsity under suitable conditions. It also distinguishes those guarantees from recovery of the actual relevant variables, which calls for stronger assumptions.
For Lasso, using a variable and estimating its coefficient are linked through the same penalty. Consider a predictor with a real effect and a neighboring predictor that is strongly correlated with it. The latter can help explain residual variation while the former’s coefficient is being shrunk. A fit optimized for prediction may keep both, along with other variables that help on the observed data. Raising the penalty can shorten the list while shrinking the retained effects further and risking the exclusion of relevant predictors. In a best subset fit, the size budget governs inclusion, and the original loss governs the coefficients once the subset is chosen. The authors use this distinction to motivate their comparison in designs with correlated predictors.
The paper places non-convex penalties between these approaches. Penalties such as the minimax concave penalty and smoothly clipped absolute deviation are continuous, but they change how the cost grows as a coefficient moves away from zero. This permits a different balance between exclusion and shrinkage. Sparsenet, one of the experimental baselines, traces solutions across choices within a penalty family using coordinate descent. It reuses previous fits to initialize related problems. The paper describes earlier evidence for the statistical value of these penalties, alongside a computational distinction: the procedures for finding local solutions lack bounds telling the reader how far those solutions are from the corresponding global minimum.
A penalty can also charge for each non-zero coefficient directly. That produces a discrete problem, even though the individual coefficients are real numbers. The size-constrained formulation asks for the best fit under a specified budget. The penalized formulation makes the budget an outcome of the fit and the price assigned to an additional variable. In the non-convex setting discussed here, varying that price need not recover every solution obtainable with a direct size limit. Fixing a budget is therefore a substantive choice about the question being asked, as well as a way to express the problem to the optimizer.
Why revisit exact search
Mixed integer optimization allows continuous quantities such as coefficient values to be decided jointly with discrete choices such as inclusion. The authors trace its practical development through better hardware and changes in solvers, including stronger methods for splitting the search, eliminating irrelevant decisions, adding constraints that improve bounds, and finding feasible assignments early. They cite a combined solver speedup factor of 580,000 for the comparisons covering 1991 to 2013, and a much larger estimate when historical hardware gains are included. The documented solver benchmark concerns mixed integer linear problems. The quadratic regression experiments provide the paper’s direct evidence about best subset selection.
A crucial feature of this approach is that search progress can be recorded in units of the objective. An optimizer may have a feasible subset with a low residual loss and still have a weak guarantee about its quality. It can also have substantially narrowed the range of losses that remain possible without identifying any better subset. Separating these forms of progress lets the authors investigate the method at practical time limits. Here, tractability means completing useful work on instances of realistic size within a suitable time budget. The mathematical complexity of the general problem still governs the scope of that claim.
The method, step by step
From a regression to a size-constrained search
The observations are organized into a response vector and a predictor matrix. Each row of the matrix contains the predictor values for an observation. Each column contains the values of a predictor across observations. The paper assumes that the predictor columns are centered and scaled to unit Euclidean norm. The linear representation is
y = Xβ + ε
Here y is the response vector, X is the predictor matrix with n rows and p columns, and β is the vector of p coefficients. Matrix multiplication gives Xβ, the fitted values at the observed rows. The vector ε represents the errors in the linear relationship. The residual at a proposed coefficient vector is the observed response minus its fitted value.
The quantity optimized in the least-squares case is
minimize over β: (1/2)‖y − Xβ‖₂² subject to ‖β‖₀ ≤ k
The squared Euclidean norm ‖·‖₂² sums the squares of the residuals. The factor 1/2 is a scaling convention for the loss. The notation ‖β‖₀ counts the indices at which β is non-zero. The symbol k is the maximum permitted count and ≤ makes it an upper limit. In particular, the specification permits fewer than k non-zero coefficients. The coefficient indices used by a fit are called its support.
For a fixed support, the loss is a convex quadratic function of the remaining coefficients. Each such problem can be solved by ordinary least squares on the relevant columns. The difficulty appears when comparing supports. Moving between them can require creating a new non-zero coefficient and discarding another, even when the fit is already optimal on its current columns. The feasible set is a union of coordinate subspaces, meaning spaces in which different groups of coefficients are fixed at zero. A continuous step from one feasible point towards another can cross a region where too many coordinates are non-zero.
The pipeline handles the choice of support at two levels. The first-order procedure searches for promising supports without branching over inclusion decisions. The integer optimizer starts with the strongest fit from that procedure and examines subsets while keeping track of how much improvement is still possible.
Best subset fitting at a given size limit
The steps in order.
Producing a fast candidate by hard thresholding
A gradient describes how the loss changes when the coefficients move. For least squares, it can be obtained from the current residual and the predictor columns.
∇g(β) = −Xᵀ(y − Xβ)
The function g is the half-squared residual loss. The symbol ∇ denotes the vector of partial derivatives with respect to the coordinates of β, and Xᵀ is the transpose of X. Multiplying by Xᵀ compares the residual with each column. The minus sign reflects the decrease in residual when a coefficient is adjusted in the direction that accounts for it. This calculation gives information about currently excluded predictors as well as those already in the fit.
A step opposite the gradient can create non-zero entries anywhere. The paper restores feasibility by retaining the largest entries in absolute value and setting the others to zero. This operation is called hard thresholding. To see why it is the right projection for this step, consider a vector c that may have non-zero entries in many positions. On any prespecified support, the closest vector keeps c exactly at the permitted positions. The squared approximation error then comes completely from the entries left out. Keeping the largest magnitudes discards the least squared mass.
Hₖ(c) = argmin over ‖β‖₀ ≤ k of ‖β − c‖₂²
Here c is the vector to be projected, and Hₖ(c) is the set of closest vectors with at most k non-zero entries. The notation argmin refers to the minimizing vectors. The norm in the objective compares a proposed β with c in Euclidean distance squared. When magnitudes tie at the cutoff, more than one projected vector can attain the same objective. The values that are kept preserve their signs and magnitudes from c.
The size-based rule differs from applying a fixed magnitude threshold. With a count limit, the cutoff depends on how the entries rank in the current vector. Even a small entry can survive when few other entries are larger. In the corresponding count-penalized projection, the decision to keep an entry instead depends on whether its contribution to approximation error justifies a fixed charge. This difference matters for convergence analysis because the weakest retained entry in the size-constrained procedure can approach zero.
Choosing the step and interpreting convergence
The first-order method applies more broadly than least squares. The paper considers a non-negative convex loss with a gradient whose changes are bounded by a constant times the change in input. This property is called Lipschitz continuity of the gradient. It allows a quadratic function to majorize, or lie above, the actual loss while agreeing with it at the current coefficients.
g(η) ≤ Qₗ(η, β) = g(β) + ⟨∇g(β), η − β⟩ + (L/2)‖η − β‖₂²
Here η is a candidate coefficient vector and β is the current one. The angle brackets indicate an inner product. Their term measures the change predicted by the gradient, and the squared-distance term covers the possible departure from that linear estimate. The function Qₗ is the quadratic upper approximation indexed by the constant L, chosen at least as large as ℓ, the Lipschitz constant of the gradient. For least squares the paper takes ℓ to be the largest eigenvalue of XᵀX. The choice of L sets how far a gradient step can move.
Completing the square reduces minimization of this upper approximation over sparse vectors to projecting an ordinary gradient step. The iteration becomes
βᵐ⁺¹ ∈ Hₖ(βᵐ − (1/L)∇g(βᵐ))
The vector βᵐ is the iterate at index m, and βᵐ⁺¹ is the next iterate. The step size is 1/L. The symbol ∈ permits any of the distance-minimizing projections returned by Hₖ. With a sparse starting point, every iterate of this version remains feasible. The objective cannot rise since the current point itself is feasible for the upper approximation and the update minimizes that approximation.
The method stops when the change between consecutive vectors meets a chosen tolerance. The authors describe using roughly 10⁻⁴ before polishing the coefficients. Polishing means taking the support at that point, fixing all other coefficients to zero, and solving the original continuous fitting problem on the retained columns. For least squares this is an ordinary regression on the smaller set. For least absolute deviation it is a linear optimization problem. Polishing makes it possible to stop iterating once the support is useful, even if its coefficients still have room to improve.
The paper also studies a variant that first computes the thresholded candidate and then searches along a line through the current iterate and the candidate. Its update has the form
βᵐ⁺¹ = λₘηᵐ + (1 − λₘ)βᵐ
Here ηᵐ is the sparse candidate from the thresholded gradient step starting at βᵐ. The scalar λₘ is chosen to minimize g along the line parameterized by this expression. The resulting βᵐ⁺¹ can use the union of entries from both vectors and can exceed the size budget. The thresholded ηᵐ supplies the sparse candidate. The authors found that the line-search variant gave better feasible loss values in their experiments, and they used it for the warm starts in the least-squares comparisons.
The convergence analysis concerns the basic update with feasible iterates. When L exceeds ℓ, loss improvement controls the squared distance moved at each step. Since the loss is bounded below, the steps tend to become small. If the smallest among the retained entries stays bounded away from zero, repeated support changes would require steps of a nonvanishing size. Under that condition the authors show that the support eventually stabilizes. The subsequent updates are ordinary gradient descent on the retained coordinates. Strong convexity on that support allows a linear rate once the support has stabilized.
The paper’s first-order stationarity condition is a fixed point of the thresholded update.
η ∈ Hₖ(η − (1/L)∇g(η))
Here η is a feasible vector, and the projection of a gradient step from it can return η itself. This condition implies that the gradient vanishes on the selected coordinates and that the projection keeps that choice when it considers the other coordinates. A least-squares fit on an arbitrary support can satisfy the first property alone. A global minimum satisfies the fixed-point condition under the step-size assumption. A stationary point with unused capacity in the size budget has zero gradient even on the excluded coordinates, giving an unconstrained minimum for the convex loss.
The paper gives a quantitative result for the smallest step observed over an iteration budget.
min over m = 1, …, M of ‖βᵐ⁺¹ − βᵐ‖₂² ≤ 2(g(β¹) − g(β∗)) / (M(L − ℓ))
Here M is the number of iterations being considered, β¹ is the starting vector, and β∗ is the stationary limit in the theorem’s setting. The constants L and ℓ are the chosen curvature bound and the gradient Lipschitz constant, with L strictly larger than ℓ. The left-hand side is the smallest squared change across successive iterates in the stated range. It controls an approximate fixed-point criterion, whereas the integer search supplies a bound on training loss relative to the global minimum. The convergence analysis also considers situations where the smallest retained magnitude tends to zero. With a limit point under the conditions in the paper, the objective can then converge to the unconstrained minimum even when the support continues changing.
Turning a candidate into a certified result
The integer formulation adds a binary variable for each coefficient. A binary value of zero forces the coefficient to vanish. A value of one leaves its coefficient available to the optimizer, which may still set it to zero. Limiting the sum of these binary values enforces the sparsity budget. One way to connect the binary decision and the coefficient is
−Mᵤzᵢ ≤ βᵢ ≤ Mᵤzᵢ
Here βᵢ is the coefficient at predictor index i, zᵢ is its binary switch in {0, 1}, and Mᵤ is a bound on the largest permissible absolute coefficient. If the switch is off, both endpoints are zero. If it is on, they delimit a symmetric interval. Summing the switches and constraining that sum to be at most k completes the size restriction. To preserve a global solution of the original subset problem, the interval must be wide enough to include the coefficients of at least one such solution.
A relaxation allows intermediate switch values between 0 and 1. This expands the feasible region and can only lower the minimum loss. The paper shows that, in coefficient space, the relaxed constraints are equivalent to an upper bound of Mᵤ on each absolute coefficient and a bound of Mᵤk on their sum. Dropping the individual bounds gives the usual constrained Lasso. This explains its connection to subset selection: the Lasso objective value in that relaxation gives a lower bound, while the extra coefficient bounds can make the relaxation tighter. An unnecessarily large value of Mᵤ gives fractional switches greater freedom and can leave the initial lower bound far below the best feasible loss.
The alternative used in the main formulations employs a type-one specially ordered set, abbreviated SOS-1.
(βᵢ, 1 − zᵢ) ∈ SOS-1
The pair consists of the coefficient βᵢ and the complement of its switch zᵢ. Membership in SOS-1 means that at most one member of the pair is non-zero. With zᵢ off, its complement is non-zero and βᵢ must vanish. With zᵢ on, the complement vanishes and βᵢ may take a non-zero value. The constraint expresses the selection logic without requiring a finite coefficient bound. The authors can then add valid bounds separately to improve the search.
The solver maintains a feasible fit, called an incumbent, and a lower bound on the best attainable objective. A warm start is an incumbent supplied when the search begins. Branching breaks the search into regions with different inclusion decisions. Relaxations bound what is achievable in those regions. If a region’s lower bound cannot improve the incumbent, it can be discarded. When the upper and lower bounds meet to the required tolerance, their agreement certifies the fit. Early termination leaves a gap between them that measures the remaining uncertainty in the optimized loss. A good incumbent can thus be valuable even if the solver discovers no better subset: it gives the search a strong value against which to compare its lower bounds.
Choosing what to bound
The authors give two arrangements of the least-squares objective. In the first, they expand it in the coefficients. Its quadratic part uses XᵀX and has dimension p. In the second they introduce fitted-value variables and express the quadratic part in those variables.
(1/2)ζᵀζ − ⟨Xᵀy, β⟩ + (1/2)‖y‖₂²
Here ζ is an n-dimensional vector constrained to equal Xβ, so ζᵀζ is the sum of its squared fitted values. The inner product of Xᵀy and β gives the cross term in the expanded residual loss. The final term depends only on the observed response y. With the fitted-value equality in place, the expression is the same loss as before. It uses a quadratic in n variables and a linear term in the p coefficients. This arrangement adds variables and equality constraints, but the quadratic part can be much smaller when observations are scarce relative to predictors.
Both arrangements can be strengthened with bounds. The paper considers individual magnitude limits on coefficients and fitted values, as well as limits on their sums of absolute magnitudes. Each kind restricts a different feature of the relaxation. An individual limit prevents a single entry from growing arbitrarily. A total limit helps when many moderate entries could otherwise be used together. Valid inequalities of these kinds can rule out fractional solutions of a relaxation while retaining an optimal sparse fit.
The first route to bounds uses the predictor geometry. Pairwise coherence is the largest absolute inner product between distinct standardized columns. Cumulative coherence asks how large the sum of absolute inner products can be between a column and a set of other columns of a given size. A restricted eigenvalue condition supplies a lower bound on the smallest eigenvalue of the Gram matrix for any subset within the budget. The Gram matrix summarizes inner products among columns in that subset. A lower eigenvalue bound controls how much coefficients can change while fitted values change only slightly.
For instance, the paper bounds the total coefficient magnitude by combining cumulative coherence with the largest absolute inner products of the response and predictor columns.
‖β̂‖₁ ≤ (∑ⱼ₌₁ᵏ |⟨X₍ⱼ₎, y⟩|) / (1 − μ[k − 1])
Here β̂ is an optimal least-squares subset fit, and ‖·‖₁ sums absolute entries. The column X₍ⱼ₎ is the predictor at position j after ordering columns by decreasing absolute inner product with y. The numerator sums the first k such magnitudes. The term μ[k − 1] is cumulative coherence with sets of size k − 1. The stated bound requires μ[k − 1] to be less than 1. The paper also bounds the largest coefficient using the restricted eigenvalue and derives fitted-value bounds using the row magnitudes and coefficient bounds. Exact cumulative coherence and restricted eigenvalues are difficult to obtain in general. The easily computed pairwise coherence can bound them, although the resulting inequalities can be weak for correlated designs.
A second route starts with the loss of a feasible sparse fit. Since an optimum achieves at least as good a fit, its coefficients belong to the continuous region defined by a loss no larger than this incumbent value.
(1/2)‖y − Xβ‖₂² ≤ UB
Here UB is a valid upper bound on the optimal loss, for instance the loss of the best feasible candidate from a short search. The remaining symbols have the same meanings as in the least-squares objective. The authors minimize and maximize each coefficient over this region, omitting the sparsity constraint. These are convex problems. Their extrema bound that coefficient in an optimal sparse fit. The largest absolute extrema give a common coefficient bound, and the largest coordinate bounds can be added up to bound the total magnitude of a sparse vector. The paper also discusses keeping coordinate-specific or asymmetric bounds when they are more informative.
The same loss region can be used to minimize and maximize each observation’s fitted value. This distinction matters when there are more predictors than observations. There may be directions in which the coefficients can move without changing the fitted response. The unrestricted region may then give unbounded coefficient ranges, whereas the fitted values are still bounded by their distances from y. The coordinate and fitted-value bound computations can be carried out independently for each quantity being bounded.
A further option uses the magnitude of a solution from a short, warm-started integer run to estimate useful limits. The paper gives expansion multipliers of 1.1, 1.5, and 2 as examples. Expanding around observed magnitudes can improve practical search, but the quality of a candidate’s objective alone cannot justify these coefficient limits. The provable bounds from the loss region and predictor geometry have a different basis. In high-dimensional examples the authors also explicitly restrict search to a neighborhood around a reference fit. They use the following pair of possible restrictions:
‖ζ − ζ⁰‖₁ ≤ Lζ,loc and ‖β − β⁰‖₁ ≤ Lβ,loc
Here β⁰ is a reference coefficient vector, ζ⁰ is its fitted-value vector, and ζ equals Xβ for the candidate being searched. The constants Lζ,loc and Lβ,loc are the radii for permitted changes in fitted values and coefficients, measured by sums of absolute differences. Either restriction can be made inactive. The first permits substitutions among predictors when they leave the fitted responses close to the reference. The second keeps the coefficients themselves close. An optimality proof with these constraints applies to the resulting neighborhood.
Extending the procedure and choosing a size
The formulation can accept linear side constraints on β. The examples in the paper focus on size-constrained squared and absolute residuals, with the latter specified by
minimize over β: g₁(β) = ‖y − Xβ‖₁ subject to ‖β‖₀ ≤ k
The function g₁ is the least absolute deviation loss. Its norm sums absolute residuals so the contribution of a residual grows with its magnitude. Its slope changes abruptly at zero, so the smooth first-order update cannot be used directly. The authors express the loss as a maximum over a bounded auxiliary vector and subtract a quadratic term inside the maximization.
g₁(β; τ) = sup over ‖w‖∞ ≤ 1 of [⟨y − Xβ, w⟩ − (τ/2)‖w‖₂²]
Here w has one entry for each residual, ‖w‖∞ is its largest absolute entry, and sup denotes the supremum over all such w satisfying the bound. The inner product pairs the auxiliary entries with the residuals. The positive scalar τ controls the smoothing through the quadratic penalty on w. The result has a Lipschitz continuous gradient, so the thresholded algorithms can solve the smoothed fitting problem. The procedure lowers τ and uses the previous solution to initialize the next stage. The paper gives 0.8 as an example of a shrinkage multiplier. Once the support is chosen, polishing uses the absolute residual loss itself. The integer formulation retains the support decisions while using linear optimization to represent absolute residuals.
For comparisons across sizes, the authors fit a sequence of subsets. At a given size the warm start comes from the best candidate obtained across multiple initializations. In the overdetermined statistical experiments they describe using solver callbacks to tighten the bound on the binary sum when moving to a smaller size. That lets the solver continue with the amended formulation instead of rebuilding it for every new budget. The held-out validation responses determine which budget to use for prediction. In experiments with synthetic data, the final error can then be assessed against the known signal, separately from both the training loss and the validation criterion.
Experiments and results
Data and measurements
The experiments ask whether the method finds good feasible fits, whether it can certify them, and whether the resulting predictions justify using the selected subsets. The paper uses synthetic data to control the true support, predictor correlations, and signal-to-noise ratio. Predictor rows are generated from a multivariate normal distribution and the columns are scaled to unit Euclidean norm. The squared-loss studies generate responses from a known sparse coefficient vector with independent Gaussian errors. The variance of the noise is chosen to obtain the desired signal-to-noise ratio, abbreviated SNR. That ratio compares the variance of the generated signal with the noise variance.
In Example 1, predictor correlations decay with distance between feature indices. The parameter ρ specifies this decay. The active variables are spaced across the index range and have equal effects. The design allows a relevant variable to be strongly correlated with nearby irrelevant variables even when the relevant variables are only weakly correlated with each other. Example 2 uses an identity covariance and 5 equal non-zero coefficients. Example 3 retains the identity covariance while using 10 non-zero coefficients spread across different positive magnitudes. Example 4 also uses an identity covariance, with 6 non-zero coefficients that have mixed signs and different magnitudes. These setups vary both the predictor geometry and the structure of the signal.
The Diabetes dataset supplies a real regression example. The authors include second-order interactions, giving 64 predictors, then randomly sample 350 observations and standardize the response and predictors. The Leukemia data supply a different kind of example. Their starting point is a preprocessed microarray dataset containing 72 binary responses and over 3,000 predictors. After standardization, they retain the 1000 predictors most strongly correlated in absolute value with that response. They use those predictor columns to construct a new continuous response with a known sparse signal and Gaussian noise at SNR 7. The experiments therefore use real predictor structure, while the response used in the subset regression is semi-synthetic.
When comparing feasible fits for a fixed budget, the paper measures the loss of each fit relative to the best feasible loss found in the comparison.
Relative Accuracy = (fₐₗ𝓰 − f∗) / f∗
Here fₐₗ𝓰 is the training objective obtained by the method under consideration, and f∗ is the smallest objective reached by the compared runs on the same instance. The quotient is the excess loss relative to that reference. A reported value of 0 means that the run matches the best observed feasible objective. The optimizer’s lower bound is a separate quantity used to determine whether the best observed objective is globally optimal.
For the statistical comparisons, the baseline methods vary with the experiment. The overdetermined least-squares comparisons use Lasso, Sparsenet, and stepwise regression alongside warm-started MIO. The high-dimensional comparisons include the standalone first-order method instead of stepwise regression. The authors also run separate comparisons with Lasso followed by ordinary least squares on its selected support, which they call debiased Lasso. The fitting and validation responses for each synthetic run use the same predictor matrix with different noise. The authors select a tuning setting on validation data for each procedure and report prediction error and the number of non-zero coefficients. In the overdetermined statistical study, results are averaged over ten random instances.
Prediction Error = ‖Xβ̂ − Xβ⁰‖₂² / ‖Xβ⁰‖₂²
Here β̂ is the coefficient vector selected using validation, β⁰ is the true coefficient vector in the synthetic experiment, and X is the predictor matrix. The numerator measures the squared difference between the selected fit’s predictions and the noiseless signal on those rows. The denominator is the squared magnitude of the signal there. The measure concerns recovery of fitted responses at the design points. Counting retained predictors adds information that error alone cannot provide: two regressions can predict similarly on these rows with very different numbers of non-zero coefficients.
How quickly the optimizer finds strong fits
For the Diabetes data, the authors compare the line-search procedure with fifty initializations, integer optimization from a cold start, and integer optimization initialized with the best first-order fit. The MIO runs have a limit of 500 seconds. At a size budget of 9, the methods achieve relative accuracies of 0.1306 for the standalone first-order search, 0.0036 for cold-start MIO, and 0 for warm-started MIO. The warm-start timing includes the initial first-order computation. The result illustrates how a feasible starting point of moderate quality can enable a search to find a stronger solution.
Diabetes training loss relative to the best observed fit at k = 9
Warm-started integer optimization reaches the best observed objective.
The numbers
| System or setting | relative accuracy |
|---|---|
| Standalone first-order search | 0.1306 |
| Cold-start MIO | 0.0036 |
| Warm-started MIO (this paper) | 0 |
At budgets of 20 and 49, the warm-started runs also reached the best observed loss, with reported times of 77 and 87 seconds, respectively. The cold-start relative accuracies at those budgets were 0.0042 and 0.0015. At a budget of 57, both integer methods reached the same best observed loss. The table reports 2 seconds for the warm-start time to that value and 500 seconds for the cold-start run. The examples demonstrate progress in the feasible objective. In separate Diabetes runs with size budgets of 6 and 7, the optimal fits were found within a few seconds, while the lower bounds took 10-20 minutes to provide the proof.
The high-dimensional upper-bound comparison uses Example 2 with 30 observations and 2000 predictors and a 500-second limit for the integer runs. At SNR 7 and a size budget of 5, the relative accuracies are 0.1647 for the standalone first-order method, 1.0510 for cold-start MIO, and 0 for the combined procedure. The warm-started run reaches that observed objective at 72.2 seconds. At SNR 3 and budget 8, the corresponding figures are 0.8293, 1.8972, and 0. The warm-start time at that setting is 262.5 seconds. Here even the initial heuristic can produce a better fit than cold-start MIO within the allotted time. Across the configurations in that comparison, the combination derived the lowest observed feasible loss.
On the semi-synthetic Leukemia data, the authors warm-start the optimizer at each tested size and give it 4000 seconds. They measure its objective over time relative to the objective it obtains at the end of the run. In the displayed cases, the integer search improves the first-order fit at every tested size. The feasible objective generally stabilizes earlier for smaller budgets. This time series shows the improvement available from continued search after initialization and how its timing changes with the size restriction. Its reference is the final incumbent from the allotted run.
Prediction when observations outnumber predictors
The main overdetermined comparison uses the correlated design of Example 1 with 500 observations, 100 predictors, and 10 true non-zero coefficients. The paper compares settings with ρ equal to 0.5, 0.8, or 0.9. Warm-started MIO typically has the lowest prediction error in the plotted comparison, with Sparsenet slightly ahead in some instances. Stepwise regression performs worst in the reported comparison. Lasso tends to retain more variables, especially as the correlation increases. Prediction improves across the methods as the signal becomes stronger relative to the noise, and the differences in error narrow.
The additional debiasing comparison gives exact numerical examples. At ρ of 0.9 and SNR 2.18, the mean numbers of non-zero coefficients after each procedure’s tuning setting is chosen on validation are 34.7 for Lasso, 20.5 for debiased Lasso, and 10.1 for MIO. The separately tuned debiased baseline fits least squares on each support along the Lasso path, then chooses among those refits using validation. For the same design and SNR, the mean prediction errors against the noiseless signal are 0.1265, 0.1254, and 0.0703, respectively. Here the smaller subset also yields the lowest prediction error.
Mean size of validation-selected fits in overdetermined Example 1 at ρ = 0.9 and SNR = 2.18
Best subset selection retains the fewest predictors in this comparison.
The numbers
| System or setting | mean nonzero coefficients |
|---|---|
| Lasso | 34.7 |
| Debiased Lasso | 20.5 |
| Warm-started MIO (this paper) | 10.1 |
The ranking is more mixed when the predictors are less correlated. At ρ of 0.5 and SNR 6.33, the mean prediction error is 0.0384 for Lasso, 0.0255 for debiased Lasso, and 0.0266 for MIO. The least-squares refit on a Lasso-selected support is slightly ahead of the subset fit in that setting. The corresponding mean counts of non-zero coefficients are 27.6, 10.9, and 10.8. Thus the much shorter fits obtained by subset selection and retuned debiasing can have similar predictive performance when predictor correlation is weaker and the signal is stronger. The paper also reports solving instances with 1000 observations and 50 predictors to provable optimality, while leaving the detailed statistical results for those runs unreported.
Prediction when predictors outnumber observations
The high-dimensional statistical experiments span 30 to 50 observations and 1000 to 2000 predictors. For the methods based on a size budget, the authors use ten candidate budgets in the interval beginning at 3 and ending at twice the true support size, including the true size itself. Each procedure’s final setting comes from validation. The paper’s illustrative results cover the correlated design and the designs with identity covariance, so differences in performance can be read in relation to both predictor correlations and coefficient magnitudes.
One correlated case uses 50 observations, 1000 predictors, ρ of 0.8, and 5 non-zero true coefficients. Here the warm-started integer method predicts better and retains fewer coefficients than the standalone first-order method in the reported comparison. The debiasing experiments on this design quantify the difference between the selected Lasso supports and the shorter subset fits. At SNR 7, the mean validation-selected sizes are 27.8 for Lasso, 8.1 for debiased Lasso, and 5 for MIO. The chart gives the corresponding mean prediction errors. At SNR 3, the mean errors rise to 0.257, 0.185, and 0.151, respectively, and the mean selected sizes are 28.0, 10.0, and 6.
Mean prediction error for validation-selected fits in high-dimensional Example 1 at SNR 7
Warm-started best subset selection has the smallest error against the known signal.
The numbers
| System or setting | normalized squared prediction error |
|---|---|
| Lasso | 0.122 |
| Debiased Lasso | 0.070 |
| Warm-started MIO (this paper) | 0.020 |
In Example 2 with 30 observations, 1000 predictors, and 5 equally sized effects, the methods give similar prediction errors. At the lowest SNR in the comparison, Lasso gives the best prediction, while the subset procedure still gives the sparsest fit. In Example 3 with 30 observations and 1000 predictors, the MIO and Lasso predictions are also comparable, but MIO gives much shorter fits. In Example 4 with 50 observations and 2000 predictors, the reported comparison favors MIO for both prediction and sparsity. The last example uses coefficients of both signs and unequal magnitudes. Together the settings show why it matters to report prediction and the number of retained variables side by side. They can favor different procedures on the same data.
Absolute residuals with heavy-tailed errors
The least absolute deviation experiments use the correlated design with ρ of 0.9 and 5 true non-zero coefficients. The errors come from a double exponential distribution, and their variance is adjusted to obtain different signal-to-noise ratios. The reported observation and predictor counts are 500 and 100 in the overdetermined study, and 50 and 1000 or 500 and 1000 in the high-dimensional studies. The baselines are the standalone first-order procedure for absolute loss and LAD-Lasso, which adds a penalty on the sum of absolute coefficient values. The validation procedure and prediction metric follow the least-squares comparisons.
The figures show that the two subset procedures give similar predictions and sparsity in these examples. The warm-started integer approach retains fewer variables and predicts more accurately than LAD-Lasso in the reported settings. The authors attribute the latter’s larger selected supports to the design, in which an irrelevant feature can be highly correlated with a relevant one. They also report that fitting subsets by least squares led to inferior predictions in these heavy-tailed examples. The evidence here concerns the displayed loss and noise settings, with the sparsity and error comparisons reported through figures.
What the ablations show
A stronger starting fit and stronger bounds play different roles
The paper examines the contribution of individual choices through comparisons of search procedures, restrictions, and refits. The cleanest comparison of candidate quality runs the standalone first-order search, cold-start MIO, and MIO initialized with the first-order candidate. On the Diabetes and high-dimensional synthetic instances the first-order method is fast and provides a feasible objective quickly. Its result can nonetheless lie well above the best objective reached by the combination. The cold-start optimizer can improve on the heuristic in some settings, but its results are less consistent within the time limit. In the high-dimensional table, it sometimes finishes with a larger loss than the heuristic. The combined runs show that the heuristic’s main value can be initialization, even when its own final answer is weaker.
The Diabetes study of certification compares cold starts against runs that receive both a starting fit and problem-specific bound information. The optimality gap closes faster in the equipped runs. This is evidence for the combined changes. The starting fit tightens the upper bound as soon as it is available, while the added constraints can help the solver raise the lower bound. Because the comparison changes both inputs, it cannot give a separate timing estimate for each one. The bound trajectories do show that finding an optimal fit and certifying it can be far apart in time. Measuring just one of these events could give a very different impression of the same solver run.
The paper also reports an empirical improvement from using the line-search first-order variant instead of the basic update to generate feasible candidates. The convergence analysis describes the latter more fully. In the computational pipeline, the line-search variant is used to get an incumbent with a lower loss, and the integer search takes responsibility for the global certificate. The evidence for using the variant is the quality of the feasible starting fits. The objective-gap comparison then measures what the solver can add to those fits.
Restricting coefficients or restricting fitted values
The high-dimensional experiments test neighborhoods defined in two spaces. Constraining fitted values keeps the predicted responses near those of a reference fit. It still permits quite different coefficients if several predictors can substitute for one another. Constraining the coefficients can rule out more such substitutions under a given choice of radius. The fitted-value version requires constraints associated with the observations, while the coefficient version requires constraints associated with the predictors. Consequently, the version that adds fewer quantities in a high-dimensional problem can still take longer to solve.
In the synthetic comparison with 50 observations, 500 predictors, ρ of 0.9, and 5 true effects, the fitted-value neighborhood at SNR 3 is defined with a radius of 0.5 times the total absolute magnitude of the reference fitted values. The coefficient neighborhood at the same SNR uses the total absolute magnitude of the reference coefficients divided by the size budget. The runs with the coefficient restriction close their gaps faster. The paper suggests strong column correlations as a possible reason. Since the radii are specified in different spaces and by different rules, this comparison establishes how those particular restrictions behaved. It cannot isolate the coordinate system from the effective tightness of the feasible region.
Varying the radius within the coefficient formulation gives a more direct comparison. On the synthetic design with 50 observations and 1000 predictors, the paper varies the radii at SNR 1 and SNR 3. The radius changes the time required for the gap to close, while the optimal solutions found in the displayed runs stay the same. The authors also report the same optimum across the tested radii for each of the Leukemia budgets of 5 and 10. These observations explain the appeal of restricting a search around a good candidate. In the tested instances, several neighborhoods contained a fit attaining the same objective. The guarantee from each constrained solve still applies within its own feasible set.
What changes when Lasso coefficients are refitted
The debiasing studies distinguish two interventions. The first uses the support of the Lasso fit that performed best on validation and refits its coefficients by unrestricted least squares. The selected variables are held fixed. The second refits on every Lasso support along the tuning path, then uses validation to select among the refitted regressions. This second procedure can choose a different support because its validation criterion is applied after the shrinkage has been removed.
For the overdetermined Example 1 at ρ of 0.5 and SNR 6.33, the reported ratio of Lasso prediction error to prediction error after refitting its selected support is 0.33. In the high-dimensional Example 1 at ρ of 0.8 and SNR 7, the corresponding ratio is 1.0. These are comparisons at Lasso’s original tuning choice. The authors suggest that fitting coefficients freely on an already dense support can overfit. Removing shrinkage is therefore insufficient to explain the performance of the sparsity-constrained method. The support selected before removal matters.
Retuning after the refit produces smaller supports and stronger predictions than Lasso in the additional comparisons. For instance, with 500 observations, 100 predictors, ρ of 0.5, and SNR 1.58, the mean validation-selected size is 28.0 for Lasso and 10.9 for debiased Lasso. MIO gives 10.2, close to the true count of 10 in this design. At that same setting the mean prediction errors are 0.1540, 0.1021, and 0.0901, respectively. Retuning lets least-squares refitting compete much more closely with subset optimization. It still draws its candidates from supports visited by Lasso. The integer search can visit other supports at the same budget, which is especially consequential in the paper’s more strongly correlated examples.
Which part of the data changes the ranking
The predictor and signal designs serve as controlled comparisons of the circumstances under which the methods diverge. Example 1 shows what can happen when neighboring columns are similar enough to act as substitutes. In the high-dimensional case, the first-order search alone can produce a fit whose validation-selected support is larger than the one obtained after MIO improves its candidate solutions. The large support of Lasso is particularly apparent here. An irregular signal is not needed to produce the difference, since this design assigns equal coefficients to the true predictors.
The examples with identity covariance remove systematic population correlation while varying the structure of the effects. With equal non-zero coefficients in Example 2, prediction errors are broadly similar. With unequal positive effects in Example 3, Lasso and MIO remain comparable in prediction while the latter gives a much shorter fit. With mixed signs and unequal magnitudes in Example 4, the comparison favors MIO on both outcomes. The examples vary dimensions and signal structure as well as coefficient signs. They illustrate when rankings can change, and they leave open the separate contribution of each feature of the data-generating setup.
Limitations
Limits the authors state
The authors define practical tractability in terms of the sizes and times that matter for the examples studied. They give no polynomial-time guarantee for cardinality-constrained regression. In some high-dimensional settings, the method finds strong incumbents in minutes and needs hours to prove optimality. A practitioner with a time budget obtains whatever gap the solver has established by that time. The gap can remain appreciable if relaxations provide little information about the best possible fit. The dependence of run time on the size budget, correlations, formulation, and supplied bounds is visible throughout the experiments.
The authors also describe their runtime measurements as demonstrations with their chosen solver and general settings. They report seeing possible speedups by tailoring solver settings to particular instances, while using defaults for their broader comparisons. In the overdetermined statistical training sequence they limit each size to an optimality gap of 1% or a runtime of 15 minutes, whichever comes first, with size budgets from 5 through 25. Those stopping conditions make it important to distinguish a validated fit obtained from a bounded run from an exact optimum at every budget in the sequence.
The statistical appendix reviews existing theory for optimal subset fits under sparse linear assumptions and discusses prediction bounds for thresholded Lasso that depend on the conditioning of the predictor matrix. It cites work on inexact solutions to a count-penalized problem as relevant to the practical use of near-optimal fits. The authors leave a precise characterization of the statistical properties of suboptimal solutions to their size-constrained problem for future work. A bound on excess training loss therefore gives an optimization guarantee with a clear interpretation. The paper does not derive a corresponding bound on excess prediction error, coefficient estimation error, or the probability of identifying the true variables for every early-stopped solution.
The authors present the least absolute deviation experiments as representative illustrations. The main computational and statistical study concerns squared loss. The formulation accommodates linear restrictions on the coefficients, but the reported comparisons give much more detail about cardinality and the two loss functions than about performance across different side-constrained applications.
Limits of the experimental design
In the synthetic comparisons, the response is produced from a specified sparse linear signal. That is a setting in which the premise of subset selection holds by construction. The validation responses have fresh noise at the same predictor rows, and final prediction error is measured by comparing predictions with the true signal at those rows. The design gives a clean reading of how the methods recover that signal. Its answers are conditional on the predictor distribution and the assumed regression relationship. It leaves questions about generalization to new predictor populations or departures from sparse linear structure open.
The size grids available to subset procedures in the high-dimensional synthetic comparisons are specified using the known true support size, and the exact size is included. This is informative for comparing methods when a useful candidate range is available. On data whose support is unknown, the range must be chosen using other information. Searching over different ranges can change both the fitted result selected by validation and the computational cost. Similarly, the high-dimensional Leukemia example uses a response generated after selecting columns using the original response. It gives evidence about optimization on an empirically derived predictor matrix. Performance on the original binary outcome is outside that experiment.
Selected size is a useful descriptive measure, but a count close to the true support size can still include incorrect variables. Correlated columns make the distinction important because different choices can give similar fitted values. A global training-loss certificate at a specified size can coexist with ambiguity about the statistical identity of the relevant predictors. The examples support the authors’ argument that best subset fitting frequently gives sparse and accurate predictions under their designs. The cases in which Sparsenet or Lasso predicts as well or better help delimit that argument.
Finally, certificates depend on which constraints are active. Bounds derived from the theory or a valid loss region can preserve a global optimum of the original subset problem. Limits estimated from an incumbent’s coefficient magnitudes require separate justification for that use. A constraint keeping the search close to a reference deliberately narrows the feasible region, so the certificate applies to the neighborhood. Agreement across several radii is empirical evidence about those runs. It does not rule out an improvement outside all the neighborhoods considered. This distinction is especially relevant in the high-dimensional experiments, where the expense of ruling out distant subsets is part of what makes an unrestricted proof difficult.
What came after
Because the entry lists no later works for the paper, it gives no account of how subsequent research took up the paper.
Cite
Cite as Dimitris Bertsimas, Angela King and Rahul Mazumder. 2016. Best subset selection via a modern optimization lens. The Annals of Statistics.
@article{bertsimas2016best,
title = {{Best subset selection via a modern optimization lens}},
author = {Dimitris Bertsimas, Angela King and Rahul Mazumder},
journal = {The Annals of Statistics},
year = {2016},
doi = {10.1214/15-aos1388},
eprint = {1507.03133},
archivePrefix = {arXiv},
url = {https://doi.org/10.1214/15-aos1388}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bertsimas-2016-best-subset-selection-modern-optimization/