TRQ:面向视频扩散Transformer 2 Bit KV-Cache量化的在线时序旋转方法
Online Temporal Rotations for 2 Bit KV-Cache Quantization in Video Diffusion Transformers
研究提出时序旋转量化(TRQ),在量化前对KV-Cache中时间相邻的帧施加正交变换,将每通道均值映射到接近常数的向量,旋转以2×2平面旋转树参数化、每个仅存2 bit,并配合固定Hadamard变换。
arXiv:2611.26334v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org