Abstract
A contextual bandit is a popular framework for online learning to act under uncertainty. In practice, the number of actions is huge and their expected rewards are correlated. In this work, we introduce a general framework for capturing such correlations through a mixed-effect model where actions are related through multiple shared effect parameters. To explore efficiently using this structure, we propose Mixed-Effect Thompson Sampling (meTS) and bound its Bayes regret. The regret bound has two terms, one for learning the action parameters and the other for learning the shared effect parameters. The terms reflect the structure of our model and the quality of priors. Our theoretical findings are validated empirically using both synthetic and real-world problems. We also propose numerous extensions of practical interest. While they do not come with guarantees, they perform well empirically and show the generality of the proposed framework.
Introduction
Standard contextual bandit algorithms, such as LinUCB or Thompson Sampling, often struggle with the "curse of dimensionality" when the action space is massive. In real-world applications like movie recommendations or online advertising, it is statistically impossible to explore every action independently. However, actions are rarely independent; for instance, a user’s preference for one sci-fi movie often correlates with their preference for others.
This paper addresses the challenge of mathematically capturing these correlations to enable more efficient exploration. While previous hierarchical models assumed actions were centered around a single global parameter, this work introduces a flexible "mixed-effect" model where actions can simultaneously depend on multiple shared latent factors.
Methodology
The core of the proposed framework is a two-level graphical model that explicitly represents the relationships between shared categories and specific actions.
The meTS Algorithm
The model consists of:
- Effect Parameters ($\Psi_*$): Shared, unknown parameters representing broad categories (the "parents").
- Action Parameters ($\theta_{*,i}$): Parameters for specific actions (the "children") generated from a weighted combination of effect parameters plus action-specific noise.
To maintain computational efficiency, meTS avoids calculating a massive joint posterior. Instead, it employs hierarchical sampling: first sampling effect parameters from the global posterior, then sampling individual action parameters conditioned on those effects, and finally choosing the action that maximizes expected reward. This approach exploits conditional independence to reduce space complexity from $O(K^2 d^2)$ to $O((L^2 + K)d^2)$, where $K$ is the number of actions and $L$ is the number of effects.
Empirical Evaluation
The authors evaluated meTS against standard baselines using both synthetic benchmarks and the MovieLens 1M dataset. The synthetic tests covered both linear and logistic reward functions, varying the number of actions ($K$), effect parameters ($L$), and feature dimensions ($d$).
In synthetic tests, meTS consistently outperformed standard baselines like LinTS and LinUCB, as well as simpler hierarchical models (HierTS) that utilize only a single parent parameter. In real-world experiments with MovieLens, meTS demonstrated robustness to model misspecification, achieving the lowest regret even when the underlying reward structure did not perfectly match the mixed-effect assumptions.
Key Insights
- Structure as a Shortcut: Learning about one action provides information about its underlying "effects," which updates knowledge about all other actions sharing those effects.
- Regret Decomposition: The theoretical analysis provides a Bayes regret bound of $\tilde{O}(\sqrt{nd(K\sigma_0^2 + L\sigma_\Psi^2)})$. This bound formally quantifies how the benefit of shared effects becomes dominant as the number of actions $K$ grows.
- Proxy Structures: The framework is practical even when the exact mixed-effect structure is unknown; offline data and clustering (e.g., Gaussian Mixture Models) can be used to build effective proxy structures.
Conclusion and Future Work
Mixed-Effect Thompson Sampling provides a scalable and theoretically grounded approach to large-scale contextual bandit problems. While the current work assumes known mixing weights, future research may explore learning these weights online through representation learning. Additionally, extending the logic to deeper hierarchies (e.g., Genres $\to$ Sub-genres $\to$ Movies) could further optimize exploration in hyper-scale systems.
Summary updated