# Variable Selection via Thompson Sampling

arXiv: https://arxiv.org/abs/2007.00187 · HTML: https://mlsanity.com/paper/2007.00187/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 1 Jul 2020.

## Built on by (most cited first, 7 of 7)

- [Thompson Sampling Itself is Differentially Private](https://mlsanity.com/paper/2407.14879/) (2024)
- [Measuring the Driving Forces of Predictive Performance: Application to Credit Scoring](https://mlsanity.com/paper/2212.05866/) (2022)
- [Top-k Feature Importance Ranking](https://mlsanity.com/paper/2509.15420/) (2025)
- [Generalized Bayesian Additive Regression Trees: Theory and Software](https://mlsanity.com/paper/2304.12505/) (2023)
- [Is Offline Decision Making Possible with Only Few Samples? Reliable Decisions in Data-Starved Bandits via Trust Region Enhancement](https://mlsanity.com/paper/2402.15703/) (2024)
- [DARTS: Targeting Prognostic Covariates in Budget-Constrained Sequential Experiments](https://mlsanity.com/paper/2605.06608/) (2026)
- [Stochastic Sequential Search in Very-High-Dimensional Feature Selection](https://mlsanity.com/paper/2608.01502/) (2026)

## Abstract (arXiv)

Thompson sampling is a heuristic algorithm for the multi-armed bandit problem which has a long tradition in machine learning. The algorithm has a Bayesian spirit in the sense that it selects arms based on posterior samples of reward probabilities of each arm. By forging a connection between combinatorial binary bandits and spike-and-slab variable selection, we propose a stochastic optimization approach to subset selection called Thompson Variable Selection (TVS). TVS is a framework for interpretable machine learning which does not rely on the underlying model to be linear. TVS brings together Bayesian reinforcement and machine learning in order to extend the reach of Bayesian subset selection to non-parametric models and large datasets with very many predictors and/or very many observations. Depending on the choice of a reward, TVS can be deployed in offline as well as online setups with streaming data batches. Tailoring multiplay bandits to variable selection, we provide regret bounds without necessarily assuming that the arm mean rewards be unrelated. We show a very strong empirical performance on both simulated and real data. Unlike deterministic optimization methods for spike-and-slab variable selection, the stochastic nature makes TVS less prone to local convergence and thereby more robust.
