Learning a natural-language to LTL executable semantic parser for grounded robotics

Christopher Wang, Candace Ross, Yen-Ling Kuo, Boris Katz, Andrei Barbu

Abstract

Children acquire their native language with apparent ease by observing how language is used in context and attempting to use it themselves. They do so without laborious annotations, negative examples, or explicit grammar rules. This paper presents a grounded semantic parser that learns to translate natural language commands into Linear Temporal Logic (LTL) formulas by observing robot movements in response to commands. Using a pretrained planner as a "critic," the system maps complex human instructions to executable code with high accuracy without requiring manually labeled logic.

Introduction

For robots to be truly useful, they must understand instructions involving temporal constraints, such as "Always stay near the tree" or "Go to the flag, then pick up the apple." These commands are formally represented using Linear Temporal Logic (LTL). However, training a machine to translate natural language into LTL typically requires massive datasets of expert-labeled pairs. This research addresses the challenge of weakly supervised grounded language learning: can a robot learn the underlying logic of a command just by watching a video of the task being performed?

Methods

The authors propose a grounded semantic parser using an encoder-decoder architecture (Bi-LSTM with attention). The training process is driven by three "competing pressures" to ensure the learned LTL formula is accurate:

  1. Permissiveness: The hypothesized LTL formula must allow the observed robot trajectory.
  2. Rationality: Using a pretrained LTL planner, the model checks if the observed trajectory is an efficient way to satisfy that formula.
  3. Reconstruction: A second decoder (the "generator") translates the LTL formula back into the original English sentence to maintain semantic detail.
The model architecture includes an encoder-parser-generator pipeline and a planner that evaluates the generated LTL formula (z) against observed trajectories (E).

The model is optimized using Reinforcement Learning (REINFORCE) or Iterative Maximum Likelihood (IML), following a curriculum approach that gradually increases formula complexity.

Experimental Setup

The study utilizes two primary datasets within a Minecraft-like environment called CRAFT:

  • Mechanical Dataset: 1,000 sentences generated by a formal grammar, paired with 3,000 execution traces.
  • Human-generated Dataset: 1,000 sentences written by human annotators, featuring a lexicon of 266 words and complex sentence structures.
Examples of execution traces in the CRAFT environment, showing robot paths (red dashed lines) relative to objects like trees, oranges, and pears.

Results and Discussion

The model successfully executed commands with ~80% accuracy on both datasets. Notably, the LTL-based approach far outperformed a standard "language-to-action" baseline, which achieved only ~20% success. This confirms that an intermediate logical representation is crucial for temporal tasks.

Key Insights

  • LTL as a Latent Bridge: Mapping language to formal logic (LTL) rather than direct actions makes the robot's reasoning interpretable and allows it to generalize to new environments.
  • Resolving Ambiguity: The model uses the planner's likelihood score to resolve "rationality" gaps, such as distinguishing between "Go to the tree" and "Always stay at the tree" when the behavior is ambiguous.

Limitations and Future Work

The model still struggles with situational ambiguity (e.g., "eventually" vs. "always") and does not yet handle negation. Future work will focus on more complex logics and applying this learning "recipe" to other robotic domains where expert annotations are unavailable.

Conclusion

This research demonstrates that robots can learn complex temporal logic from natural language through grounded observation. By leveraging LTL as a latent bridge and a pretrained planner as a critic, the system achieves near-supervised performance without the need for manual logic labeling.

Summary updated

BibTeX
@inproceedings{wang2020learning,
  author = {Christopher Wang and Candace Ross and Yen-Ling Kuo and Boris Katz and Andrei Barbu},
  title = {{Learning a natural-language to LTL executable semantic parser for grounded robotics}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=yVHIlNP6-Pu},
}
Figure