---
title: 'SmoothCache: Inference Acceleration for DiTs'
url: https://www.emergentmind.com/topics/smoothcache
type: topic
---

# SmoothCache: Inference Acceleration for DiTs

Searching arXiv for SmoothCache and directly related follow-up work.
SmoothCache is a training-free caching method for Diffusion Transformers (DiTs) that speeds up denoising by reusing intermediate layer outputs across nearby diffusion timesteps. It is presented as a model-agnostic inference acceleration technique for DiT architectures, with the core premise that attention and feed-forward outputs often exhibit high similarity across adjacent steps of the diffusion trajectory. The method calibrates this smoothness on a small sample set, converts the measured representation errors into a fixed caching schedule, and then reuses cached sublayer outputs during inference without retraining or architectural modification. In the literature surveyed here, SmoothCache is defined primarily by the DiT-focused method of “SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformers” [2411.10510], with a subsequent adaptation to F5-TTS demonstrating its transfer to diffusion transformer-based text-to-speech [2509.08696].

## 1. Conceptual basis and scope

SmoothCache addresses the cost structure of DiT inference. In diffusion inference, the denoiser is evaluated repeatedly over many timesteps, and each denoising step contains resource-intensive self-attention, cross-attention, and feed-forward modules. The method is built on the empirical observation that layer outputs at adjacent diffusion timesteps are very similar. The paper states this informally as \(L_{t-k} \sim L_t\), then operationalizes the similarity with a relative \(L_1\) error over calibration outputs [2411.10510].

The scope claimed for SmoothCache is “universal” in a specific sense. It is applied with the same calibration-and-threshold procedure to DiT-XL for image generation, Open-Sora for text-to-video, and Stable Audio Open for text-to-audio. This universality does not imply identical schedules, identical cache distances, or identical gains across models. Rather, it denotes a common mechanism: measure cross-timestep smoothness, define a thresholded reuse condition, and reuse cached outputs of expensive modules that immediately precede residual connections.

A common misconception is to treat SmoothCache as an online adaptive controller. The main paper does not do that. Its schedule is adaptive at calibration time, but fixed at runtime for a chosen model, solver, number of sampling steps, and threshold \(\alpha\). A second misconception is to treat it as a training method. The method is explicitly training-free and does not require retraining, policy learning, or architecture-specific finetuning [2411.10510].

## 2. Formal method and cache decision rule

The formal core of SmoothCache is a calibrated estimate of layer-type-wise representation drift across timesteps. For layer type \(i\), layer index \(j\), current timestep \(t\), and cached timestep \(t+k\), the paper gives the operative criterion as

$$
\mathcal{L}(L_{i_j,t}, L_{i_j,t+k}) \sim \frac{1}{N}\sum_{j=1}^{N}\frac{\| \tilde{L}_{i_j,t} - \tilde{L}_{i_j,t+k} \|_1}{\| \tilde{L}_{i_j,t} \|_1} < \alpha
$$

where \(N\) is the number of layers of type \(i\), \(\tilde{L}_{i_j,t}\) denotes calibration outputs, and \(\alpha\) is a single global threshold [2411.10510].

This formulation encodes several design decisions. First, the metric is a relative \(L_1\) error, normalized by the magnitude of the calibration activation. Second, the decision is made at the level of a layer type rather than independently for each layer instance. The paper motivates this grouping by noting that independently caching earlier layers perturbs the inputs of later layers, so a per-layer schedule derived under full recomputation may become inaccurate once caching is activated. Third, the runtime rule is threshold-based rather than learned. The paper initially introduces a hypothetical layer-dependent tolerance \(\alpha_{i_j}\), but then collapses the method to a single threshold \(\alpha\) to avoid costly per-layer hyperparameter search.

At inference, the system consults the precomputed schedule. If the calibrated error for a layer type at a timestep is below \(\alpha\), the cached output from a nearby timestep is reused; otherwise the layer is recomputed and the cache is refreshed. The method targets outputs of modules immediately before residual additions, because this is the structural location at which replacing a submodule computation with a cached tensor is most natural in a residual block [2411.10510].

## 3. Calibration procedure and schedule construction

Calibration is central to SmoothCache. It is an offline or pre-inference procedure that estimates which timesteps and layer types are safe to cache for a particular inference configuration. The main paper uses 10 calibration samples for all evaluated modalities and reports that this sample count “does not matter much” for regenerating the same schedule at a fixed \(\alpha\) [2411.10510].

For DiT-XL, calibration uses unconditional samples with the null prompt. For Open-Sora, calibration uses conditional 480p, 2s, 9:16 videos with prompts sampled from VidProM. For Stable Audio Open, calibration uses prompts sampled from the AudioCaps validation set. The calibration is solver-specific and step-count-specific. The paper evaluates DDIM for DiT-XL, Rectified Flow for Open-Sora, and DPM-Solver++(3M) SDE for Stable Audio Open, and the calibration schedule is intended to match those exact settings.

The allowable cache distances are small. For DiT-XL and Stable Audio Open, the paper uses \(k \in \{1,2,3\}\), noting that beyond 4 timesteps the error grows too large. For Open-Sora, the method uses up to \(k=5\), particularly because some cross-attention components remain smooth at larger offsets. The resulting schedule is non-uniform across timesteps. The paper explicitly contrasts this with simple periodic skip schedules, arguing that cacheability is timestep-dependent and architecture-dependent.

A further implication is methodological rather than explicitly stated: calibration acts as a compressed summary of a model’s denoising dynamics. The paper reports narrow 95% confidence intervals for representation-error plots in the easier settings, while also noting that greater variance across calibration samples is associated with a narrower speed-quality Pareto frontier. This suggests that the reliability of a fixed reuse schedule depends materially on how stable those cross-timestep errors are across samples [2411.10510].

## 4. Architecture-specific instantiations

The concrete cache targets differ by architecture.

| Model | Cached module types | Calibration notes |
|---|---|---|
| DiT-XL | Self-attention; Feed-forward | 10 null-prompt samples; DDIM; \(k \in \{1,2,3\}\) |
| Open-Sora | Spatial and temporal self-attention, cross-attention, and FFN | 10 VidProM prompts; Rectified Flow; up to \(k=5\) |
| Stable Audio Open | Self-attention; Cross-attention; Feed-forward | 10 AudioCaps prompts; DPM-Solver++(3M) SDE; \(k \in \{1,2,3\}\) |

For DiT-XL, the paper reports that some components become more cacheable later in denoising. For Open-Sora, early and late timesteps are more sensitive, and the model is the most variance-sensitive of the three evaluated cases. For Stable Audio Open, the activation curves are smoother, which supports more aggressive reuse while maintaining quality. The paper also notes that the runtime decision structure remains static after calibration, which preserves compatibility with graph compilation and avoids the overhead of per-sample online similarity checks [2411.10510].

These architecture-specific differences are important for interpreting the term “model-agnostic.” SmoothCache is not architecture-blind; it is architecture-conditional through calibration. What is shared is the procedure, not the schedule.

## 5. Empirical performance and comparison landscape

The headline claim of the main paper is that SmoothCache achieves 8% to 71% speed up while maintaining or even improving generation quality across diverse modalities [2411.10510]. The detailed experiments are more granular and reveal a clear speed-quality tradeoff controlled by \(\alpha\).

For DiT-XL-256x256 at 50 DDIM steps, the no-cache baseline reports FID \(2.28 \pm 0.03\), sFID \(4.30 \pm 0.02\), IS \(241.6 \pm 1.1\), TMACs \(365.59\), and latency \(8.34\) s. With \(\alpha = 0.08\), latency falls to \(7.62\) s and TMACs to \(336.37\), while FID remains \(2.28 \pm 0.03\). With \(\alpha = 0.18\), latency drops to \(4.85\) s and TMACs to \(175.65\), with FID degrading to \(2.65 \pm 0.04\). With \(\alpha = 0.22\), latency reaches \(4.11\) s and TMACs \(131.81\), with FID \(3.14 \pm 0.05\). At 70 DDIM steps, the no-cache latency is \(11.47\) s and SmoothCache with \(\alpha = 0.08\) reduces it to \(6.90\) s, while FID moves from \(2.17 \pm 0.02\) to \(2.37 \pm 0.02\) [2411.10510].

For Open-Sora, gains are smaller. The baseline reports VBench \(79.36 \pm 0.19\), TMACs \(1612.1\), and latency \(28.43\) s. SmoothCache with \(\alpha = 0.02\) gives VBench \(78.76 \pm 0.38\), TMACs \(1388.5\), and latency \(26.57\) s; with \(\alpha = 0.03\), VBench is \(78.10 \pm 0.51\), TMACs \(1321.1\), and latency \(26.17\) s. The paper attributes the narrower Pareto frontier to more complex spatiotemporal modeling, higher variance in representation errors, and larger non-DiT overheads [2411.10510].

For Stable Audio Open, the baseline reports TMACs \(209.82\) and latency \(5.65\) s. With \(\alpha = 0.15\), TMACs become \(170.75\) and latency \(4.59\) s. With \(\alpha = 0.30\), TMACs become \(136.16\) and latency \(3.72\) s, but quality degradation becomes more visible, especially on Song Describer. The paper also notes cases in which some quality metrics remain stable or slightly improve relative to baseline [2411.10510].

The comparison landscape is limited but informative. Against FORA, the paper states that SmoothCache generally gives similar or better quality at matched compute or latency points. Against L2C, L2C slightly outperforms on one DiT setting, but L2C requires training on ImageNet and retraining when the step count changes, whereas SmoothCache is training-free and portable.

## 6. Extensions, limitations, and later adaptations

The main limitations are explicit. SmoothCache relies on repeated DiT block structure and especially on residual connections after the bottleneck layers. It does not provide a formal theorem or a rigorous error-propagation bound. Calibration errors are measured under full recomputation, not under actual cached execution, so cascading approximation effects are only partially controlled by grouping decisions at the layer-type level. The paper also does not quantify memory overhead, although cached intermediate outputs necessarily consume memory. Gains depend on model compute profile: models with substantial non-DiT overhead, such as Open-Sora, exhibit smaller end-to-end acceleration [2411.10510].

A later adaptation to F5-TTS makes these dependency issues more concrete. “Accelerating Diffusion Transformer-Based Text-to-Speech with Transformer Layer Caching” integrates SmoothCache into F5-TTS, caches self-attention and feed-forward outputs before residual addition, and introduces a calibration phase using the \(L_1\) relative error between consecutive timesteps on 10 randomly sampled utterances from LibriSpeech-PC test-clean [2509.08696]. That study reports that independently derived schedules for Attn and FFN produce artifacts when both are cached together, attributes this to inter-layer dependency through the residual pathway, and therefore adopts a unified Attn-based schedule for both layer types. It further imposes a rule of no more than 3 consecutive cached timesteps.

The F5-TTS results reinforce a central limitation already latent in the original SmoothCache formulation: safe reuse is not only layer-local but also path-dependent. At 32 NFE, the TTS adaptation reports RTF \(0.46\) with no cache, \(0.32\) at \(\alpha=0.15\), and \(0.26\) at \(\alpha=0.25\), while keeping WER, SIM-o, UTMOS, and NISQA close to baseline. At 16 NFE, moderate caching remains effective, but aggressive caching begins to degrade synthesis quality. The paper concludes that caching at higher denoising step counts reduces inference time without compromising output quality, whereas caching at lower steps can negatively impact synthesis quality similarly to reducing the total number of denoising steps [2509.08696].

Taken together, these works define SmoothCache as a calibration-driven, thresholded feature-reuse schedule for DiT inference. Its central abstraction is that diffusion-timestep smoothness can be converted into a static, solver-specific cache plan over attention and feed-forward computations. Its principal empirical significance lies in demonstrating that substantial portions of repeated DiT computation can be skipped by reusing nearby-timestep representations, while its principal open problem remains the control of inter-layer dependency and accumulated approximation error across architectures and sampling regimes.

Source: https://www.emergentmind.com/topics/smoothcache