Overview
This paper introduces a hierarchical reinforcement learning (RL) framework that enables agents to follow long, complex sequences of instructions—including those never seen during training—without additional learning. By using a novel "analogy-making" objective to learn subtask relationships and a meta-controller that learns exactly when to update its focus, the agent achieves impressive zero-shot generalization in a stochastic 3D Minecraft-like environment.
Introduction and Problem Statement
Traditional RL agents are typically experts at specific, narrow tasks. If you want an agent to perform a new task, you usually have to retrain it from scratch. In contrast, humans can follow a recipe or a guidebook for a city they’ve never visited because we intuitively understand how to compose known sub-skills into novel sequences.
The authors tackle two major hurdles in "instruction execution" for RL agents:
- Zero-Shot Generalization to Unseen Instructions: How can an agent perform a subtask it has never seen (e.g., "Pick up a Sheep") if it only practiced "Visit Sheep" and "Pick up Pig"?
- Generalization to Longer Sequences: How can an agent trained on short lists of instructions (e.g., length 4) successfully execute much longer lists (e.g., length 20) while handling unexpected events, like a bonus reward appearing mid-task?
Environment and Task Setup
The researchers evaluated their approach in a stochastic 3D visual environment built in Minecraft. The agent receives a 64x64 RGB image input and can interact with 7 object types (Pig, Sheep, Horse, etc.) using 9 possible actions.
To test generalization, the agent was trained on short sequences of instructions (length 4) and evaluated on much longer sequences (length 20). The testing phase specifically challenged the agent with three generalization scenarios: "Independent" (new combinations of actions and objects), "Object-dependent" (tasks grouped by object properties), and "Interpolation/Extrapolation" (handling different counts of objects).
Proposed Architecture
The authors propose a two-stage hierarchical approach to solve these generalization challenges:
1. Learning Parameterized Skills via Analogies
Instead of learning "Pick up Pig" as a monolithic, isolated task, the agent learns a parameterized skill where the action (Pick up) and the object (Pig) are disentangled. To ensure the agent can handle combinations it hasn't seen, the authors introduce an analogy-making objective.
Inspired by word embeddings in natural language processing (e.g., "King - Man + Woman = Queen"), they enforce a parallelogram structure in the task embedding space. If the agent knows the relationship between "Visit Pig" and "Pick up Pig," it can apply that same structural "transformation" to "Visit Sheep" to infer how to "Pick up Sheep," even if it has never attempted that specific combination before.
2. The Hierarchical Meta-Controller
A high-level "meta-controller" manages the list of instructions. It relies on:
- Instruction Memory: Stores the full list of tasks.
- Instruction Pointer: A mechanism that tracks which instruction is currently being executed.
- Update Decision ($c_t$): This is a crucial innovation. Instead of switching tasks only when a subtask finishes (which is too rigid) or at every single frame (which is noisy), the meta-controller learns a binary decision on whether to update the current subtask. This allows the agent to interrupt a task if a better opportunity arises (like a bonus box appearing) and then seamlessly resume its original mission.
Key Innovations
- Analogies for RL: The most striking idea is that structural relationships between tasks can be captured in embedding space. By forcing the neural network to respect these analogies, the agent gains a form of "common sense" about how actions and objects interact.
- The Power of Interruption: Most hierarchical RL models are "open-loop," meaning the high-level controller picks a task and waits for it to finish. This paper shows that a "dynamic" update gate allows for much more flexible behavior, such as deviating from instructions to grab a "windfall" reward.
- Soft-Update Training: To train the non-differentiable binary update decision, the authors used a "soft-update" rule during initial training before fine-tuning with discrete samples. This trick was essential for making the complex architecture converge.
Experimental Results
- Unseen Subtasks: In the "Independent" scenario, the analogy-making objective boosted the success rate on unseen tasks from 34.8% (without analogies) to 99.5%.
- Long Sequences: On sequences of 20 instructions (5x longer than training), the "Hierarchical-Dynamic" model achieved a 56% success rate on unseen instructions, while "Flat" baselines and rigid hierarchical models failed completely (0% success).
- Qualitative Behavior: The agent demonstrated the ability to "pause" a loop instruction (like "Pick up 2 pigs") to transform a randomly appearing box for extra points, then immediately return to finishing its original task.
Conclusion and Limitations
While the results are a significant step forward, the approach has limitations. The instructions used a very rigid, template-based format (Action + Object), whereas real-world natural language is far more ambiguous and complex. Furthermore, the model assumes instructions must be executed sequentially. Future work could explore "non-linear" instructions (e.g., "Do X or Y, then do Z"). Finally, while 3D, the Minecraft environment is still a grid-based world with discrete objects; scaling this to continuous, high-fidelity real-world robotics remains a significant challenge.
Summary updated