Multitask Reinforcement Learning for Zero-shot Generalization with Subtask Dependencies

Sungryull Sohn, Junhyuk Oh, Honglak Lee

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.

Overview of the task: an agent navigates a grid world (Observation) to complete subtasks defined by a dependency graph (Subtask graph), resulting in an execution trajectory.

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).

The NSGS architecture: a CNN extracts environmental costs, while an R3NN processes the subtask graph to propagate rewards, combining both into a final policy $\pi$.

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

BibTeX
@inproceedings{sohn2018multitask,
  author = {Sungryull Sohn and Junhyuk Oh and Honglak Lee},
  title = {{Multitask Reinforcement Learning for Zero-shot Generalization with Subtask Dependencies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=Bk4ALw-ubB},
}
Figure