Linear Ensemble Sampling with Smaller Ensembles

Taehyun Hwang, Min-hwan Oh

TL;DR

This paper introduces LinES-ER (Linear Ensemble Sampling with Epoch Refresh), a novel algorithm for linear contextual bandits that drastically reduces the number of models needed in an ensemble without sacrificing performance. By refreshing the ensemble only when the underlying data geometry changes significantly, the authors shrink the required ensemble size from $\Theta(d \log T)$ to $\Theta(d \log d + d \log \log T)$ while simultaneously achieving state-of-the-art regret bounds for both finite and infinite action spaces.

What Problem Does This Paper Address?

In sequential decision-making problems (like online recommendation systems), algorithms must balance exploring new options ("arms") and exploiting known good ones. Popular methods like Thompson Sampling (TS) and Perturbed-History Exploration (PHE) offer strong theoretical guarantees but face severe computational bottlenecks: TS requires difficult posterior sampling in complex models, and PHE requires resampling perturbations for the entire history at every step.

Ensemble Sampling (ES) is a practical alternative that avoids these issues by maintaining a fixed collection of $m$ models and picking one greedily at each round. However, a major theoretical gap remained: existing proofs required the ensemble size to scale with the time horizon ($\Theta(d \log T)$), making ensembles unnecessarily large when running for a long time. Furthermore, standard ES couldn't recover the sharper $\tilde{O}(d\sqrt{T \log K})$ regret bound typically enjoyed by TS/PHE when choosing from a finite set of $K$ arms. This is because ensemble perturbations persist over time, creating an adaptive coupling between past actions and model updates that breaks standard statistical concentration arguments.

Methods

The authors propose Linear Ensemble Sampling with Epoch Refresh (LinES-ER). The core innovation is an epoch-refresh mechanism. Instead of letting the ensemble run indefinitely or resetting it at fixed intervals, the algorithm monitors the regularized Gram matrix ($V_t$), which tracks the geometric distribution of the chosen arms.

An epoch ends, and the ensemble is refreshed, only when the Gram matrix grows substantially by a multiplicative factor $\alpha$: $$V_{t-1} \not\preceq (1 + \alpha)V_{\tau}$$

When this condition triggers, the algorithm reinitializes the ensemble perturbations based on the current Gram matrix. This localizes the mathematical analysis to stable epochs. Additionally, the paper provides an anytime implementation using a doubling schedule that allows the ensemble size to grow dynamically if the time horizon is unknown, crucially without discarding past data or resetting the model.

Datasets

The algorithm was evaluated using synthetic stochastic linear bandit instances where arms are sampled uniformly from a unit Euclidean ball $\mathbb{B}_2^d$ or a unit sphere in $\mathbb{R}^d$. No real-world datasets were used, which is standard practice for validating the tight theoretical bounds of contextual bandit algorithms.

Key Insights and Ideas

  • Localization Tames Horizon Dependence: Restricting the perturbation analysis to epochs where the data covariance remains stable removes the heavy $\log T$ dependence from the ensemble size complexity, replacing it with a much slower-growing $\log \log T$ term.
  • Breaking Persistent Coupling: In standard ES, persistent perturbations mean errors compound adaptively based on the algorithm's own choices. Refreshing at epoch boundaries limits how long this adaptive dependence can accumulate, enabling arm-wise concentration bounds that finally unlock the sharper $\sqrt{\log K}$ scaling for finite arm sets.
  • Seamless Anytime Scaling: Because the epoch-refresh mechanism naturally aligns the ensemble with the current data geometry, the algorithm can scale up the ensemble size on the fly during a doubling schedule without needing to replay or discard historical data.

Key Results

  • Ensemble Size Reduction: LinES-ER reduces the sufficient ensemble size to $\Theta(d \log d + d \log \log T)$, approaching the intrinsic theoretical lower bound of $\Omega(d)$.
  • Dual Regret Optimality: It is the first ensemble method to simultaneously achieve both canonical randomized linear bandit regret bounds: $\tilde{O}(d^{3/2}\sqrt{T})$ for arbitrary arm sets and $\tilde{O}(d\sqrt{T \log K})$ for finite arm sets.
Table 1: Comparison of regret bounds and ensemble complexities for linear ensemble sampling. Here d is the feature dimension, K is the number of arms, T is the horizon, and δ is the failure probability in high-probability regret guarantees. The dependence on δ is omitted for results stated in Bayesian regret, where no high-probability failure parameter is used. Logarithmic factors other than those displayed are suppressed in the regret bounds.
  • Empirical Speedups: In simulations with $d=30$ and $T=10,000$, LinES-ER achieved identical cumulative regret to standard LinES while requiring only one-third of the ensemble size (178 vs. 553 models). This translated to a 30.5% reduction in total runtime. At $d=50$, the runtime reduction improved to 36.55%.

Limitations and Future Work

The primary limitation is that the current analysis and guarantees are strictly tied to linear reward functions and linear contextual bandits. While ensembles are widely used alongside deep neural networks in practice (e.g., deep RL), extending these rigorous, smaller-ensemble theoretical guarantees to complex, nonlinear reward settings remains an open challenge for future work.

Summary updated

BibTeX
@inproceedings{hwang2026linear,
  author = {Taehyun Hwang and Min-hwan Oh},
  title = {{Linear Ensemble Sampling with Smaller Ensembles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cC5lywZ79h},
}
Figure