VillagerAgent: A Graph-Based Multi-Agent Framework for Coordinating Complex Task Dependencies in Minecraft

Yubo Dong, Xukun Zhu, Zhengzhe Pan, Linchao Zhu, Yi Yang

Abstract

Coordinating multiple Large Language Model (LLM) agents in environments with complex dependencies remains a significant challenge. Traditional frameworks often rely on linear pipelines or unstructured discussions, which struggle with spatial, causal, and temporal constraints. This paper presents VillagerAgent, a framework that utilizes Directed Acyclic Graphs (DAGs) to orchestrate multi-agent cooperation. By centralizing task decomposition and state management while decentralizing execution, VillagerAgent effectively manages task dependencies and reduces planning hallucinations. We evaluate our approach on VillagerBench, a novel Minecraft-based benchmark, and demonstrate that VillagerAgent significantly outperforms existing baselines in completion rates, workload balance, and efficiency.

Introduction

While LLM-based agents have shown promise in solo tasks, multi-agent collaboration remains a frontier problem. Existing frameworks often rely on fixed pipelines or assume that all subtasks can be executed in parallel. However, real-world tasks—and complex games like Minecraft—involve intricate dependencies. These include spatial constraints (e.g., building walls before a roof), causal chains (e.g., gathering ingredients before cooking), and temporal synchronization (e.g., pulling levers simultaneously). Current systems often fail because they lack a mechanism to reason about these long-term consequences, leading to planning hallucinations or inefficient resource competition.

The VillagerAgent Framework

The authors propose the VillagerAgent framework, which centralizes high-level planning while decentralizing execution. It consists of four primary components:

  1. Task Decomposer: The "brain" of the system, which takes a high-level goal and generates a Directed Acyclic Graph (DAG) of subtasks. This structure explicitly defines task dependencies.
  2. Agent Controller: Analyzes the DAG and the current environment state to assign "ready-to-execute" subtasks to the most suitable agents.
  3. State Manager: A centralized ledger tracking global environment and individual agent statuses, serving as a long-term memory.
  4. Base Agents: The "workers" that use a ReAct (Reason + Act) procedure to execute subtasks and provide feedback for subsequent planning.
The VillagerAgent architecture featuring the Task Decomposer, Agent Controller, State Manager, and Base Agents.

VillagerBench: A New Multi-Agent Benchmark

To evaluate the framework, the authors introduced VillagerBench, a comprehensive benchmark within Minecraft consisting of three main scenarios:

  • Construction Cooperation: Tests spatial reasoning through building structures from blueprints.
  • Farm-to-Table Cooking: Tests causal dependencies through multi-step ingredient gathering and crafting.
  • Escape Room Challenge: Tests temporal synchronization and sequential logic in puzzle-solving.

The framework was also evaluated on the standard Overcooked-AI environment to test its generalizability.

Key Results and Insights

VillagerAgent demonstrated superior performance over baselines like AgentVerse across all metrics. A key insight is the power of the DAG in mitigating "multi-agent hallucinations." In discussion-based models, agents often hallucinate that a teammate has completed a task when they haven't. VillagerAgent’s centralized Task Decomposer and State Manager significantly reduce these errors by maintaining a "single source of truth."

Performance comparison between VillagerAgent and AgentVerse across key metrics including Completion Rate and Workload Balance.

Quantitatively, VillagerAgent outperformed the AgentVerse model across all metrics in the Farm-to-Table task. Furthermore, in the "Forced Coordination" scenario of Overcooked-AI, VillagerAgent achieved a score of 120, more than doubling the previous state-of-the-art (ProAgent) score of 49.7. Performance generally improved as agent counts increased from 1 to 4, though it plateaued at 8 agents due to resource competition.

Conclusion

VillagerAgent represents a significant step forward in multi-agent coordination by replacing unstructured communication with a formal graph-based task management system. While absolute completion rates on the most complex tasks remain a challenge, the framework's ability to handle intricate dependencies and reduce hallucinations sets a new standard for autonomous agent collaboration. Future work will focus on improving base agent autonomy and scaling to larger swarms of agents.

Summary updated

BibTeX
@inproceedings{dong2024villageragent,
  author = {Yubo Dong and Xukun Zhu and Zhengzhe Pan and Linchao Zhu and Yi Yang},
  title = {{VillagerAgent: A Graph-Based Multi-Agent Framework for Coordinating Complex Task Dependencies in Minecraft}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.964},
}
Figure