arXiv:2610.28192cs.CVOct 2026

Manuscript Offprint

arXiv:2610.28192

Offline Makes Online Better: Calibrated Cache Compression for Video Generation

Zhen Wang, Ning Lai, Qingtao Yu

ABSTRACT

Token merging is an effective approach to reducing KV-cache memory consumption in autoregressive video generation by clustering temporally redundant tokens and retaining only a small set of representatives. Existing methods, however, typically apply a uniform merging ratio across all attention layers and heads. We observe that different layers and heads exhibit substantially different yet jointly correlated sensitivities to token merging, and that these sensitivity patterns remain consistent across prompts. Based on this observation, we introduce CALM, a Calibrated Allocation for Layer-Head Merging that uses offline calibration to improve online cache compression. Exhaustively evaluating all possible layer-head allocations is prohibitively expensive. To enable efficient calibration, we show that attention-output error strongly correlates with end-to-end video quality and can therefore serve as a lightweight proxy for allocation risk assessment. We evaluate different allocation strategies using this proxy and construct a fixed layer-head risk map offline. Given a cache budget at inference time, CALM uses dynamic programming to determine the best allocation of merging ratios. Experiments across three different autoregressive video models demonstrate that CALM consistently outperforms uniform token merging under the same memory budget, by reducing the LPIPS to original videos by around 21% with higher video-quality scores.

1 INTRODUCTION

Autoregressive video diffusion models generate the frame-chunks sequentially, keeping a key-value (KV) cache that grows with every chunk (Wan et al., 2025a; Yin et al., 2025; Huang et al., 2025; Zhuang et al., 2026). Compressing this KV cache can improve inference efficiency by reducing both memory usage and computational cost. Token Merge has emerged as an effective training-free approach for improving model efficiency and compressing KV caches (Bolya et al., 2023; Li et al., 2024a; Wu et al., 2025; Hu et al., 2026). In autoregressive video generation, it merges redundant tokens along the temporal dimension while retaining only a few representatives at each spatial position. However, existing token merging methods typically keep the same number of representatives uniformly across all transformer layers and attention heads. We argue that this uniform strategy is suboptimal and focus on addressing this limitation to enable a more fine-grained merging strategy.

To start with, we conduct a sensitivity analysis of token merging across different transformer layers and attention heads and make three key observations. First, different layers and heads exhibit different sensitivities to merging, as measured using LPIPS against the original unmerged video. Second, layer and head sensitivities are jointly dependent, for example, the relative sensitivity ordering of two head indices can differ across layers. Third, these sensitivity patterns are consistent across different prompts. The first two patterns indicate that the layer-head merging policy cannot be reduced to a simple heuristic. Fortunately, the third observation shows that we can obtain such a policy through offline calibration and apply it across different prompts.

∗^{*}Corresponding author.

These observations motivate CALM, an offline-calibrated allocation of temporal KV representatives across layer-head pairs. To avoid generating videos for every candidate allocation, we measure attention-output error using dense queries and shadow KV caches, building a distortion table over candidate representative counts. An offline dynamic program minimizes the summed calibrated distortion under a fixed budget. The resulting allocation is frozen and reused across unseen prompts without retraining or per-video allocation search.

Our contributions can be summarized as follows:

• We reveal that sensitivity to temporal KV merging varies across layers and heads, with coupled layer-head effects that remain consistent across prompts.

• We develop a lightweight calibration proxy based on attention-output error that predicts end-to-end per-frame LPIPS without regenerating videos.

• We formulate temporal KV merging as a fixed-budget layer-head allocation problem and solve it exactly with dynamic programming.

• We show that the resulting frozen policy outperforms uniform allocation at equal budget without per-video search during inference.

References (47)