DriveBlox: Driving Video Generation from Code-Defined Blocks World with Instance-Level Memory
Video generative models promise driving simulators that can render arbitrary traffic scenarios, but this requires both precise control over the scene and consistency across long rollouts. Existing driving generators condition only on traffic participants and road layout, leaving the static world, and with it the ego motion, underspecified, while frame-level memories grow quickly and cannot tell which cached tokens belong to which instance. We present DriveBlox, a driving video diffusion model conditioned on a code-defined blocks world, a controllable abstraction of the world defined in code that a closed-loop coding agent builds from a single image or video. This representation densely specifies both instance motion and the ego trajectory, and enables instance-level KV caching: each instance's tokens are cached from its most complete observations and re-embedded where its block projects when it reappears, attending to far fewer tokens than frame-level caching. DriveBlox achieves the most accurate instance placement and ego-motion control among driving generators with competitive visual quality, faithfully places vehicles performing unseen maneuvers such as spin-outs, and substantially improves the identity consistency of returning vehicles. Project page: https://minseop-kwak.github.io/DriveBlox/.
