NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tractable Post-Selection Maximum Likelihood Inference for the Lasso

Amit Meir, Mathias DrtonarXiv 2017 · DOI

Abstract

Applying standard statistical methods after model selection may yield inefficient estimators and hypothesis tests that fail to achieve nominal type-I error rates. The main issue is the fact that the post-selection distribution of the data differs from the original distribution. In particular, the observed data is constrained to lie in a subset of the original sample space that is determined by the selected model. This often makes the post-selection likelihood of the observed data intractable and maximum likelihood inference difficult. In this work, we get around the intractable likelihood by generating noisy unbiased estimates of the post-selection score function and using them in a stochastic ascent algorithm that yields correct post-selection maximum likelihood estimates. We apply the proposed technique to the problem of estimating linear models selected by the lasso. In an asymptotic analysis the resulting estimates are shown to be consistent for the selected parameters and to have a limiting truncated normal distribution. Confidence intervals constructed based on the asymptotic distribution obtain close to nominal coverage rates in all simulation settings considered, and the point estimates are shown to be superior to the lasso estimates when the true model is sparse.

Introduction

In modern data science, model selection and inference are often performed on the same dataset. We use tools like the Lasso to scan hundreds of potential predictors and select the most relevant ones. However, this practice incurs a "selection tax": standard statistical tools, such as p-values and confidence intervals, assume the model was fixed a priori.

When the same data is used for both selection and testing, the resulting estimates are biased and confidence intervals are often too narrow. This occurs because the observed data is "truncated"—we only observe data that was strong enough to pass the selection threshold. Calculating the exact probability of this selection event involves high-dimensional integrals that are notoriously difficult to solve, making standard Maximum Likelihood Estimation (MLE) nearly impossible for complex models. This paper introduces a practical way to perform valid statistical inference after Lasso selection by bypassing these intractable calculations.

Methodology: Stochastic Post-Selection MLE

The authors propose a "tractable" workaround that avoids direct calculation of the selection probability integral.

The Score Function Trick

Instead of maximizing the likelihood directly, the method focuses on the score function (the derivative of the log-likelihood). For exponential family distributions, the score function is the difference between the observed data and its expected value under the selected model.

Stochastic Gradient Ascent and Gibbs Sampling

While the expected value under the truncated distribution cannot be calculated analytically, it can be estimated via sampling. The authors use a Gibbs sampler to generate synthetic data points from the truncated distribution—the space of data that would have resulted in the same model being selected. For the Lasso specifically, they developed a specialized Delayed Rejection Metropolis-Hastings sampler to efficiently navigate the shifting boundaries created when coefficient signs change.

The algorithm proceeds by taking small steps in the direction of the estimated score (the gradient). Over many iterations, this stochastic ascent converges to the correct post-selection MLE.

Key Insights and Results

The proposed method provides several advantages over "naive" inference or standard Lasso estimates.

Adaptive Shrinkage

A key feature of the conditional MLE is its natural "shrinkage" property. If a variable was only marginally strong enough to be selected, the algorithm recognizes it might be an outlier and pulls the estimate toward zero. Conversely, if the signal is overwhelmingly strong, the estimate remains close to the observed value.

Adaptive shrinkage of the conditional maximum likelihood estimate for one-sided and two-sided tests.

Performance in Simulations

The paper evaluates the method using comprehensive simulation studies, including normal means simulations and high-dimensional Lasso simulations ($n=400, p=1000$).

  • Consistency: The estimator is mathematically proven to be consistent for the selected parameters as sample size grows.
  • Coverage Rates: "Naive" confidence intervals often fail, sometimes covering the true value only 40% of the time. In contrast, the authors' Conditional-Wald intervals achieved close to the nominal 95% coverage across all tested scenarios.
  • Superior Point Estimates: When the true model is sparse, the conditional MLE outperformed both standard Lasso and "refitted" least-squares methods.

Limitations and Future Work

While the method shows excellent performance, some areas remain for future exploration:

  • Theoretical Proofs: A rigorous theoretical proof for the "Wald-like" distribution in the post-selection case is still needed, despite strong empirical results.
  • Distributional Assumptions: The current framework assumes Gaussian noise. Extending this to other distributions within the exponential family is a logical next step.
  • Computational Scaling: The cost of the Gibbs sampler increases with the number of variables, which may pose challenges for extremely high-dimensional datasets.

The authors have released a software package to accompany the paper, available at github.com/ammeir2/selectiveMLE.

Summary updated

BibTeX
@misc{meir2017tractable,
  author = {Amit Meir and Mathias Drton},
  title = {{Tractable Post-Selection Maximum Likelihood Inference for the Lasso}},
  year = {2017},
  eprint = {1705.09417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.09417},
}
Figure