Skip to main content
QUICK REVIEW

[Paper Review] Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memory

Xizhou Zhu, Yuntao Chen|arXiv (Cornell University)|May 25, 2023
Topic ModelingComputer Science27 references24 citations
TL;DR

The paper introduces GITM, a framework that uses LLMs with text-based knowledge and memory to build Generally Capable Agents in Minecraft, achieving large gains over RL-based methods by hierarchical goal decomposition into structured actions and keyboard/mouse control.

ABSTRACT

The captivating realm of Minecraft has attracted substantial research interest in recent years, serving as a rich platform for developing intelligent agents capable of functioning in open-world environments. However, the current research landscape predominantly focuses on specific objectives, such as the popular "ObtainDiamond" task, and has not yet shown effective generalization to a broader spectrum of tasks. Furthermore, the current leading success rate for the "ObtainDiamond" task stands at around 20%, highlighting the limitations of Reinforcement Learning (RL) based controllers used in existing methods. To tackle these challenges, we introduce Ghost in the Minecraft (GITM), a novel framework integrates Large Language Models (LLMs) with text-based knowledge and memory, aiming to create Generally Capable Agents (GCAs) in Minecraft. These agents, equipped with the logic and common sense capabilities of LLMs, can skillfully navigate complex, sparse-reward environments with text-based interactions. We develop a set of structured actions and leverage LLMs to generate action plans for the agents to execute. The resulting LLM-based agent markedly surpasses previous methods, achieving a remarkable improvement of +47.5% in success rate on the "ObtainDiamond" task, demonstrating superior robustness compared to traditional RL-based controllers. Notably, our agent is the first to procure all items in the Minecraft Overworld technology tree, demonstrating its extensive capabilities. GITM does not need any GPU for training, but a single CPU node with 32 CPU cores is enough. This research shows the potential of LLMs in developing capable agents for handling long-horizon, complex tasks and adapting to uncertainties in open-world environments. See the project website at https://github.com/OpenGVLab/GITM.

Motivation & Objective

  • Motivate the need for generally capable agents (GCAs) in open-world environments beyond single-task RL benchmarks like ObtainDiamond.
  • Propose a hierarchical LLM-based framework to decompose long-horizon goals into sub-goals and structured actions.
  • Show that text-based knowledge and memory enable efficient planning and execution in Minecraft without GPU training.

Proposed method

  • Introduce LLM Decomposer to recursively break goals into a sub-goal tree using text-based knowledge.
  • Develop LLM Planner to generate sequences of structured actions and maintain a text-based memory of successful plans.
  • Implement LLM Interface to execute structured actions as keyboard/mouse operations via hand-written scripts.
  • Leverage a text-based external knowledge base from Minecraft Wiki and crafting recipes to guide planning.
  • Use feedback from the environment to revise plans in a closed-loop LLM planning process.
  • Abstract actions with well-defined semantics (e.g., equip, explore, mine, craft) to enable cognitive planning by LLMs.

Experimental results

Research questions

  • RQ1Can an LLM-based agent, with text-based knowledge and memory, solve long-horizon Minecraft tasks better than RL-based controllers?
  • RQ2Does hierarchical decomposition into sub-goals and structured actions improve planning robustness and success across the entire Minecraft Overworld technology tree?
  • RQ3How does external knowledge and memory influence planning efficiency and generalization to unseen tasks in open-world environments?
  • RQ4What is the impact of feedback and memory on the ability to obtain complex items (e.g., diamonds) and all Overworld items?
  • RQ5How does the learning efficiency of an LLM-based agent compare to traditional RL agents in terms of environment interactions and GPU requirements?

Key findings

  • Our GITM agent achieves a +47.5% improvement in success rate on the ObtainDiamond task over prior methods.
  • GITM can unlock all 262 items in the Minecraft Overworld technology tree, outperforming RL-based agents that cover far fewer items.
  • The approach reduces environment interaction steps by more than 10,000× and requires no GPU for training, using a single CPU node instead.
  • A hierarchical LLM-based planning pipeline (Decomposer, Planner, Interface) with text-based memory enables long-horizon task solving and robustness to open-world uncertainty.
  • Ablation shows goal decomposition, external knowledge, memory, and feedback each contribute to higher success rates, with combined use yielding the best results.
  • Compared to VPT and DreamerV3, GITM offers stronger scalability and robustness across a wide range of Minecraft tasks beyond ObtainDiamond.

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.