TL;DR
PCRG (Pruning and Caching of Reference Tokens) is a training-free, "plug-and-play" method that accelerates reference-conditioned video generation by up to 1.57×. By identifying and removing redundant or irrelevant reference tokens using signals already present in the model, it significantly reduces the quadratic cost of attention with negligible impact on visual quality.
What Problem Does This Paper Address?
Modern video generation models, particularly Diffusion Transformers (DiTs), often use "in-context" conditioning. This means they pack reference images, first/last frames, and text prompts into a single long sequence for the transformer to process. Reference tokens can make up over 50% of this sequence.
Because the computational cost of the attention mechanism grows quadratically ($O(N^2)$) with sequence length, these reference tokens become a massive bottleneck. However, much of this data is "dead weight":
- Redundancy: Many tokens represent static backgrounds or smooth textures that don't change over time.
- Irrelevance: Many parts of a reference image (like a distant tree) may be completely ignored by the model based on the specific text prompt.
Existing acceleration methods often skip entire denoising steps or use sparse attention, but they rarely address the underlying sequence length bloat caused by these reference tokens.
Methods
PCRG introduces a three-tier system for reference tokens: KEEP, CACHE, and PRUNE. The decision for each token is made before the first denoising step using two existing signals:
- Low-level Redundancy ($r$): Extracted from the VAE latents. It measures temporal variance (how much a patch changes over time) and spatial gradients (how much it differs from its neighbors). High redundancy suggests the token adds little new information.
- High-level Importance ($g$): Extracted from the Vision-Language Model (VLM) conditioner. By looking at the attention maps, PCRG identifies which reference tokens the prompt and the first/last frames actually "care" about.
The Execution: * KEEP: Tokens that are unique and important are processed normally at every step. * CACHE: Redundant but important tokens have their Key/Value (K/V) pairs computed once in the first step and reused thereafter, saving query-side computation. * PRUNE: Redundant and unimportant tokens are removed from the sequence entirely before generation begins.
Datasets
The authors evaluated PCRG using two main benchmarks:
- V2V-Bench: A new dataset introduced in this paper containing 92 real-world requests covering instruction-based editing, image-guided editing, and video-conditioned generation.
- VACE-Benchmark: A public benchmark with 240 requests spanning various control tasks like inpainting, outpainting, and reference-to-video.
Key Insights and Ideas
- Training-Free Efficiency: Unlike many acceleration techniques that require fine-tuning or specialized kernels, PCRG is "plug-and-play." It uses signals the model is already computing during its standard forward pass.
- Sequence Shortening vs. Step Skipping: While methods like TeaCache skip entire denoising steps, PCRG shortens the sequence itself. This reduces the cost of every transformer block in every step that isn't skipped.
- Orthogonality: Because PCRG changes the input sequence rather than the attention mechanism or the solver, it can be "stacked" with other methods. For example, combining PCRG with TeaCache or Spark leads to even higher speedups.
- Local Selection Strategy: To avoid "blind spots" where entire regions of a video might be pruned, PCRG uses a local selection strategy within $3 \times 3$ blocks, ensuring that even smooth regions retain some reference coverage.
Key Results
The researchers tested PCRG on the MiniMax-H3 model (already quantized to int8 and distilled to 8 steps).
- Speedup: PCRG achieved a 1.57× end-to-end speedup on V2V-Bench and 1.49× on VACE-Benchmark.
- Fidelity: The quality drop was minimal, with VBench scores decreasing by only 0.24% and 0.17% respectively.
- Stacking Performance: When combined with other accelerators on V2V-Bench, speedups reached 1.86× (with TeaCache) and 2.15× (with Veda).
Qualitatively, PCRG maintains subject consistency better than simple step-caching methods, which can sometimes cause the subject to drift or change appearance across frames.
Limitations and Future Work
- VLM Dependency: PCRG relies on the model using a VLM conditioner (like Qwen3-VL) to extract importance scores. Models using simpler text encoders (like T5) might not provide as rich a signal for pruning.
- Static Pruning: Currently, the pruning map is decided once before the first step. The authors note that importance might shift during the denoising process, suggesting that dynamic, step-aware pruning could be a fruitful area for future research.
- High-Fidelity Trade-offs: For tasks requiring extreme precision (like professional video editing), the authors suggest a larger cache proportion might be necessary to avoid losing subtle details.
Summary updated