Training reinforcement learning (RL) agents to solve complex, multi-step tasks is a notoriously difficult challenge, particularly when rewards are sparse. This paper introduces a clever middle ground: using "policy sketches" to guide agents with high-level hints without needing to micromanage their every move or hand-engineer intermediate rewards.
Executive Summary
The authors introduce policy sketches—simple symbolic sequences of subtasks—to guide multitask reinforcement learning. By associating each subtask with a modular neural network "subpolicy," agents learn reusable behaviors that allow them to solve sparse-reward tasks and generalize to new challenges far more effectively than standard monolithic models.
The Challenge of Sparse Rewards
Reinforcement learning struggles in environments with sparse rewards and long horizons. Imagine an agent in a Minecraft-like game: it only gets a reward once it successfully crafts a "bed." To achieve this, it must find wood, find grass, find a toolshed, and use a workbench in a specific, rigid order. If the agent only receives a reward signal at the very end of this long chain of actions, it will likely wander aimlessly forever during training.
Existing Hierarchical RL (HRL) methods attempt to solve this by breaking tasks into subgoals. However, most HRL requires heavy-handed supervision, such as hand-engineered intermediate rewards, explicit "completion signals" from the environment, or intrinsic motivation mechanics. This paper asks a fundamental question: Can we learn these hierarchies using only a high-level "sketch" of the task, without the environment providing any feedback on subtask completion?
Methodology: Policy Sketches and Modular Networks
The core innovation of this work is the Policy Sketch. A sketch is simply a sequence of symbolic labels (e.g., get wood $\rightarrow$ use workbench) provided for a given task.
To leverage these sketches, the authors propose a framework with four key components:
- Modular Subpolicies: Every unique symbol in the vocabulary (like
get wood) is mapped to its own dedicated neural network subpolicy (denoted as $\pi$). - The STOP Action: Each subpolicy is trained to output standard environment actions plus a special
STOPaction. When a subpolicy emitsSTOP, control automatically passes to the next subpolicy in the sketch sequence. - Decoupled Actor-Critic: This is the technical "secret sauce." In multitask RL, the same subtask (e.g.,
get wood) might be part of a high-value task or a low-value task. To handle this, the authors use a shared actor (the subpolicy) across all tasks, but a task-specific critic (the value estimator). This allows the agent to learn a consistent behavior while understanding that the "worth" of that behavior depends on the final overarching goal. - Curriculum Learning: The agent starts by learning tasks with short sketches (1-2 steps) and gradually moves to more complex ones (up to 5 steps) as its performance improves.
Experimental Environments
The researchers evaluated their approach on two custom environments:
- Maze Navigation: A "Light World" style environment where the agent must navigate through rooms, find keys, and open locked doors in a specific sequence to reach a goal.
- Crafting Game: A 2-D Minecraft-inspired world. The agent interacts with raw materials (wood, iron, grass) and crafting stations (workbench, toolshed, factory). Tasks range from simple (
make plank) to highly complex (get gem), which requires a long chain of intermediate tool-building.
Key Insights and Results
- Weak Supervision is Sufficient: The environment doesn't need to tell the agent when a subtask is done. By tying parameters across tasks (e.g., the
get woodmodule is exactly the same whether the agent is making a plank or a bridge), the agent naturally learns where one subtask ends and the next begins. - Superior Performance: In both the Maze and Crafting environments, the modular approach reached near-perfect reward levels. In contrast, standard "monolithic" baselines—which try to learn the whole task as one large, un-split policy—failed to learn anything on the most complex tasks.
- Zero-Shot Generalization: Once trained, the system essentially possesses a "library of behaviors." When presented with a sketch for a held-out task it had never seen before (like
make bed), the modular agent achieved a 77% success rate immediately, without any further training. The baselines achieved 0%. - Fast Adaptation: If the agent is given a new task without a sketch, it can learn the correct high-level sequence of subtasks much faster than a standard agent can learn the low-level actions from scratch.
Limitations and Future Directions
While highly effective, the framework has a few limitations that present exciting avenues for future work:
- Sketch Dependency: The model relies on humans providing the sketches during the training phase. A natural next step is learning to generate these sketches directly from raw natural language instructions.
- Linearity: The current framework assumes subtasks are performed in a strict linear sequence. Real-world tasks often involve parallel subgoals or branching logic (e.g., "get wood OR get stone").
- Discrete Symbols: The subtasks are currently defined by discrete symbols. Integrating this approach with more continuous or fluid representations of high-level intent remains an open challenge.
Summary updated