Slop TVNewsLatest
Explainers

CodecMem holds a minute of AI video memory for 18x less compute

The NVIDIA and Stanford authors say their codec keeps a minute of context and stores long video memory in a fraction of the cache dense attention needs.

Illustration: CodecMem holds a minute of AI video memory for 18x less compute
Illustration: SLOP TV News. Logos are trademarks of their owners.

Key takeaways

  • CodecMem is a motion-compensated tubelet codec from NVIDIA, Stanford University and UIUC that stores only the parts of a scene a cheap motion guess cannot predict.
  • On the authors' own benchmark it holds up to 60 seconds of context and ranks first among 12 compressed-memory baselines at 18x fewer inference FLOPs than dense attention.
  • The project page lists CodecMem's KV cache at 1.5 GB against 39.7 GB for dense attention at 30 seconds of context.
  • The authors report CodecMem reaches 71.3% average success on the RoboMME robot benchmark, against 48.6% for the next-best baseline they tested.

CodecMem is a compression scheme that lets an AI video model hold a full minute of footage in memory while doing a fraction of the work that dense attention demands. The team behind it, from NVIDIA and Stanford University with a contributor from the University of Illinois Urbana-Champaign, posted the preprint on arXiv on December 2, 2026. On their own benchmark it holds up to 60 seconds of context and ranks first among 12 compressed-memory baselines at 18x fewer inference FLOPs than dense attention.

Those figures are the authors' own, measured on a benchmark they built and against baselines they ported into the same framework. Nothing has shipped as a product. Still, the numbers point at the two costs that hold AI video back at length: the compute it takes to attend to every past frame, and the drift that creeps in as a clip runs on.

What Is CodecMem?

CodecMem is a codec for a video model's memory, not for a video file. A conventional video codec, the kind running inside a camera, stores one frame whole and then records only what changed. CodecMem borrows that idea for the internal memory a generative model keeps about the frames it has already seen or made.

Today's video models mostly use dense attention: for each new chunk of video, the model looks at every token of every past frame. That works, and it is exact, but the cost climbs with every second of history no matter what is in those frames. CodecMem replaces the full pile of past tokens with a smaller set that carries the same scene.

How CodecMem Works

The codec predicts each new frame from the last one and stores only where that prediction fails. The paper puts 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."

A tubelet is a small space-time block, a square of pixels held for a few frames, the same unit a video transformer already turns into tokens. CodecMem works at four scales, 32, 64, 128 and 256 pixels, and resizes each down so every tubelet costs the same. A large tubelet covers a region that moves as a piece, like background revealed by a pan; a small one holds fine detail. A quality gate stops the search once a window is predicted well, so the number of stored tokens follows the content rather than a fixed budget.

On one worked example in a long rollout, the model's memory at a given point held 551 tokens against 11,900 for dense attention, which the project page puts at 21.6x fewer.

Why a Longer Memory Window Matters for Creators

The thing that breaks a long AI clip is the model forgetting what it already showed. The paper frames the goal directly: a generated film has to preserve its characters and environments across minutes rather than seconds. That is the consistency problem anyone who has tried a multi-shot AI sequence knows, where a face drifts, a jacket changes color, or a room rearranges itself between cuts.

More memory is the lever, and the results here are about holding a scene together. On VBench, a widely used video-generation benchmark, the project page reports CodecMem at 84.43 total, above Causal Forcing (84.04), Self Forcing (83.74) and CausVid (81.33). In a 60-second generation test built on the MiniMax-H3 model and scored by a vision-language judge, the authors report that 96% of the scripted spoken lines came through with CodecMem, against 25% to 31% for the baselines, and that only 2 of 64 videos showed strong drift, against 26 of 64 for MosaiChunk and 32 of 64 for RAVEN.

What 18x Fewer FLOPs Actually Buys

Less memory is what makes a longer memory affordable. Every stored token sits in a KV cache, and the cache is what pushes a long video model onto more and bigger GPUs. At 30 seconds of context, the project page lists CodecMem's cache at 1.5 GB against 39.7 GB for dense attention.

The paper's own scaling test is starker. Timing one denoising step of a causal MiniMax-H3 model with 33 billion parameters on four NVIDIA GB300 GPUs as history grows to 60 seconds, the authors write that "Dense attention over one minute requires 334 GiB of KV cache in a 33B video model." Dense attention's step time climbed to 851 milliseconds and its cache reached 334 GiB at 60 seconds; codec memory at a 10% budget took 219 milliseconds with a 33 GiB cache, which the authors call an upper bound. The codec itself runs at more than 100 frames per second, and the paper notes its selection step needs no training.

The practical reading for a creator is that the ceiling on how long a model can remember is set by memory, and lowering that cost is what allows longer context on a given GPU budget. The authors tested on backbones including Wan2.1-T2V at 1.3B and 14B parameters and the 33B MiniMax-H3, and trained the benchmark runs on 16 GB300 GPUs through NVIDIA's FastGen framework.

Where CodecMem Falls Short

The authors list real limits, and the headline numbers remain their own. Codec memory is still redundant: the codec predicts each window only from its reconstruction of the frame before it, so it removes repetition between neighboring windows but not over the long term. Content that leaves the view and comes back gets stored again, which makes moving back and forth over the same scene a clear failure case, since the budget is spent repeatedly on content the memory already holds. The selection is also greedy and driven by pixel error rather than the task, so it cannot favor the regions a model will need later. The authors leave both to future work.

Two caveats are worth keeping in view. The 60-second results are extrapolated from a model trained on 15-second videos, and the comparison numbers come from baselines the authors ported into their own framework and gave the same memory budget. The paper also notes that CodecMem repeats itself more often than the baselines in the audio test, and occasionally invents speech on prompts that contain no dialogue.

How It Compares and What Comes Next

The same memory helps a model act, not only generate. On RoboMME, a benchmark that tests whether a robot policy acts on what it saw earlier in an episode, the project page reports CodecMem at 71.3% average success, against 48.6% for RTP, 40.4% for LingBot-VA and 28.8% for Cosmos 3 when it is given keyframes instead. In an in-context learning task that pushes an object to a hidden target across repeated tries, the paper reports CodecMem matching dense attention at 4.7x fewer inference FLOPs.

The direction is a memory that spends its tokens where a scene changes, which is the same bet a traditional video codec made decades ago. The open questions are the ones the authors name: removing redundancy over the long term, and choosing which regions to keep based on the task rather than raw pixel error. If those follow, the memory window a video model can afford widens without the compute bill widening with it.

The preprint is at arxiv.org/abs/2612.04174, and the project page, with the generated 60-second clips, is at research.nvidia.com/labs/amri/projects/codecmem. The project page lists no downloadable code or weights.

Sources

  1. arxiv.org - abstract and submission date
  2. arxiv.org - full paper: mechanism, caveats, 334 GiB figure, limitations
  3. research.nvidia.com - headline numbers, tables, 60 s samples
  4. huggingface.co - authors, abstract, posting date
  5. aiweekly.co - independent corroboration of the 18x and 1.5 GB vs 39.7 GB figures