Skip to main content
QUICK REVIEW

[Paper Review] Understanding the Capabilities of Large Language Models for Automated Planning

Vishal Pallagani, Bharath Muppasani|arXiv (Cornell University)|May 25, 2023
Natural Language Processing TechniquesComputer Science6 citations
TL;DR

This paper investigates the capabilities of large language models (LLMs) for automated planning using PDDL, finding that fine-tuning LLMs pre-trained on code significantly improves plan generation for seen domains, but generalization to unseen domains remains limited. The study introduces a new metric for plan generalization and provides a public benchmark with model weights to advance future research in LLM-based planning.

ABSTRACT

Automated planning is concerned with developing efficient algorithms to generate plans or sequences of actions to achieve a specific goal in a given environment. Emerging Large Language Models (LLMs) can answer questions, write high-quality programming code, and predict protein folding, showcasing their versatility in solving various tasks beyond language-based problems. In this paper, we aim to explore how LLMs can also be used for automated planning. To do so, we seek to answer four key questions. Firstly, we want to understand the extent to which LLMs can be used for plan generation. Secondly, we aim to identify which pre-training data is most effective in facilitating plan generation. Thirdly, we investigate whether fine-tuning or prompting is a more effective approach for plan generation. Finally, we explore whether LLMs are capable of plan generalization. By answering these questions, the study seeks to shed light on the capabilities of LLMs in solving complex planning problems and provide insights into the most effective approaches for using LLMs in this context.

Motivation & Objective

  • To evaluate the extent to which LLMs can generate valid and optimal plans for classical planning problems expressed in PDDL.
  • To identify which pre-training data (e.g., code vs. natural language) enhances LLMs' plan generation capabilities.
  • To compare the effectiveness of prompting versus fine-tuning for improving plan generation in LLMs.
  • To assess the generalization capabilities of LLMs across varying plan lengths, object names, and unseen planning domains.

Proposed method

  • Fine-tuned CodeT5 and code-davinci using a diverse set of 6 classical planning domains from the PDDL benchmark.
  • Applied few-shot prompting with examples from training domains to evaluate zero-shot and few-shot plan generation.
  • Proposed a new metric, $E_{pg}$, to quantify plan generalization based on correctness across different plan lengths and object name variations.
  • Conducted experiments on unseen domains (childsnack, depots, satellite) to evaluate cross-domain generalization.
  • Used a public codebase with model weights and benchmark problems to ensure reproducibility and support future research.
  • Evaluated models on plan correctness, plan length generalization, and robustness to randomized object names.

Experimental results

Research questions

  • RQ1To what extent can LLMs solve planning problems expressed in PDDL?
  • RQ2What pre-training data is most effective for facilitating plan generation in LLMs?
  • RQ3Does fine-tuning or prompting lead to better plan generation performance?
  • RQ4Are LLMs capable of generalizing to unseen planning domains and varying plan lengths?

Key findings

  • Off-the-shelf, pre-trained LLMs are not capable of effectively solving planning problems without fine-tuning.
  • LLMs pre-trained on code (e.g., CodeT5, code-davinci) outperform natural language-only models in plan generation.
  • Fine-tuning significantly improves plan generation, resulting in higher correctness and better generalization to unseen plan lengths compared to prompting.
  • Fine-tuned models show partial generalization to randomized object names when the vocabulary aligns with training data, but fail when vocabulary diverges.
  • Both prompting and fine-tuning fail completely when tested on entirely unseen domains such as childsnack, depots, and satellite, with $E_{pg} = 1$ indicating no valid plans generated.
  • The proposed $E_{pg}$ metric effectively captures plan generalization, revealing that current LLMs struggle with domain generalization despite progress in length and structure generalization.

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.