Unified Generative Video Compression with Autoregressive and Bidirectional Video Diffusion
Organizations: University of Science and Technology of China · Kuaishou Technology
Abstract
Video diffusion models can reconstruct visually compelling content from severely compressed representations at ultra-low bitrates, but they impose a rigid deployment trade-off. Bidirectional (BI) models achieve high quality through dense full-sequence attention, yet require the entire sequence before reconstruction and incur substantial latency. Autoregressive (AR) models enable low-delay streaming, but their restricted temporal context reduces compression efficiency. This tension is particularly relevant when a video stream must be decoded in real time yet is also stored for later, quality-oriented playback, making AR and BI models natural choices for the live and replay stages, respectively. To support both stages, we present UniGVC, a Unified Generative Video Codec that supports two decoding modes from a single bitstream. UniGVC-BI employs a BI-DiT with dense attention for quality-oriented random-access decoding, whereas UniGVC-AR uses windowed AR-DiT for low-delay streaming. Both paths share a hierarchical latent codec that recurrently produces the same conditions with ultra-low bitrates, allowing UniGVC-BI to serve as a conditional teacher for single-step distillation of UniGVC-AR. A tiny conditional video decoder further reduces streaming latency while preserving most of the reconstruction quality. On standard 1080p benchmarks, UniGVC-BI achieves the best overall rate-distortion-perception trade-off among the evaluated methods and produces temporally stable video at rates as low as 0.0005 bits per pixel. Meanwhile, UniGVC-AR remains competitive while decoding 1080p video at 36.85 FPS, over faster than UniGVC-BI. Code and models will be released later.
Figures & tables
| Attention | DiT FPS | BD-rate ( ) | |
| LPIPS | DISTS | ||
| Bidirectional | 7.09 | -29.13 | -60.71 |
| Causal | 24.45 | 0 | 0 |
| Causal ( ) | 44.92 | +2.63 | +2.57 |
| Causal ( ) | 62.18 | +4.96 | +5.35 |
| Causal ( ) | 66.37 | +12.25 | +17.33 |
| Exp. | Architecture | Training Strategy | Latency (ms / frame) | FPS | Bjøntegaard Delta | ||||||
| DiT | VAE-D | Adv. | Pixel | Cond. | Codec | DiT | VAE-D | BD-LPIPS | BD-DISTS | ||
| DMD | FT. | VAE-D | |||||||||
| 1 | BI-50 | Orig. | - | - | - | 7.42 | 6948.61 | 69.34 | 0.14 | 0 | 0 |
| 2 | AR-1 | Orig. | - | - | - | 7.42 | 16.10 | 69.34 | 10.77 | +0.069 | +0.142 |
| 3 | AR-1 | Orig. | ✓ | - | - | 7.42 | 16.10 | 69.34 | 10.77 | +0.041 | +0.045 |
| 4 | AR-1 | Tiny | ✓ | - | - | 7.42 | 16.10 | 3.62 | 36.85 | +0.074 | +0.068 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Module | Latent Encoder | Latent Decoder | Hyper Encoder | Hyper Decoder | Entropy Model | Entropy Model | Context Extractor | Memory Fuser | Condition Head |
| Dimension | 256 | 256 | 128 | 128 | 512 | 256 | 512, 256 | 512 | 256 |
| DC blocks | 8 | 8 | 2 | 2 | 4 | 4 | 4, 4 | 4 | 4 |
| Resolution |
| Phase | Trainable modules | Frames | Crop size | Steps | Learning rate |
| Codec initialization | Codec | 1 | 100K | ||
| Codec initialization | Codec | 29 | 300K | ||
| Codec initialization | Codec | 97 | 20K, 10K,5K | , , | |
| Stage 1 warm-up | BI/AR-DiT LoRA | 97 | 15K | ||
| Stage 1 joint | Codec + BI/AR-DiT LoRA | 97 | 5K | ||
| Stage 1 joint | Codec + BI/AR-DiT LoRA | 97 | 2K |
| Method | VAE Encoder | Codec | DiT modules | VAE Decoder | Total |
| Wan2.1-1.3B ( Wan et al., 2025 ) | 53.6 | - | 1419.0 | 72.6 | 1545.2 |
| GLVC ( Guo et al., 2025 ) | 53.6 | 100.4 | - | 72.6 | 226.6 |
| GNVC-VD ( Mao et al., 2026 ) | 53.6 | 53.1 | 2154.5 | 72.6 | 2333.8 |
| UniGVC-BI | 53.6 (Shared) | 82.0 (Shared) | 1419.0 | 72.6 | 1627.2 |
| UniGVC-AR | 1419.0 | 13.5 | 1568.1 |
| Decoding mode | ||||
| Encoding | - | 86 ms | 39 ms | 21 ms |
| Decoding | UniGVC-BI | 7025 ms | 1502 ms | 410 ms |
| Decoding | UniGVC-AR | 27 ms | 19 ms | 12 ms |
| Dataset | No. of sequences | Sentences per caption | Sequence words | Full-prompt words | Original bytes |
| HEVC-B | 5 | 4.8 | 84.8 | 108.8 | 517.8 |
| UVG | 7 | 4.7 | 112.4 | 136.4 | 684.9 |
| MCL-JCV | 30 | 5.3 | 124.3 | 148.3 | 759.6 |
| Dataset | Original bytes | Zlib bytes | Zstd+dict. bytes | Zlib ratio | Zstd ratio | Original extra bpp | Zlib extra bpp | Zstd+dict. extra bpp |
| HEVC-B | 517.8 | 305.0 | 184.2 | 0.5890 | 0.3557 | |||
| UVG | 684.9 | 391.6 | 233.4 | 0.5718 | 0.3408 | |||
| MCL-JCV | 759.6 | 426.5 | 245.2 | 0.5614 | 0.3228 |
| (a) UniGVC-BI | ||||
| Prompt | LPIPS | DISTS | FID | KID |
| General only | 0.00 | 0.00 | 0.00 | 0.00 |
| + sequence | -1.88 | -11.19 | -11.06 | -17.11 |
Video Compression
Video compression reduces the bits needed to store or transmit moving images while balancing visual quality, computational cost, and downstream usefulness.
See all 73 papers