Skip to content
Itaru Tomita / 冨田到· @itarutomy · X·· 15 h agoFeaturedAI score82

KAIST and Others Introduce DriveBlox: Controlling Driving Video Generation with Code and Instance-Level Caching

Editorial summary

Research teams from KAIST, the University of Michigan, and Astemo Americas have introduced DriveBlox, a method that controls driving video generation models by using "world block code" as a condition alongside instance-level KV caching.

Why it matters

The research proposes a method that uses code to represent the world combined with instance-level caching to control video generation, helping readers understand how to reduce large model computational overhead through external structured ledgers.

Read original text
English translation

A seven-person team from KAIST, the University of Michigan, and Astemo Americas has announced "DriveBlox," a research project that controls an AI generating driving videos by passing it "code that describes the world using blocks like building blocks" (arxiv.org/html/2612.04169v1). Its defining feature is treating not only cars and pedestrians, but also buildings, trees, and signs individually as 3D boxes.

The goal of using video generation for driving simulators is to freely create dangerous situations with sparse real-world data, such as spin-outs. However, existing driving video generation is conditioned only on moving vehicles and road layouts (overhead maps, 3D boxes, camera poses), leaving static elements like surrounding buildings unspecified. This also makes the ego-car's movements ambiguous. Furthermore, because longer videos are generated sequentially in short sections (chunks), a mechanism to remember the past is required. The current mainstream approach uses a frame-level KV cache where the Transformer stores and reuses past token calculation results (KV). However, this causes the cache to balloon rapidly, and when there are multiple cars of the same type, it becomes impossible to distinguish which token belongs to which car.

To address this, DriveBlox uses a block world as a condition, representing each object as a single block. Car trajectories, prisms formed by extruding building footprints, trees, lane lines, crosswalks, and more are all written as blocks and lines, rendered from the camera perspective, and passed to the video model. Colors are created by adding individual object variations to hue bands for each category, allowing both category and identity to be discerned from the image. The video model freezes the publicly available Cosmos-Predict2.5-2B and trains only a ControlNet-style control branch (7 blocks, connected to the 4th to 10th base layers). The scale is modest, utilizing about 12,000 scenes, 8 L40S GPUs, and around 27k iterations.

The block world is created by a coding agent from a single image or video. Within a Python kernel (an environment that maintains execution state), it calls off-the-shelf recognition models as tools—such as DA3 for depth estimation and SAM3 for object cutout—places and renders boxes, compares them with the actual image, and corrects discrepancies. The completed world is exported as a Python file, allowing car speeds and lane changes to be rewritten via code, such as "car.set_speed(8.0, from_t=40)." Video scenes were constructed by Claude Sonnet 5.5 (moderate reasoning effort), averaging $7.07 per clip ($5.58 to $9.26 for five). Compared to a Blender agent built with 3D assets (Poly Haven CC0 materials) across four image scenes, input tokens were 0.98M versus 1.60M (a 39% reduction), time was 11.6 minutes versus 23.7 minutes, and road line F1 was 0.44 versus 0.00. On the other hand, the car position error was 1.49m versus 1.31m, making this method slightly worse.

Another pillar is the instance-level KV cache. For each object, only the tokens from the observation where the box's surface was most visible are saved per object ID. When that object reappears, positional embeddings (RoPE) are reapplied according to the box's current position and mixed into the attention calculation. Compared to a whole-frame cache, saved tokens are reduced by about 93%, referenced tokens by about 96%, and both memory and computation are 24 times smaller. Reading all tokens from the immediately preceding chunk requires 14.7 GiB, whereas this method requires 0.62 GiB, with an increase in chunk generation time of +9% (compared to +58% for the whole-frame method).

The results are as follows.
・In 111 sunny scenes (15 seconds) from the nuScenes validation set, the rate of overlapping with planned boxes at an IoU of 0.5 or higher (R@0.5) was 84.9%. MagicDrive-V2 achieved 75.6%, and Panacea achieved 50.8%. The measurable upper limit in real video is 94.2%. The Average Trajectory Error (ATE) was 4.50m, about half of MagicDrive-V2's 9.29m.
・In 20 counterfactual scenes incorporating spin-outs and skids, the rate of successfully placing cars at designated positions (R@0.5) was 98.1%. MagicDrive-V2 achieved 93.6%, DreamForge 29.2%, and TrackDiffusion 26.3%.
・In 29 scenes where a car disappears from the screen for 2 to 15 seconds and returns, the rate of correctly identifying it as the same vehicle (ReID Top-1) was 45.6%. Other methods achieved a maximum of 11.0%.
・A whole-frame KV cache yields 27.3%, and no memory yields 26.1%, showing that simply increasing capacity is ineffective. Selecting and correctly positioning objects individually is what makes the difference.
・The memory mechanism can also be plugged into the general-purpose model Wan2.1-VACE. Pedestrian Top-1 improved from 38.5% to 53.8%, and face ArcFace similarity improved from 0.256 to 0.347.
・Excluding buildings and trees from the conditions degrades the ATE from 5.88m to 8.21m, an increase of about 40% under the same training duration. For U-turns heading toward buildings, it jumped from 3.9m to 49.1m.

There are also many points to keep in mind.
・Visual quality is not outstanding. FVD is 236.7 compared to 228.4 for MagicDrive-V2, and FID is 25.43 compared to 12.93 for Panacea. Note that this method and Panacea receive actual initial frames, whereas MagicDrive-V2 and DreamForge do not.
・It degrades over time. As the effect of the initial frame wears off, FID worsens from 28.7 in the first 4 seconds to 60.8 in the final window, and FVD worsens from 221.9 to 375.2.
・The identity matching accuracy for re-appearing cars is 45.6%, which is far from the 99.7% of VAE reconstruction (ground truth side). In 7 scenes where the viewpoint changes by 30 degrees or more, the effect of memory cannot be said to be significant.
・It is slow. One chunk of 93 frames takes 276 seconds on a single L40S (2.9 seconds per frame).
・The block world in the quantitative evaluation above was created from the dataset's 3D boxes and map, not by an agent. The evaluation of the world created by the agent is limited to things like accuracy comparisons in four image scenes.
・If the ID changes midway, the same car cannot be recognized. The code, data, and evaluation benchmark are stated to be "released upon publication of the paper," and are currently unreleased.

What I personally find interesting is that instead of making the video model memorize the entire contents of the world, it offloaded "what is where" to an editable external ledger called code. The appearance is rendered by the model, while layout and memory are handled by the ledger. Rather than boosting individual capabilities, solving problems with an organization of divided roles—an LLM agent, a recognition model, a video model, and memory with IDs—might become more effective in an increasing number of situations. Since the 2B foundation model is frozen and only the control branch is trained, with the memory increment kept to +9%, there seems to be room for teams or individuals with limited GPUs to experiment without needing a massive driving-specific model. Instead of scaling deeply for long durations, the direction of widely referencing only as much as needed for each object may also lead to computational savings.

Source: Itaru Tomita / 冨田到 · x.com