01 Overview
Question: What happens after a U-turn? Comparative models (e.g. OmniDreams) forget and completely re-generate the path it just came through, but DriveBlox retains the structure and appearance of previous chunks' frames due to efficient instance-level KV memory.
02 Observation → Code World
A training-free, closed-loop LLM agent, inspired by SpatialClaw, operates in a stateful Python kernel: it calls off-the-shelf perception models, inspects the intermediate results, and revises the world until it agrees with the observation, without ground-truth labels or poses.
(a) Perception
Called only when a step needs them; none is trained for DriveBlox. Their outputs on one frame:






(b) Closed-loop agent tool call
After every edit, the agent renders the world onto the image and a bird's-eye view, compares it with the observation, and revises it.
(c) Output
scene_world.py, re-rendered within 10 cm and 7°# scene_world.py (illustrative)
scene.building(slab, facade=[...])
scene.lane(polyline)
scene.light(pos, states={...})
car = scene.car("veh017", size,
route=[...], timing={...})
The input video, the reconstructed blocks world, and bird's-eye views at near and far range.
03 Blocks-World Generation
DriveBlox generates driving video from a rendered blocks world. The blocks fix where every object is and how it moves, and this grounding holds for camera views and events never seen in training.
Driving video generated from the blocks-world condition by DriveBlox, both with and without initial frames, on zero-shot Lyft-L5 dataset. Comparative baselines used GT HD Map and all their native conditions. DriveBlox shows superior performance.
Blocks-world conditioned driving video generation allows for powerful controllability and robustness, enabling the video model to generate zero-shot for out-of-domain viewpoints and various counterfactual scenarios, without being fine-tuned on any such data.
Vehicle fires, smoke and jaywalking pedestrians, generated from edited blocks worlds of real drives.
The camera rises from the driver's view to an aerial view never seen in training.
04 Instance-Level KV Memory
An instance-level KV memory caches each object's tokens and re-embeds them where its block reappears. It uses about 24× less KV memory (GiB) than frame-level caching, and re-identifies 45.6% of returning vehicles, against at most 11.0% for prior methods.
(a) Cache
Keys and values are stored from each instance's most visible observations, together with box-local 3D coordinates.
(b) Re-embed
When the instance reappears, its cached keys are re-embedded with rotary position where its block projects in the new frame.
(c) Attend
An instance-aware attention mask lets each query read only the memory of the instance that owns it.
Minute-long generations. In the U-turn scenes the ego vehicle turns around and drives back along the same street, so buildings and parked cars are seen again from the other side; the straight scenes continue for about a minute. All methods start from the same real first frame.
The memory components added one at a time. The target vehicle (green box) must keep its appearance across generation chunks, or after leaving the view and returning.
The instance-level KV memory is not specific to driving or to one video model. Added to Wan2.1-VACE, a general-purpose controllable video model, it keeps people and faces consistent: an instance that leaves the view or turns away at a chunk boundary returns with the same identity.
A person leaves the view and returns in the next generation chunk with the same appearance (outlined in blue before and orange after). Generation is conditioned on depth.
A face turns away at the chunk boundary and turns back with the same identity. Generation is conditioned on pose.
05 Citation
@article{kwak2026driveblox,
title = {DriveBlox: Driving Video Generation from Code-Defined Blocks World with Instance-Level Memory},
author = {Kwak, Min-Seop and Nam, Hyelin and Luo, Yunhao and Abbaraju, Praveen and
Kundu, Subrata Kumar and Kim, Seungryong and Park, Jeong Joon},
journal = {arXiv preprint arXiv:2612.04169},
year = {2026}
}