Skip to main content
QUICK REVIEW

[Paper Review] Translating Natural Language to Planning Goals with Large-Language Models

Yaqi Xie, Yu Chen|arXiv (Cornell University)|Feb 10, 2023
Natural Language Processing TechniquesComputer Science45 citations
TL;DR

The paper evaluates GPT-3.5 variants as translators from natural language into PDDL goals, finding strong translation performance for explicit, well-specified tasks but limited reliability for partially specified or numerically/physically demanding tasks, highlighting both promise and pitfalls of using LLMs as goal translators for planners.

ABSTRACT

Recent large language models (LLMs) have demonstrated remarkable performance on a variety of natural language processing (NLP) tasks, leading to intense excitement about their applicability across various domains. Unfortunately, recent work has also shown that LLMs are unable to perform accurate reasoning nor solve planning problems, which may limit their usefulness for robotics-related tasks. In this work, our central question is whether LLMs are able to translate goals specified in natural language to a structured planning language. If so, LLM can act as a natural interface between the planner and human users; the translated goal can be handed to domain-independent AI planners that are very effective at planning. Our empirical results on GPT 3.5 variants show that LLMs are much better suited towards translation rather than planning. We find that LLMs are able to leverage commonsense knowledge and reasoning to furnish missing details from under-specified goals (as is often the case in natural language). However, our experiments also reveal that LLMs can fail to generate goals in tasks that involve numerical or physical (e.g., spatial) reasoning, and that LLMs are sensitive to the prompts used. As such, these models are promising for translation to structured planning languages, but care should be taken in their use.

Motivation & Objective

  • Assess whether large-language models can translate natural language instructions into PDDL goals for planning.
  • Evaluate how prompts (one-shot vs. few-shot) affect translation quality and generalization across domain configurations.
  • Identify failure modes in translation, particularly for numerical, spatial, or predicate-semantics reasoning, and analyze subtasks (domain understanding, goal inference, PDDL generation).
  • Provide guidance on designing LLM-based goal translators for robot planning by separating translation from planning (parse-and-solve approach).

Proposed method

  • Use GPT-3.5 variants (code-davinci-002 for Blocksworld, text-davinci-003 for ALFRED-L) to translate English instructions into PDDL goals.
  • Test two domains (Blocksworld and ALFRED-L) with various task types including explicitly specified and partially specified goals.
  • Evaluate translation via strict and loose success criteria against planner compatibility and predicate correctness.
  • Decompose translation into domain understanding, goal inference, and PDDL goal specification to diagnose failure points.
  • Analyze prompt sensitivity by varying n-shot prompts and sentence order (e.g., bottom-to-top vs. top-to-bottom).

Experimental results

Research questions

  • RQ1Can LLMs reliably translate natural language goals into PDDL-compatible goals across domains?
  • RQ2How do domain understanding, goal inference, and PDDL generation contribute to translation success or failure?
  • RQ3What are the effects of prompt design (shots, examples, and ordering) on translation performance and generalization?
  • RQ4What are the main failure modes when translating to planning goals, especially for numerical and spatial reasoning?

Key findings

  • LLMs can effectively translate explicit, unambiguous natural language goals to PDDL with high success under strict criteria (e.g., ExplicitStacks: loose 99.67%, strict 98.67%; ExplicitInstruct in ALFRED-L: 100% both).
  • Performance drops for partially specified goals and ambiguous prompts (e.g., BlockAmbiguity, KStacksColor show low success under strict/loose criteria).
  • Translation performance is sensitive to prompts; one-shot vs. few-shot examples and ordering (bottom-to-top vs. top-to-bottom) can cause substantial differences (ExplicitStacks-II ~50% vs higher for unambiguous cases).
  • LLMs show strong linguistic competence and commonsense filling of gaps, but struggle with numerical and physical (spatial) reasoning, affecting tasks like counting and nested relationships (MoveToCount2/3, MoveNested, MoveNested2).
  • Domain understanding and goal inference subtasks correlate with translation success; failures often involve difficulty with semantic predicates or hierarchical relationships in domain models (Blocksworld) and numerical/grounding aspects (ALFRED-L).
  • The parse-and-solve (translation-first) approach is promising but requires careful handling of model biases and failure modes to be reliable in real systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.