MADE: Exploration via Maximizing Deviation from Explored Regions

Tianjun Zhang, Paria Rashidinejad, Jiantao Jiao, Yuandong Tian, Joseph E. Gonzalez, Stuart Russell

Abstract

Exploration remains a fundamental challenge in reinforcement learning (RL), particularly in environments with sparse rewards. We present MADE (Maximizing Deviation from Explored Regions), a framework that treats exploration as a regularization problem. By augmenting the RL objective with a term that encourages the agent's future path to deviate from its historical "policy cover," MADE achieves significant improvements in sample efficiency. Our results demonstrate that MADE outperforms existing state-of-the-art methods by 2x to 5x on complex benchmarks like MiniGrid and the DeepMind Control Suite.

Introduction: The Exploration-Exploitation Dilemma

In RL, agents must balance exploring new states with exploiting known rewards. This balance is notoriously difficult in "sparse reward" environments, where an agent may receive no feedback for long sequences of actions. While mathematically rigorous exploration strategies like Upper Confidence Bound (UCB) exist for simple tabular settings, scaling them to high-dimensional Deep RL is challenging. Existing heuristics, such as curiosity-based exploration or pseudo-counts, often suffer from detachment (forgetting promising areas), derailment (noise preventing goal reaching), and a lack of clear optimization objectives.

Methodology: Exploration as Regularized Optimization

MADE reframes exploration as an optimization problem rather than a collection of heuristics. The core idea is to maximize a regularized objective:

$$L_k(d^\pi) = J(d^\pi) + \tau_k \text{Regularizer}(d^\pi, \text{Past Regions})$$

The Policy Cover Regularizer

The "secret sauce" of MADE is a regularizer designed to maximize the deviation of the current policy's occupancy from the regions already covered by previous policies. This is achieved by maintaining a "policy cover"—a density estimate of all states visited by the agent throughout its history. The resulting intrinsic reward is proportional to $1 / \sqrt{d^{\pi_{mix}} \cdot \rho_{cov}}$, where $\rho_{cov}$ represents the total history and $d^{\pi_{mix}}$ represents recent history. This bonus acts as a corrective force, motivating the agent to revisit forgotten states and push into unexplored territory.

Performance of MADE across different RL algorithms (Value Iteration, PPO, Q-learning) compared to Hoeffding and Bernstein exploration bonuses. MADE consistently reaches higher returns faster than standard Hoeffding methods.

Key Insights and Theoretical Alignment

  • Bridging Theory and Practice: In tabular settings, MADE’s bonus naturally approximates the Bernstein bonus, which is known to be minimax near-optimal. This allows MADE to bring the mathematical rigor of tabular RL into deep neural networks.
  • Solving Detachment: By considering the entire policy cover, MADE provides persistent motivation to return to areas that haven't been visited recently, preventing the agent from "forgetting" parts of the environment.
  • Algorithm Agnostic: MADE is a reward modifier that can be integrated into various architectures. It has proven effective when paired with model-free algorithms (PPO, IMPALA) and model-based algorithms (Dreamer).

Experimental Results

The researchers evaluated MADE across three tiers of complexity: tabular toy examples, MiniGrid (procedurally generated 2D worlds), and the DeepMind Control Suite (image-based continuous control).

MiniGrid and DeepMind Control Performance

MADE solved all challenging MiniGrid tasks within 90 million steps, whereas most baselines failed on the hardest levels. Compared to the previous state-of-the-art, BeBold, MADE was 2x to 5x more sample efficient. In the DeepMind Control Suite, MADE showed even more dramatic gains; for instance, in "Pendulum-Swingup," MADE achieved high rewards in 30k steps, a 10x speedup over the next best method (RE3).

Normalized speedup of MADE compared to state-of-the-art baselines. Bars represent the factor by which MADE is faster than the baseline (e.g., 3.0 means MADE requires 1/3 the samples). Infinity symbols denote tasks where the baseline failed to converge.

Conclusion and Future Work

MADE offers a principled approach to exploration by treating it as a deviation from past behavior. While highly effective, its performance currently depends on state representation quality. Future work will explore combining MADE with learned, compact state representations to further improve efficiency in high-dimensional environments. Additionally, simplifying the density estimation components (currently VAE and RND) could reduce computational overhead and hyperparameter sensitivity.

Summary updated

BibTeX
@inproceedings{zhang2021made,
  author = {Tianjun Zhang and Paria Rashidinejad and Jiantao Jiao and Yuandong Tian and Joseph E. Gonzalez and Stuart Russell},
  title = {{MADE: Exploration via Maximizing Deviation from Explored Regions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure