TL;DR
Temporal Rotation Quantization (TRQ) is a novel method that enables high-fidelity 2-bit quantization of the Key-Value (KV) cache in video diffusion transformers. By exploiting the fact that nearby video frames share similar per-channel patterns, TRQ fits lightweight, online rotations to "flatten" these patterns, allowing standard quantizers to focus on fine-grained details and significantly reducing the memory footprint of long-form video generation.
What Problem Does This Paper Address?
Video Diffusion Transformers (DiTs) are the state-of-the-art for generating high-quality video, but they have a massive memory problem. To generate long videos efficiently, these models use a KV-cache to store the keys and values of past frames so they don't have to be recomputed at every step.
However, this cache grows linearly with video length. For minute-scale videos, the cache can reach tens of gigabytes, exceeding the memory of even high-end consumer GPUs. While quantization (reducing the precision of numbers, e.g., from 16-bit to 2-bit) is a standard solution in Large Language Models (LLMs), video DiTs have a different data structure. In LLMs, quantization errors often stem from "outlier channels" that persist across all tokens. In videos, as shown in Figure 1, the data is highly correlated across nearby frames but changes significantly over longer periods and across different videos. Existing methods fail to adapt to this dynamic, video-specific structure.
Methods
The authors propose Temporal Rotation Quantization (TRQ), which operates on local temporal blocks of the KV-cache.
- Block-wise Adaptation: The cache is divided into blocks of $n_B$ consecutive frames (e.g., 8 frames). For each block, TRQ fits a unique orthogonal rotation $R_B$.
- Mean-Flattening Objective: The goal of the rotation is to transform the block's per-channel means into a vector that is nearly constant across all channels. This is crucial because asymmetric quantizers store a single offset per vector; if the mean is constant across channels, the offset absorbs it perfectly, leaving the limited 2-bit quantization levels to represent only the small, frame-specific deviations.
- Lightweight Parameterization: To keep overhead low, the rotation is factored into $R_B = G_B H$:
- $G_B$ (Adaptive): A balanced binary tree of $2 \times 2$ planar (Givens) rotations. Each rotation uses a 2-bit angle, making the entire transform extremely compact (only 254 bits for a 128-dimensional vector).
- $H$ (Fixed): A fixed Walsh-Hadamard transform that spreads the concentrated energy evenly across all channels.
- Greedy Optimization: The authors prove that a simple greedy algorithm—fitting the tree level-by-level—is globally optimal for their mean-flattening objective.
- Efficient Inference: The rotations are fit "online" for each new video. The team released fused Triton kernels to ensure this process adds almost zero runtime overhead during generation.
Datasets
The researchers evaluated TRQ across three major video diffusion models:
- LongCat-Video-13B: A model designed for long-video continuation.
- HY-WorldPlay-8B: A streaming video diffusion world model.
- Self-Forcing-Wan-1.3B: A model targeting the train-test gap in autoregressive generation.
Evaluation was performed using the MovieGen Video Bench (VBench), which includes 1,003 prompts covering human activity, animals, natural scenes, and physical phenomena.
Key Insights and Ideas
- Temporal Redundancy is Local: Unlike LLMs where outliers are global, video DiT cache patterns are stable over short windows but decay over time. This necessitates online and local adaptation rather than a one-size-fits-all rotation.
- The "Aha" of Mean-Flattening: Instead of explicitly subtracting and storing centroids (which adds metadata overhead), TRQ uses rotations to "trick" the quantizer's existing offset mechanism into doing the work for free.
- Theoretical Optimality: The proof that greedy fitting is globally optimal for the tree structure provides a strong mathematical foundation for an otherwise heuristic-looking approach.
Key Results
At 2-bit precision, TRQ consistently outperforms the previous state-of-the-art method, QVG, across multiple fidelity and quality metrics.
- Subject Consistency: On LongCat-Video-13B, TRQ improved VBench subject consistency from 90.38 to 92.02. On HY-WorldPlay-8B, it rose from 86.33 to 87.61.
- Fidelity Metrics: TRQ achieved significantly better PSNR, SSIM, and LPIPS scores compared to other 2-bit baselines like QuaRot, KIVI, and TurboQuant.
- Efficiency: Despite the online fitting, the custom Triton kernels make TRQ faster than many baseline implementations, maintaining a runtime very close to the uncompressed "dense" model.
Limitations and Future Work
- Dynamic Content: The current method uses fixed block lengths. In scenes with very fast motion or sudden cuts, the temporal redundancy is weaker, which might lead to higher quantization errors. The authors suggest that adaptive block lengths could be a promising future direction.
- Complementary Approaches: TRQ focuses on temporal structure, while methods like QVG focus on spatial/centroid structure. Combining these two approaches could yield even higher compression ratios.
- Generalization: While highly effective for video, the concept of online rotation fitting for quantization hasn't been widely explored for other modalities (like audio or long-context text), representing a broad avenue for future research.
Summary updated