Abstract
When mapping a natural language instruction to a sequence of actions, it is often useful to identify sub-tasks in the instruction. Such sub-task segmentation, however, is not necessarily provided in the training data. We present the A2LCTC (Action-to-Language Connectionist Temporal Classification) algorithm to automatically discover a sub-task segmentation of an action sequence. A2LCTC does not require annotations of correct sub-task segments and learns to find them from pairs of instruction and action sequence in a weakly-supervised manner. We experiment with the ALFRED dataset and show that A2LCTC accurately finds the sub-task structures. With the discovered sub-tasks segments, we also train agents that work on the downstream task and empirically show that our algorithm improves the performance.
Introduction
Teaching robots to follow natural language instructions is a "long-horizon" problem. A single task, like "make a cup of coffee," might involve over 100 individual actions and a paragraph of text. While it is much easier to train agents if we break these long tasks into smaller sub-goals, we rarely have the "ground truth" labels that tell us exactly which actions correspond to which part of the sentence. Manually annotating these alignments is expensive and doesn't scale. Previous attempts to solve this used rigid heuristics or costly crowdsourcing. This paper asks: Can an agent learn to segment these sub-tasks on its own, just by looking at pairs of instructions and action sequences?
Methods
The authors introduce A2LCTC (Action-to-Language Connectionist Temporal Classification). The approach works in three main steps:
- Instruction Decomposition: A rule-based system splits a full instruction into fine-grained verbal phrases (e.g., "go to the left," "pick up the sponge").
- Weakly-Supervised Alignment: Inspired by speech recognition models that align audio frames to letters, A2LCTC treats sub-task segmentation as a classification problem. For every action in a sequence, the model predicts which instruction segment it belongs to.
- Neural Architecture: Instructions are represented by averaging word embeddings (GloVe) passed through a linear layer, while actions are processed through a bidirectional LSTM to capture context. The model calculates the probability of an alignment by taking the dot product of these action and instruction vectors.
To keep the unsupervised learning stable, the authors used Length-based Curriculum Learning, starting with short, simple sequences and gradually increasing complexity. The core of the algorithm relies on a monotonic assumption: instructions and actions usually follow the same chronological order. This allows the use of the Forward algorithm to efficiently calculate the sum of all possible valid paths.
Experimental Results
The study uses the ALFRED dataset, which includes 21,023 expert demonstrations in a simulated indoor setting. Tasks involve 12 types of actions and often require very long action sequences (100+ steps).
A2LCTC significantly outperformed standard baselines in identifying sub-task boundaries. Unlike baselines like Byte-pair Encoding (BPE), which only look for repeating patterns in action sequences, A2LCTC leverages the meaning of the words. This allows it to understand that different actions might be required for the same phrase depending on the context.
On the "unseen" validation set, A2LCTC achieved a Sub-goal F1 score of 85.1, compared to just 55.5 for a uniform baseline and 65.9 for a BPE-based approach. When the discovered segments were used to train a navigation agent with "progress monitoring," the agent's subgoal sequence accuracy jumped from 29.6% to 41.4%. Ablation studies confirmed that curriculum learning is vital; removing it caused the most dramatic drop in performance (from 78.2 F1 down to 36.7).
Conclusion
A2LCTC provides a robust framework for unsupervised sub-task discovery. However, the model currently assumes a monotonic constraint where instructions follow the action order. Future work will explore non-monotonic instructions, incorporate visual context to resolve references like "the blue cup," and extend the model to continuous, low-level robotic motor controls.
Summary updated