TL;DR
Minecraft is the go-to playground for training general-purpose AI agents, but it is notoriously slow, crash-prone, and computationally heavy. CrafterDojo brings Minecraft’s powerful foundation-model ecosystem—behavioral priors, vision-language grounding, and instruction-following—to Crafter, a lightweight 2D gridworld. By automatically generating synthetic demonstrations and video captions without any human gameplay data, CrafterDojo lets researchers pretrain, ablate, and compose hierarchical agents in a fraction of the time.
What Problem Does This Paper Address?
Building embodied agents that can follow diverse instructions and plan over long horizons is a central challenge in AI. Pure reinforcement learning struggles here because rewards are sparse and search spaces are huge. In Minecraft, researchers solved this by leaning on foundation models trained on massive internet datasets: VPT for behavioral priors, MineCLIP for vision-language grounding, and Steve-1 for instruction-following.
The catch? Minecraft’s 3D simulation is slow, resource-hungry, and fragile, and its continuous controls conflate perception, navigation, and planning failures. Crafter—a pure-Python 2D survival gridworld—preserves the core challenges (procedural worlds, sparse rewards, and a 22-achievement tech tree) without the 3D overhead. However, Crafter lacked the large-scale human gameplay videos and text annotations needed to train foundation models. CrafterDojo fills this gap.
Methods
Built on Craftax-Classic (a fast JAX reimplementation of Crafter), CrafterDojo introduces two automatic data-generation toolkits and three foundation models:
- Automatic Data Generation:
- Expert Behavior Generator: Trains two PPO-RNN expert policies (a Survival expert and a Gathering expert) using symbolic state inputs for 10 billion timesteps, then rolls them out to record pixel-based demonstrations.
- Caption Generator: Monitors agent actions and state/inventory changes against 15 predefined rules (covering Achievement, Movement, Construct, and Combat) to pair 6-frame video clips with descriptive captions. To boost linguistic diversity, an LLM generates 40 paraphrases for each of the 61 template captions.
- Foundation Models:
- CrafterVPT (C-VPT): Mirrors VPT’s architecture (ResNet + TransformerXL + Policy Head) but trains directly on ground-truth synthetic actions rather than needing an Inverse Dynamics Model. Crucially, the authors filter out short (<20 steps) and sleeping
noop(no-operation) sequences, cutting inactive steps from ~50% down to 3.0%. - CrafterCLIP (C-CLIP): Fine-tunes OpenAI CLIP on the generated video-caption pairs using a contrastive objective.
- CrafterSteve-1 (C-Steve-1): Fine-tunes C-VPT with LoRA to follow goal embeddings. Because Crafter tasks happen in rapid succession (e.g., placing a table, making a pickaxe, and crafting a sword in just 3 steps), the authors introduce event-based packed hindsight relabeling, splitting trajectories at caption boundaries rather than random intervals. A conditional VAE translates text instructions into visual goal embeddings, and Classifier-Free Guidance steers action sampling.
Datasets
CrafterDojo introduces two large-scale synthetic datasets (all code, models, and datasets are publicly released):
- CrafterPlay: 20,000 pixel-based trajectories (10,000 per expert), averaging 7,887 steps each (split 18k train / 1k val / 1k test).
- CrafterCaption: 1.2 million 6-frame video-caption pairs uniformly subsampled across the 15 rules from 67 million raw pairs, augmented to 2,440 unique caption variants via LLM paraphrasing.
Key Insights and Ideas
- No human data required: Fast simulation combined with automated expert rollouts and rule-based/LLM-paraphrased captions is enough to bootstrap a full foundation model stack from scratch.
- Paraphrasing unlocks generalization: Ablations show that without LLM-generated paraphrases, C-CLIP’s performance collapses on novel, out-of-rule captions. Linguistic diversity is what carries grounding beyond the fixed rule set.
- Event boundaries matter for fast-paced worlds: Standard hindsight relabeling groups distinct, rapid-fire Crafter tasks under a single goal. Aligning goal sampling to caption event boundaries is key to learning clean instruction-following.
- Compositionality beats flat policies: C-Steve-1 is trained on short event segments, so it excels at immediate subgoals but cannot chain long prerequisite trees alone. Pairing it with a high-level planner unlocks complex, multi-step tasks.
Key Results
- Behavioral Foundation (C-VPT): C-VPT (base) achieves a 97.7% ± 0.7% Crafter Score and 95.5% ± 1.1% Return, matching the state-based Expert Policy (97.3%) and far surpassing pixel-based RL baselines like DreamerV3 (14.5%) and human players (50.5%).
- Vision-Language Grounding (C-CLIP): On held-out paraphrases, C-CLIP hits 95.92% Recall@10 (versus 28.31% for MineCLIP). On novel out-of-rule captions, it reaches 98.60% Recall@10.
- Instruction Following (C-Steve-1): Under a tight 10-step budget across six short-horizon tasks, C-Steve-1 achieves near-perfect success rates with short completion times, whereas unconditional C-VPT rarely succeeds by chance.
- Hierarchical Agents: Starting from an empty inventory, flat agents (C-Steve-1 alone or the LLM agent SPRING) score 0–1% on Iron Pickaxe, Iron Sword, and Diamond. Pairing a heuristic planner (H-DEP) with C-Steve-1 jumps success to 44%, 46%, and 7%, respectively—and outperforms pairing H-DEP with SPRING (5%, 7%, 0%).
Limitations and Future Work
CrafterDojo intentionally abstracts away 3D visual perception, continuous camera control, and Minecraft-scale horizons; whether algorithmic findings transfer directly to 3D environments remains an open empirical question. Additionally, dataset coverage is bounded by the current expert reward functions and 15 caption rules, and the 7% success rate on Diamond shows that long-horizon composition is still challenging. Future work can extend the modular toolkits with richer expert objectives, broader behaviors, and new downstream tasks.
Summary updated