Editable Visual Worlds Join the Loop

7 minute read

Published:

Imagine getting stuck on a hard math problem. A mentor suggests several problems that isolate steps you are missing, which you solve. You return to the original problem, and this time you quickly discover the solution.

The mentor changed what you practice in response to where you struggle. This is useful for training agents too. When a model fails during RL tuning, beyond updating weights, we can alter the situations it encounters next. A late warning from a video assistant might motivate practice with tighter intervention windows. A slipping robotic grasp might motivate cases that isolate a difficult contact condition.

Recent advances in coding agents has made online visual environment revision viable. Run rollouts, identify weaknesses, modify practice tasks suitably, and repeat. This further extends to test-time compute. Constructing live executable environments and experimenting with possible actions within this digital twin is now a possibility. This aligns with human reasoning too; revisit the last time you played pool when you possibly imagined the many possibilities before taking a shot. Building and running a simulation can become part of the agent’s test-time reasoning.

These are two key ways that visual environments join the loop: adaptive practice during training, and online simulation as test time compute. Coding agents make the continuous revision of these environments realistic. We explore these ideas taking live video assistance and robotic control as case studies.

Try possible shots before choosing one. A simplified illustration of simulation as part of thinking.

A familiar idea: try before acting

Robotics and reinforcement learning have a long history of using predictive models to examine the consequences of actions and improve behavior (Jordan and Rumelhart; Dyna). Works such as Dreamer further demonstrate how model-generated experience can improve agent behavior.

Alongside latent world models, explicit executable environments offer inspectable objects, rules, and parameters (WorldCoder), while physics engines provide a foundation for capturing task-relevant physical dynamics. A further shift is agent-driven revision: agents construct or modify these environments in response to learning failures (ACCEL, EnvGen, Eurekaverse, WEDGE) or new observations (Twin, EMPIRIC). These advances motivate integrating online environment modification directly into learning and reasoning.

Comparison of a controller and forward model, Dyna and Dreamer with learned world models, and a policy whose practice environment a coding agent revises in response to failures.
Related approaches to learning from consequences. Failure-driven revision of an executable environment can complement learned world models.

The environment became easier to revise

Coding agents have made editting simulators much easier while allowing extreme levels of detailed modification. Karpathy’s A Long-expected Party illustrates how specific a generated scene can be, and especially how coding agents can perform highly detailed edits that are unrealistic for humans to perform.

In robotics, works like RoboGen and RoboCasa already automate parts of environment and task creation, providing foundations for the online, failure-driven revision. Recent Interactive Visual Gym studies closed-loop assistance through executable environments and responsive simulated users for live video assistants. The ability to quickly edit environments (or simulated humans within then) gives us control over the practice conditions.

The kitchen below illustrates a simple case of environment controls. Two animated hands prepare a burger while a rule-based assistant provides guidance. Change the ingredient order, response delay, or distraction level, and observe whether the intervention changes the outcome.

An illustrative, rule-based example. Scene changes, user behavior, and intervention timing are editable parts of the practice problem.

Two ways the environment joins the loop

Editable visual worlds can dynamically change what an agent practices or help explore the decision-space at inference. Both involve rapidly constructing or modifying the visual environment continuously.

Training and environment revision: rollouts feed RL updates and failure analysis; a coding agent edits practice environments, and validated changes return to training.
Failures guide new practice; accepted environments feed further policy learning.
Simulation as part of thinking: observe a situation, construct a task-relevant environment, try actions, inspect outcomes, and choose a real action, checking the model against new observations.
Simulated outcomes guide the current action; new observations check the model.

During training: failures shape the next practice

We revisit our live video assistance case study. Each practice episode (during RL tuning phase) should target a weakness while remaining within reach of the current model. The successful and failed rollouts jointly guide what the assistant already handles, where it sometimes succeeds, and which situations require simpler intermediate practice. Work such as EnvGen, Eurekaverse, and WEDGE uses performance feedback to target subsequent practice. Coding agents are capable of modifications at even higher detail and abstraction. We illustrate some examples relevant to our earlier simple kitchen environment.

Missing SkillExample Modification
Procedural dependenciesModified recipe where an ingredient substitution changes required steps
Long-term consequencesSkip early step causing problems several steps later
Identify invalid planMissing some equipment requires a modified procedure
Failure RecoveryHuman misunderstands instruction, creating a recoverable mistake

Coding agents enable automating the entire process of discovering such missing skills from prior rollouts, and constructing suitable modified tasks for the subsequent rollouts. This new setting allows unlocking powerful training strategies for visual agents.

At test time: simulation becomes part of thinking

Next lets discuss test-time simulation in the context of robot control. An editable environment becomes part of how the robot thinks through a new situation. It builds simulations covering what matters for the current decision, and rehearses possible actions within multiple variants of those visual worlds. This spends test-time compute on exploration within editable visual worlds.

Consider peeling a banana, where too little grip creates slipping, but too much damages the fruit. Our animation below lets you vary attributes of both the policy and the world, illustrating the extended scope of test-time exploration.

A scripted deformation and control illustration. Force, slip, and damage are heuristic, unitless signals, not measured physics. It does not model material fracture or demonstrate a learned robotic policy.

We outline one possible test-time exploration for our same banana example:

StepDescriptionSupporting tools
ReconstructInitial estimate of banana’s shape and robots graspDepth or multi-view reconstruction
Identify physicsEstimate attributes like friction, stiffness, or peel resistanceCoding agent world knowledge integrated with physics engines like Isaac Sim or MuJoCo
RehearseCompare grip-and-pull actions across plausible material properties.Coding agent modifies environment and executes robot policy
Test and repeatObserve and analyse the new rollouts.Visual and environment-state based feedback used by coding agent

The infrastructure for this full automated pipline now exists. Agents can assemble, test, and revise task-specific simulations iteratively at test-time. Works like EMPIRIC provide a foundation for this direction of test-time environment modification.

What this all means

Visual environment design can now become part of the iterative agent improvement loop. We observe an agent’s skill level and failure modes, and modify the visual world suitably. Similar environment or task modification is already established in non-visual tasks such as theorem proving, code reasoning, language tasks, code repair, and test-time code generation. In coding tasks, these ideas have recently proven useful even for large-scale training, with Microsoft leveraging policy-guided task revision and DeepSeek exploring failure-informed training-environment construction.

The ability to similarly construct and modify visual worlds opens pathways to scaling up interactive visual agents. Recent advances in physical AI (e.g. Tesla FSD) only further support this direction. Leveraging editable visual worlds to scale both learning and test-time compute is a promising pathway to building truly inteligent interactive visual agents.