A Meta-MDP Approach to Exploration for Lifelong Reinforcement Learning

Francisco M. Garcia, Philip S. Thomas

Introduction

Standard Reinforcement Learning (RL) agents suffer from a notorious "cold start" problem. When faced with a new task, they typically start with zero knowledge and explore their environment using simple, uninformed strategies like $\epsilon$-greedy (picking a random action with some probability). While this eventually works, it is incredibly inefficient, especially in complex state spaces.

In the context of lifelong learning, an agent faces a series of related tasks (e.g., driving different types of cars). Humans don't re-learn how to drive from scratch every time they switch vehicles; we use prior experience to narrow down which "exploratory" actions are likely to be useful. This paper addresses a specific gap in RL: Given that an agent decides to explore, which action should it take? Instead of picking a random action, the authors introduce a "meta-MDP" framework where an advisor agent learns an optimal exploration strategy across a sequence of related tasks.

Methods: The Meta-MDP Framework

The authors propose a hierarchical setup involving two distinct entities: an Agent and an Advisor.

  • The Agent: Solves a specific task (a Markov Decision Process, or MDP). It maintains an "exploitation policy" representing what it currently believes is the best sequence of actions for the specific task at hand.
  • The Advisor: Maintains an "exploration policy" that is shared across all tasks within a specific problem class.
The hierarchical Meta-MDP architecture showing the interaction between the Advisor, Agent, and Environment.

The core innovation of this paper is modeling the search for an exploration policy as a meta-MDP.

  • Timescale: One "step" for the advisor is equivalent to one step for the agent. However, one episode for the advisor corresponds to the entire lifetime of the agent (e.g., 500 episodes of the agent trying to solve a specific task).
  • Objective: The advisor's goal is to maximize the total reward the agent receives over its entire lifetime. Mathematically, this is equivalent to maximizing the area under the learning curve.
  • Optimization: Because the problem is framed as an MDP, the authors can use standard, powerful RL algorithms like REINFORCE or PPO to train the advisor.

Experimental Setup

The researchers evaluated their framework on several simulated environments to test its versatility:

  1. Pole-balancing (CartPole): A classic benchmark where the agent balances a pole on a cart, with variations in pole length and mass across tasks.
  2. Animat: A circular creature with 8 actuators in a continuous space, where tasks involved reaching different goal locations.
  3. Vehicle Control: A high-fidelity Unity-based "Donkey Car" simulator. The agent had to fine-tune steering controls for cars with different masses and physical properties.
  4. Continuous Control (Roboschool): Standard benchmarks like Hopper and Ant, where the agent learns complex locomotion.

Key Insights and Results

By maximizing the area under the learning curve, the advisor learns to guide the RL agent toward useful actions during exploration, significantly outperforming standard random exploration and even state-of-the-art meta-learning methods.

  • Exploration $\neq$ Exploitation: The paper proves that an optimal exploration policy is not necessarily a good exploitation policy. For example, an advisor might learn to steer an agent toward "information-rich" areas of the state space that a final, optimized exploitation policy would actively avoid.
  • Learning "What Not to Do": In the Animat experiments, the advisor learned that certain combinations of actuators (like firing opposing thrusters) were useless across all tasks. By discouraging these actions during exploration, the agent learned the specific task much faster.
Progression of learning curves demonstrating how the advisor improves the agent's average return over training episodes.

Empirically, the Meta-MDP approach yielded impressive performance gains:

  • Faster Adaptation: In the Vehicle Control task, an agent using the advisor reached the performance threshold in just 5 episodes, compared to 18 episodes for an agent without an advisor.
  • Higher Lifetime Reward: In Pole-balancing, the advisor-guided agent obtained roughly 30% more reward over its lifetime compared to random exploration.
  • Outperforming MAML: The proposed method (PPO + Advisor) consistently outperformed Model-Agnostic Meta-Learning (MAML), a popular general-purpose meta-learning algorithm, on tasks like Animat, Hopper, and Pole-balancing. For instance, in the continuous Pole-balancing task, the Advisor reached a score of ~438 versus MAML's ~267.

Limitations and Future Work

While promising, the Meta-MDP framework has a few notable limitations:

  • Computational Intensity: Training the advisor is expensive. Since one advisor "episode" is an entire agent "lifetime," it requires running thousands of agent-environment interactions just to perform one update on the advisor. While parallel task sampling mitigates this, it remains computationally heavy.
  • The "When" to Explore: This paper focuses on how to explore (which action to take) but assumes a fixed schedule (like $\epsilon$-greedy) for when to explore. Integrating the two—learning both the timing and the content of exploration—is a natural next step.
  • Task Distribution Dependency: The method assumes new tasks are drawn from the same distribution as the training tasks. If the "problem class" changes significantly, the advisor's learned guidance might become counterproductive.

Summary updated

BibTeX
@inproceedings{garcia2019meta,
  author = {Francisco M. Garcia and Philip S. Thomas},
  title = {{A Meta-MDP Approach to Exploration for Lifelong Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure