arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.26244

RECAP: Reciprocal Sparse Attention and Hierarchical Caching for Efficient Video Diffusion

Tiange Xu, Kai Liu, Linghe Kong, Yulun Zhang

ABSTRACT

Diffusion transformers generate high-quality videos but remain computationally expensive. Sparse attention and temporal caching reduce computation within and across denoising steps, respectively, offering a natural composition. However, predictions produced with sparse attention become sources for temporal reuse, coupling their errors along the sampling trajectory. We observe that improving the accuracy of these sources recovers fidelity without changing the reuse schedule, and that sparsification errors remain directionally aligned across nearby steps, suggesting that correction information can be shared rather than recomputed. These observations motivate RECAP, a training-free method that couples sparse attention with hierarchical caching through reciprocal correction, adaptively coordinated by online error feedback. Cached dense refinement corrects omitted interactions in current sparse estimates, while fresh sparse statistics track input changes and regulate the aging correction. The resulting predictions then renew the sources for whole-step prediction reuse, allowing prediction history to advance between dense refreshes. We evaluate RECAP on multiple video diffusion models against sparse-attention methods, caching methods, and their direct compositions. On HunyuanVideo at 720p 5-second generation, RECAP achieves a 3.05×3.05\times speedup and outperforms all tested direct compositions in both fidelity and inference speed. Code is available at https://github.com/lyraxtg/RECAP.

1 INTRODUCTION

Diffusion transformers have emerged as a powerful architecture for visual generation (Peebles & Xie, 2023), but the quadratic complexity of attention and repeated transformer evaluations make inference expensive. Video generation is especially costly due to the length of its spatiotemporal token sequences (Yang et al., 2025b; Kong et al., 2024). Sparse attention reduces the interactions computed within each denoising step (Xi et al., 2025; Hu et al., 2026), while temporal caching reuses features or predictions across steps (Liu et al., 2025a). Since the two approaches save computation

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: Yulun Zhang, yulun100@gmail.com

Figure

Figure 2: Motivation of RECAP. Direct composition reuses sparse outputs, so sparse error persists. RECAP caches dense refinement to correct sparse steps, whose outputs renew the reuse history.

along different axes, a natural way to accelerate further is to compose them directly. In such a composition, however, sparse-attention predictions become the sources that caching reuses in later steps. Sparsification error therefore affects both the current sampler update and subsequent reused predictions, making the accuracy of these sources central to the speed–fidelity trade-off.

We study this coupling in direct compositions and make two observations. First, source accuracy matters for fidelity. When we replace the cached tensors with dense counterparts while keeping the reuse schedule and the sparse predictions used by the sampler, the deviation from the dense trajectory decreases. Computing every source densely, however, would forfeit the savings of sparse attention, so we ask whether correction can be shared across steps. Second, we find that sparsification errors remain strongly aligned across nearby denoising steps. This persistence suggests that a single dense correction can serve several sparse evaluations, whose corrected predictions then provide more accurate sources for temporal reuse. Sparse attention and caching should therefore correct each other rather than act independently, as Fig. 2 illustrates. Section 3.1 details both analyses.

Motivated by these observations, we propose RECAP, which connects sparse attention and a two-level cache hierarchy through reciprocal correction, as illustrated in Fig. 3. At the attention level, a cached dense refinement supplies the detail that the current sparse estimate leaves unresolved. As attention inputs evolve across steps, fresh sparse statistics in turn regulate how strongly this aging refinement is applied, so that cached and current information correct each other. At the prediction level, the corrected outputs renew a prediction cache, from which later steps are extrapolated without another transformer evaluation. Sparse computation thus links the two levels, and one dense refresh can support several sparse evaluations together with the prediction reuse that follows them.

This design also naturally supplies the feedback for adaptive online scheduling. Each computed prediction reveals the error of the extrapolation it replaces, and each dense refresh reveals the error of the refinement it renews. Since corrected sparse evaluations renew prediction history while reusing existing refinement, the two caches can be renewed at different rates. The prediction error thus decides when to compute a new prediction, and the refinement error decides whether this computation needs a dense refresh. Under a fixed budget, these decisions choose among prediction reuse, corrected sparse computation, and dense refresh, adapting the schedule to each sample without offline search.

Our contributions are summarized as follows:

• We identify source accuracy and temporal persistence of sparsification error as key opportunities to improve sparse–cache composition. More accurate cache sources recover fidelity, while aligned errors across steps motivate sharing dense correction across sparse evaluations.

• We propose RECAP, which couples sparse attention with hierarchical caching through reciprocal correction. Cached dense refinement corrects sparse attention, corrected predictions renew the sources for whole-step reuse, and online error feedback decides when each cache is renewed.

• We evaluate RECAP on three video diffusion models, where it improves speed–fidelity trade-offs over individual accelerators and direct sparse–cache compositions. On HunyuanVideo, it achieves a 3.05×3.05 \times speedup with higher fidelity than all tested compositions, as Fig. 1 shows.

References (43)