Bayesian Variable Selection in a Million Dimensions

Martin JankowiakAISTATS 2023

Introduction

Identifying a small number of relevant predictors among a massive set of candidates—known as variable selection—is a fundamental task in fields ranging from genomics to economics. While Bayesian methods offer a robust framework for quantifying uncertainty in these selections, they traditionally struggle with the "combinatorial explosion" of model space and the prohibitive computational cost of Markov Chain Monte Carlo (MCMC) sampling in high dimensions. When the number of covariates $P$ reaches the millions, standard $O(P)$ per-iteration costs render inference impossible.

The Subset wTGS Framework

To address these challenges, this work introduces a scalable MCMC framework centered on Subset Tempered Gibbs Sampling (Subset wTGS). The core innovation lies in reducing the per-iteration computational complexity from $O(P)$ to $O(S)$, where $S \ll P$ is a small subset of "active" variables.

By maintaining a fixed "anchor set" of promising variables and sampling the remaining candidates in small batches, the algorithm achieves sublinear scaling in $P$. This approach is further extended to non-Gaussian data, such as logistic and negative binomial regression, using Polya-Gamma (PG) augmentation. This technique restores mathematical conjugacy, allowing for efficient closed-form updates even for count-based outcomes.

Computational speed and statistical efficiency of Subset wTGS compared to standard wTGS as a function of subset size S.

As shown in the figure above, Subset wTGS provides a dramatic increase in iterations per second compared to the standard wTGS baseline (which remains fixed at approximately 3.6 iter/sec). Crucially, by utilizing an anchor set ($A = S/2$), the method also achieves significantly higher relative statistical efficiency, ensuring that the speedup does not come at the cost of sampling quality.

Scaling to a Million Dimensions

The effectiveness of the proposed framework was evaluated on several high-dimensional datasets, including a semi-synthetic maize genomic dataset scaled to $P = 1,000,000$ covariates. On a single NVIDIA Tesla T4 GPU, the Subset wTGS sampler successfully processed the million-dimension problem in approximately 35 minutes.

Performance metrics (Sensitivity, Precision, RMSE) and computational scaling (Runtime, Iterations per second) as the number of covariates P increases.

Empirical results demonstrate that the method maintains high accuracy as the problem size grows. As seen in the performance plots, Sensitivity, Precision, and Predictive RMSE remain remarkably stable across a wide range of $P$ (from 150,000 to 750,000). While the runtime increases with $P$, the degradation in iterations per second is manageable, confirming the practical feasibility of performing Bayesian inference at this scale.

Implementation and Applications

The methods are implemented in the open-source Python library millipede, which leverages GPU acceleration to handle massive covariate matrices. Beyond synthetic benchmarks, the framework has been applied to real-world problems such as identifying essential genes in the Cancer Dependency Map (DepMap) and analyzing SARS-CoV-2 viral mutations. In these applications, the proposed PG-wTGS method outperformed existing state-of-the-art baselines, providing more stable and lower-variance estimates of variable importance.

Conclusion

By combining subset-based tempering with efficient data augmentation, this work demonstrates that Bayesian variable selection is no longer restricted to small or moderate dimensions. The ability to perform high-quality inference in a million dimensions opens new avenues for discovery in data-rich scientific domains. Future work aims to address the linear scaling in the number of observations $N$ and explore multi-GPU configurations to push the boundaries even further.

Summary updated

BibTeX
@inproceedings{jankowiak2023bayesian,
  author = {Martin Jankowiak},
  title = {{Bayesian Variable Selection in a Million Dimensions}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure