Back to articles

CodecMem Gives Video Models a More Adaptive Visual Memory

3 min read

Introduction

Long-video models need access to past events, but retaining every frame and every visual token makes that history expensive to process. CodecMem, proposed by an NVIDIA research team, takes a different approach: it treats visual history as an adaptive code. Predictable content is carried forward, while additional information is stored where the prediction no longer matches the observation. The method is designed for generative video models and world models that must use visual context over time.

Key points

  • Predict first, then store what is missing. To encode a new observation, CodecMem estimates motion and warps its own reconstruction of the previous frame toward the current one. It adds multi-scale tubelets—compact spatiotemporal visual units—only in regions where this warped reconstruction fails to account for what is observed.
  • Use a compressed record of the full history. Rather than applying dense attention to every token from every earlier frame, a model conditions on the codec memory. The paper describes this as a motion-compensated tubelet codec designed for generative video models.
  • Evaluate more than recall. The authors’ benchmark jointly tests retrieval, tracking, and spatial memory, with context extending to 60 seconds. They report that CodecMem ranks first among 12 compressed-memory baselines, uses 18 times fewer inference FLOPs than dense attention, and performs better on tracking beyond the training length.
  • Apply the memory across model types. On RoboMME, the paper reports that CodecMem enables world action models to learn the strongest long-context policy among the compared approaches and supports in-context learning across multiple trials. For long video generation, the authors also report better subject consistency than dense attention at lower cost. The codec runs at more than 100 frames per second, according to the abstract.

Why it matters—and what remains unclear

The central idea is not simply to enlarge a model’s context window, but to change how visual history is represented. Motion compensation reuses information that can be predicted, directing storage toward regions that have changed or cannot be reconstructed. If effective, this could reduce the cost of long-horizon video processing while giving tracking and spatial memory a shared mechanism. For world models, selectively preserving useful history may be more practical than repeatedly processing a growing stack of frames.

The available material, however, is largely an abstract. It does not provide benchmark protocols, failure cases, or the hardware and measurement settings behind the speed claim. The reported FLOP reduction and task rankings should therefore be read as results from this paper, not as guaranteed gains across models or deployment settings. Further evaluation will need to clarify how flow-estimation errors affect memory and whether compression can discard infrequent but important events.

Source: Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles