The trade-off AgentGarten splits apart
Agent learning is bounded by the environment it practices in. The paper argues such an environment needs two properties at once: it must be faithful, keeping consistent state, rules and dynamics across long interactions, and realistic, producing observations that follow real-world visual distributions. Existing options give one without the other. Simulators and game engines offer explicit state and programmable rules, but widening their visual variety requires building 3D assets and rendering pipelines for every scene. Video world models synthesize rich observations from data, yet task-relevant state and physical transition rules stay implicit inside generated histories, so they cannot be directly inspected, edited or tested.
AgentGarten's answer is a division of labour. Each scene program runs in a simulator or game engine that maintains persistent state and executes explicit interaction rules. A single shared neural renderer then synthesizes the agent's visual observations from structured conditions the engine exports through a common interface. Because state and rules stay in code, they remain inspectable and editable; because appearance comes from one renderer, compatible engines do not each need bespoke visual assets. New worlds can be written as code and rendered through the same interface.
Why a video model had to become a renderer
Operating a pretrained video model as an interactive renderer imposes three demands the paper names explicitly: it must strictly follow updated engine conditions, keep visual consistency across extended rollouts, and synthesize observations in fine-grained short blocks so an agent gets feedback after brief actions. The authors adapt a pretrained bidirectional video model to structured geometry conditions, convert it to block-causal generation, and distill it into a real-time renderer on a single GPU.
The distillation method, Adversarial Forcing, trains the renderer on its own rollouts through distribution matching and adds two specific mechanisms. Exact replay makes history prefilling differentiable: a block-by-block execution schedule removes numerical divergence between sampling and recomputation, so losses on later predictions can update how the renderer encodes prior observations without paying for a fully differentiable rollout. A real-data adversarial objective then counters the visual degradation that score distillation alone shows over long rollouts. The comparison in the paper is direct: with Self Forcing, 30-second rollouts develop repetitive surface patterns and lose scene detail as they lengthen, while Adversarial Forcing retains natural textures and fine detail throughout.
Exact replay buys correctness, not just speed
The replay claim is measured rather than asserted. With only the attention execution changed, full-sequence FlexAttention replay differs from the cached rollout by 3.99% relative L2 error, while block-by-block SDPA replay is bitwise identical. Forward time falls 5.4% (2.95 s to 2.79 s) and peak allocated memory changes by 0.2% (50.83 to 50.92 GiB). These figures come from one H100 with 36 layers, 480 × 832 resolution, 61 latent frames and BF16, and the times are medians of three warmed-up replay forward passes that exclude backward and optimizer updates.
Throughput is a separate measurement and should not be conflated with replay cost. At steady state, one served block of 16 frames takes 438.8 ms of mean wall time, of which 414.4 ms is four denoising steps plus cache publication, 10.6 ms is condition encoding and 8.8 ms is the tiny decoder and host transfer. That yields 36.5 frames per second, or over 35 frames per second at 480 × 832 including condition encoding, decoding and host transfer. The block is measured with the cache full, on blocks 17 to 48 of a 48-block, 769-frame rollout, averaged over two rollouts.
Agents improve by writing playbooks, not updating weights
In the hide-and-seek experiment, each agent perceives the world only through first-person frames generated by the neural renderer. It never receives object coordinates, hidden world state or the opponent's private observations. Actions are submitted as short Python programs for movement and object interaction, after which the agent observes the rendered result. Each role keeps its own playbook: a library of short skill files, Markdown notes that may contain code, one lesson per file.
Practice runs in rounds of five games over sampled layouts and seeds, starting from empty playbooks. After each round, each role reviews its own action programs and the visual evidence it was permitted to see, identifies failures, and adds skill files. In the next round the agents receive the accumulated skills and decide which prior experience applies to the current scene. Both successful and unsuccessful attempts feed later revisions. This is the mechanism behind the headline efficiency claim: improvement is stored as written, inherited lessons rather than as gradient updates to a policy network.
Four rounds against millions of episodes
Three behaviours emerged in the recorded run: a hider moved a barrier panel to block an entrance, a seeker transported a ramp to an inner wall and climbed over it, and after an initial leap fell short, a seeker repositioned the ramp closer and tried again. The paper reports that hiders used panels to build a shelter by round 4 and seekers used a ramp to cross walls by round 10.
The comparison target is the 2019 hide-and-seek study, which reports shelter construction after roughly 25 million episodes and seeker ramp use after another 75 million. The authors explicitly warn against reading these as a sample-efficiency ratio. The 2019 agents learned physical dynamics and competitive coordination from scratch with random weights, operating on ground-truth coordinate state. The agents here are pretrained foundation models that already carry abstract knowledge of objects, tools and geometry from web-scale pretraining; their challenge is grounding that knowledge into closed-loop sensorimotor action and diagnosing spatial failures from synthesized observations without state access. The abstract's phrasing that agents learn from just 4 rounds compared with millions for a conventional reinforcement learning counterpart should be read with that paradigm difference in place.
Where the claim stops
The efficiency result is demonstrated in one detailed hide-and-seek variant, with the same procedure reported to improve outcomes in four further worlds; the paper does not report per-world round counts or effect sizes for those four. The renderer's conditioning interface also bounds which worlds can be shown at all. Geometry alone leaves some state unspecified: a rotationally symmetric object can spin without changing its depth or normals, and material, colour and object identity are not determined by geometry. Visual history can preserve such attributes but may lose them after long occlusions or revisits beyond the memory window. The authors state that tasks depending on state the interface cannot express are out of reach today.
Two further limits sit with the method. Spatial downsampling of conditions reduces cost but can remove thin structures, narrow gaps and small contact changes needed for precise control. And the worlds in this report were built one at a time by the authors; letting coding agents write and revise worlds, and automatically checking whether a generated world is worth an agent's practice time, is listed as future work rather than a demonstrated capability.
What to watch in the loop
The paper's most decision-relevant distinction is not the round count but where learning is stored. Because state and rules live in code, a world can be reset and replayed exactly, so a lesson can be tested before it is passed on; the authors argue that lessons holding across several worlds, such as how to confirm a grasp held or which visual cues mislead, become general knowledge about acting in physical scenes. That makes the renderer's condition interface, not the agent's architecture, the variable that decides which tasks are learnable at all.
For readers weighing this approach, the practical split is therefore between worlds whose task-relevant state is fully expressible in exported geometry and those whose state hides in rotation, material or identity. The first group can be authored as code, rendered through the shared interface, and practised in a handful of reviewed rounds; the second needs a richer conditioning interface that the paper identifies but does not yet build. The loop the authors expect to matter is the one where agent failures indicate which world to write next and each new world tests what was written down before.
Sources used in this answer
AgentGarten: Code Worlds for Evolving Agents
Coupling code-defined simulators with a shared real-time neural renderer trained by Adversarial Forcing let pretrained agents build a hide-and-seek shelter by round 4 and cross walls with a ramp by round 10, using only rendered first-person observations and playbooks of skill files.
