Abstract
In this paper we consider the problem of how a reinforcement learning agent that is tasked with solving a sequence of reinforcement learning problems (a sequence of Markov decision processes) can use knowledge acquired early in its lifetime to improve its ability to solve new problems. We argue that previous experience with similar problems can provide an agent with information about how it should explore when facing a new but related problem. We show that the search for an optimal exploration strategy can be formulated as a reinforcement learning problem itself and demonstrate that such strategy can leverage patterns found in the structure of related problems. We conclude with experiments that show the benefits of optimizing an exploration strategy using our proposed approach.
Introduction
Standard reinforcement learning (RL) agents often rely on undirected exploration strategies, such as $\epsilon$-greedy, which select actions uniformly at random when the optimal policy is unknown. While effective in isolated tasks, this "blank slate" approach is inefficient in lifelong learning scenarios where an agent encounters a sequence of related Markov Decision Processes (MDPs). Humans leverage prior experience to explore new environments intelligently; for instance, a driver familiar with various vehicles knows which controls to test when entering a new rental car. This paper proposes a framework to formalize this intuition, enabling agents to learn optimal exploration strategies from past experiences.
The Meta-MDP Framework
The authors introduce a hierarchical architecture consisting of an Advisor and an Agent. The core contribution is the formalization of the search for an exploration policy as a higher-level reinforcement learning problem, termed a Meta-MDP.
In this framework:
- The Meta-MDP: An "episode" for the Advisor corresponds to the entire "lifetime" of the Agent across multiple tasks.
- The Advisor (Exploration Policy $\mu$): A meta-policy trained to suggest actions whenever the Agent decides to explore. The Advisor's state includes the current task, the Agent's state, and the Agent's internal learning progress.
- The Agent (Exploitation Policy $\pi$): A standard RL agent (e.g., Q-learning or SARSA) that learns to solve specific tasks.
- Interaction: During training, the system employs a modified $\epsilon$-greedy strategy. With probability $1-\epsilon$, the Agent executes its own learned action. With probability $\epsilon$, the Agent executes the action suggested by the Advisor.
The Advisor is optimized using policy gradient methods (like REINFORCE or PPO) to maximize the cumulative reward the Agent collects over its entire lifetime.
Experimental Evaluation
The proposed approach was evaluated across several simulated environments designed to test adaptation across related tasks.
The benchmarks included:
- Pole-Balancing: Tasks with varying pole lengths and masses.
- Animat: A 2D environment where a circular creature must navigate around obstacles to reach goals.
- Driving Task: A Unity-based simulator requiring fine-tuning of controls for cars with different physical properties.
- Roboschool Benchmarks: Continuous control tasks (Hopper and Ant) where task variations involved structural changes to the robot's body.
Results and Discussion
The experiments yielded several key insights into the nature of learned exploration:
- Exploration vs. Exploitation: A critical finding is that an optimal exploration policy is distinct from a general exploitation policy. The Advisor's goal is to guide the Agent toward informative states that accelerate the learning of the task-specific policy, even if those states do not provide immediate high rewards.
- Action Space Pruning: In the Animat environment, the Advisor learned to suppress redundant or counterproductive actions (e.g., firing opposing actuators simultaneously). By narrowing the effective action space, the Advisor significantly improved the Agent's learning efficiency.
- Performance Gains: In Pole-Balancing, Advisor-led exploration resulted in a 30% increase in lifetime rewards compared to random exploration. In the driving simulator, the Advisor reduced the adaptation time for new vehicles from 18 episodes to just 5.
- Comparison to Meta-Learning Baselines: The Meta-MDP approach outperformed Model-Agnostic Meta-Learning (MAML) in the Animat and Hopper tasks, suggesting that explicitly optimizing the exploration phase is a highly effective strategy for meta-learning.
Conclusion and Future Work
While the Meta-MDP approach demonstrates significant promise, it involves high computational costs due to the need to simulate entire agent lifetimes during Advisor training. Future research could address this by optimizing the Advisor's state representation or by allowing the Advisor to dynamically determine when to explore, rather than relying on a fixed $\epsilon$ schedule. This work marks a significant step toward moving RL agents away from "random walk" exploration toward more human-like, informed discovery.
Summary updated