huggingface.co web signal

NVIDIA, Stanford CodecMem Cuts Long-Context Video FLOPs 18x

TL;DR

  • On a 60-second long-context benchmark covering retrieval, tracking, and spatial memory, CodecMem ranks first among 12 compressed-memory baselines at 18x fewer inference FLOPs.
  • KV cache drops to 1.5 GB versus 39.7 GB for dense attention; the paper notes dense attention needs 334 GiB over one minute in a 33B video model.
  • On RoboMME robotic tasks CodecMem reaches 70.6% overall success, and matches dense memory in in-context learning at 4.7x fewer inference FLOPs.

CodecMem, a motion-compensated tubelet codec from NVIDIA and Stanford researchers, replaces dense KV attention for long-context video and world models. On a benchmark testing retrieval, tracking, and spatial memory with up to 60 seconds of context, it ranks first among 12 compressed-memory baselines at 18x fewer inference FLOPs than dense attention.

The paper on Hugging Face, posted December 3, states the mechanism plainly: "As frames arrive, whether observed or generated, the codec warps its own reconstruction of the previous frame with optical flow, and augments the memory with tubelets only where the warped frame fails to match the new one, such as newly revealed content or complex motion. Static content thus costs few or no tokens."

The memory numbers are the bite. "Dense attention over one minute requires 334 GiB of KV cache in a 33B video model, and every new frame makes each denoising step slower," the authors write. In their setup CodecMem uses 1.5 GB of KV cache against dense attention's 39.7 GB. On tracking beyond the training length, CodecMem actually beats dense attention (90.8% versus 85.2%). On RoboMME it reaches 70.6% overall success against 61.3% for the next-best world action model baseline, and matches dense memory in in-context learning at 4.7x fewer inference FLOPs.

Backbones tested include Wan2.1-T2V at 1.3B and 14B and a 33B MiniMax-H3; training ran on 16 GB300 GPUs via NVIDIA's FastGen framework. The paper landed the same day as UNC and Adobe's Synchro world model, one of 55 video-generation stories we have tracked over the last 90 days.