arXiv(opens in a new tab)cs.CVSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05981

Accelerating Diffusion Transformers with Gaussian Process Rectified Feature Cache

Zhirong Shen, Rui Huang, Chang Zou, Shikang Zheng, Jiacheng Liu, Peiliang Cai, Zhengyi Shi, Yaosong Du, Liang Feng, Xiaobing Tu, Jinkui Ren, Xiantao Zhang, Linfeng Zhang

Zhirong Shen1,3∗^{1,3*}, Rui Huang1,3∗^{1,3*}, Chang Zou1,3^{1,3}, Shikang Zheng1^{1}, Jiacheng Liu1,4^{1,4}, Peiliang Cai1^{1}, Zhengyi Shi5^{5}, Yaosong Du2^{2}, Liang Feng6^{6}, Xiaobing Tu2^{2}, Jinkui Ren2^{2}, Xiantao Zhang2^{2}, Linfeng Zhang1∗∗^{1**}

1^{1} Shanghai Jiao Tong University

2^{2} Terminal Intelligent Computing Division, Alibaba Cloud

3^{3} University of Electronic Science and Technology of China

4^{4} Shandong University

5^{5} Xiamen University

6^{6} Fudan University

{2024080907011,huang_rui}@std.uestc.edu.cn zhanglinfeng@sjtu.edu.cn

Abstract. Diffusion Transformers have become the dominant paradigm in generative AI, but their high computational costs severely hinder real-time applications. Prediction-based feature caching is widely used to accelerate diffusion transformers; however, as the number of steps increases, the deviation between its predictions and the reference full-compute trajectory gradually grows. An intuitive idea is to use an online regression model to dynamically correct this deviation, but it faces the issue of label data being unavailable during the acceleration process. This paper presents a statistical observation that the residuals between the features of full computation steps using caching methods and reference full-compute trajectory locally exhibit a zero-mean Gaussian distribution. By treating the features of full computation steps as noisy observations of reference features, the data acquisition problem is resolved. Based on this observation, a plug-and-play GP-Refiner correction framework is proposed. This method utilizes Gaussian Process Regression for correction and, leveraging the properties of GPR, introduces an uncertainty-adaptive computation strategy that triggers necessary full-computation calibration by monitoring the posterior variance in real time. Experiments demonstrate significant improvements across different models when combined with various state-of-the-art methods. Integrating the proposed framework with TaylorSeer reduces the computational load by 19.3% while improving PSNR by 0.9 dB and reducing LPIPS from 0.46 to 0.29. Code is available in https://github.com/Aredstone/GP-Refiner.

Keywords: Diffusion Transformers · Feature Caching · Gaussian Process Regression

∗^{*} Equal contribution.

∗∗^{**} Corresponding author.

Z. Shen et al.

Figure

Fig. 1: Histogram of the error caused by the feature caching. Across different images, the residuals are centered near zero and closely match a Gaussian fit, consistent with an approximately zero-mean Gaussian noise model.

1 Introduction

Diffusion models [8, 22, 34] have become the dominant paradigm for visual generation, yet the adoption of Transformer-based architectures has drastically increased inference cost [1, 3, 4]. Existing training-free feature caching techniques exploit temporal coherence along the diffusion trajectory by directly reusing intermediate features [20, 26]; however, under high acceleration ratios, the growing feature mismatch across long skip intervals leads to accumulated errors and noticeable quality degradation [14]. To overcome this bottleneck, forecasting-based cache acceleration has recently emerged [7, 38]. Instead of pure reuse, it explicitly models the temporal evolution of intermediate representations to predict future features from historical states, mitigating accuracy decay at large skip intervals and substantially reducing the number of expensive denoising-network forward evaluations while preserving generation fidelity.

Forecasting-based caching can substantially reduce the computation of diffusion sampling, but its prediction error typically accumulates with the skip interval, causing the generation trajectory to progressively drift away from the reference full-compute trajectory [2, 15]. We aim to develop an adaptive rectification mechanism that requires no offline training and can be seamlessly plugged into existing forecasting-based caching accelerators, mapping the predicted features back to the reference full-compute trajectory under full-step sampling, denoted as ftf_{t}. However, during accelerated inference, once earlier steps have been skipped, even if we perform a full forward computation at the current timestep, we can only obtain f^t\hat{f}_{t}, which is computed on an already drifted state and thus differs from the unbiased feature needed as supervision for training the rectifier.

Our residual analyses of ftf_t and f^t\hat{f}_t at both local and global levels show that, as illustrated in Fig. 1 and Fig. 2, the residual between the full-compute-step features obtained under caching and the corresponding reference features exhibits a pronounced zero-mean Gaussian characteristic. Based on this observation, we can treat the full-compute-step feature f^t\hat{f}_t under caching as a Gaussian-noisy observation of the reference feature, thereby resolving the label acquisition challenge described above.

Motivated by the fact that Gaussian process regression (GPR) naturally accommodates observations corrupted bThe complete pipeline of zero-mean

Figure

Fig. 2: Q-Q plots of randomly projected feature residuals. The empirical quantiles closely follow a standard normal line ( R2≈0.97−0.99R^{2} \approx 0.97-0.99), supporting an approximately zero-mean Gaussian residual model.

Gaussian noise, and that it matches the requirements of DiT cache acceleration, few-shot, non-parametric, and capable of fitting highly nonlinear mappings, we propose GP-Refiner, which leverages GPR to compensate for the bias in the baseline cache predictor. Moreover, we reformulate the problem as a joint task of one-step evolution and rectification: starting from a biased baseline prediction, we infer the unbiased reference value at the next moment. During inference, GP-Refiner takes the baseline predicted feature as input and performs GPR-based correction, driving the accelerated trajectory closer to the reference features while incurring almost no additional computation overhead.

Furthermore, we exploit another key property of GPR to enable an adaptive computation mechanism [5, 29]. By monitoring the posterior variance online, our algorithm can quantify the confidence of the current correction; when the uncertainty exceeds a predefined threshold, it forcibly triggers a full forward computation for state recalibration. This mechanism effectively establishes a dynamic balance between inference speed and generation quality.

The main contributions are divided into three aspects:

  1. Noisy Observation Modeling from Statistical Evidence: We reveal that the residuals between cached features and the corresponding reference (full-compute) features follow an approximately zero-mean Gaussian distribution. This allows us to treat full-compute-step features obtained under caching as Gaussian-noisy observations of the unbiased reference features, thereby resolving the supervision/label unavailability issue in accelerated inference and laying the foundation for regression-based bias correction.

  2. GP-Refiner for Plug-and-Play Bias Rectification: We propose GP-Refiner, which leverages Gaussian Process Regression to dynamically rectify the predictions of baseline cache forecasters. With nearly no additional compute overhead, GP-Refiner substantially improves generation fidelity under high acceleration.

  3. Adaptive Re-computation via Posterior Uncertainty: We introduce an adaptive computation strategy that quantifies prediction uncertainty via the Gaussian process posterior variance. When uncertainty exceeds a predefined threshold, we trigger a full forward evaluation to recalibrate the state,

Z. Shen et al.

Figure

(a) Original Cache Pipeline

Figure

(b) Cache + GPRefiner

Fig. 3: Overall workflow of GP-Refiner. (a) Original cache pipeline: features are computed at selected timesteps and cached, while skipped steps are filled by a cache predictor. (b) Cache + GP-Refiner: we collect an online observation set from full-compute steps, use GPR to rectify the predictor output, and trigger recomputation when the posterior variance exceeds a threshold (σt2>l\sigma_t^2 > l).

achieving a dynamic trade-off between inference speed and generation quality.

References (39)