Learning Adaptive Language Interfaces through Decomposition

Siddharth Karamcheti, Dorsa Sadigh, Percy Liang

In the field of robotics, a long-standing goal is to enable machines to understand natural human language: "Hey, can you wash this coffee mug?" However, most contemporary Natural Language Interfaces (NLIs) are "static"—they are trained on vast, fixed datasets and then deployed. When these systems encounter an unfamiliar command, they typically fail, leaving users frustrated and forced to use rigid, low-level robotic instructions.

A recent paper from Stanford researchers Siddharth Karamcheti, Dorsa Sadigh, and Percy Liang introduces a more adaptive approach: Learning by Decomposition. This method allows an interactive semantic parser to learn new high-level commands by having users break them down into simpler steps that the robot already understands.

The Problem: The Rigidity of Static Training

The conventional "train-then-deploy" paradigm in AI creates a significant barrier between developers and end-users. If a household robot is not pre-trained on the command "clean the table," a standard neural model (such as a sequence-to-sequence transformer) will either fail to respond or, worse, execute an incorrect and potentially harmful action.

Current solutions generally fall into two categories, both with significant drawbacks:

  1. Grammar-based systems: These are reliable and generalize well but are "lexically brittle," meaning they struggle with the diverse and often messy ways humans naturally speak.
  2. Neural Seq2Seq models: While flexible with language, these models require thousands of examples to learn a single new concept and often fail to generalize effectively from a single interaction.

The authors aim to bridge this gap, creating a system that is as linguistically flexible as a neural network but as data-efficient and reliable as a formal grammar.

Methodology: Interaction and Teaching

The core of the proposed approach is a two-phase interaction cycle: Interaction and Teaching. This cycle allows the system to grow its capabilities through direct user feedback.

The Interaction and Teaching phases: users decompose high-level utterances into sequences of low-level actions.

The process involves several key components:

  • Entity Abstraction & Lifting: When a user issues a command like "Wash the coffee mug," the system first "lifts" the utterance into an abstract template: wash the <obj>. This allows the system to decouple the specific action from the object it is performed on.
  • Exemplar-based Neural Semantic Parsing: Instead of generating code from scratch, the system uses a neural network to calculate the "distance" between a new command and previously taught examples. If a new command is sufficiently close to a known one, it retrieves and adapts the corresponding program. If the command is too unfamiliar, the system outputs a NOT-SURE signal.
  • Learning by Decomposition: If the system is unsure, the user enters "Teaching" mode. They break the task down into primitive actions the robot already knows, such as "Go to the mug," "Pick it up," and "Go to the sink." The system then maps the high-level command to this specific sequence of actions for future use.
  • Online Reranking: The system utilizes the current state of the environment (e.g., "Is the robot already holding an object?") to filter out impossible actions and select the most appropriate program to execute.

Experimental Setup and Datasets

The researchers evaluated their system using a 2D simulated environment inspired by AI2-THOR, with tasks adapted from the ALFRED dataset. The system was initialized with only 44 primitive examples of basic movements and actions.

To test real-world applicability, they conducted interactive user studies via Amazon Mechanical Turk. Twenty workers were tasked with completing five episodes of various household chores, including complex tasks like "Pick, Heat, and Place" and "Pick, Cool, and Place."

Key Results and Insights

The experiments demonstrated that the system effectively learns and generalizes from minimal user interaction.

Multi-task experimental results showing the increase in abstractions and program complexity alongside a decrease in normalized episode length.
  • Efficiency Gains: As users taught the system, the "normalized episode length" (the number of commands a user must type to complete a task) dropped significantly. For the most complex tasks, users were eventually able to complete them in just 1/5th of the steps required at the start of the study.
  • Complexity Growth: The "per-turn program complexity" (the number of actions the robot performs per single command) trended upward. This indicates that users were successfully building and reusing high-level abstractions.
  • One-Shot Generalization: By abstracting specific objects into generic <obj> tokens, the system achieved one-shot generalization. Once taught to "wash a mug," the system automatically understood how to "wash a tomato" because the underlying "lifted" program remained identical.
  • The Power of "NOT-SURE": By allowing the model to signal uncertainty based on a distance threshold, the authors improved user trust. It is far better for a robot to ask for clarification than to perform an incorrect action.

Limitations and Future Work

While this approach represents a significant step forward for interactive learning, several challenges remain:

  • Linearity: The current decomposition model assumes tasks are linear sequences. It does not yet handle complex logic such as loops or conditional statements.
  • The Trust Gap: In simpler tasks, users sometimes found it "faster" to provide low-level instructions rather than teaching high-level commands. Creating the right incentives for users to invest time in teaching is an ongoing challenge.
  • Heuristic Composition: The system currently relies on simple keywords like "and" to split multi-action sentences, which may not suffice for more linguistically complex instructions.

Summary updated

BibTeX
@misc{karamcheti2020learning,
  author = {Siddharth Karamcheti and Dorsa Sadigh and Percy Liang},
  title = {{Learning Adaptive Language Interfaces through Decomposition}},
  year = {2020},
  eprint = {2010.05190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.05190},
}
Figure