Skip to main content
QUICK REVIEW

[Paper Review] AdaPlanner: Adaptive Planning from Feedback with Language Models

Haotian Sun, Yuchen Zhuang|arXiv (Cornell University)|May 26, 2023
Topic ModelingComputer Science13 citations
TL;DR

AdaPlanner introduces an explicit closed-loop planning framework where an LLM acts as planner and refiner, using in-plan and out-of-plan refinements with code-based prompts and skill discovery to improve sample efficiency and adaptability across ALFWorld and MiniWoB++.

ABSTRACT

Large language models (LLMs) have recently demonstrated the potential in acting as autonomous agents for sequential decision-making tasks. However, most existing methods either take actions greedily without planning or rely on static plans that are not adaptable to environmental feedback. Consequently, the sequential decision-making performance of LLM agents degenerates with problem complexity and plan horizons increase. We propose a closed-loop approach, AdaPlanner, which allows the LLM agent to refine its self-generated plan adaptively in response to environmental feedback. In AdaPlanner, the LLM agent adaptively refines its plan from feedback with both in-plan and out-of-plan refinement strategies. To mitigate hallucination, we develop a code-style LLM prompt structure that facilitates plan generation across a variety of tasks, environments, and agent capabilities. Furthermore, we propose a skill discovery mechanism that leverages successful plans as few-shot exemplars, enabling the agent to plan and refine with fewer task demonstrations. Our experiments in the ALFWorld and MiniWoB++ environments demonstrate that AdaPlanner outperforms state-of-the-art baselines by 3.73% and 4.11% while utilizing 2x and 600x fewer samples, respectively.

Motivation & Objective

  • Address limitations of open-loop and fixed-plan closed-loop LLM agents in text-based environments.
  • Develop an explicit closed-loop framework where planning and refinement are both performed by an LLM.
  • Mitigate hallucinations with code-style prompting and enhance sample efficiency via skill discovery.
  • Enable rapid plan refinement through in-plan querying (ask_LLM) and out-of-plan plan revision (refine-then-resume).
  • Demonstrate state-of-the-art performance on ALFWorld and MiniWoB++ with reduced demonstrations.

Proposed method

  • Plan generation via Pythonic code prompts to decompose tasks into sub-goals and enable breakpoint-driven resume from refined plans.
  • Explicit closed-loop refinement: in-plan (ask_LLM) to extract useful information from observations and update future actions, and out-of-plan to replace the entire plan when predictions fail.
  • Skill memory that stores successful plans and uses them as few-shot exemplars to improve planning efficiency.
  • Environment-interaction strategy that evaluates at N crucial timestamps, triggering refinement only when discrepancies occur, reducing API calls.
  • Code interface is shown to significantly reduce LLM hallucination compared to natural-language prompts.
  • A formal treatment distinguishing open-loop, implicit closed-loop, and explicit closed-loop planning systems, with AdaPlanner categorized as explicit closed-loop.

Experimental results

Research questions

  • RQ1How can an LLM-based agent adapt its plan in real time using environmental feedback without retraining?
  • RQ2Does a code-based prompting approach reduce hallucinations and improve planning reliability in LLM agents?
  • RQ3Can skill discovery from successful plans boost long-horizon planning efficiency and sample efficiency?
  • RQ4What is the impact of explicit plan refinement (in-plan and out-of-plan) on task success and sample efficiency across ALFWorld and MiniWoB++?
  • RQ5How does AdaPlanner compare to state-of-the-art baselines under varying sample regimes?

Key findings

  • AdaPlanner achieves state-of-the-art success: 91.79% in ALFWorld and 91.11% in MiniWoB++ with feedback.
  • AdaPlanner uses 2x fewer samples in ALFWorld and 600x fewer samples in MiniWoB++ than some baselines.
  • Code-based prompting substantially reduces hallucination and improves performance versus natural language prompts.
  • Skill discovery materially improves sample efficiency and task success across both environments.
  • Explicit closed-loop plan refinement consistently outperforms implicit or fixed-plan methods across experiments.

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.