Abstract
Standard architectures used in instruction following often struggle on novel compositions of subgoals (e.g. navigating to landmarks or picking up objects) observed during training. We propose a modular architecture for following natural language instructions that describe sequences of diverse subgoals. In our approach, subgoal modules each carry out natural language instructions for a specific subgoal type. A sequence of modules to execute is chosen by learning to segment the instructions and predicting a subgoal type for each segment. When compared to standard, non-modular sequence-to-sequence approaches on ALFRED, a challenging instruction following benchmark, we find that modularization improves generalization to novel subgoal compositions, as well as to environments unseen in training.
Introduction
Following complex, multi-step natural language instructions is a fundamental challenge for autonomous agents. While current "monolithic" sequence-to-sequence models perform well on tasks seen during training, they frequently fail when faced with compositional generalization. For instance, an agent might learn to "pick up a vase" and "pick up a mug" separately but struggle to "pick up two vases" in a sequence. This is because monolithic models treat instructions as single, long data strings rather than recognizing the underlying atomic subgoals.
This research addresses the gap between following familiar routines and flexibly combining known skills to solve novel, multi-step instructions in diverse environments.
Modular Architecture
The proposed approach decomposes the instruction-following task into two distinct stages: a high-level manager and a suite of specialized workers.
High-Level Controller
The high-level controller acts as a manager. Utilizing a Bi-LSTM and a Conditional Random Field (CRF), it processes the full natural language instruction and segments it into discrete sub-instructions (e.g., "Go to the table," "Pick up the vase"). Each segment is then assigned a "subgoal type" such as GoTo, PickUp, or Heat.
Specialized Subgoal Modules
Rather than a single network attempting to master all actions, the system employs eight independent modules, each specialized for a specific subgoal type. Each module is a sequence-to-sequence model that integrates segmented text, visual observations (via ResNet-18), and the previous action to predict the next move.
Crucially, these modules pass their internal hidden states to the subsequent module in the sequence, maintaining context across the entire trajectory. To optimize performance, the modules are initialized with weights from a pre-trained monolithic model and then jointly fine-tuned to specialize in their respective roles.
Experimental Evaluation
The architecture was evaluated using the ALFRED (Action Learning From Realistic Environments and Directives) benchmark, which features approximately 25,000 expert instruction-trajectory pairs in the AI2-THOR 3D simulation environment.
Key Results
The modular approach (Mod.) was compared against a strong monolithic baseline (Mono.) across several generalization splits:
- Unseen Environments: In new houses and layouts, the modular model achieved an average subgoal success rate of 57%, significantly outperforming the monolithic model's 46%.
- Novel Task Compositions: For tasks like "Pick Two & Place" (not seen in training), the modular model demonstrated superior performance, achieving a 24% subgoal success rate compared to 13% for the baseline in unseen environments.
- Subgoal Accuracy: The high-level controller achieved 96% accuracy in segmenting and labeling subgoals, suggesting that the primary bottleneck is the execution of individual steps rather than structural understanding.
Discussion and Conclusion
Modularity acts as a powerful regularizer. By forcing the agent to use specific modules for specific tasks, the system prevents overfitting to training sequences and encourages the learning of generalizable representations for actions like "picking up" or "navigating."
While the modular approach improves subgoal success, completing long, complex "full trajectories" remains a challenge due to error cascading. Future work may explore specialized architectures for different module types (e.g., navigation vs. manipulation), unsupervised subgoal discovery to eliminate the need for ground-truth labels, and more robust error recovery mechanisms.
Summary updated