CodecOPSD makes MiniMax-H3 reference video up to 8.4x faster
The authors' codec-based LoRA drops about 70% of the reference tokens H3 appends on average, and in their best case cuts a 243-frame shot from 1,013 seconds of denoising to 121.

Key takeaways
- CodecOPSD-H3-Ref2VA, a LoRA adapter for MiniMax-H3 Ref2VA from Adobe Research and the University of Virginia, prunes about 70% of the reference tokens a multi-reference shot feeds the transformer, the authors report.
- In the authors' benchmark, a 768p, 243-frame shot conditioned on two photos and three videos fell from 232,064 condition tokens to 24,153, cutting denoising from 1,013 seconds to 121 seconds, an 8.4x speedup.
- The method maps H.264 motion vectors and residuals onto the model's 3D VAE tokens, then trains a small LoRA by on-policy self-distillation, according to the paper.
- The weights need the base MiniMax-H3 model and a 48GB to 80GB GPU, and follow the MiniMax H3 Community License Agreement.
The reason a multi-reference video shot can take fifteen minutes instead of two is not the denoiser. It is the references. Every picture and clip you hand MiniMax-H3 Ref2VA becomes tokens appended to the sequence the transformer reads, so a shot built from two character stills and three motion clips can carry more than 230,000 condition tokens before generation starts, and attention cost grows with the square of that number.
CodecOPSD-H3-Ref2VA, released on November 23, 2026, goes after the sequence instead of the sampler. It runs a classical video codec over the references, keeps the tokens the codec flags as new, and drops the rest. The authors report it removes about 70% of the reference tokens on MiniMax-H3 Ref2VA with almost no quality drop, for 1.87x faster denoising on average and up to 8.4x on heavy multi-clip shots.
What CodecOPSD-H3-Ref2VA is
It is a LoRA adapter plus a token-pruning preprocessor, not a model you run on its own. The work is described in the paper "On-Policy Codec Distillation for Efficient All-in-One Video Generation" (arXiv:2611.31184), by Boyang Wang, Kevin Blackburn-Matzen, Oindrila Saha, Matheus Gadelha and Zezhou Cheng, from Adobe Research and the University of Virginia, with part of the work done during an internship at Adobe Research.
The released weights sit on top of MiniMax-H3 Ref2VA, MiniMax's reference-to-video-and-audio model. Ref2VA takes reference images, videos and audio alongside the text prompt and generates a clip with sound. CodecOPSD leaves that model's own weights alone. It shortens the sequence the model reads and adds a small trained adapter to compensate for the tokens that are gone.
A companion adapter, CodecOPSD-H3-Image, does the same job for multi-reference stills. The model card says it drops about 65% of the reference tokens on MiniMax-H3-Image and makes denoising about 2x faster. Versions for Cosmos 3 Nano, Qwen-Image 2.1 and FLUX 3 Image Klein are listed as coming soon.
Why multi-reference video is slow
Sequence-wise generators append every reference to one token sequence, so controllability and cost rise together. The paper's framing is that modern visual models tokenize everything they receive, an identity, a sketch, a depth map or a motion video, and concatenate the result into a single input. The project page and the Hugging Face card both put the problem the same way: as references are added, the token cost grows sharply.
The arithmetic is why the slowdown feels non-linear. A transformer's attention work scales with the square of the sequence length, so doubling the reference tokens roughly quadruples the attention cost on top of the extra tokens themselves. In the flagship case below, adding three reference videos and two stills pushed the condition side to 232,064 tokens.
The authors argue most of those tokens repeat information the model already has. A static background looks the same in every frame of a reference clip, and a motion path covers a few pixels. That redundancy is exactly what a video codec is built to find.
How the codec picks the tokens to drop
CodecOPSD reuses H.264, the compression standard behind ordinary video files, as a token selector. In a codec, an intra-coded frame (an I-frame) predicts each block of pixels from its neighbours in the same frame, and a predictive frame (a P-frame) finds the best match for each block in an earlier frame and stores where it came from, as a motion vector, plus what is left over, as a residual.
The paper maps those signals from the pixel grid onto the model's 3D VAE tokens, which each cover a 32x32 pixel patch across 8 frames. Each token gets a motion score and a residual score, and a rule then keeps or drops it. One mode drops any token the codec finds almost no motion and almost no new detail in, which adapts the drop rate to each clip. A second, priority-based mode sorts tokens by combined motion and residual energy and drops the lowest first, which suits a fixed budget.
The selection is cheap. The paper reports codec pruning picks its tokens in about 1.13 seconds per case on six CPU cores, in parallel with the VAE and text encoders, while the DINO-attention and saliency baselines it compares against take 23.8 seconds and 75.0 seconds on a GPU.
What on-policy self-distillation does
Pruning alone is not enough, so a small LoRA is trained to generate from the shortened sequence. The paper says plain supervised fine-tuning leaves a visible gap to the dense model on codec-pruned conditions, so the authors adapt the model with on-policy self-distillation instead.
The plain-language version: one model plays both teacher and student. The student sees only the kept tokens. The teacher is the same frozen base model, but it also sees the tokens the codec threw away, as privileged information. The student generates its own sample step by step, and at each early denoising step it is nudged to match what the teacher predicts with the full set. It learns to reconstruct the dropped detail from what survives, rather than from the original pixels.
The trainable part is small. The paper states the LoRA is applied to the projections of the condition tokens, not to the noisy latent or the vision-language model's tokens, and the student runs alone at inference once the teacher is no longer needed. The community write-up at ComfyUI Wiki describes the shipped Ref2VA weights as a rank and alpha 128 FP32 LoRA of about 2.6 GB.
What the speedups cost in quality
The authors report almost no quality loss, and every figure below is theirs. On their own multi-condition video model, the paper's VBench comparison shows no perceptual score moving by more than 1.0 point against the dense teacher. In a blind A/B study the paper describes, 20 raters gave 384 answers and judged the pruned model equal to or better than the dense one in 92% of answers for following the conditions and 88% for visual quality.
The paper's fidelity table also keeps the pruned model close to the teacher on FID, FVD and LPIPS, and its method wins 10 of 12 metrics among fine-tuned pruning baselines. The ComfyUI Wiki write-up is blunt that these are the authors' own numbers, taken from the paper and model card, and that 8.4x is the best case with several conditions, not the everyday figure.
The benchmark numbers
The headline case comes from the project page, not a third party. There, a 768p, 243-frame dusk-desert shot conditioned on two pictures and three reference videos, sampled with Pika H3 Flex in 6 steps on one B200 GPU, went from 232,064 condition tokens to 24,153, a 90% cut. Denoising fell from 1,013 seconds to 121 seconds, which the authors round to 8.4x faster. The reference tokens inside the vision-language encoder fell from 47,670 to 10,996.
A second case, a 768p, 124-frame two-shot anime duel on three pictures and three videos on one H200, dropped from 133,392 tokens to 22,329 and from 731 seconds of denoising to 108, a 6.8x speedup. The authors' own model, the 16-condition testbed, drops 66% of condition tokens on average for up to 2.30x faster denoising and a KV cache up to 73% smaller, the paper reports.
The model card also shows a five-generation short film, "Robot versus Monster," made with the adapter and no teacher run or post-editing. It runs 737 frames at 768x1344, cuts reference tokens from 279,552 to 90,396 (down 68%) and finishes all five shots in 348 seconds of denoising on one B200, with audio.
What you need to run it
You need the base MiniMax-H3 Ref2VA weights and a large GPU, and there is no ComfyUI node yet. The model card's install path is to clone the CodecOPSD repository, install the app extra, pull the Ref2VA base weights with the project's own download command, then load the adapter before sampling. The AI FILMS write-up puts the hardware at 48GB to 80GB for a standard multi-reference shot and an H200 or B200 for the heaviest graybox cases.
ComfyUI Wiki warns that the pruning step sits in front of the transformer, so dropping the LoRA into a normal H3 Ref2VA graph with a plain model-only loader will not reproduce these numbers. The adapter follows the MiniMax H3 Community License Agreement, per AI FILMS, and there is a public demo Space on Hugging Face if you want to try it without the hardware.
The limits
The first limit is what the thing is. CodecOPSD-H3-Ref2VA is a LoRA and a preprocessor bolted onto MiniMax-H3 Ref2VA, so it is only as useful as the base model and it needs those weights locally. It is not a standalone generator, and the 1.87x average and 8.4x peak are measured on the authors' own cases and protocol, not on your footage.
The second is that aggressive pruning has a cost. AI FILMS notes that static stills and slowly panning graybox clips tolerate 70% to 90% pruning cleanly, but a reference clip with rapid facial micro-expressions or tiny text that changes every frame should be pruned less so key identity tokens survive. How a given shot behaves at a 90% drop is not something the published figures settle, because they are aggregate results.
What comes next
The model card lists CodecOPSD on Cosmos 3 Nano, Qwen-Image 2.1 and FLUX 3 Image Klein as coming soon, which would carry the same pruning idea beyond MiniMax's models. The project page also shows the method applied to Cosmos3 for physical-AI tasks, where the paper reports up to 2.30x faster denoising on control-to-video, continuation, video-to-audio and video-to-action jobs.
The CodecOPSD code and the Ref2VA adapter weights are on GitHub and Hugging Face now; the repo's own download command pulls the base MiniMax-H3 Ref2VA weights you need alongside them, and the Hugging Face Space runs the demo if you would rather not install anything.
Sources
- arxiv.org - paper abstract, authors, release date, 66% average drop and 73% KV cache cut
- arxiv.org - method detail, codec signals, on-policy self-distillation, VBench and human study, 1.13s selection time
- kiteretsu77.github.io - project page with the 8.4x and 6.8x benchmark cases and token counts
- github.com - repo, about 70% average drop and 1.87x denoising on H3 Ref2VA
- huggingface.co - model card, weights, install steps, short-film figures
- comfyui-wiki.com - no ComfyUI node yet, LoRA size
- studio.aifilms.ai - license, hardware matrix, limits