Reinforcement Learning with Multiple Experts: A Bayesian Model Combination Approach

Michael Gimelfarb, Scott Sanner, Chi-Guhn Lee

TL;DR

This paper introduces a robust way to speed up Reinforcement Learning (RL) by combining advice from multiple experts—even when some of those experts are biased or flat-out wrong. By using Bayesian Model Combination (BMC) and an efficient "moment matching" technique, the algorithm learns to trust the best combination of experts over time without risking the convergence of the underlying RL agent.

What Problem Does This Paper Address?

Reinforcement Learning often suffers from "sparse rewards," where an agent wanders aimlessly because it rarely receives feedback. Potential-based reward shaping (PBRS) is a popular fix: we give the agent "hints" (extra rewards) based on domain knowledge to guide it toward the goal.

However, there is a catch: if the expert giving the advice is biased or incorrect, the "hints" can actually mislead the agent and slow down learning. Most existing research assumes advice comes from a single, reliable source. In the real world, we might have multiple sources of advice (heuristics, demonstrations, or pre-trained models), and we don't know a priori which ones are trustworthy. The challenge is: How can an agent dynamically learn which experts to trust while it is still learning the task?

Methods

The authors propose a framework that treats the "best" expert advice as a latent variable to be discovered through experience.

  1. Bayesian Model Combination (BMC): Unlike Bayesian Model Averaging (which tries to find the single best expert), BMC seeks the best linear combination of experts. This provides an estimator with lower variance and more flexibility.
  2. Potential-Based Framework: The advice is integrated using PBRS, which is mathematically guaranteed not to change the agent's optimal policy. Even if the experts are terrible, the agent will eventually find the right solution; the experts just influence how fast it gets there.
  3. Moment Matching for Efficiency: Updating a Bayesian posterior over a probability simplex is usually computationally expensive. The authors use moment matching to project the complex posterior onto a Dirichlet distribution. This allows the agent to update its trust in experts in $O(N)$ time (where $N$ is the number of experts), making it feasible for real-time RL.
  4. Gaussian Q-Value Modeling: To compute the "evidence" for each expert, the agent models the expected returns as Gaussian random variables, comparing its actual observations to what each expert predicted.

Datasets

The authors evaluated their approach on two classic RL benchmarks:

  • Gridworld: A 5-by-5 navigation task with subgoals. They used five experts: an "optimal" expert, a "good" heuristic, a "zero" expert (no advice), a "random" expert (noise), and a "negative" expert (deliberately misleading advice).
  • CartPole: A continuous control task from the OpenAI Gym. Here, experts included a simple "guess" heuristic and a pre-trained neural network that was intentionally biased or noisy.

Key Insights and Ideas

  • Ensembles over Hypotheses: BMC is superior to BMA in this context because it doesn't just pick a "winner." If two experts are both partially right, BMC can combine them to create a better shaping function than either could provide alone.
  • Robustness to "Bad" Advice: The algorithm is remarkably good at identifying the "negative" expert and quickly dropping its weight to near zero, preventing it from sabotaging the agent's progress.
  • Algorithm Agnostic: The approach works with tabular methods (Q-learning, SARSA) and deep learning methods (DQN) alike. It doesn't require changing the inner workings of the RL algorithm; it just changes the reward signal it sees.
  • Computational Efficiency: By using the Dirichlet approximation, the "Bayesian" part of the overhead is negligible compared to the cost of updating a neural network.

Key Results

  • Faster Convergence: In both Gridworld and CartPole, the BMC approach (the black line in the paper's figures) consistently matched or exceeded the performance of the best individual expert.
Steps to Goal for Gridworld
  • Deep RL Integration: In the DQN experiments for Gridworld, the BMC agent reached the goal in ~25 trials, while the agent with "negative" advice or "random" advice took significantly longer or failed to stabilize. Similar robust performance was observed across algorithms in the CartPole environment.
Steps Balanced for CartPole
  • Weight Recovery: Posterior weight plots show that the agent identifies the optimal expert within the first 25–50 episodes, effectively "filtering" the noise from the other four experts.

Limitations and Future Work

  • Global Weighting: Currently, the algorithm learns a single set of weights for experts across the entire state space. However, one expert might be great at the start of a task and terrible at the end. The authors suggest extending this to state-dependent weightings in the future.
  • Potential Function Constraint: The method requires experts to be represented as potential functions ($\Phi(s)$). While many types of advice can be converted into this form, it is a specific requirement that might not fit every "expert" (like raw action demonstrations).
  • Scaling: While it works on CartPole, scaling to high-dimensional sensory inputs (like pixels in Atari) remains an open challenge for future empirical study.

Summary updated

BibTeX
@inproceedings{gimelfarb2018reinforcement,
  author = {Michael Gimelfarb and Scott Sanner and Chi-Guhn Lee},
  title = {{Reinforcement Learning with Multiple Experts: A Bayesian Model Combination Approach}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure