LRQ-Cache:基于低秩近似与量化的视频扩散模型特征缓存压缩方法
LRQ-Cache: Compressing Feature Caches in Video Diffusion via Low-Rank Approximation and Quantization
AI总结:
针对视频扩散模型特征缓存存储量过高的问题,提出无需训练的LRQ-Cache方法,结合低秩近似与量化压缩缓存,可将存储量降低42-71倍,使单GPU即可运行,生成速度提升2.7-5.9倍。
摘要:
视频扩散Transformer(DiT)可实现高保真生成,但推理成本高昂,因为每一步去噪都要对视频的所有时空token执行大型Transformer计算。时间缓存通过在去噪步骤间复用中间特征来加速推理,但保留密集特征张量会产生随视频长度、分辨率和缓存覆盖率增长的持续存储成本,我们评估的预测缓存每视频存储量达109-346 GiB,超出单GPU内存,因此原生缓存要么需卸载到CPU(会减慢生成速度),要么需跨多个GPU分片(如采用序列并行,此时缓存而非计算决定GPU数量)。我们利用缓存状态的冗余性(token间共享的少量通道模式可捕获每个缓存特征的大部分能量)来压缩缓存状态,提出LRQ-Cache,这是一种无需训练的方法,结合低秩近似与量化实现特征缓存压缩:用少量因子表示每个缓存特征,存储前对因子量化,复用特征时重构,且不改变缓存机制。在HunyuanVideo和Wan2.1的三种缓存机制上,LRQ-Cache将预测缓存的持续存储量降低42-71倍,至每视频2.3-4.9 GiB;TeaCache的VBench指标与原生缓存差距在0.25个百分点内,Wan2.1预测缓存的更大差距(最高3.5个百分点)在低秩因子秩更高时会缩小。最终,原本超出单80 GB H100 GPU内存的预测缓存,经LRQ-Cache压缩后可装入该GPU,生成速度比CPU卸载的原生缓存快2.7-5.9倍。
英文摘要:
Video diffusion transformers (DiTs) achieve high-fidelity generation, but inference is expensive because every denoising step evaluates a large transformer over all spatiotemporal tokens of the video. Temporal caching accelerates them by reusing intermediate features across denoising steps. However, retaining dense feature tensors introduces a persistent storage cost that grows with video length, resolution, and cache coverage, reaching 109-346 GiB per video for the predictive caches we evaluate. Such states exceed the memory of a single GPU, so native caches must either be offloaded to the CPU, which slows generation, or be sharded across several GPUs, e.g., with sequence parallelism, so that the cache rather than the compute sets the number of GPUs. We instead shrink the cached state itself, exploiting its redundancy: a few channel patterns shared across tokens capture much of the energy of each cached feature. Based on this observation, we propose LRQ-Cache, a training-free method that combines low-rank approximation and quantization for feature-cache compression. LRQ-Cache represents each cached feature with a small set of factors, quantizes them before storage, and reconstructs the feature at reuse time, leaving cache mechanisms unchanged. Across three caching mechanisms on HunyuanVideo and Wan2.1, LRQ-Cache reduces the persistent state of predictive caches by 42-71x, to 2.3-4.9 GiB per video. VBench stays within 0.25 pp of the native cache for TeaCache, and the larger drops of the Wan2.1 predictive caches, up to 3.5 pp, shrink at higher ranks. As a result, predictive caches that exceed the memory of a single 80 GB H100 GPU fit on it with LRQ-Cache, making generation 2.7-5.9x faster than with CPU-offloaded native caches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。