TL;DR
This paper introduces DIALOGUESTL, an interactive system that learns formal robot task specifications (Signal Temporal Logic - STL) from ambiguous natural language instructions and a few demonstrations. By combining semantic parsing, large language models, and user clarification, DIALOGUESTL aims to bridge the gap between human-friendly language and precise robotic control, enabling the learning of optimal robot policies.
What Problem Does This Paper Address?
Communicating complex tasks and safety requirements to robots using natural language (NL) is intuitive for humans but challenging for machines due to NL's inherent ambiguity. While formal languages like Signal Temporal Logic (STL) offer precision, requiring users to write STL directly is a barrier for non-experts. Existing methods for translating NL to STL are often limited to specific fragments of STL and lack interactivity, making it difficult to handle underspecified or ambiguous instructions. This paper addresses the need for a system that can learn accurate STL specifications from natural language and demonstrations, even when the initial input is vague, by actively engaging with the user to resolve ambiguities.
Methods
The core of DIALOGUESTL is an interactive learning framework. It begins by using a Natural Language Splitter to break down the input NL into verb phrases, conjunctions, and adverbs. An "Atom Predictor," trained using a GPT-3 based paraphrase generator on a small set of manually created examples, maps verb phrases to potential STL atomic predicates. Similarly, an "Operator Predictor" matches conjunctions and adverbs to STL operators (like AND, OR, eventually, always).
These predicted atoms and operators are then used by a "PSTL Generator" to enumerate a set of candidate Parametric Signal Temporal Logic (PSTL) formulas. PSTL allows for parameters (like time intervals or object names) that are not yet specified. To refine these candidates and resolve ambiguities, DIALOGUESTL engages in a dialogue with the user, asking questions about task order, atom parameters, and operator parameters. This interaction, along with a few demonstrations (both positive and negative examples), helps to select the most appropriate STL formula. Finally, Deep Q-Learning is used to derive an optimal robot policy from the learned STL specification.
Datasets
The paper does not explicitly mention large, pre-existing datasets for training or evaluation. Instead, it describes a method for generating synthetic data for the "Atom Predictor" using GPT-3. This involves priming GPT-3 with a few examples and then providing manually generated verb phrases corresponding to STL atoms in their grid world environment. For the grid world example, they generated 15 atoms and 81 verb phrase samples. The evaluation is performed on a set of 107 paraphrased natural language inputs, paired with manually curated STL formulas and demonstrations.
Key Insights and Ideas
- Interactive Ambiguity Resolution: The most significant insight is the power of interactive dialogue in resolving the inherent ambiguity of natural language for robot task specification. Instead of a one-shot translation, DIALOGUESTL iteratively clarifies user intent.
- Leveraging LLMs for Data Augmentation: Using GPT-3 for paraphrasing verb phrases significantly enhances the robustness of the atom prediction module, overcoming the limitations of hand-crafted grammars.
- Bridging Formal Logic and Human Language: The work demonstrates a practical approach to translate high-level, human-understandable instructions into precise, formal specifications (STL) that can be directly used for robot control.
- Few-Shot Learning for Specifications: The system's ability to learn correct STL formulas with only a few demonstrations and interactions highlights the efficiency of the proposed approach.
Key Results
The paper demonstrates DIALOGUESTL's effectiveness on a grid world environment.
- High Accuracy: The system achieves high accuracy in predicting the correct STL formula, with success rates (SR) often exceeding 80% for various task types.
- Efficiency: It requires a small number of user interactions (average #UIs around 1-3) and demonstrations to learn the correct specification.
- Scalability: The approach is shown to be scalable, handling a variety of task complexities, from single constraints to sequential and multiple-choice tasks.
- Policy Learning: The learned STL specifications are successfully used to train optimal robot policies via Deep Q-Learning, with rewards converging in a reasonable number of episodes.
Limitations and Future Work
- Oracle User: The evaluation relies on an "Oracle user" which is a rule-based program providing correct answers. Real-world user interaction might introduce more variability and challenges.
- Splitting Brittleness: The authors acknowledge that if the initial NL splitting is incorrect, or if predicted atoms/operators are wrong, the system might fail. Future work could involve improving the splitting algorithm and using beam search for more robust enumeration.
- Limited Scope of STL: While STL is expressive, the paper focuses on a specific fragment. Extending to more complex STL constructs or other temporal logics could be a future direction.
- Generalization: While tested on various task types, further evaluation on more diverse and complex robotic domains would be beneficial.
Summary updated