Navigational Instruction Generation as Inverse Reinforcement Learning with Neural Machine Translation

Andrea F. Daniele, Mohit Bansal, Matthew R. Walter

This paper, presented at the intersection of robotics and natural language processing, introduces a novel framework for robots to generate navigational instructions that humans can easily follow. By combining the decision-making power of Inverse Reinforcement Learning (IRL) with the linguistic flexibility of Neural Machine Translation (NMT), the authors move beyond rigid, template-based directions toward more natural, human-like communication.

TL;DR

The researchers developed a system that enables robots to generate natural language directions for humans navigating unknown environments. By using Inverse Reinforcement Learning to select the most helpful landmarks and a Seq2Seq model to "translate" those choices into fluent English, the system produces instructions that are actually easier for humans to follow than those written by other people.

What Problem Does This Paper Address?

While significant research has focused on robots interpreting human instructions (e.g., "Go to the kitchen and get a coffee"), much less attention has been paid to the inverse: robots giving instructions.

Effective instruction generation faces two primary hurdles:

  1. Content Selection: What information is actually useful? Providing too much detail (verbosity) is confusing, but providing too little (ambiguity) leads to wrong turns. Humans generally prefer physical landmarks ("turn at the sofa") over metric distances ("walk 5.2 meters"), but these preferences vary by environment and person.
  2. Surface Realization: How do you turn a planned path into a natural sentence? Traditional systems use rigid templates (e.g., "Turn [Direction] at [Object]"), which often sound robotic, lack cohesion, and fail to generalize to new types of environments.

Methods

The authors propose a two-stage pipeline that bridges the gap between raw robot data and human language:

  • Content Selection via IRL: The authors model the choice of what information to share as a Markov Decision Process (MDP). Instead of hand-coding rules, they use Maximum Entropy Inverse Reinforcement Learning to learn a "policy" from human demonstrations. This allows the robot to automatically learn which environmental features (like floor patterns or specific objects) humans find most salient when navigating.
  • Surface Realization via NMT: Once the content is selected, it is represented in an intermediate logic-based language called Compound Action Specifications (CAS). The system then treats the generation of English text as a translation task. They employ an Encoder-Aligner-Decoder architecture (a standard NMT setup using LSTMs and an attention mechanism) to translate CAS logic into free-form natural language.
  • Language Model Ranking: To ensure the final output is grammatically fluent, they use an external LSTM-based language model to rank multiple candidate instructions generated by the NMT component.

Datasets

  • SAIL (Search and Interpret Language): A benchmark dataset containing 3,213 human-generated route instructions across three virtual environments.
  • Data Augmentation: Because the original SAIL dataset is relatively small for deep learning, the authors used rule-based permutations to expand it to approximately 750,000 training pairs, allowing the neural network to learn a wider variety of linguistic structures.

Key Insights and Ideas

  • Learning Preferences, Not Rules: By using IRL, the model doesn't just "know" a map; it learns the subjective value of landmarks. It discovers that humans find a "grass hallway" more useful for orientation than a specific number of steps.
  • The "Translation" Paradigm: Treating instruction generation as a translation problem allows the model to capture the nuances of human prose—like using "until you see" or "face the stool"—without a programmer having to define those phrases manually.
  • Attention is Key: The "Aligner" (attention mechanism) proved vital. It allows the model to focus on specific parts of the logic command (e.g., the object "easel") while generating the corresponding part of the English sentence, significantly improving the BLEU score.

Key Results

  • Automated Metrics: The model achieved a sentence-level BLEU score of 72.18%, indicating high similarity to human-generated reference instructions.
  • Human Evaluation: In a "blind" test using 42 human participants on Amazon Mechanical Turk, the machine-generated instructions outperformed human ones. Participants reached the goal 75% of the time with robot instructions, compared to 71% with human instructions.
  • User Experience: Humans reported that the robot's instructions were easier to follow, required less backtracking, and inspired more confidence than the instructions written by other humans.

Limitations and Future Work

  • Shortest Path Constraint: The current model only generates instructions for the shortest mathematical path. However, a slightly longer path might be much easier to describe (e.g., "follow the red carpet to the end" vs. a complex series of turns in a maze).
  • Static Environments: The system assumes a static, pre-mapped environment. Future work could involve generating instructions in dynamic settings where the robot must account for moving obstacles or changing conditions.
  • Closing the Loop: The authors suggest moving toward an end-to-end Reinforcement Learning setup where the robot is rewarded directly based on whether the human successfully reaches the goal, rather than just how well it mimics human text.

Summary updated

BibTeX
@inproceedings{daniele2017navigational,
  author = {Andrea F. Daniele and Mohit Bansal and Matthew R. Walter},
  title = {{Navigational Instruction Generation as Inverse Reinforcement Learning with Neural Machine Translation}},
  booktitle = {HRI},
  year = {2017},
  doi = {10.1145/2909824.3020241},
}
Figure