NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sequential Decision Making with Expert Demonstrations under Unobserved Heterogeneity

Vahid Balazadeh, Keertana Chidambaram, Viet Nguyen, Rahul Krishnan, Vasilis Syrgkanis

Reinforcement learning (RL) agents often struggle to learn from expert demonstrations if the experts based their decisions on "private" information the agent cannot observe. This paper introduces ExPerior (Experts-as-Priors), an empirical Bayes framework that extracts a prior distribution from heterogeneous expert data to drastically speed up the agent's online exploration, even when crucial context is hidden.

The Challenge of Unobserved Heterogeneity

Combining offline expert demonstrations with online reinforcement learning is a proven way to speed up training. However, existing methods usually assume homogeneity—that the offline data and the online task come from the exact same distribution.

But what happens when there is unobserved heterogeneity? Imagine a personalized education system. An expert human teacher might tailor their strategy based on a student's specific learning style (visual, auditory, etc.). An AI agent observing this data might only see the student's grades and demographics. Because the "learning style" context is unobserved by the AI, the expert data looks like a confusing mix of contradictory actions.

  • Naive imitation learning will just average out these strategies, resulting in a mediocre, one-size-fits-all policy.
  • Pure online RL ignores the expert data entirely and takes too long to learn from scratch.

The authors tackle this gap: How can an agent effectively use offline expert demonstrations to guide its online learning when the experts had access to hidden information?

The ExPerior Framework

The authors model this scenario as a zero-shot meta-RL problem. They treat the unobserved contextual variables as parameters governed by an unknown prior distribution. To solve this, they introduce the Experts-as-Priors (ExPerior) framework.

The ExPerior framework operates in three steps: collecting expert demonstrations, learning the prior, and applying reinforcement learning.

ExPerior works in two main phases:

  1. Learning the Prior (Offline): The algorithm uses Empirical Bayes to infer a prior distribution over the unobserved variables using only the expert state-action trajectories. The authors propose two ways to do this:
  2. Parametric (ExPerior-Param): If you have a good guess about the shape of the prior (e.g., a Beta distribution), you can fit its parameters using maximum marginal likelihood.
  3. Nonparametric (ExPerior-MaxEnt): If you have no idea what the prior looks like, the algorithm uses the principle of maximum entropy to find the least informative prior that is still compatible with the expert data. This avoids the trap of guessing the wrong parametric shape, which can severely degrade performance.
  4. Reinforcement Learning (Online): Once the prior is established, the agent uses it to drive exploration in the new environment. For simple bandit problems, it uses Posterior Sampling (like Thompson Sampling). For complex deep RL problems, it initializes an ensemble of Q-networks sampled from the learned prior.

Key Insights and Results

A core mathematical insight of the paper is that expert data shrinks the haystack. Even if an agent doesn't know why an expert took a specific action, knowing what actions are generally preferred drastically narrows the search space. The authors prove that ExPerior's Bayesian regret is proportional to the entropy of the optimal action under the prior. If experts are highly consistent (low entropy), the agent learns almost instantly.

The authors evaluated ExPerior across several environments, including Multi-armed Bernoulli Bandits, a sparse-reward Deep Sea environment, and a partially observable Frozen Lake.

Bayesian regret across different algorithms. ExPerior matches the Oracle and significantly outperforms naive baselines, especially in low and mid-entropy settings.
  • Bandits: ExPerior matches the performance of an "Oracle" agent (which perfectly knows the hidden prior) and significantly outperforms naive online methods and offline-online baselines in low- and mid-entropy settings.
  • Deep Sea: Over 2,000 episodes, ExPerior consistently achieved higher average rewards than baselines like Naïve Boot-DQN and ExPLORe. The performance gap was most pronounced when the unobserved heterogeneity was relatively low.
  • Frozen Lake: ExPerior achieved near-optimal rewards across various hazard configurations. In contrast, baseline algorithms frequently failed, achieving massive negative rewards because they struggled to adapt to the unobserved hazard locations.

Limitations and Future Work

While promising, the current study relies entirely on synthetic data and simulated experts (e.g., noisily rational algorithmic experts). Real human-in-the-loop experiments are notoriously noisier and more complex. Additionally, to simplify the math, the MDP formulation assumes that the unobserved context only affects the reward function and the optimal policy, not the underlying transition dynamics of the environment. Future work will look to extend the framework to handle context-dependent transition functions and test the algorithm in more complex, high-dimensional environments with real human data.

Summary updated

BibTeX
@inproceedings{balazadeh2024sequential,
  author = {Vahid Balazadeh and Keertana Chidambaram and Viet Nguyen and Rahul Krishnan and Vasilis Syrgkanis},
  title = {{Sequential Decision Making with Expert Demonstrations under Unobserved Heterogeneity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=c8cpMlPUbI},
}
Figure