NVIDIA CodecMem Cuts Long-Context Video FLOPs 18x

NVIDIA and Stanford researchers have published CodecMem, a motion-compensated tubelet codec that replaces dense KV attention in long-context video and world models. On a new benchmark with up to 60 seconds of context, it ranks first among 12 compressed-memory baselines while using 18x fewer inference FLOPs than dense attention.
How CodecMem works
The method borrows an idea from classic video compression. According to the paper, as frames arrive, whether observed or generated, the codec warps its own reconstruction of the previous frame using optical flow. It then adds tubelets to memory only where the warped frame fails to match the new one, such as newly revealed content or complex motion. In the authors' words, static content costs few or no tokens.
That design targets a core scaling problem. The authors note that 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.
Benchmark results
The team built a 60-second long-context evaluation covering retrieval, tracking, and spatial memory. For readers tracking long-context evaluation methods, the headline figures are:
- First place on average across retrieval, tracking, and spatial memory among 12 compressed-memory baselines.
- 18x fewer inference FLOPs than dense attention.
- 1.5 GB of KV cache versus 39.7 GB for dense attention in the authors' setup.
- Tracking beyond the training length: 90.8% for CodecMem versus 85.2% for dense attention.
The tracking result is notable because the compressed method outperforms the dense baseline rather than merely approaching it.
Robotics and world models
CodecMem was also tested on RoboMME robotic tasks, where it reaches 70.6% overall success, against 61.3% for the next-best world action model baseline. In robotic in-context learning, it matches dense memory at 4.7x fewer inference FLOPs. That suggests the approach could help embodied agents that must remember scenes over long horizons without prohibitive compute.
Models and training setup
The researchers validated the codec across several backbones, including Wan2.1-T2V at 1.3B and 14B parameters and a 33B MiniMax-H3 model. The paper also lists Cosmos 3 among the validated models. Training ran on 16 GB300 GPUs using NVIDIA's FastGen framework.
The paper arrived the same day as UNC and Adobe's Synchro world model, one of 55 video-generation stories AI Weekly has tracked over the last 90 days, a sign of how crowded AI video generation research has become.
Release date
Officially released on December 3, 2026, the paper was posted on Hugging Face. The source does not mention a public code or model checkpoint release, so availability for developers beyond the paper remains unclear.
What this means
Memory cost is one of the main barriers to minute-long video generation and persistent world models. By spending tokens only where the scene actually changes, CodecMem shows that compression borrowed from video codecs can cut compute and cache by an order of magnitude while holding or improving accuracy on several tasks. If the results hold up under independent testing, the approach could make longer-horizon video and robotics models far cheaper to run, though the reported numbers come from the authors' own benchmark and setup.
on Emergent today




