Reproduce “Training Agents Inside of Scalable World Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Danijar Hafner, Wilson Yan, Timothy Lillicrap

Dreamer 4 tests whether an agent can learn a long Minecraft task from fixed data without live trial and error. It learns a simulator from recorded video and actions, then trains its policy through imagined practice before testing it in the game. Across 1,000 episodes of up to 60 minutes, it obtained diamonds in 0.7%, versus 0% for finetuned VPT; success was rare.

Key insights

  • Imagination-based reinforcement learning with a scalable world model can effectively learn complex, long-horizon behaviors from purely offline datasets, even in challenging environments like Minecraft.
  • High-fidelity world models capable of simulating precise object interactions can achieve real-time interactive inference, making them practical for iterative agent training.
  • Action conditioning can be learned with high data efficiency, predominantly from unlabeled videos, demonstrating a powerful form of action generalization to visually novel environments.
  • Specific architectural choices like x-prediction, x-space loss, ramp loss weighting, and efficient transformer components (e.g., factorized attention, GQA) are critical for robust and efficient generation in world models.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.