Papers
On-Policy Codec Distillation for Efficient All-in-One Video Generation
Video-generation models can accept many kinds of visual guidance, but they often process every condition as a long sequence of tokens, even when much of that information is repeated or unimportant.

- arXiv
- 2611.31184 · Preprint · not peer-reviewed
- Published
- 2026-11-23
- Authors
- Boyang Wang, Kevin Blackburn-Matzen, Oindrila Saha, Matheus Gadelha, Zezhou Cheng
In plain words
Video-generation models can accept many kinds of visual guidance, but they often process every condition as a long sequence of tokens, even when much of that information is repeated or unimportant. This paper aims to reduce that computational burden by using motion and residual information from a video codec to select useful tokens, then training the model to generate well from the reduced set.
AI summary
Overview
- Research area: Efficient controllable video and image generation, especially reducing the cost of multiple visual conditions.
- Technical level: Intermediate.
- Scope: The paper introduces CodecOPSD, which uses standard video-codec signals to remove redundant conditioning tokens and trains a model to preserve generation quality with the smaller input.
What This Paper Is About
Video-generation models can accept many kinds of visual guidance, but they often process every condition as a long sequence of tokens, even when much of that information is repeated or unimportant. This paper aims to reduce that computational burden by using motion and residual information from a video codec to select useful tokens, then training the model to generate well from the reduced set.
Key Contributions
- Codec-based token selection: The method maps motion vectors and residuals from an H.264 codec to the regions represented by the model’s visual tokens. Tokens with little motion or residual information can be dropped.
- On-policy codec distillation: A student model sees only the kept tokens, while a frozen teacher sees both kept and dropped tokens. The teacher guides the student on states produced by the student’s own denoising rollout.
- Broad modality coverage: The authors apply the approach to 16 condition modalities in their video model, including identity, sketches, depth, pose, tracking, interpolation, and inpainting.
- Transfer to other models: They also apply the approach to MiniMax-H3 Ref2VA, MiniMax-H3-Image, and Cosmos3, spanning video generation, image generation, and physical-AI tasks.
Main Findings
- Token reduction with quality close to the dense model: In the authors’ multi-condition video model, CodecOPSD drops 66% of condition tokens on average while remaining close to the dense teacher on the reported quality and condition-following metrics.
- Faster denoising and smaller KV cache: The method reaches up to 2.30× faster denoising in the main model and reduces KV-cache memory by up to 73%. In the reported test with 1 to 5 conditions, speedup without the KV cache rises from 1.54× to 2.30×; with the cache, it ranges from 1.15× to 1.37×.
- Strong results against pruning baselines: At the same average token-drop rate, codec pruning is the best training-free method on 8 of 12 reported metrics. After fine-tuning, CodecOPSD is the best fine-tuned method on 10 of 12 metrics.
- Fast token preparation: Codec selection takes 1.13 seconds per case on the reported CPU setup, compared with 23.8 seconds for the DINO attention baseline and 75.0 seconds for the saliency baseline. The authors report that codec processing can run in parallel with the VAE and text encoders.
- Human ratings are close to the teacher: In a blind study with 20 raters and 384 answers, CodecOPSD was judged equal to or better than the dense model in 92% of answers for condition following and 88% for visual quality.
- Different conditions tolerate different amounts of pruning: The reported analysis finds that dense conditions can lose 26% to 71% of their tokens without a measured quality change beyond the teacher’s seed variation, while sparse conditions can lose 80% to 94%.
- The approach transfers across models and tasks: On MiniMax-H3 Ref2VA, the reported overall denoising speedup is 1.87× while dropping 71.6% of DiT condition tokens and 36.2% of VLM tokens. On MiniMax-H3-Image, the method reaches 3.06× speedup at 2048² pixels. On Cosmos3, it reaches up to 2.30× speedup while staying within the teacher’s reported seed variation or doing better on the listed tasks.
Methodology in Plain English
The researchers start from a familiar idea in video compression: a codec does not store every frame equally. It describes how image blocks relate to earlier frames and records what remains different. The paper treats those signals as clues about which parts of a visual condition contain new information.
They map each model token to the pixels and frames it represents, then calculate a motion score and a residual score for that region. Depending on the desired token budget, they either keep tokens that pass thresholds or rank tokens by a combined score and drop the lowest-ranked ones first.
Token selection alone can reduce quality because the model may rely on information that is no longer present. To adapt it, the authors use on-policy self-distillation: the student generates its own denoising trajectory using the kept tokens, and the frozen teacher provides predictions at selected points along that trajectory. The teacher receives the dropped tokens as additional information; the student learns to match the teacher without them. At inference, only the student and the kept tokens are needed.
Why This Matters
Reducing condition tokens addresses a cost that grows as people provide more visual guidance. Because the method operates on the conditions themselves, the authors describe it as complementary to other ways of accelerating generation, such as reducing sampling steps, quantization, feature caching, and sparse attention. The use of a standard codec is also distinctive: the paper argues that codec signals can be computed efficiently on a CPU and reused across different visual modalities.
Potential applications described or supported by the paper include:
- Reference-guided video creation: Use images or videos as references while reducing the cost of processing many references.
- Image generation and editing: Work with multiple reference images in MiniMax-H3-Image while reducing reference tokens.
- Control-to-video generation: Guide video generation with conditions such as edges, depth, blur, or segmentation.
- Video continuation and downstream generation: Use video context for continuation, or as input for video-to-audio and video-to-action generation.
For industry, the appeal is that the method aims to reduce inference time and cache memory without requiring a new model architecture. The paper presents it as an adapter-based addition that can also be combined with other acceleration techniques.
Future Directions
- Use finer-grained compression: The authors propose reducing the channels of each kept token according to its codec residual, rather than deciding only whether to keep or drop the token.
- Study how to choose pruning settings: The paper shows that different modalities tolerate different drop rates; a useful next step is to determine how to set token budgets for new conditions and tasks.
- Test broader model and task coverage: The reported experiments span several models and task types, but further evaluation could clarify how reliably codec pruning transfers to other architectures and condition formats.
- Explore combinations with other acceleration methods: Since the paper presents token pruning as complementary to existing techniques, future work could measure how their benefits combine in practice.
Target Audience
This paper is most useful for researchers and practitioners working on diffusion transformers, controllable video or image generation, visual-token compression, or inference efficiency. It may also interest teams building creative tools that accept many visual references or controls and want to reduce generation cost while preserving fidelity to those inputs.
Authors’ abstract
Modern visual generative models operate on tokens, and every visual asset they receive, whether an identity, a scribble, a depth map, or a motion video, is tokenized and appended to the input token sequence. Consequently, conditioning quickly dominates the computation cost. Yet most of these tokens carry redundant spatiotemporal information. Our key insight is that identifying what is genuinely new is exactly the problem that classical video codecs have long solved. Thus, we…
The full abstract on arXivRelated papers
- LIFT: Layout-In-Future Video Generation under Large Viewpoint Change via On-Policy Self-Distillation 2026-09-29 · cs.CV · Also by Boyang Wang, Zezhou Cheng
- Learning Video Foresight Reasoning from Unlabeled Videos via On-Policy Self-Distillation 2026-11-20 · cs.CV · Key terms of the title in common
- H3Remover: Reinforcing Video Object Removal without Paired Data 2026-11-18 · cs.CV · Also by Boyang Wang
- M3OPD-Reasoner: An Open Recipe for Post-Training Multimodal Reasoning with Multi-Teacher On-Policy Distillation 2026-11-17 · cs.CV · Key terms of the title in common
- Click3R: Interactive Stereo 3D Reconstruction with Sparse Correspondence Clicks 2026-11-09 · cs.CV · Also by Zezhou Cheng