TL;DR
Researchers have introduced CARP (Curvature-Aware Residual Prediction), a training-free framework that speeds up Diffusion Transformers (DiTs) by up to 2.88×. By predicting "residual updates" instead of raw features and using a curvature-aware rational function for extrapolation, CARP maintains high image and video quality even when sampling with very few steps—a regime where traditional caching methods typically fail.
What Problem Does This Paper Address?
Diffusion models have transitioned from convolutional U-Nets to more powerful Diffusion Transformers (DiTs), like FLUX and Sora. While DiTs offer superior generation quality, they are computationally expensive and require many denoising steps to produce a single image or video.
To speed this up, researchers often use feature caching, where they skip computations in some layers by reusing features from previous timesteps. However, this creates a "fidelity-speed tradeoff." If you take large sampling steps (e.g., trying to generate an image in only 20 steps), the features change too much between steps for simple reuse to work. Recent attempts to use Taylor expansions (polynomial prediction) to guess future features help, but they suffer from "truncation errors"—they often overshoot or undershoot the true trajectory, leading to distorted images and accumulated errors.
Methods
The authors propose the Curvature-Aware Residual Prediction (CARP) framework, which introduces three main innovations:
- Residual-Targeted Prediction: Instead of trying to predict the high-dimensional, volatile raw feature maps, CARP predicts the end-to-end residuals (the difference between the input and output of a Transformer block). The authors empirically demonstrate that these residuals are much more stable and follow a more predictable path than the features themselves.
- Rational Function Predictor: Rather than using standard polynomials (like Taylor series), CARP uses a rational function (a fraction of two functions).
- The numerator performs a standard linear extrapolation.
- The denominator acts as a "bidirectional controller." It uses the discrete curvature of the denoising trajectory to either "boost" the prediction (if it's undershooting) or "damp" it (if it's overshooting).
- Curvature-Guided Gating: Even with smart prediction, some parts of the denoising process are too chaotic to guess. CARP monitors the trajectory's curvature; if it exceeds a certain threshold, the system triggers a "recompute" step, performing a full forward pass to ensure stability before resuming prediction.
Datasets
The authors evaluated CARP across three distinct generative tasks to prove its versatility:
- Text-to-Image: Evaluated on FLUX.1-dev using 50k prompts from COCO2017 and 200 prompts from the DrawBench benchmark.
- Class-Conditional Image Generation: Evaluated on DiT-XL/2 using the ImageNet dataset (50 samples per class).
- Text-to-Video: Evaluated on Wan2.1 using the VBench2 benchmark to assess temporal coherence and structural integrity.
Key Insights and Ideas
- Residuals are "Smoother": The "aha moment" here is that while raw features in a DiT can be wildly different across timesteps, the change (residual) applied by the network is relatively consistent. This makes residuals a much easier target for extrapolation.
- Curvature as a Diagnostic Tool: The paper establishes a mathematical link between the sign of the trajectory's curvature and the direction of prediction error. If the trajectory is "concave up," a linear guess will always undershoot. By baking this logic into the denominator of a rational function, the model self-corrects in real-time.
- Preserving the Manifold: Using PCA (Principal Component Analysis) to visualize trajectories, the authors show that while baseline methods quickly drift away from the "ground truth" path, CARP’s predicted path stays remarkably close to the original manifold, explaining why it avoids the "checkerboard" artifacts common in other accelerated models.
Key Results
CARP significantly outperforms existing state-of-the-art caching methods like TeaCache and TaylorSeer, especially in low-step regimes:
- FLUX (20 steps): Achieved a 2.88× speedup with only a 3% loss in FID (Fréchet Inception Distance). In user studies, CARP was preferred 25% more often than the next best method.
- Wan2.1 (Video): Delivered a 1.72× speedup while maintaining a VBench2 score only 2.5 points below the 20-step baseline, outperforming TaylorSeer in both speed and quality.
- DiT-XL/2: Achieved a 1.46× speedup on ImageNet, maintaining higher Inception Scores (IS) and lower FID than competitors.
Limitations and Future Work
- Abrupt Regime Shifts: While the rational function is robust, the authors acknowledge that extremely abrupt shifts in the denoising trajectory still require full recomputation. The current gating mechanism handles this, but it limits the maximum possible speedup.
- Hyperparameter Sensitivity: The gating threshold ($N$) and the blending factor ($s$) require some tuning to balance the speed-quality trade-off for different models.
- Future Directions: The authors suggest that integrating CARP with other acceleration techniques like quantization or pruning could lead to even more extreme inference efficiency without sacrificing the "training-free" advantage.
Summary updated