Multimodal Retrieval in Minecraft

RAG LLM agents embodied AI vector database DeepSeek knowledge retrieval zero-shot generalization

Goal

A RAG system that grounds an LLM-driven agent in domain-specific knowledge to reliably execute complex, open-ended tasks in Minecraft.

The Problem

State-of-the-art embodied agents like Voyager leverage LLMs to autonomously explore, learn skills, and complete tasks in open-world environments. However, these systems suffer from three critical failure modes:

  1. Hallucination of impossible game mechanics, e.g., attempting to craft items with incorrect materials or in the wrong shape.
  2. Grounding inaccuracies in detecting task success or interacting with the Minecraft API.
  3. High operational costs due to reliance on proprietary black-box models like GPT-4.

On complex milestones like crafting Iron Tools, Voyager achieved only a 33% success rate across trials, making it unreliable for any production-like or research setting requiring consistent performance.

Methodology

We augmented Voyager's existing framework—comprising an automatic curriculum for task selection and a skill library for storing successful code—with a domain-specific RAG module that retrieves and injects relevant knowledge before each code-generation step. Our approach proceeded through the following stages:

1. Knowledge Base Construction

2. Embedding and Indexing

3. Retrieval-Enhanced Prompting

4. Iterative Code Generation

5. Experimental Protocol

6. Implementation Details

Results

Tech Tree Mastery

Both systems achieved 100% success on Wooden and Stone Tools, but the RAG agent consistently succeeded across all trials. The critical divergence occurred at the Iron Tools milestone: the baseline succeeded in only 1 out of 3 trials (33% success), while the RAG agent succeeded in all 3 trials (100%), achieving a mean completion of 10.33 ± 6.60 episodes compared to the baseline's single success at 6 episodes.

Consistency and Reliability

The 100% success rate at the Iron milestone demonstrates that domain-specific retrieval dramatically reduces task failure—the knowledge base provided the exact crafting sequences and API calls needed, preventing the hallucination-driven failures that plagued the baseline. This consistency is critical for any real-world deployment where failure carries a cost.

Exploration Performance

The RAG agent required slightly more iterations to complete earlier milestones (6 vs. 4 episodes for Wooden Tools, 12.33 vs. 6.67 for Stone Tools), reflecting the agent's tendency to attempt more complex, validated strategies retrieved from the wiki rather than guessing. The additional iterations were a small price for the dramatic improvement in high-tier task completion.

Zero-Shot Generalization

Preliminary results on unseen tasks (crafting wooden buttons and trapdoors) showed that retrieved wiki context enabled the agent to reason about novel crafting recipes without prior experience, outperforming the baseline's trial-and-error approach.

Limitations and Future Potential

Computational constraints forced filtering out console-specific files (e.g., entries tagged "Xbox" and "Nintendo"), reducing the knowledge base's breadth. With the complete unfiltered dataset, even stronger gains are projected—potentially unlocking the Diamond Tools milestone, which neither system achieved in this study.

Visual Results


Exploration Performance - Distinct Items
Figure 1: Exploration performance across 25 prompting iterations. The RAG-enhanced agent discovers more distinct items over time compared to baseline.

Exploration Performance with RAG
Figure 2: Exploration performance with RAG augmentation. Cumulative distinct items found over 25 iterations show steady improvement.

Task Progression: Craft a Wooden Trapdoor
Figure 3: Task progression for crafting a wooden trapdoor. The agent follows a structured sequence of sub-tasks to complete the overall goal.


Voyager Agent Map Exploration
Figure 4: Voyager agent map exploration across three independent runs. Total distance traveled ranged from 47.2 to 184.9 blocks, demonstrating varied exploration behavior.