On-Policy Codec Distillation for Efficient All-in-One Video Generation
Boyang Wang, Kevin Blackburn-Matzen, Oindrila Saha, Matheus Gadelha, Zezhou Cheng
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 first introduce a codec-based token pruning method that discards redundant tokens. Then, we propose an on-policy self-distillation (OPSD) strategy to train a DiT adapter capable of learning the codec pruning pattern well without quality degradation. Together, they form On-Policy Codec Distillation (CodecOPSD). We scale CodecOPSD to 16 condition modalities on our own video diffusion model, where it prunes 66% of the condition tokens on average with almost no quality drop. Therefore, denoising becomes 2x faster, and the cache memory shrinks by up to 73% in KV cache mode. CodecOPSD also extends to other state-of-the-art pretrained image and video generative models, where its benefit grows further with more conditions, longer frames, and higher resolution.
Create a lesson
Metadata
- Comments
- Project page: https://kiteretsu77.github.io/CodecOPSD_website/
Related papers
RAPID: Codec-Aware Video Decoding for Efficient Long-Video Understanding
Shared title terminologycs.CVYuna Lee, Yulhwa Kim
GeoMVGen: Joint Appearance-Geometry Modeling for Multi-View Video Generation in Robotic Manipulation
Shared title terminologycs.CVQiaoqiao Jia, Guile Wu, Dongfeng Bai
Adapt, Label, Distill: Foundation-Model Supervision for Efficient Object Detection
Shared title terminologycs.CVZhengye Yang, Anthony Wang, Yuyang Li et al.
Your Codec, Your Generator: Idempotent Generative Compression without Retraining
Shared title terminologycs.CVRaz Haim, Assaf Shocher
AdProducer: Towards Agentic Advertising Video Generation
Shared title terminologycs.CVKunyang Li, Chaoyang Wang, Mubarak Shah et al.
Lyris: Layout-Guided Long Video Generation with Persistent 3D Memory
Shared title terminologycs.CVChen Wang, Jiahui Huang, Riccardo de Lutio et al.