TL;DR
Meta Learning Shared Hierarchies (MLSH) is a framework that learns a set of reusable "motor primitives" shared across a distribution of tasks. By training these low-level skills to be easily composed by a high-level master policy, the agent can master complex new tasks—like navigating mazes or obstacle courses—significantly faster than learning from scratch.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents are notoriously "slow learners." While a human can look at a new video game and immediately understand that "jumping" is a useful sub-action, standard RL agents typically start every new task from zero, exploring the world through random, low-level muscle movements.
The challenge is two-fold:
- Sample Efficiency: Learning complex behaviors from raw actions takes millions of interactions.
- Hierarchical Discovery: While Hierarchical RL (HRL) uses "options" or sub-policies to bridge this gap, automatically discovering which sub-policies are actually useful across many different tasks remains a difficult open problem.
The authors aim to bridge the gap between Meta-Learning (learning how to learn) and Hierarchical RL by finding a set of primitives that specifically minimize the time it takes for a new "master policy" to solve a new task.
Methods
The MLSH architecture consists of two levels:
- Sub-policies ($\phi$): A library of $K$ shared neural networks that define low-level motor primitives. These are persistent across all tasks.
- Master Policy ($\theta$): A task-specific network that selects which sub-policy to activate. Crucially, the master policy operates at a slower timescale, choosing a primitive every $N$ timesteps (e.g., every 200 steps).
The training algorithm follows a "Meta" loop:
- Sample a Task: Pick a new environment from a distribution (e.g., a new maze layout).
- Warmup Period: Reset the master policy $\theta$ to random weights. Train only $\theta$ for $W$ iterations while keeping the sub-policies $\phi$ fixed. This allows the master policy to figure out how to use the existing tools.
- Joint Update Period: Train both $\theta$ and $\phi$ together for $U$ iterations. This fine-tunes the primitives to be even more effective for the current task.
- Repeat: Reset $\theta$, sample a new task, and continue.
By repeatedly resetting the master policy, the algorithm forces the sub-policies to become "general-purpose" tools that any new, randomly initialized master policy can quickly utilize to get high rewards.
Datasets
The authors evaluated MLSH on several increasingly complex environments:
- 2D Moving Bandits: A toy navigation task where the agent must reach one of two goal points.
- Four-Rooms: A classic HRL benchmark where an agent navigates a grid-world with four connected rooms.
- MuJoCo Physics (Ant & Humanoid):
- Ant Twowalk/Mazes: A four-legged robot learning to move in specific directions to solve mazes.
- Humanoid Walk/Crawl: A complex 3D agent that must switch between walking upright and crawling under obstacles.
- Ant Obstacle Course: A "sparse-reward" task where the agent only gets a reward at the very end, making it nearly impossible for standard RL.
Key Insights and Ideas
- Learning to be Learnable: The core "aha" moment is that sub-policies shouldn't just be "good"; they should be "easy to use." By optimizing for the master policy's learning speed during the warmup, the primitives naturally evolve into distinct, useful behaviors (like "move left" or "crawl").
- Temporal Abstraction as a Filter: Because the master policy only acts every $N$ steps, it effectively sees a much shorter "horizon." This simplifies the credit assignment problem—the master policy doesn't have to worry about individual joint torques, only high-level strategy.
- Exploration in Skill Space: In sparse-reward environments, random joint movements almost never reach the goal. However, random sequences of primitives (e.g., "move right for 200 steps, then move up") are much more likely to stumble upon a reward signal.
Key Results
- Faster Adaptation: In the "Four-Rooms" and "Ant Twowalk" tasks, MLSH reached high reward levels significantly faster than standard PPO (Proximal Policy Optimization) or previous hierarchical methods like Option-Critic.
- Solving the "Unsolvable": On the Ant Obstacle Course, standard PPO failed completely (0 reward). MLSH, using primitives transferred from simpler tasks, successfully navigated the course.
- Qualitative Emergence: In the Humanoid task, the agent successfully discovered distinct "walking" and "crawling" primitives without any manual labeling or reward shaping for those specific postures.
Limitations and Future Work
- Hard Selection: The current model uses a "hard" one-hot selection of sub-policies, meaning there is no gradient flow from the sub-policy back to the master. The authors suggest exploring "soft" selection methods like Gumbel-Softmax.
- Optimization Approximations: The current objective optimizes for reward within a single episode rather than the entire "learning lifetime" of the agent. A more mathematically rigorous meta-objective might yield even better results.
- Algorithm Agnostic: While this paper used PPO, the MLSH framework is theoretically compatible with other RL methods like Q-learning or evolutionary strategies, which remains an area for future exploration.
Summary updated