Accelerating Diffusion-based Video Editing via Heterogeneous Caching: Beyond Full Computing at Sampled Denoising Timestep

Tianyi Liu, Ye Lu, Linfeng Zhang, Chen Cai, Jianjun Gao, Yi Wang, Kim-Hui Yap, Lap-Pui Chau

TL;DR

HetCache is a training-free acceleration framework that speeds up Diffusion Transformer (DiT)-based video editing by up to 2.67× with negligible loss in quality. It achieves this by exploiting "heterogeneity"—strategically caching and skipping redundant computations across both denoising timesteps and spatio-temporal video tokens.

What Problem Does This Paper Address?

Diffusion Transformers (DiTs) have become the state-of-the-art backbone for video generation and editing. However, their high visual fidelity comes at a massive computational cost. This bottleneck stems from two sources of redundancy:

  1. Temporal Redundancy: The iterative denoising process requires repeatedly running the network over dozens of timesteps.
  2. Architectural/Token Redundancy: The self-attention mechanism inside Transformers scales quadratically with the number of spatio-temporal video tokens.

While existing acceleration methods try to reuse features across timesteps, they typically apply the same caching strategy uniformly to all tokens. In Masked Video-to-Video (MV2V) tasks—like video inpainting or localized object editing—large portions of the video (the background context) remain static. Forcing the model to compute dense context-to-context attention at every single step wastes an enormous amount of compute.

Figure 1. (a). Illustration of the acceleration dimensions in Diffu- sion Transformers (DiTs). Unlike existing methods, the proposed Heterogeneous Caching (HetCache) jointly models denoising-step redundancy in the diffusion process and token redundancy within the Transformer backbone. (b). As a tailored heterogeneous strat- egy, HetCache accelerates diffusion-based masked video-to-video (MV2V) editing while maintaining generation quality.

Methods

The authors introduce HetCache (Heterogeneous Caching), a training-free framework designed to eliminate both temporal and token-level redundancies simultaneously.

1. Multi-Regime Scheduling (Temporal)

Instead of treating every denoising step equally, HetCache uses a lightweight proxy (relative input change modulated by timestep embeddings) to predict how much the model's output will change. It then dynamically assigns each timestep to one of three regimes:

  • Full-Compute Steps: Executed when output variation is expected to be high; refreshes the cache completely.
  • Partial-Compute Steps: Executed during moderate drift; only a subset of tokens/operations are recomputed.
  • Reuse Steps: Executed when the trajectory is stable; directly reuses cached outputs to skip computation entirely.

2. ROI-Driven Token Partitioning and Selection (Spatial)

During partial-compute steps, HetCache uses the editing mask to segment video tokens into three distinct zones:

  • Generative Tokens: The masked region undergoing editing.
  • Margin Tokens: Unmasked tokens directly adjacent to the mask boundary, fully preserved to ensure smooth transitions.
  • Context Tokens: Unmasked background tokens far from the edit zone.

To cut down the quadratic cost of self-attention, HetCache applies K-Means clustering to group the context tokens in the semantic space. It then calculates a sparse attention score to determine which clusters correlate most strongly with the generative tokens. Only the top, most representative context tokens are selected to participate in the attention mechanism, drastically reducing the token count without losing semantic guidance.

Figure 2. The overview of our proposed HetCache scheme. In denoising process, we use the timestep-embeddings-modulated-input [18] to estimate the computing demand. According to the accumulated distance, Full-Compute anchor step, Reuse step and Partial-Compute step will be executed. In full-computing, HetCache will use spatial prior extracted from editing mask to categorize the DiT tokens into Context, Margin, and Generative Tokens. The Context Tokens which takes high portion and cause redundant computation cost will be cached for partial-compute steps according to its semantic representativeness and interaction strength with the generative tokens.

Datasets

The framework was evaluated on two primary benchmarks for video editing:

  • VACE-Benchmark: Used to evaluate video inpainting and completion performance.
  • VPBench (including a DAVIS-derived test set): Used to evaluate text-guided localized video editing.

Key Insights and Ideas

  • Context-Context Attention is Mostly Waste: In localized editing, the dense interactions between background tokens dominate the computational cost but contribute almost nothing to the actual edit.
  • Boundaries Need Protection: Fully preserving a "margin" of unmasked tokens around the edit mask is essential. Without it, accelerated models suffer from severe ghosting and boundary artifacts.
  • Semantic Capacity Limits: The authors found that increasing the number of clusters ($K$) for context tokens does not monotonically improve performance. Background semantics have an effective capacity limit, meaning they can be compressed aggressively without losing structural guidance.

Key Results

  • Substantial Speedups: On the Wan2.1-VACE foundation model, HetCache achieved up to a 2.67× latency speedup and reduced FLOPs from 145.21 PFLOPs down to 23.60 PFLOPs for video inpainting.
  • Quality Preservation: Despite the aggressive computation cuts, HetCache maintained competitive metrics (PSNR, SSIM, VFID) and often bypassed the blurring or ghosting issues seen in other acceleration methods like TeaCache.

Limitations and Future Work

HetCache is explicitly tailored for masked video-to-video (MV2V) tasks where a clear spatial prior (the mask) exists to guide token partitioning. The paper does not explore how this method would adapt to unmasked, global video-to-video editing or text-to-video generation from scratch, where distinct "context" and "generative" zones are harder to define. The authors note that exploring multidimensional redundancy remains a promising frontier for future Diffusion Transformer acceleration.

Summary updated

BibTeX
@inproceedings{liu2026accelerating,
  author = {Tianyi Liu and Ye Lu and Linfeng Zhang and Chen Cai and Jianjun Gao and Yi Wang and Kim-Hui Yap and Lap-Pui Chau},
  title = {{Accelerating Diffusion-based Video Editing via Heterogeneous Caching: Beyond Full Computing at Sampled Denoising Timestep}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=bhPLbixb4V},
}
Figure