Adaptive Data Augmentation for Thompson Sampling

Wonyoung KimarXiv 2025 · DOI

Abstract

Thompson Sampling (TS) is a widely used algorithm for contextual bandits, known for its strong empirical performance. However, a theoretical gap has persisted between its regret bounds and the minimax optimal rate achieved by algorithms like LinUCB. We present Hypothetical Coupled Sample Augmented Thompson Sampling (HCSA+TS), a novel approach that utilizes adaptive data augmentation and a coupling technique to bridge this gap. HCSA+TS achieves the minimax optimal regret bound of $\tilde{O}(d\sqrt{T})$ under standard assumptions, removing the need for restrictive context distribution requirements.

Introduction

In the Linear Contextual Bandit (LinCB) problem, an agent must choose actions (arms) based on $d$-dimensional context vectors to maximize rewards. The rewards are assumed to be a linear function of the context and an unknown parameter $\theta$. Historically, two main strategies have dominated this field:

  1. LinUCB: Based on the principle of "optimism in the face of uncertainty," it provides optimal theoretical guarantees but can be overly conservative in practical applications.
  2. Thompson Sampling (LinTS): A Bayesian-style sampling approach that is often faster and more effective in real-world scenarios. However, LinTS has suffered from a theoretical "gap," with its best-known frequentist regret bound being $\tilde{O}(d^{3/2}\sqrt{T})$, significantly worse than the minimax lower bound of $\Omega(d\sqrt{T})$.

The core challenge for Thompson Sampling is "selective observation." Because the agent only observes rewards for the arms it chooses, it can be difficult to estimate rewards for all possible directions in the context space. This leads to higher variance and sub-optimal theoretical performance. Previous attempts to reach the optimal bound required assuming that contexts are independent and identically distributed (IID) or sufficiently "diverse," assumptions that often fail in practice.

The HCSA+TS Algorithm

To address these limitations, we propose Hypothetical Coupled Sample Augmented Thompson Sampling (HCSA+TS). This algorithm introduces three primary innovations designed to stabilize the reward estimator without introducing excessive noise:

  • Hypothetical Contexts: The algorithm constructs a set of "hypothetical" contexts using an eigen-decomposition of the context covariance matrix. These contexts are designed to preserve the "shape" of the data while minimizing the number of samples required for training.
  • Adaptive Data Augmentation: By augmenting the training set with these hypothetical samples, the algorithm ensures that the "Gram matrix"—the mathematical structure controlling estimation error—remains well-conditioned in all directions, even those the agent has not yet explored.
  • Coupling and Resampling: Since rewards for hypothetical arms cannot be observed, the algorithm employs a coupling trick. It uses a Candidate-Arm Sampler (CAS) to resample the policy until the chosen arm "matches" a hypothetical action. This allows the use of real observed rewards to update an estimator that behaves as if it had access to a much richer, augmented dataset.

Key Results and Theoretical Impact

The primary contribution of this work is closing the long-standing theoretical gap in Thompson Sampling literature. As shown in the table below, HCSA+TS is the first variant to achieve the minimax optimal regret bound under standard assumptions.

Comparison of regret bounds and assumptions across major Linear Thompson Sampling literature.

Empirical Performance

Beyond theoretical proofs, HCSA+TS was evaluated using simulated data designed to mimic difficult real-world conditions, such as high-dimensional contexts ($d=30$) and missing information (randomly zeroing out context entries).

  • Superiority: HCSA+TS consistently achieved lower cumulative regret compared to standard LinTS, LinUCB, and other recent variants like DRTS and HyRan.
  • Robustness: The algorithm proved particularly effective in "missing context" scenarios. While other estimators' errors increased due to incomplete information, HCSA+TS maintained steady convergence thanks to its orthogonal augmentation strategy.

Conclusion

HCSA+TS demonstrates that it is possible to achieve minimax optimality for Thompson Sampling without relying on restrictive context distributions or adding artificial noise. By improving the quality of the underlying reward estimator through adaptive data augmentation, we provide a more robust and theoretically sound framework for contextual bandits. Future work will explore extending these coupling and augmentation techniques to non-linear models, such as Neural Bandits, and more complex reinforcement learning environments.

Summary updated

BibTeX
@misc{kim2025adaptive,
  author = {Wonyoung Kim},
  title = {{Adaptive Data Augmentation for Thompson Sampling}},
  year = {2025},
  eprint = {2506.14479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.14479},
}
Figure