This post is a deep-dive analysis of MindForge (arXiv:2411.12977), a framework that gives open-source LLM agents Theory of Mind capabilities for lifelong collaborative learning in Minecraft.
The Problem: Voyager Fails with Open-Source Models
Voyager with GPT-4 achieves 100% on basic Minecraft tasks, but open-source models collapse:
| Model | Dig dirt | Mine wood log | |---|---|---| | GPT-4 | 100% | 100% | | Mistral-7B | 7% | 4% | | Mixtral-8x7B | 27% | 27% | | Llama 3.1-8B | 4% | 7% |
Two core failure modes: 1. False beliefs — e.g., insisting digging dirt requires a pickaxe (bare hands work in Minecraft) 2. Code generation failures — wrong API calls, and self-correction fails because the critic shares the same false belief
Fine-tuning Mistral-7B on GPT-4 traces barely helps (dirt: 7% → 7%), showing imitation learning cannot fix fundamental reasoning gaps.
Key points
- Core idea: Instead of training open-source models into GPT-4, let them reach GPT-4-level performance through structured collaboration — inspired by the Social Intelligence Hypothesis and cultural learning.
- Engineering Theory of Mind: MindForge uses the BigToM causal template:
Context → Desire → Percept → Belief → Causal Event → Action. Each agent maintains four belief types: perceptual, task, interaction, and partner beliefs (modeling the teammate's mental state). - Perspective taking: Agents perform recursive social reasoning — inferring the partner's beliefs/desires/perceptions — enabling targeted help (e.g., telling a novice that bare hands suffice for dirt).
- Three-layer memory:
- *Episodic*: RAG (LangChain) over past failures, retrieving top-k=5 relevant experiences
- *Semantic*: abstract world knowledge, updatable through conversation (e.g., correcting "mining wood needs an axe")
- *Procedural*: reusable skill code, inherited from Voyager
- Communication: Agents talk via Minecraft's native chat. Failures trigger dialogue; each message updates partner beliefs, triggers perspective taking, and generates replies with code + explanation.
- Instructive learning (expert → novice):
- Human + Mistral-7B: dirt success +57.85%
- GPT-4 + Mixtral-8x7B: dirt +37.51%, wood +20.8%
- Communication rounds matter (Mixtral-8x7B dirt): 0 rounds = 29%, 1 = 42%, 2 = 61%, 3 = 67%
- Collaborative learning (peer ↔ peer): performance rises, but only with an initial expert bootstrap — fully weak-weak pairs can reinforce each other's false beliefs. Single-round GPT-4 bootstrap + 7 peer rounds: 62% → 79% (consistent with the Condorcet jury theorem).
- Tech-tree lifelong learning: Voyager (Mixtral-8x7B) completes 0/3 runs; MindForge (Llama 3.1-70B) completes wood tools in 50±17 rounds and stone tools in 113±24 (2/3). Overall: 3× more tech milestones, 2.3× more unique items, and collaboration saves 15–34 prompting rounds on average.
- Removing perspective taking: 67% → 54% at 3 rounds (+13% cost)
- Structured ToM (BigToM): 45% vs. unstructured: 41% on complex tasks
- Removing episodic memory: wood mining drops 50% → 45.83%
- Test-time compute scaling: performance improves by adding interaction rounds at inference, aligning with trends like OpenAI o1 and DeepSeek-R1.
- Socialized knowledge distillation: transfer happens via natural-language dialogue and error correction, not logits/weights.
- Why social correction beats self-correction: Voyager's critic shares the agent's false beliefs; another agent provides an independent external perspective, and belief updates are verified by execution success.
- Green AI: open-source models + collaboration ≈ GPT-4-level capability at lower compute cost.
- Validated only in Minecraft (MineDojo + Mineflayer); real-world robotics untested
- Communication overhead; cold-start "blind leading blind" risk without expert bootstrap
- Future: cross-domain generalization, dynamic communication protocols, 3+ agent groups, integration with dopamine-gated memory (D-MEM)
- Paper: MindForge: Empowering Embodied Agents with Theory of Mind for Lifelong Collaborative Learning
- arXiv: 2411.12977
- Team: Delft University of Technology
- GitHub: https://github.com/tapri-lab/mindforge
- Environment: Minecraft (MineDojo + Mineflayer); benchmark: extended LoCoMo tasks