PCRG: Training-Free Pruning and Caching of Reference Tokens for Video Generation

Siyuan Wang, Haoran Li, Yi Yue, Tak L. Fung, Quan Chen

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":

  1. Redundancy: Many tokens represent static backgrounds or smooth textures that don't change over time.
  2. 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:

  1. 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.
  2. 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.
Overview of the PCRG workflow, showing how redundancy and importance signals are fused to create a tier map for reference tokens.

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).
Figure 1. Caching and pruning. Each grid shows tokens by steps. (a) Step-level caching skips whole steps. (b) Condition caching keeps all keys and values but stops updating. (c) Pruning removes the tokens entirely. (d) Sparse attention keeps every token but reads only part of the keys and values. (e) PCRG combines caching and pruning for the reference token. (f) Comparison results on speed and fidelity on V2V-Bench.

Qualitatively, PCRG maintains subject consistency better than simple step-caching methods, which can sometimes cause the subject to drift or change appearance across frames.

Figure 3. Qualitative comparison on a V2V-Bench request. GT is the unpruned output, and the number in parentheses is the LPIPS to it. +TeaCache and +Spark combine PCRG with TeaCache and Spark.

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

Abstract

Reference-to-video diffusion transformers pack the variational autoencoder (VAE) latents of all references and the generated tokens into one full-attention sequence, in which reference tokens make up about half. Because attention cost grows quadratically with sequence length, these tokens take up an even larger share of the attention computation, yet most of them are static, smooth or irrelevant to the output. To accelerate reference-conditioned generation, we propose pruning and caching of reference tokens for video generation (PCRG), a training-free, plug-and-play method that uses two signals the model already computes to assign each reference token to one of three tiers, namely pruned, cached or kept. The first is a low-level redundancy r from VAE latents, since a token whose latent barely changes over time or across its neighbors adds little new content. The second is a high-level importance g from the vision-language-model (VLM) conditioner, where the attention that the prompt and any first or last frames pay to a token tells whether the output needs to read it. Tokens that are not redundant are kept, and redundant tokens are cached if important and pruned otherwise. Pruned tokens leave the sequence before the first step with all rotary position embedding positions unchanged. Cached tokens have their keys and values computed once and reused, and kept tokens are processed as usual. On MiniMax-H3, already distilled to 8 timesteps and quantized to int8, PCRG is 1.57x faster end to end on our V2V-Bench and 1.49x faster on the public VACE-Benchmark, while the quality of VBench drops by only 0.24% and 0.17%, respectively. PCRG shortens the sequence rather than changing how attention is computed or which steps are run, so it also stacks on step caching and sparse attention. On V2V-Bench it reaches 1.86x with TeaCache, 1.82x with Spark at nearly unchanged fidelity and 2.15x with Veda.
BibTeX
@misc{wang2026pcrg,
  author = {Siyuan Wang and Haoran Li and Yi Yue and Tak L. Fung and Quan Chen},
  title = {{PCRG: Training-Free Pruning and Caching of Reference Tokens for Video Generation}},
  year = {2026},
  eprint = {2611.22717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22717},
}
Figure