Multi-Task Off-Policy Learning from Bandit Feedback

Joey Hong, Branislav Kveton, Manzil Zaheer, Sumeet Katariya, Mohammad Ghavamzadeh

TL;DR

The authors introduce HierOPO, an algorithm that significantly improves how we learn personalized policies from offline data by sharing information across similar tasks. By using a hierarchical Bayesian framework, HierOPO achieves higher statistical efficiency than treating tasks independently, backed by novel Bayesian error bounds for hierarchical off-policy learning.

What Problem Does This Paper Address?

Contextual bandits are the engine behind modern recommendation systems and search engines. However, training these models "online" (letting them learn through live trial-and-error) is often too risky because a single bad recommendation can drive a user away. Instead, researchers prefer off-policy learning, where models learn from "logged" data generated by a previously deployed policy.

The challenge is that most off-policy methods treat every task—like a specific user or a specific search query—as an isolated island. This is incredibly inefficient. If User A and User B have similar tastes, data from User A should help us make better decisions for User B. The authors tackle the "multi-task" problem: how do we mathematically share information across similar tasks in an offline setting without losing the nuances that make each task unique?

Methods

The authors propose HierOPO (Hierarchical Off-Policy Optimization). The core of the approach is a two-level hierarchical Bayesian model:

Graphical representation of the hierarchical model
  1. The Hyper-parameter ($\mu_*$): Represents the "global" commonality (e.g., the preferences of an average user).
  2. Task Parameters ($\theta_{s,*}$): Represent task-specific traits, sampled from a distribution governed by the hyper-parameter.

Key Technical Components: * Pessimism (LCBs): In offline learning, you cannot actively explore. If the logged data lacks information about a certain action, the model should be "pessimistic" about its reward to avoid overconfidence. HierOPO computes Lower Confidence Bounds (LCBs) for rewards. * Hierarchical Regression: The algorithm uses the entire dataset to estimate the global hyper-parameter, which then acts as an "informed prior" for individual tasks. * Closed-form Solutions: For linear Gaussian models, the authors derive exact, efficient updates for the posterior mean and covariance, keeping the computational cost manageable. * Bayesian Error Bounds: They develop a new theoretical framework to prove that their bounds get tighter as the prior becomes more informative—a property often missing in standard frequentist analyses.

Datasets

The researchers evaluated HierOPO across three distinct environments:

  1. Synthetic Multi-Task Bandits: A controlled environment to test how varying the number of tasks and dataset size affects performance.
  2. MovieLens 1M: A classic recommendation dataset. They simulated a multi-task environment by clustering users into groups based on latent factors, treating the cluster center as the hyper-parameter.
  3. Omniglot: A "meta-learning" dataset of handwritten characters. They framed character classification as a bandit problem to see if HierOPO could learn common visual structures across different alphabets.

Key Insights and Ideas

  • The "Task" vs. "Hyper-parameter" Error Split: Theoretical analysis reveals that the total error consists of two parts: uncertainty about the specific task and uncertainty about the group. As you add more tasks to the system, the "hyper-parameter term" vanishes, leaving a model that performs as if it already knew the global "average" perfectly.
  • Pessimism is Mandatory: Optimistic methods (like Thompson Sampling), which are great for online learning, are actually harmful in the offline setting. Without new data coming in, optimism leads the model to repeatedly pick actions it knows nothing about.
  • Priors as Information, Not Just Regularizers: In this Bayesian framework, the prior is a dynamic source of information that directly reduces the "hardness" of the learning problem, rather than just acting as a mathematical trick to prevent overfitting.

Key Results

  • Superior Efficiency: In all experiments, HierOPO outperformed "FlatOPO" (which learns tasks independently). The gap was most significant in the limited data regime—when you have many tasks but very few observations per task.
  • Near-Oracle Performance: As the number of tasks increased, HierOPO’s performance approached that of an "Oracle" model that was pre-programmed with the true global hyper-parameters.
Performance comparison as the number of tasks increases
  • Real-World Robustness: On the Omniglot dataset, HierOPO successfully learned commonalities in handwriting even though the underlying data wasn't perfectly Gaussian, proving the algorithm is robust to model misspecification.

Limitations and Future Work

While HierOPO is a major step forward, the authors note several areas for growth:

  • Model Bias: Like all model-based approaches, HierOPO can be biased if the reward model is wrong. Future work could combine this hierarchical approach with "doubly-robust" estimators to mitigate this.
  • Simple Hierarchies: The current model uses a two-level hierarchy. Real-world data might require deeper, "nested" hierarchies (e.g., User $\rightarrow$ Household $\rightarrow$ Neighborhood $\rightarrow$ City).
  • Beyond Bandits: The authors believe this methodology can be extended from contextual bandits to full Offline Reinforcement Learning, where actions have long-term consequences across multiple states.

Summary updated

BibTeX
@inproceedings{hong2023multi,
  author = {Joey Hong and Branislav Kveton and Manzil Zaheer and Sumeet Katariya and Mohammad Ghavamzadeh},
  title = {{Multi-Task Off-Policy Learning from Bandit Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=DOpyk6ANjr},
}
Figure