Online Temporal Rotations for 2 Bit KV-Cache Quantization in Video Diffusion Transformers

Ryan Lucas, Petros Prastakos, Rahul MazumderarXiv 2026

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.

Figure 1. Structure of video-diffusion KV cache. Each panel overlays key and value magnitudes (|K| and |V |) on the corresponding video frame. We observe that (i) Within a video, nearby frames share persistent spatial patterns and (ii) the final two panels show that these patterns differ across videos, even at the same frame index and channel. Together, these observations motivate fitting rotations online to each video’s cache and sharing them within local temporal blocks. For other channels, see Section 7 of the appendix.

Methods

The authors propose Temporal Rotation Quantization (TRQ), which operates on local temporal blocks of the KV-cache.

  1. 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$.
  2. 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.
  3. Lightweight Parameterization: To keep overhead low, the rotation is factored into $R_B = G_B H$:
  4. $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).
  5. $H$ (Fixed): A fixed Walsh-Hadamard transform that spreads the concentrated energy evenly across all channels.
  6. Greedy Optimization: The authors prove that a simple greedy algorithm—fitting the tree level-by-level—is globally optimal for their mean-flattening objective.
  7. 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.
Figure 3. Tree of planar rotations for the four-channel mean µB = (5, −4, 4, 5) of Sec. 4.2.

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.
Table 1. Generated-video quality and encoded cache compression on 100 matched videos per method at 480p and 25 matched videos per method at 720p. The model rows give BF16 VBench scores. Bold values indicate the best quantized results within each model and resolution at the reported precision, including ties. Uncertainties denote sample standard errors across videos.

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

Abstract

Video diffusion transformers reuse key--value (KV) caches across denoising steps, which quickly becomes a bottleneck for long video generation. We find that quantizing temporally distant cache vectors leads to a large range and high quantization error, but that nearby video tokens in the KV-cache share a persistent pattern per channel. These patterns also vary across videos, motivating rotations that are adapted to each video's unique cache. We propose Temporal Rotation Quantization (TRQ), a method that rotates frames in the cache that are adjacent in time before quantization. For each block of temporally adjacent cache vectors, TRQ fits an orthogonal transform that maps the block's per-channel means to a vector that is close to a constant across channels. To keep the quantization format lightweight, we parameterize this rotation as a tree of $2 \times 2$ planar rotations, each stored with only two bits, followed by a fixed Hadamard transform shared across all blocks. The rotations are fit without gradients or changes to model weights, and we prove that a simple greedy fit is globally optimal for our 'mean-flattening' objective. The transforms are fit online for each new video, and we release fused Triton kernels to make this process efficient at inference. At 2-bit precision and matched compression, TRQ improves VBench subject consistency over the state-of-the-art method QVG from 90.38 to 92.02 on LongCat-Video-13B and from 86.33 to 87.61 on HY-WorldPlay-8B, as well as improving other metrics.
BibTeX
@misc{lucas2026online,
  author = {Ryan Lucas and Petros Prastakos and Rahul Mazumder},
  title = {{Online Temporal Rotations for 2 Bit KV-Cache Quantization in Video Diffusion Transformers}},
  year = {2026},
  eprint = {2611.26334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26334},
}
Figure