CodecMem: 18 times fewer operations for long AI video

On December 3, 2026, AI Weekly published a breakdown of CodecMem, a method from researchers at NVIDIA and Stanford. It compresses the memory a video model holds while it generates, and it does so with 18 times fewer inference operations. The Hugging Face paper behind the summary was not reachable on the day of this issue, so the figures below follow AI Weekly from December 3, 2026. What follows explains where the cost gap between video and text comes from, and what the authors actually proposed.

Six video frames enter one orange narrow plate and a compact grid of four squares comes out
01

Why a minute of video costs more than a minute of text

A text model reads tokens, and a minute of speech fits in a short stretch of them. Video works differently. A minute holds hundreds of frames, and every new frame gets compared against everything the model has already accumulated from the ones before. That accumulation sits in video memory, and it is called the KV cache.

The arithmetic is simple and unpleasant. As a clip grows, the cache grows, and so does the number of operations at every later step. The CodecMem authors give their own numbers: dense attention over a minute needs 334 GiB of KV cache in a 33B video model, and every new frame slows all denoising steps. Denoising is the process where the model gradually removes noise and arrives at a finished image.

That is why a 60 second clip costs noticeably more than two clips of 30 seconds. Compute grows faster than length, so the last second of a minute costs more than the first. The same math drives the habit of cutting a scene into 5 to 10 second shots. A short shot is cheaper because of the size of the memory that has to be recomputed, and the strength of the model plays no part there.

02

Memory for AI video: the KV cache and tubelets in plain terms

The KV cache is the memory a model keeps about what has already been in the frame. The easiest picture is a stack of notes: each new image adds its own page, and before the next step the model reads through the whole stack.

Dense attention works exactly that way. A new frame is compared with every page in the stack, and the longer the clip, the more comparisons. Many pages repeat each other along the way: the wall in the shot stays the same wall, and the room does not change. The model pays for that at every step.

Two more terms from the method description. Optical flow is an estimate of motion between two frames, meaning where each patch of the picture moved. A tubelet is a small block of a frame that the codec works with, something like a patch of image taken as a whole. For the underlying basics, what latent space means in AI video covers the ground, and why AI clips are short explains the shot-by-shot habit.

Two panels: a tall stack of thin plates beside a clip on the left, one small square on the right, an orange arrow between
03

What CodecMem does: the method in three steps

The authors describe the mechanics in one sentence: the codec warps its own reconstruction of the previous frame with optical flow and adds tubelets to memory only where the warped frame failed to match the new one.

Break it into three steps. First, the codec takes what it reconstructed from the previous frame. Second, it shifts that reconstruction along the optical flow, which puts the motion of the new frame in place. Third, it compares the result with the new frame and writes only the differences into memory.

The point is refusing unnecessary work. Static content costs almost no tokens, because the warped copy already matched. Memory goes to what actually changed: a character moving, a new object entering the frame, a shift in the light. That answers the question of how much compute AI video needs: less, because the model stops recomputing what never moved.

04

How much compute AI video needs: the measured numbers

The benchmark CodecMem was measured on goes up to 60 seconds of context. It covers three tasks: content search, object tracking and spatial memory, which is the ability to hold the layout of objects in a scene. On that benchmark the method gave the best result of 12 compressed memory approaches, at an eighteenth of the inference cost.

The second group of numbers concerns memory size. In their own configuration the authors hold 1.5 GB of KV cache where the dense version over the same context takes 39.7 GB.

That gap in orders of magnitude explains why the topic exists at all. 334 GiB does not fit in one GPU, so a minute of generation runs into hardware and into rental cost. One and a half gigabytes change both the price and the class of machine.

A frame repeats as a dashed shifted copy and exactly one square of a six-cell grid turns orange
05

Where else it wins: tracking and RoboMME

Some results go past the length the model was trained on. On tracking beyond the training length, CodecMem beats dense attention: 90.8 percent against 85.2. That is the strong part of the result, because a benchmark that stops at one minute says nothing on its own about behaviour past the trained window.

On RoboMME, a suite of tasks about general scene understanding, the result is 70.6 percent overall success against 61.3 for the next model in the comparison. With 4.7 times fewer operations, the method matches dense memory in in-context learning, meaning the ability to use hints given inside the request.

Keep a cool head about these numbers. All of them come from the summary, and the paper itself could not be opened while this issue was being prepared. The task set is narrow, the benchmark context stops at a minute, and the percentage does not transfer to everyday clip generation.

06

The GPU question: what the tests ran on

Tests covered three models: Wan2.1-T2V in the 1.3B and 14B versions, and 33B MiniMax-H3. Training ran on 16 GB300 GPUs through FastGen from NVIDIA.

The list is useful on its own. Wan2.1-T2V is a text-to-video model, and both its 1.3B and 14B versions took part. MiniMax-H3 at 33B is a different scale of model. Testing across two scales suggests the authors wanted to show the approach travels. Which GPU AI video needs in 2026 is broken down separately, and the conclusion is sober: dense attention over long context hits the memory wall before it hits a speed wall.

07

Clip length and the budget: what the measurements imply

The first consequence is about length. Scenes are cut into shots today because a long run is expensive and often falls apart. If memory stops being the bottleneck, 30 to 60 seconds in one pass turns into a pricing question. The technical barrier stops being the thing that decides.

The second consequence is about price. A budget shifts for a plain reason: less compute goes into each second. When AI video production quotes a long piece, the estimate runs on seconds, and any reduction in work per second shows up on the invoice directly.

The third consequence calls for restraint. 18 times and 4.7 times are benchmark measurements, not a promised discount on a price list. Until the method ships inside products, only the direction is arguable: research pushes cost down, and the actual figures in a quote arrive later.

08

What the summary does not say

The summary gives no prices and no timeline for the method reaching products. Behaviour on clips longer than a minute and the effect on image quality at ordinary length are not described either. Hence a hard limit: nobody can claim the method already runs somewhere. It is research with open numbers and no open product. Cost and length are the subject, and quality sits outside the measurement.

09

The takeaway

Long video runs into memory. A model's creative skill is not the limit here. While every new frame forces a recomputation of all accumulated memory, a minute stays expensive whatever the model.

CodecMem is interesting because it refuses to grow memory and refuses to spend it on what did not change. The wall in the shot is the same wall, so storing it again buys nothing. That simple thought produces 1.5 GB in place of 39.7 GB and the top spot in the comparison.

The practical read for anyone buying video is short: watch length and watch the estimate. Once the method reaches products, long scenes in one pass stop being a luxury. Higgsline, Netflix and the rest of that day's news are collected in the news digest for December 5.

frequently asked

01What is CodecMem
A way to compress the memory that long-context video and world models carry. It swaps dense KV attention for a codec that stores only the parts of a frame that changed.
02How much memory does CodecMem save
Their setup holds 1.5 GB against 39.7 GB for dense memory on the same context. Source: the AI Weekly write-up of December 3, 2026.
03How much less compute does it need
On a one minute context it came out ahead of eleven other compression schemes, with an 18-fold cut in inference operations. On the RoboMME task the count drops 4.7 times.
04How much memory a minute takes
The cache keeps growing with clip length, so the closing seconds of a clip cost more than the opening ones.
05Which models were used for testing
Two versions of Wan2.1-T2V, 1.3B and 14B, plus MiniMax-H3 at 33B. Training used sixteen GB300 accelerators on FastGen.
06Can CodecMem be used today
No. This is research with no product and no date: no prices, no behaviour past a minute and no word on picture quality.