TRANSMISSION // 2612.04174v1

A codec-style memory for video AI

Source published

CodecMem aims to help video generators and robot world models retain long histories without storing every frame at full detail. Its tests show promising results, alongside important limits.

AI-generated conceptual illustration for A codec-style memory for video AI
AI-generated conceptual illustration; not documentary evidence.

Video models can lose track of earlier details—or become expensive to run when they keep every past frame in view. CodecMem offers a different approach: use estimated motion to predict from a previous reconstruction, then save extra visual details where that prediction falls short. The authors report gains across memory, robotics and video-generation tests, but these benchmark results do not establish general real-world reliability.

Video models often face a trade-off: keep a detailed record of everything they have seen, or compress their history and risk losing information they may need later. Dense attention—the approach of letting a model consult every past visual token—can preserve context, but its computational and memory costs grow with the video. Other methods limit or compress history, which can discard details.

A paper by Liyuan Zhu and colleagues introduces CodecMem, a visual memory inspired by conventional video compression. Rather than store every frame in full, it predicts each new window from its previous reconstruction. It then saves additional image patches, called tubelets, where that prediction fails—for example, where new parts of a scene appear or motion is complex. The model can attend to these stored patches directly.

The central question is whether adaptive, motion-based memory can retain useful long-term visual information while reducing the cost of processing a long history. The authors test it in video generation and in world action models, which combine predictions about future video with robot actions.

How the memory works

CodecMem uses estimated optical flow—a measure of how image regions appear to move between frames—to warp its previous reconstruction toward the new observation. It compares that prediction with the actual frame and selects tubelets where the mismatch is large. Tubelets come in several sizes: larger ones preserve broad regions at lower detail, while smaller ones capture local detail. A quality threshold can stop selection when the prediction is already good enough, so the number of stored tokens varies with the content.

How this memory is combined with other visual context depends on the task. In the general video setup, the model keeps a first “sink” frame and the most recent chunk in its context, while older chunks are represented by codec tokens. Robot setups use different arrangements; for example, the RoboMME experiment retains some recent wrist-view information as well as other context. After a robot executes an action chunk, the codec updates its record using newly observed frames.

The researchers evaluated CodecMem on a long-context benchmark designed to test three kinds of memory: retrieving an earlier visual detail, tracking hidden objects through changes, and reconstructing a scene from a new viewpoint. Contexts extended up to 60 seconds. They also tested a robot policy on RoboMME, a simulated pushing task in which a policy could learn from its earlier attempts, and long-form video generation. On the authors’ three-task memory benchmark, CodecMem and 12 compressed-memory baselines used the same video-model backbone and shared training settings; the authors ported or reimplemented those baselines for this comparison. That setup should not be assumed to apply to every other evaluation in the paper.

What the tests found

On the combined retrieval, tracking and spatial-memory benchmark, CodecMem ranked first among the 12 compressed-memory methods. The authors report that, in a specified efficiency reference setting, its inference computation was about 18 times lower than dense attention while approaching its performance. This is not a universal ratio for every task or model. CodecMem also surpassed dense attention on tracking sequences longer than those seen in training, though it was close to, but behind, dense attention on spatial reconstruction.

On RoboMME, the CodecMem-equipped policy scored highest among the compared world action models. In a separate simulated pushing task, CodecMem matched dense memory on the reported task results and used fewer inference FLOPs in the study’s comparison. These tests suggest that a compressed history can help a policy use information from earlier parts of an episode, but do not show how it would perform in unrestricted physical settings.

In long-video-generation tests, CodecMem improved temporal quality, visual quality and subject consistency over a version of the model without codec memory. It stayed close to dense attention and surpassed it on some reported measures, but scored lower on text alignment. For a separate 60-second generation evaluation, the authors used an automated vision-language judge rather than reference videos. The judge assessed 64 prompts; each method generated each prompt once, and the video assessment averaged two calls per video. The results favored CodecMem on several reported measures, but it repeated dialogue more often than the comparison methods and sometimes generated speech when none was requested. These results therefore depend on a limited, model-judged evaluation, not a broad human assessment.

What remains uncertain

The findings do not establish that CodecMem will work reliably across real-world videos or robots. Several evaluations use synthetic scenes or simulations, and the long-video judge is itself a model-based assessment. The paper also notes that the codec can store content again when it leaves the view and later returns. Its tubelet selection is greedy, driven by pixel error and not tailored to a task; the authors identify long-term redundancy removal and task-aware selection as future work.

Reported compute gains depend on particular models, budgets and evaluation setups, so they should not be assumed elsewhere. CodecMem is described in an arXiv preprint, which may not have undergone peer review. The evidence supports a promising memory design on the authors’ tests, not a settled conclusion about long-context video AI in general.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.