Skip to main content
QUICK REVIEW

[Paper Review] Agent Planning with World Knowledge Model

Shuofei Qiao, Runnan Fang|arXiv (Cornell University)|May 23, 2024
Multi-Agent Systems and NegotiationComputer Science4 citations
TL;DR

This paper proposes a parametric World Knowledge Model (WKM) that enhances LLM-based agent planning by synthesizing global task knowledge and dynamic state knowledge from expert and sampled trajectories. By integrating this knowledge into the agent’s planning process via kNN retrieval and weighted action prediction, the method significantly reduces hallucinatory actions and trial-and-error, achieving state-of-the-art performance across three real-world simulated environments using open-source LLMs like Mistral-7B, Gemma-7B, and Llama-3-8B.

ABSTRACT

Recent endeavors towards directly using large language models (LLMs) as agent models to execute interactive planning tasks have shown commendable results. Despite their achievements, however, they still struggle with brainless trial-and-error in global planning and generating hallucinatory actions in local planning due to their poor understanding of the ``real'' physical world. Imitating humans' mental world knowledge model which provides global prior knowledge before the task and maintains local dynamic knowledge during the task, in this paper, we introduce parametric World Knowledge Model (WKM) to facilitate agent planning. Concretely, we steer the agent model to self-synthesize knowledge from both expert and sampled trajectories. Then we develop WKM, providing prior task knowledge to guide the global planning and dynamic state knowledge to assist the local planning. Experimental results on three complex real-world simulated datasets with three state-of-the-art open-source LLMs, Mistral-7B, Gemma-7B, and Llama-3-8B, demonstrate that our method can achieve superior performance compared to various strong baselines. Besides, we analyze to illustrate that our WKM can effectively alleviate the blind trial-and-error and hallucinatory action issues, providing strong support for the agent's understanding of the world. Other interesting findings include: 1) our instance-level task knowledge can generalize better to unseen tasks, 2) weak WKM can guide strong agent model planning, and 3) unified WKM training has promising potential for further development. The code is available at https://github.com/zjunlp/WKM.

Motivation & Objective

  • Address the limitations of LLM-based agents in planning tasks, particularly blind trial-and-error and hallucinatory actions due to poor world understanding.
  • Bridge the gap between LLMs and human-like planning by modeling both global prior knowledge and local dynamic state awareness.
  • Develop a trainable, parametric World Knowledge Model (WKM) that generates task and state knowledge from trajectories without manual prompting.
  • Enable the WKM to generalize to unseen tasks and support efficient, knowledge-augmented planning with minimal inference overhead.
  • Demonstrate the effectiveness of WKM across diverse environments and LLM architectures, including strong open-source models.

Proposed method

  • Self-synthesize task knowledge by comparing expert and sampled trajectories using the agent model to identify key planning steps and commonsense constraints.
  • Generate state knowledge for each planning step by prompting the agent to summarize current world state using context from previous and next actions.
  • Construct a state knowledge base by storing natural language descriptions of world states linked to action transitions.
  • Integrate WKM with the agent model via LoRA fine-tuning, sharing the same LLM backbone for parameter efficiency.
  • During inference, use kNN retrieval on the state knowledge base with the current action as query to retrieve relevant state representations.
  • Combine retrieved state knowledge, previous action context, and agent model probabilities into a weighted prediction for the next action to reduce hallucinations.

Experimental results

Research questions

  • RQ1Can a self-synthesized World Knowledge Model reduce blind trial-and-error and hallucinatory actions in LLM-based agent planning?
  • RQ2How well does instance-level task knowledge generalize to unseen tasks compared to fixed or handcrafted prompts?
  • RQ3Can a weak WKM effectively guide a strong agent model in planning, demonstrating the feasibility of weak-guide-strong paradigms?
  • RQ4Does unified multi-task WKM training offer better generalization and scalability across diverse environments?
  • RQ5What is the impact of explicit state knowledge on agent planning performance, and does it improve or degrade outcomes?

Key findings

  • The proposed WKM significantly reduces brainless trial-and-error and invalid actions, with empirical results showing improved success rates on ALFWorld, WebShop, and ScienceWorld.
  • Model-generated instance-level task knowledge generalizes better to unseen tasks than fixed or manually designed prompts, indicating robustness to distribution shift.
  • The weak-guide-strong paradigm is feasible: even a weak WKM can effectively guide a strong LLM agent, demonstrating the scalability of knowledge distillation in planning.
  • Unified WKM training across multiple tasks shows strong potential for future development, suggesting that multi-task knowledge learning enhances generalization.
  • Explicitly providing state knowledge during inference can hurt performance, indicating that dynamic retrieval from a knowledge base is more effective than static injection.
  • The method achieves state-of-the-art performance across three complex simulated environments using three open-source LLMs, including Mistral-7B, Gemma-7B, and Llama-3-8B.

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.