Manuscript Offprint

arXiv:2608.28670

Memory-Efficient Training-Free Acceleration of Diffusion Transformers with BaryCache

Chengjie Lu, Tianchi Deng, Zhengqi He, Zhijian Gao, Huisi Wu, Xueliang Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diffusion Transformers achieve high-fidelity image and video generation, but their iterative sampling remains expensive, for each denoising step requires large matrix operations. Existing cache-based acceleration reduces redundant computation yet increases the VRAM footprint by storing intermediate states, which can directly constrain inference batch size. In this work, we propose a training-free acceleration method that performs stepwise forecasting for DiT sampling using a Barycentric Extrapolator. By leveraging barycentric extrapolation, our predictor is numerically stable and alleviates oscillatory artifacts analogous to the Runge phenomenon during forward forecasting. Across extensive experiments on both image and video generation, our approach provides a favorable trade-off between memory usage and perceptual quality, while delivering up to 3.30x end-to-end sampling speedup compared with baseline DiT inference.

Keywords: Diffusion Transformers, training-free acceleration, caching, barycentric extrapolation, generative models

1. Introduction

Denoising diffusion probabilistic models (DDPMs) [13] have become a dominant paradigm for generative modeling, often surpassing generative adversarial networks [31, 2, 7] in synthesizing high-fidelity images at scale. Recent work increasingly incorporates Transformer architectures into diffusion backbones to better capture long-range dependencies, culminating in Diffusion Transformers (DiTs). DiTs have achieved strong performance on class-to-image (C2I) [32], text-to-image (T2I) [4, 3], and text-to-video (T2V) [17] tasks. However, scaling model capacity and resolution exacerbates the tension between generation quality and computational cost [20].

To mitigate this trade-off, a broad set of acceleration strategies has been explored. Quantization [19] and VAE-based training optimizations [44] reduce memory and training overhead, but they often require retraining or finetuning. Sampling-side approaches improve efficiency by reducing iteration counts via deterministic trajectories [38] or higher-order solvers [26]. Flow-based models [6, 16, 23] enable exact likelihood estimation, yet they can struggle with memory efficiency in high-dimensional settings [10].

Among training-free approaches, caching methods reduce repeated computation by reusing intermediate activations. In the stepwise caching line, DeepCache [29] exploits temporal redundancy by reusing high-level features across adjacent diffusion steps. Δ\Delta-DiT [5] further shows that diffusion inference can be separated into stages, where early and late DiT blocks play different roles. TeaCache [21] leverages time-embedding signals to build a caching-and-skipping schedule. While these methods can provide meaningful speedups, their quality often degrades substantially at high acceleration ratios. In parallel, blockwise strategies operate at finer granularity within a DiT step. FORA [37] recycles module features to mitigate step errors; token-level reuse underlies ToCa [49], and the more aggressive DuCa [50] attains higher speedups by aggressive skipping. TaylorSeer [22] moves beyond reuse to forecasting, improving perceptual quality under acceleration. However, as illustrated in Figure 1, blockwise caching can incur substantial inference-time memory overhead, which limits parallelization.

To better balance memory usage and generation quality, we propose BaryCache, a training-free acceleration method that predicts future stepwise features in DiTs using

Figure

Figure 1: Caching targets for different strategies. Reusing features across diffusion steps is stepwise caching, while reusing features within a step across layers/modules is blockwise caching. For NN diffusion steps, blockwise caching may require storing up to N×QN \times Q intermediate tensors compared to stepwise caching, which can significantly constrain batch size and parallelism.

our Barycentric Extrapolator. Originally, barycentric interpolation [1] is an efficient reformulation of polynomial interpolation closely connected to Chebyshev interpolation [8, 40], reducing computational overhead relative to the standard Lagrange form. In contrast, local derivative-based extrapolation can suffer from numerical instabilities such as Runge oscillations [9], which become pronounced for longer-range prediction. Our Barycentric Extrapolator leverages barycentric interpolation theory to construct prediction polynomials for stepwise feature forecasting. We observe that standard barycentric weights can yield irregular combinations under certain input schedules; accordingly, we design a more stable weight combination inspired by trapezoidal endpoint coefficients, and apply additional weight post-processing to further improve stability. Moreover, we note that the barycentric weights depend only on the input schedule, specifically, the step distances between the cached context and the current step, and are independent of DiT features. This enables an online decoupling of the extrapolator into (i) weight construction and (ii) weight application, where weights can be pre-computed and stored for reuse. Extensive qualitative and quantitative results on three representative pretrained DiT-based models including the C2I model DiT/XL-2 [32], the T2I model PixArt-Σ\Sigma [3] and the T2V model Hunyuan [17], demonstrate that BaryCache achieves a favorable balance between memory footprint and generation quality, reaching up to 3.30×3.30\times speedup under diverse settings.

Our contributions are summarized as follows:

  • We propose BaryCache, a training-free acceleration method that predicts stepwise DiT features to better

balance memory usage and generation quality.

  • We develop Barycentric Extrapolator for stepwise feature prediction, and adopt a stabilized weight construction inspired by trapezoidal endpoint coefficients to mitigate Runge-oscillation-like instabilities during extrapolation.

  • We introduce an online decoupling technique that separates weight construction from application, enabled by the observation that barycentric weights depend only on the input schedule, allowing for pre-computation and reuse.

  • We validate the effectiveness of BaryCache on C2I, T2I, and T2V generation, achieving up to 3.30×3.30\times speedup while maintaining high perceptual quality.

References (47)