Model-Based Active Exploration

Pranav Shyam, Wojciech Jaskowski, Faustino GomezICML 2019

Efficient exploration remains a formidable challenge in Reinforcement Learning (RL). Traditionally, this is addressed by reactively rewarding an agent for fortuitously encountering novel situations. However, this "stumbling into novelty" approach is often highly inefficient.

The Model-Based Active eXploration (MAX) algorithm introduces a paradigm shift: instead of reacting to novelty, the agent explicitly plans to visit states where its internal models disagree. By utilizing an ensemble of forward dynamics models and a clever information-theoretic measure of disagreement, MAX achieves an order-of-magnitude speedup in exploration efficiency compared to traditional reactive methods.

The Problem with Reactive Exploration

In standard RL, an agent must explore its environment to discover rewards. Most contemporary methods are reactive: the agent happens to encounter a new state, receives a "novelty bonus," and subsequently lingers in that area. This is fundamentally inefficient because the agent lacks a mechanism to actively seek out novelty; it merely reacts when novelty occurs.

Furthermore, reactive methods frequently suffer from "over-commitment." An agent might repeatedly return to a state that is no longer novel simply because the exploration bonus hasn't been sufficiently "unlearned" by the underlying value function.

MAX addresses this by enabling active exploration. The agent leverages its current knowledge to predict which sequences of actions will lead to the most informative new experiences, effectively "planning to be surprised."

How MAX Works

The core mechanism of the MAX algorithm can be broken down into three primary components:

  1. The Ensemble of Models: MAX maintains an ensemble of $N$ forward dynamics models (typically neural networks). Each model is trained on slightly different subsets of the agent's historical data to predict the next state given the current state and action.
  2. Disagreement as Utility: The algorithm quantifies "novelty" as the disagreement between these ensemble models. If all models agree on the outcome of an action, the agent likely already understands that transition. If the models wildly disagree, the transition is highly uncertain, indicating a valuable learning opportunity.
  3. In discrete state spaces, MAX uses the Jensen-Shannon Divergence (JSD) to measure this conflict.
  4. In continuous spaces, where JSD is computationally prohibitive, it employs the Jensen-Rényi Divergence (JRD). Based on Rényi quadratic entropy, JRD provides a closed-form solution for Gaussian mixtures, making it tractable for high-dimensional environments.
  5. The Exploration MDP: MAX constructs an internal "shadow" version of the environment—an exploration Markov Decision Process (MDP)—where the "reward" is the model disagreement measure. The agent then uses standard RL planning techniques (such as Monte-Carlo Tree Search or Soft Actor-Critic) to find the multi-step path that maximizes this disagreement.

Key Insights

  • Active vs. Reactive: The fundamental breakthrough of MAX is treating exploration as its own distinct RL problem. By planning for novelty via an internal MDP, the agent takes purposeful, multi-step paths toward unknown territory rather than relying on random chance.
  • Overcoming the "Noisy TV" Problem: A classic pitfall in exploration is getting stuck watching a source of random noise (like a static TV) because it constantly generates "new" states. MAX elegantly handles this by distinguishing between risk (randomness) and uncertainty (lack of knowledge). Random noise eventually causes all models to predict high variance but agree with each other. True novelty causes the models to confidently predict different outcomes (disagreement).
  • Task-Agnostic Learning: Because MAX explores based on internal model disagreement rather than external environmental rewards, it builds a robust, general-purpose "world model." This model can subsequently be used to solve downstream tasks in that environment with zero additional exploration.

Key Results

The authors evaluated MAX across several challenging benchmarks, demonstrating significant improvements in exploration efficiency.

Performance of MAX compared to reactive baselines in a 50-state chain environment.
  • Order of Magnitude Speedup: In a discrete 50-state randomized Chain environment—where actions are occasionally flipped to hinder navigation—MAX explored 100% of the state space in roughly 15 episodes. In stark contrast, strong reactive baselines like Bootstrapped DQN (Boot-DQN) and EB-DQN required over 50 episodes to reach even 40% coverage.
  • Superior Maze Navigation: In the high-dimensional continuous Ant Maze (MuJoCo), MAX successfully navigated to the far end of a complex U-shape in just 40 episodes (12,000 steps). Reactive baselines remained trapped near the starting area in the same timeframe.
  • Effective Zero-Shot Transfer: To test the quality of the learned models, the authors used MAX for pure exploration in the Half Cheetah environment. The resulting models allowed the agent to perform downstream "running" and "flipping" tasks significantly better than models trained via random exploration, proving that MAX collects highly diverse and useful data.

Limitations and Future Directions

While highly effective, MAX does come with trade-offs. Maintaining an ensemble of neural networks and solving a separate exploration MDP at every step is computationally expensive compared to simpler model-free methods. Additionally, like all model-based approaches, MAX is susceptible to model bias; if the ensemble collectively agrees on an incorrect prediction, the agent might permanently ignore certain areas of the environment.

Finally, the current derivation of MAX assumes the utility of a policy is simply the average utility of its transitions. In reality, training on a new transition updates the models, which subsequently changes the utility of future transitions. Accounting for these "second-order" effects remains a promising frontier for future active exploration research.

Summary updated

BibTeX
@inproceedings{shyam2019model,
  author = {Pranav Shyam and Wojciech Jaskowski and Faustino Gomez},
  title = {{Model-Based Active Exploration}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=Skb5poZuWr},
}
Figure