TL;DR
DriveBlox is a driving video simulator that turns a single image or video into a simple, editable 3D "blocks world" written in code, and then renders that world back into photorealistic video. By representing every car, pedestrian, building, and tree as an explicit 3D block, it achieves state-of-the-art control over both traffic and camera motion—even for rare, out-of-distribution events like spin-outs—while using a new instance-level memory to keep returning objects consistent over long videos at 24× less memory and compute than standard frame-level caching.
What Problem Does This Paper Address?
If you want to use a video generator as a driving simulator—say, to test how an autonomous vehicle handles a sudden skid or a pedestrian darting into the street—you need two things: precise control over what happens in the scene, and long-term consistency so that a white van you pass at the start of a block doesn't magically turn into a red sedan if you make a U-turn and pass it again.
Existing driving video generators fall short on both fronts:
- Underspecified static worlds: Most models condition only on road layouts (HD maps) and 3D bounding boxes for moving traffic. They leave the static surroundings—buildings, trees, streetlights—completely unspecified. Without those visual anchors, the model struggles to nail the exact speed and trajectory of the ego-camera.
- Forgetful, expensive memory: Long videos are generated chunk by chunk. To remember what happened earlier, existing methods cache key-value (KV) attention tokens for entire past frames. This cache balloons quickly, and when multiple cars are on screen, the model can't easily tell which cached tokens belong to which car.
Methods
DriveBlox tackles this with a two-part real-to-sim-to-real pipeline:
- Observation to Code-Defined Blocks World (Real-to-Sim): Instead of reconstructing a scene with heavy 3D assets or neural radiance fields, an LLM coding agent operating in a persistent Python kernel builds an abstract 3D blocks world from a single image or video. It calls off-the-shelf perception tools (Depth Anything 3 for depth/camera poses, Mask2Former and SAM3 for segmentation, WildDet3D for 3D boxes) to place one 3D block per instance—covering roads, buildings, vegetation, and vehicles—and refines the layout in a closed-loop audit–fix cycle.
- Blocks-World Conditioned Video Generation (Sim-to-Real): The blocks world is rendered into camera view space using a z-buffer, with each block colored by its class hue and a unique per-instance offset. A ControlNet-style branch attached to layers 4–10 of a frozen Cosmos-Predict2.5-2B video diffusion backbone is trained (via rectified flow) to turn these block renderings—plus a text prompt and an optional initial frame—into photorealistic video.
- Instance-Level KV Caching: Because every block has a known ID and 3D pose, DriveBlox doesn't cache whole frames. Instead, it stores the post-norm, pre-RoPE keys and values of each instance's tokens from its 4 most visible frames, along with their box-local 3D coordinates. When that instance reappears in a later chunk, its cached tokens are retrieved, re-embedded with Rotary Position Embeddings (RoPE) at the object's new projected 3D location and temporal offset, and attended to using an instance-aware mask.
Datasets
- Training: ~12,000 driving scenes from Waymo Open, Argoverse 2, nuPlan (~3k curated subset), and the nuScenes training split, plus 3.3k Human3.6M composites.
- Evaluation:
- nuScenes validation set: 111 clear-day scenes (normal driving), with 24 rain and 15 night scenes evaluated separately.
- Counterfactual benchmark: 20 nuScenes validation clips modified with injected out-of-distribution maneuvers (spin-outs, skids, loss of control).
- Long-horizon consistency: 29 held-out nuPlan validation scenes where a vehicle leaves the view for 2–15 seconds and returns.
- Cross-domain / cross-backbone tests: Pedestrian re-entry on WalkingTours (26 clips) and face turn-aways on CelebV-HQ (29 clips), integrated into Wan2.1-VACE.
Key Insights and Ideas
- Static surroundings are crucial for ego-motion: Ablating stationary blocks (buildings and vegetation) from the conditioning canvas causes ego-motion trajectory error (ATE) to jump by 40% (and up to 49.1 m in a U-turn). Dense static structures give the video model the parallax cues it needs to get camera speed and heading right.
- Coarse blocks unlock zero-shot counterfactuals: Because the blocks world anchors the 3D geometry and layout, the diffusion model can focus on rendering realistic textures and lighting—allowing it to generate unseen crashes, aerial camera angles, and weather edits without being fine-tuned on them.
- Instance-level memory beats brute-force capacity: Caching all tokens from the last 24 latent frames (dense frame KV) reads far more tokens than DriveBlox's instance memory, yet scores much worse on returning-vehicle identity (27.3% vs. 45.6% ReID Top-1). Knowing which tokens belong to which object matters more than raw cache size.
Key Results
- Normal driving (nuScenes, 15 s clips): DriveBlox outperforms baselines (TrackDiffusion, Panacea, DreamForge, MagicDrive-V2) on nearly all controllability metrics—achieving 0.705 mIoU, 84.9% [email protected], and 4.50 m ATE (6.1% of path length)—while maintaining competitive visual quality (FVD 236.7, FID 25.43).
- Counterfactual maneuvers: Places vehicles performing unseen spin-outs and skids at their commanded locations in 98.1% of frames ([email protected]) with 0.791 mIoU and the lowest heading error (6.9°).
- Long-horizon consistency & efficiency: Raises returning-vehicle ReID Top-1 accuracy to 45.6% (up from at most 11.0% for baselines). Compared to dense frame-level KV caching, it stores ~93% fewer tokens and attends to ~96% fewer, cutting K/V memory (0.617 GiB vs. 14.7 GiB) and attention compute (1.38 PFLOP vs. 33.1 PFLOP) by 24×, and reducing latency by 6.8×.
- Generalization: Adding DriveBlox's instance-level memory to Wan2.1-VACE boosts pedestrian ReID Top-1 from 38.5% to 53.8% and face-identity similarity from 0.256 to 0.347.
Limitations and Future Work
The main paper does not include a dedicated limitations or future work section. However, the real-to-sim abstraction relies on off-the-shelf perception models (for depth, segmentation, and 3D detection) to build the initial blocks world from raw video, and the authors note that fine-tuning on longer 61-frame clips was needed to reduce train–inference chunk-length mismatches for zero-shot experiments.
Summary updated