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.
Introduction
Robots operating in human-centric spaces must interpret instructions that go beyond simple point-to-point navigation. Real-world tasks often involve complex temporal constraints, such as sequencing, frequency, and avoidance (e.g., "Visit the grocery store twice, but only after visiting the bank, and always avoid First Street"). While Linear Temporal Logic (LTL) provides a mathematically rigorous framework for such tasks, existing grounding methods typically suffer from a lack of generalization, requiring extensive environment-specific training data.
The Lang2LTL Framework
To address the challenge of zero-shot generalization in unseen environments, we introduce Lang2LTL, a modular pipeline that decouples landmark recognition from logical translation. The system consists of three primary stages:
- Referring Expression Recognition (RER): Utilizing GPT-4 with in-context learning, the system extracts substrings from the natural language command that refer to physical landmarks (e.g., "the white table").
- Referring Expression Grounding (REG): Extracted expressions are matched to specific entries in a semantic map using LLM-generated embeddings and cosine similarity. This allows the system to resolve descriptions like "the store on Main Street" to a unique database ID.
- Lifted Translation: The core innovation involves "lifting" the command by replacing specific landmarks with generic placeholders (e.g., "Go to A then B"). A fine-tuned LLM translates this abstracted command into a "lifted" LTL formula.
By abstracting the logic from the specific environment, the model learns the underlying linguistic structure of temporal constraints, enabling it to handle "Vocabulary Shift" where landmark names vary across different settings.
Experimental Evaluation
Lang2LTL was evaluated across several benchmarks, including a new Lang2LTL Lifted Dataset containing nearly 50,000 utterances, and the Grounded OSM Dataset covering 21 city-scaled environments.
Key Results
- Zero-Shot Accuracy: Lang2LTL achieved an 81.83% grounding accuracy across 21 unseen cities. In the CleanUp World indoor benchmark, it reached 78.28% accuracy, significantly outperforming previous state-of-the-art models like CopyNet, which dropped to 2.57% in zero-shot scenarios.
- Precision in Grounding: Both the RER and REG modules demonstrated high reliability, achieving approximately 98% accuracy in landmark resolution.
- Physical Deployment: Tests on a Boston Dynamics Spot robot showed that Lang2LTL could successfully execute 40 satisfiable commands and correctly identify 12 unsatisfiable ones, proving superior to "Code-as-Policies" approaches.
Discussion and Future Work
A significant advantage of Lang2LTL is its production of formal logic specifications, allowing for mathematical verification. This ensures that contradictory or impossible commands are detected before execution, enhancing robot safety.
However, limitations remain. The system currently struggles with coreference resolution (e.g., pronouns) and can be ambiguous when multiple identical landmarks exist in an environment. Future iterations will explore active querying to resolve such ambiguities and larger training sets to improve generalization to entirely new logical structures.
Summary updated