VistaWise: Building Cost-Effective Agent with Cross-Modal Knowledge Graph for Minecraft

Honghao Fu, Junlong Ren, Qi Chai, Deheng Ye, Yujun Cai, Hao Wang

TL;DR

VistaWise is a highly cost-effective autonomous agent framework for Minecraft that eliminates the need for massive domain-specific datasets or brittle simulator APIs. By combining a lightweight cross-modal knowledge graph with a small, custom-trained object detection model, VistaWise achieves state-of-the-art performance on complex tasks like mining diamonds while drastically reducing training data requirements and inference costs.

What Problem Does This Paper Address?

Building intelligent agents that can navigate and complete tasks in open-world environments like Minecraft is a major milestone for artificial general intelligence. Currently, researchers take one of two paths:

  1. API-reliant agents: These use hardcoded environment APIs (like MineFlayer) to feed text descriptions of the world directly to a Large Language Model (LLM). This limits generalization because real-world applications don't come with clean text APIs.
  2. End-to-end visual agents: These train massive Multimodal LLMs (MLLMs) or visual policies on millions or billions of gameplay frames. This approach is prohibitively expensive for most research teams and often suffers from unstable predictions due to visual noise.

Furthermore, LLMs frequently hallucinate item recipes and tool dependencies in complex virtual worlds without explicit domain knowledge.

Figure 1: The motivation of injecting external knowl- edge. (a) LLMs may generate incorrect dependencies due to a lack of domain-specific knowledge in the vir- tual world; (b) Injecting external knowledge enables LLMs to generate more accurate responses.

VistaWise addresses these challenges by creating an agent that interacts with the game solely through visual perception and human-like mouse and keyboard (MNK) controls, all while keeping development and compute costs remarkably low.

Methods

The VistaWise architecture bypasses heavy MLLM fine-tuning by splitting perception and reasoning into distinct, lightweight modules:

Figure 2: The overview of VistaWise. VistaWise is based on an LLM and incorporates three graph-based processes: (1) text-modal graph construction, integrating external textual domain knowledge via a lightweight KG to establish factual dependencies and mitigate hallucinations; (2) cross-modal graph construction, embedding real-time visual information from a dedicated object detection model into the text-modal graph, forming a vision-text graph with dynamic visual attributes; (3) task-specific information retrieval, utilizing a retrieval-based pooling strategy to extract task-related information from the vision-text graph, guided by both the task-specific prompt and the real-time visual attributes of the graph. Furthermore, VistaWise comprises two interaction modules: (i) a desktop-level skill library, allowing the agent to act in the Minecraft desktop client via MNK operations, with action parameters generated autonomously by the LLM; (ii) a memory stack, storing and querying decision history to support reasoning. At each timestep, the agent makes decisions and executes actions based on the prompt, retrieved information, memory, and skill library, altering the game environment to advance the task.
  • Text-modal Graph Construction: The authors scraped online knowledge sources (Wikis, YouTube, Reddit) to build a static Knowledge Graph (KG) of item dependencies and crafting recipes. Crucially, they stripped out all background text, leaving only entity names to minimize token overhead.
  • Visual Perception via YOLO: Instead of using an MLLM for visual grounding, VistaWise employs a dedicated, fine-tuned YOLOv10-L object detection model. It identifies environmental entities (like logs and ores) and inventory items, estimating spatial distance based on bounding box sizes.
  • Cross-modal Graph Construction: Real-time spatial and inventory data from the YOLO model are embedded directly as dynamic attributes into the static text KG, creating a unified vision-text graph.
  • Retrieval-based Pooling: To prevent the LLM from being overwhelmed by graph data, a two-step pooling strategy filters the KG. Path Searching Pooling (PSP) retains global paths from the "Player" to the "Target" node, and Entity Matching Pooling (EMP) filters local entities relevant to the immediate task prompt.
  • Desktop-level Skill Library: Using PyAutoGUI, the framework translates the LLM's decisions into direct mouse and keyboard inputs on a standard Vanilla Minecraft client, completely removing simulator dependencies.

Datasets

To train the specialized visual perception system, the authors collected a remarkably small-scale dataset:

  • 471 frames extracted from Minecraft gameplay videos.
  • 3,304 annotated instances covering 23 types of visual entities (e.g., iron ore, crafting table icons, trunks).

Compared to baseline models that train on up to 1.6 billion frames, this micro-dataset highlights the extreme data efficiency of the VistaWise approach.

Key Insights and Ideas

  • Entity Names are Enough: One of the most practical findings is that LLMs do not need verbose background paragraphs to understand domain dependencies. Providing just the structured entity names in a graph format is sufficient to eliminate crafting hallucinations while saving massive amounts of context window space.
  • YOLO Beats MLLMs at Grounding: Specialized, lightweight object detection models are far more reliable and computationally efficient at extracting spatial coordinates in virtual environments than the global visual processing of general MLLMs, which are easily distracted by background noise.
  • Structure-Preserving Graph Retrieval: When filtering a knowledge graph for an LLM prompt, the order of operations matters. Performing path pooling before entity matching prevents breaking critical structural dependencies in the graph, leading to much lower false negative rates.

Key Results

VistaWise was evaluated on the classic, long-horizon Minecraft challenge: "Obtain Diamond."

  • State-of-the-Art Performance: VistaWise achieved a 33% success rate in obtaining diamonds, outperforming all other non-API-based baselines, including ROCKET-1 (25%) and VPT (15%).
  • Unmatched Cost Efficiency: While models like VPT require up to 23,040 GB of GPU VRAM for training on 140 billion frames, VistaWise was trained using a single GPU with 24 GB VRAM and just 471 frames.
  • Slashing Inference Costs: By optimizing the graph representation and avoiding raw image inputs to the LLM, VistaWise reduced inference token consumption by up to 41%. A full 160-iteration run costs approximately $1.28, representing a 94.9% cost reduction compared to the prominent Voyager agent (~$25).

Limitations and Future Work

The primary limitation acknowledged by the authors is inference latency. Because the agent relies on an LLM to predict every action iteration, it cannot operate in true real-time. The virtual environment must be paused during decision-making cycles, which increases the total real-world time required to complete tasks.

Future work will likely focus on optimizing the inference pipeline to support real-time execution and expanding the skill library to handle highly dynamic scenarios like combat.

Summary updated

BibTeX
@inproceedings{fu2025vistawise,
  author = {Honghao Fu and Junlong Ren and Qi Chai and Deheng Ye and Yujun Cai and Hao Wang},
  title = {{VistaWise: Building Cost-Effective Agent with Cross-Modal Knowledge Graph for Minecraft}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=DbI91BPeSb},
}
Figure