Skip to main content
QUICK REVIEW

[Paper Review] Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoning

Mohamed Aghzal, Erion Plaku|arXiv (Cornell University)|Oct 5, 2023
Natural Language Processing TechniquesComputer Science6 citations
TL;DR

This paper introduces PPNL, a benchmark to evaluate large language models (LLMs) on spatial-temporal reasoning for path planning in grid environments. Using few-shot prompting, chain-of-thought, and ReAct-style interleaved reasoning, GPT-4 achieves 96.1% success rate on localized tasks, but still fails at long-term temporal reasoning; fine-tuned models generalize poorly beyond training distributions.

ABSTRACT

Large language models (LLMs) have achieved remarkable success across a wide spectrum of tasks; however, they still face limitations in scenarios that demand long-term planning and spatial reasoning. To facilitate this line of research, in this work, we propose a new benchmark, termed $ extbf{P}$ath $ extbf{P}$lanning from $ extbf{N}$atural $ extbf{L}$anguage ($ extbf{PPNL}$). Our benchmark evaluates LLMs' spatial-temporal reasoning by formulating ''path planning'' tasks that require an LLM to navigate to target locations while avoiding obstacles and adhering to constraints. Leveraging this benchmark, we systematically investigate LLMs including GPT-4 via different few-shot prompting methodologies as well as BART and T5 of various sizes via fine-tuning. Our experimental results show the promise of few-shot GPT-4 in spatial reasoning, when it is prompted to reason and act interleavedly, although it still fails to perform long-term temporal reasoning. In contrast, while fine-tuned LLMs achieved impressive results on in-distribution reasoning tasks, they struggled to generalize to larger environments or environments with more obstacles.

Motivation & Objective

  • To address the gap in evaluating LLMs' spatial-temporal reasoning capabilities, especially in long-horizon planning tasks.
  • To develop a controlled, grounded benchmark that isolates spatial and temporal reasoning without confounding modalities.
  • To investigate how state-of-the-art LLMs like GPT-4 perform on path planning using various prompting strategies.
  • To compare few-shot prompting with fine-tuned models (BART, T5) in terms of in-distribution performance and out-of-distribution generalization.
  • To assess the limits of current LLMs in reasoning about dynamic, obstacle-avoiding navigation over extended sequences.

Proposed method

  • Propose PPNL, a benchmark that formulates path planning as a natural language instruction task in structured grid environments with obstacles and constraints.
  • Generate synthetic grid environments with varying sizes, obstacle counts, and goal configurations to control evaluation conditions.
  • Apply four prompting strategies to GPT-4: naive few-shot, action-and-effect prompting, chain-of-thought (CoT), and ReAct (reason, act, observe interleaving).
  • Fine-tune BART and T5 models on in-distribution path planning data to evaluate zero-shot generalization to new environments.
  • Use a structured evaluation protocol where success is defined by reaching all goals without collisions, with trajectory validity checked via simulation.
  • Measure performance using success rate, trajectory length, and generalization across environment variations.
Figure 1: Overview of the data generation process.
Figure 1: Overview of the data generation process.

Experimental results

Research questions

  • RQ1Can few-shot prompted LLMs like GPT-4 successfully perform end-to-end path planning in grid environments with obstacles?
  • RQ2How does interleaved reasoning (e.g., ReAct) improve LLMs' spatial-temporal planning compared to static CoT or naive prompting?
  • RQ3To what extent can fine-tuned LLMs (BART, T5) generalize to larger or more complex environments beyond their training distribution?
  • RQ4Does the performance of LLMs degrade significantly when planning over longer sequences or in environments with higher obstacle density?
  • RQ5Can LLMs maintain long-term temporal reasoning, or do they rely on frequent environmental feedback to correct short-sighted decisions?

Key findings

  • ReAct prompting improved GPT-4's success rate to 96.1%, significantly outperforming naive few-shot prompting, demonstrating the value of interleaved reasoning and environment feedback.
  • Action-and-effect prompting increased success by 21.5% over naive few-shot prompting, showing that tracking state changes improves immediate decision-making.
  • Chain-of-thought prompting added a 3% improvement over action-and-effect, indicating that structured reasoning enhances planning quality.
  • Despite high success on in-distribution tasks, fine-tuned BART and T5 models failed to generalize to larger grids or environments with more obstacles.
  • GPT-4 with ReAct still plans only a few steps ahead and frequently corrects its path, indicating a lack of long-term temporal reasoning capability.
  • Naive prompting led to random action sequences, confirming that unguided LLMs fail to conceptualize the path planning task or environment structure.
Figure 2: Overview of the most common errors produced by each prompting method for few-shot GPT-4. We show the shortcomings of each method and how other methods improve on that aspect.
Figure 2: Overview of the most common errors produced by each prompting method for few-shot GPT-4. We show the shortcomings of each method and how other methods improve on that aspect.

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.