Introduction
Traditional multitask reinforcement learning (RL) often relies on explicit, step-by-step instructions. However, real-world tasks frequently involve complex subtask dependencies where the optimal sequence of actions depends on the environment's current state and the underlying rules of the task. This paper addresses the challenge of zero-shot generalization to subtask dependencies, where an agent must execute an optimal sequence of subtasks in a novel environment given only a high-level subtask graph.
Problem Formulation
The agent is presented with a graph of subtasks it has never encountered before. Each subtask has specific preconditions (dependencies) and potential rewards. The objective is to maximize the total reward within a limited time budget. This presents a significant search problem, as the number of possible execution sequences grows exponentially with the number of subtasks. The agent must reason about both immediate costs (e.g., distance to a resource) and long-term benefits (e.g., crafting a tool to unlock high-reward tasks).
Methodology: Neural Subtask Graph Solver (NSGS)
The authors propose the Neural Subtask Graph Solver (NSGS), a hierarchical architecture designed to reason over graph-structured tasks.
Architecture
The NSGS uses a Recursive-Reverse-Recursive Neural Network (R3NN) to encode the subtask graph. This architecture facilitates message passing both up and down the graph, allowing the model to consider preconditions and future rewards simultaneously. As shown in the architecture diagram, the final policy $\pi$ is derived by combining a cost score (from a CNN processing the 2D visual observation) and a reward score (propagated through the subtask graph).
Graph Reward Propagation (GRProp)
To overcome the difficulty of training on sparse RL rewards, the authors introduced Graph Reward Propagation (GRProp). This non-parametric policy treats logical AND/OR gates within the graph as differentiable functions. By calculating the gradient of the total potential reward, GRProp identifies the most valuable subtasks. The NSGS agent is pre-trained to mimic this heuristic via policy distillation before fine-tuning with standard Actor-Critic methods.
Experimental Evaluation
The framework was evaluated on two visual domains: Mining (a complex crafting environment with 26 subtasks) and Playground (a stochastic environment with moving objects and distractor tasks).
Key Results
- Zero-Shot Performance: NSGS significantly outperformed greedy baselines. In the Playground domain, it achieved a normalized reward of 0.820, whereas a greedy agent only reached 0.164.
- Computational Efficiency: The model achieved performance comparable to Monte-Carlo Tree Search (MCTS) using 32,000 simulations, despite requiring no search during inference.
- Scalability: Agents trained on smaller graphs (up to 13 subtasks) successfully generalized to larger, more complex graphs (up to 26 subtasks) without additional training.
Conclusion
The NSGS framework demonstrates that neural networks can learn to approximate complex planning and reasoning over graph-structured dependencies. By combining differentiable logic with visual cost estimation, the agent achieves robust zero-shot generalization. Future work aims to enable agents to learn these subtask graphs directly from environmental observations rather than relying on pre-defined structures.
Summary updated