TL;DR
Feature caching significantly accelerates Diffusion Transformers (DiTs) by skipping redundant computation steps, but prediction errors inevitably accumulate and degrade image quality over time. This paper introduces GP-Refiner, a plug-and-play framework that uses Gaussian Process Regression to dynamically correct these feature drifts online without requiring any offline training. By monitoring prediction uncertainty in real time, it adaptively triggers full computations only when necessary, reducing computational overhead while substantially boosting image fidelity.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) have become the gold standard for generative AI tasks like text-to-image synthesis. However, their massive computational footprint makes real-time deployment challenging. To speed them up, researchers often use feature caching—predicting or reusing intermediate layer features across sequential denoising timesteps to skip expensive network forward passes.
The catch? As the generation progresses, small forecasting errors compound. The model's trajectory gradually drifts away from the true, full-compute path, leading to noticeable visual artifacts.
An intuitive fix would be to train an online regression model to correct this drift on the fly. However, this faces a fundamental data-acquisition dilemma: during accelerated inference, you don't have access to unbiased "ground-truth" labels. Even if you perform a full computation at a given step, it is calculated on an already-drifted state, making it an imperfect supervisor for training a corrector.
Methods
The authors bypass the label-unavailability dilemma through a key statistical discovery: the residuals (errors) between the drifted features and the true reference features closely follow a zero-mean Gaussian distribution both locally and globally.
Because these errors behave like pure Gaussian noise, the drifted full-computation features can be treated as noisy observations of the true features. This insight perfectly positions the problem for Gaussian Process Regression (GPR), which naturally excels at handling noise-corrupted data in a sample-efficient, non-parametric manner.
The GP-Refiner Framework
- Dynamic Observation Window: During inference, the system maintains a small, rolling First-In-First-Out (FIFO) window (typically $h=10$) of past baseline predictions and their corresponding full-compute noisy observations.
- Online Bias Correction: GP-Refiner takes the baseline cached prediction and applies GPR to calculate a corrected feature mean ($\mu_t$), effectively pulling the drifted trajectory back toward the ideal reference path.
- Uncertainty-Adaptive Computation: Crucially, GPR provides a posterior variance ($\sigma_t^2$), which serves as a mathematically rigorous measure of prediction uncertainty. If this uncertainty crosses a predefined threshold ($l$), the system rejects the cached prediction and forcibly triggers a full forward pass (
FullCompute) to recalibrate the model's state.
Datasets
The authors evaluated their framework on text-to-image generation tasks using 200 prompts from DrawBench. They tested GP-Refiner as a plugin across three prominent caching backbones—TaylorSeer, ClusCa, and HiCache—running on two large-scale generative models:
- FLUX.1-dev (50 steps)
- Qwen-Image (50 steps, plus its 8-step Lightning variant)
Key Insights and Ideas
- The "Noisy Label" Solution: Realizing that drifted features could be modeled as true features corrupted by zero-mean Gaussian noise is the paper's core "aha" moment. It elegantly transforms an intractable online learning problem into a standard GPR task.
- Local Step Pairing: Instead of attempting to model complex, long-horizon error accumulation, GP-Refiner pairs adjacent steps. This local focus keeps the mapping highly linear, allowing a lightweight kernel to perform accurate corrections with virtually zero computational overhead.
- Smart Calibration Clustering: Rather than calculating full steps at fixed intervals, the uncertainty-gated mechanism naturally clusters heavy computations during the specific phases of the denoising process where non-linearity is highest and errors are most destructive.
Key Results
GP-Refiner consistently improved both efficiency and image quality across all tested configurations:
- FLUX.1-dev: Integrating GP-Refiner with the ClusCa caching method achieved the highest PSNR (29.823) and lowest LPIPS (0.3334) among all accelerated baselines, while maintaining a ~3× latency speedup and a 5.8× reduction in FLOPs.
- Qwen-Image: When paired with TaylorSeer, GP-Refiner boosted the PSNR from 28.20 to 29.48 (+1.28 dB) and slashed the LPIPS error from 0.65 to 0.29 compared to the baseline caching method alone.
- Exceptional Latency Stability: In a test of 200 images, the uncertainty mechanism proved highly predictable—77 images required exactly 8 full function evaluations (NFEs), 119 required 8, and only 4 required 9. This tight concentration prevents erratic frame-rate drops during real-time applications.
Limitations and Future Work
While highly effective, GP-Refiner relies on a preset variance threshold ($l$) to balance speed and quality. Although the authors note that the system is robust to minor variations in this threshold, it still requires manual tuning depending on the target hardware or quality requirements.
Additionally, the regression relies on a fixed history window ($h=10$) to keep matrix inversion costs negligible. Scaling this approach to long-context video generation models—where temporal dependencies span hundreds of frames—might require more sophisticated sparse or streaming Gaussian Process variants to prevent computational bottlenecks.
Summary updated