Bayesian Off-Policy Evaluation and Learning for Large Action Spaces

Imad Aouali, Victor-Emmanuel Brunel, David Rohde, Anna Korba

Abstract

In interactive systems, actions are often correlated, presenting an opportunity for more sample-efficient off-policy evaluation (OPE) and learning (OPL) in large action spaces. We introduce a unified Bayesian framework to capture these correlations through structured and informative priors. In this framework, we propose sDM, a generic Bayesian approach for OPE and OPL, grounded in both algorithmic and theoretical foundations. Notably, sDM leverages action correlations without compromising computational efficiency. Moreover, inspired by online Bayesian bandits, we introduce Bayesian metrics that assess the average performance of algorithms across multiple problem instances, deviating from the conventional worst-case assessments. We analyze sDM in OPE and OPL, highlighting the benefits of leveraging action correlations. Empirical evidence showcases the strong performance of sDM.

Introduction

Modern interactive systems, such as online advertising and recommendation engines, operate in environments with massive action spaces. Evaluating new strategies (OPE) or learning optimal ones (OPL) from logged data is challenging because many actions are rarely observed. Standard frequentist methods like Inverse Propensity Scoring (IPS) suffer from high variance due to extreme importance weights. While Direct Methods (DM) offer more stability by modeling rewards directly, they often treat actions as independent, failing to exploit underlying similarities.

We present the structured Direct Method (sDM), a Bayesian framework designed to overcome the "curse of dimensionality" by using informative priors to share information across correlated actions. By leveraging these correlations, sDM achieves significantly higher sample efficiency, particularly in data-scarce regimes.

The sDM Framework

The core of sDM is a hierarchical Bayesian model that explicitly represents action correlations. As illustrated in Figure 1, the model assumes a latent parameter $\psi$ that captures the shared structure of the environment. Each action $a$ is associated with a parameter $\theta_a$, which is generated from $\psi$ via a known prior function.

Hierarchical Bayesian model capturing action correlations.

When a reward is observed for a specific action, the Bayesian update propagates this information through the latent $\psi$ to all related actions. For computational efficiency, we focus on the Linear-Gaussian case, which allows for closed-form updates that scale linearly ($O(K)$) with the number of actions. Furthermore, we introduce the Bayesian Suboptimality (BSO) metric, which evaluates average performance across environments drawn from the prior. Under this metric, we prove that a simple greedy policy—acting according to the posterior mean—is optimal, avoiding the need for complex pessimistic strategies often required in frequentist OPL.

Experimental Evaluation

We evaluated sDM across synthetic environments and real-world datasets, including MovieLens 1M and KuaiRec. In MovieLens, movie clusters were used to define the structured prior, while KuaiRec provided a fully observed interaction matrix for rigorous benchmarking.

Performance of sDM in OPE and OPL tasks under likelihood misspecification.

As shown in Figure 3, sDM (red line) demonstrates remarkable robustness and performance. In OPE tasks, it achieves significantly lower Mean Squared Error (MSE) than standard DM and IPS variants. In OPL tasks, it maintains high relative reward even with very few samples. Notably, sDM remains effective even when the likelihood is misspecified (e.g., using Gaussian models for non-Gaussian rewards), as it successfully captures the relative ranking of actions.

Discussion and Conclusion

The sDM framework provides a scalable, sample-efficient approach to OPE and OPL in large action spaces. By embedding structural knowledge into the prior, it enables learning about actions that have never been seen in the logs. Key insights include:

  • Structure as a Multiplier: Information sharing across actions drastically reduces the data required for accurate evaluation and learning.
  • Scalability: The $O(K)$ complexity makes sDM viable for industrial-scale systems.
  • Robustness: The method performs well even under model misspecification.

Future work will explore extending this framework to non-linear hierarchies using deep neural networks and further investigating the theoretical implications of prior misspecification.

Summary updated

BibTeX
@inproceedings{aouali2025bayesian,
  author = {Imad Aouali and Victor-Emmanuel Brunel and David Rohde and Anna Korba},
  title = {{Bayesian Off-Policy Evaluation and Learning for Large Action Spaces}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=6te2jkbJ53},
}
Figure