PackCache: A Training-Free Acceleration Method for Unified Autoregressive Video Generation via Compact KV-Cache
Kunyang Li, Mubarak Shah, Yuzhang Shang
TL;DR
The paper tackles the KV-cache bottleneck in unified autoregressive video generation, where per-step attention costs scale with sequence length and the cache grows linearly with frames. It introduces PackCache, a training-free KV-cache management method that preserves semantic anchors (text prompts and conditioning images) and allocates a fixed, decayed budget across past frames using an exponential kernel, complemented by Spatially Preserving 3D rotary position embeddings to maintain spatiotemporal coherence. The approach is validated on the Lumos-1 model across 24- and 48-frame sequences on A40 and H200 GPUs, achieving 1.7–2.2× end-to-end speedups and up to 2.6–3.7× acceleration for the final, most expensive frames, while preserving quality on key I2VBench metrics. These results demonstrate that training-free cache compaction can enable longer-horizon, high-quality video generation within fixed memory budgets, significantly expanding the practical reach of unified autoregressive video systems.
Abstract
A unified autoregressive model is a Transformer-based framework that addresses diverse multimodal tasks (e.g., text, image, video) as a single sequence modeling problem under a shared token space. Such models rely on the KV-cache mechanism to reduce attention computation from O(T^2) to O(T); however, KV-cache size grows linearly with the number of generated tokens, and it rapidly becomes the dominant bottleneck limiting inference efficiency and generative length. Unified autoregressive video generation inherits this limitation. Our analysis reveals that KV-cache tokens exhibit distinct spatiotemporal properties: (i) text and conditioning-image tokens act as persistent semantic anchors that consistently receive high attention, and (ii) attention to previous frames naturally decays with temporal distance. Leveraging these observations, we introduce PackCache, a training-free KV-cache management method that dynamically compacts the KV cache through three coordinated mechanisms: condition anchoring that preserves semantic references, cross-frame decay modeling that allocates cache budget according to temporal distance, and spatially preserving position embedding that maintains coherent 3D structure under cache removal. In terms of efficiency, PackCache accelerates end-to-end generation by 1.7-2.2x on 48-frame long sequences, showcasing its strong potential for enabling longer-sequence video generation. Notably, the final four frames - the portion most impacted by the progressively expanding KV-cache and thus the most expensive segment of the clip - PackCache delivers a 2.6x and 3.7x acceleration on A40 and H200, respectively, for 48-frame videos.
