Grounding Complex Natural Language Commands for Temporal Tasks in Unseen Environments

Jason Xinyu Liu, Ziyi Yang, Ifrah Idrees, Sam Liang, Benjamin Schornstein, Stefanie Tellex, Ankit Shah

Abstract

Grounding navigational commands to linear temporal logic (LTL) leverages its unambiguous semantics for reasoning about long-horizon tasks and verifying the satisfaction of temporal constraints. Existing approaches require training data from the specific environment and landmarks that will be used in natural language to understand commands in those environments. We propose Lang2LTL, a modular system and a software package that leverages large language models (LLMs) to ground temporal navigational commands to LTL specifications in environments without prior language data. We comprehensively evaluate Lang2LTL for five well-defined generalization behaviors. Lang2LTL demonstrates the state-of-the-art ability of a single model to ground navigational commands to diverse temporal specifications in 21 city-scaled environments. Finally, we demonstrate a physical robot using Lang2LTL can follow 52 semantically diverse navigational commands in two indoor environments.

The Challenge of Complex Robot Instructions

For robots to be truly useful in human-centric environments, they must understand complex instructions that involve more than just a single destination. Humans naturally use temporal constraints: "Go to the post office, then the pharmacy, but avoid Main Street because of construction."

Existing approaches to language grounding typically suffer from two major flaws. First, they lack generalization, often requiring training data specific to the environment and landmarks they will encounter. Second, they struggle with long-horizon tasks or complex logic (ordering, frequency, and avoidance) because they attempt to map language directly to robot policies. Lang2LTL addresses this by using Linear Temporal Logic (LTL) as an intermediate representation, providing a mathematically rigorous way to express time-based constraints for formal planners.

Methods: The Lang2LTL Modular Architecture

The core innovation of Lang2LTL is its modular architecture, which breaks the grounding problem into three distinct steps:

  1. Referring Expression Recognition (RER): The system uses an LLM to identify substrings in a command that refer to specific landmarks (e.g., "the store on Main Street").
  2. Referring Expression Grounding (REG): Instead of hard-coding landmarks, the system uses LLM-generated embeddings to calculate the semantic similarity between the user's phrase and entries in a semantic map (like OpenStreetMap). This allows it to match "the coffee place" to "Starbucks" without being explicitly told they are the same.
  3. Lifted Translation: The system replaces specific landmarks with placeholders (e.g., "Go to A then B") to create a "lifted" utterance. A finetuned LLM translates this lifted language into a lifted LTL formula.
The Lang2LTL modular architecture decouples referring expression recognition, grounding, and logical translation to enable zero-shot generalization.

By "lifting" the command, the model learns the logic of the language separately from the map data. Finally, the placeholders are swapped back for the grounded propositions, and a planner generates the robot's path.

Evaluation and Key Results

The authors introduced the Lang2LTL Lifted Dataset, a parallel corpus of ~50,000 English utterances mapped to 2,125 unique LTL formulas. They also tested the system on the Grounded OSM Dataset across 21 different city-scale environments using OpenStreetMap data.

Lang2LTL successfully grounds complex temporal commands in both city-scale maps and indoor environments using a Boston Dynamics Spot robot.

Key findings include:

  • State-of-the-Art Performance: Lang2LTL achieved an average grounding accuracy of 81.83% across 21 unseen cities, significantly outperforming previous baselines.
  • Zero-Shot Generalization: The system successfully transferred to the CleanUp World dataset with 78.28% accuracy without any fine-tuning on that specific domain.
  • Physical Deployment: The researchers deployed the system on a Boston Dynamics Spot robot. The quadruped successfully followed 52 semantically diverse commands in two different indoor office and household environments.

Key Insights

  • Modularization is Key to Zero-Shot Success: By separating landmark grounding from logical translation, the system can be deployed in a new city instantly. You only need to provide a new semantic map; the "logic" module remains the same.
  • Prefix Notation and Type-Constrained Decoding (TCD): Representing LTL formulas in prefix format and implementing grammar-based constraints during decoding ensures the LLM generates syntactically correct formulas reliably.
  • Formal Soundness: Because the output is LTL, the robot can recognize when a command is "unsatisfiable" (e.g., "Visit A and B at the same time") and abort correctly rather than failing dangerously.

Limitations and Future Work

While powerful, Lang2LTL currently struggles with coreference resolution (e.g., pronouns like "there") and complex spatial relations (e.g., "the office behind the kitchen"). Additionally, map ambiguity remains a challenge; future work aims to incorporate a dialog component for clarification and address structural overfitting in the lifted translation model.

Summary updated

BibTeX
@inproceedings{liu2023grounding,
  author = {Jason Xinyu Liu and Ziyi Yang and Ifrah Idrees and Sam Liang and Benjamin Schornstein and Stefanie Tellex and Ankit Shah},
  title = {{Grounding Complex Natural Language Commands for Temporal Tasks in Unseen Environments}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=rpWi4SYGXj},
}
Figure