ResCa: Residual Caching for Diffusion Transformers Acceleration

Haipeng Fang, Yu Li, Fan Tang, Yixing Lu, Juan Cao, Sheng TangCVPR 2026

TL;DR

ResCa (Residual Caching) is a training-free acceleration framework for Diffusion Transformers (DiTs) that delivers up to a 5.5× reduction in GFLOPs with near-lossless generation quality. By clustering tokens based on their historical trajectories and performing full denoising on only one "proxy token" per cluster, it leverages multi-order residuals to accurately simulate updates for the remaining tokens.

What Problem Does This Paper Address?

Diffusion Transformers (such as FLUX and DiT) generate exceptionally high-fidelity images and videos but suffer from massive computational overhead. To make them faster, existing feature-level acceleration methods try to reduce token computation through two main shortcuts:

  1. Caching: Reusing token features from previous timesteps, which ignores fresh temporal updates (creating a non-updated denoising direction).
  2. Merging: Combining spatially similar tokens and processing the mixed features, which erases individual token identities (creating a non-self denoising direction).

As shown in Figure 1, both approaches cause the denoising path to drift away from the target trajectory, leading to degraded image quality, missing details, or artifacts. The challenge tackled by ResCa is to accelerate DiTs while ensuring that every token's trajectory remains both self (true to its unique identity) and updated (responsive to each timestep's new signals).

Comparison of denoising trajectories across different acceleration techniques.

Methods

ResCa introduces a "proxy denoising" paradigm that splits the generation process into dense and sparse computation timesteps:

Overview of the ResCa framework showing TETC and PDDS pipelines.

1. Temporal-Enhanced Trajectory Clustering (TETC)

During dense timesteps, all tokens are fully processed. Instead of clustering tokens based purely on their static features at the current moment, TETC analyzes their entire historical denoising path. It computes a cumulative similarity matrix using a temporal moving average—giving more weight to recent timesteps—and applies K-medoids clustering to group tokens with similar trajectories.

2. Proxy-Driven Denoising Simulation (PDDS)

During sparse timesteps, full denoising is performed on only one representative token per cluster (the proxy token). ResCa extracts the multi-order residuals (finite differences across timesteps) from this proxy token.

Instead of directly copying these values to the other tokens in the cluster (the driven tokens), PDDS uses them as a directional correction. It scales the proxy's residuals based on an order-specific confidence score that measures how well the driven token's history aligns with the proxy's history. Finally, the driven tokens are advanced using standard implicit ODE solvers (such as implicit Euler, Taylor, or BDF2). This allows driven tokens to maintain their individual characteristics while receiving cheap, high-fidelity updates.

Datasets

Because ResCa is entirely training-free, the authors evaluated its plug-and-play performance on standard generative benchmarks:

  • ImageNet: Used for class-conditional image generation via DiT-XL/2 (50,000 images evaluated using FID and sFID).
  • DrawBench: Used for text-to-image generation via FLUX.1-dev (200 prompts evaluated using Image Reward and CLIP scores).
  • VBench: A comprehensive evaluation suite for video generation, paired here with HunyuanVideo (946 distinct prompts).

Key Insights and Ideas

  • Trajectory over Features: Grouping tokens by their historical denoising paths is significantly more reliable for predicting future updates than grouping them by single-timestep feature similarity. Feature-based clustering often mistakenly groups tokens with completely different long-term trajectories (see Figure 2).
  • The Power of Residual Reusability: While raw token features (0th-order) diverge heavily within a cluster, higher-order residuals (the changes in features between steps) are highly correlated and reusable because they decouple the directional component of the denoising path from the token's underlying representation.
  • Look-Ahead Correction: By treating the proxy token's current step as a guide for the driven tokens' next step, ResCa acts as an implicit ODE corrector, keeping the simulated paths tightly aligned with the original, unaccelerated model trajectory.
Analysis showing why trajectory-based clustering and lower-order residuals are more effective.

Key Results

  • FLUX.1-dev: ResCa achieved up to a 5.51× acceleration in GFLOPs while maintaining near-lossless generation quality (Image Reward of 0.9889 vs. 0.9898 for the unaccelerated baseline). Qualitatively, it preserved intricate texture details in reflections, robotic limbs, and complex structures where other methods failed.
  • HunyuanVideo: Reached a top VBench score of 79.98% at a 5.53× FLOPs speedup, outperforming state-of-the-art caching methods like TaylorSeer and ClusCa. It successfully avoided common acceleration artifacts like misplaced objects or missing fluid details.
  • DiT-XL/2: Demonstrated a superior quality-to-speed trade-off on ImageNet, achieving an FID of 2.37 at a 2.58× speedup.

Limitations and Future Work

  • Diminishing Returns with Higher-Order Residuals: Although incorporating first- and second-order residuals drastically improves trajectory estimation, the authors found that going to third-order or higher slightly degrades performance. This is because higher-order finite differences tend to amplify small variations and background noise while increasing computational overhead.
  • Fixed Cluster Count: The current implementation relies on a pre-defined, static number of clusters ($K=16$ or $32$). A compelling direction for future work would be dynamically adapting the cluster count across different timesteps based on the generation's current structural complexity.

Summary updated

BibTeX
@inproceedings{fang2026resca,
  author = {Haipeng Fang and Yu Li and Fan Tang and Yixing Lu and Juan Cao and Sheng Tang},
  title = {{ResCa: Residual Caching for Diffusion Transformers Acceleration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=eFORqqiseK},
}
Figure