arXiv:2610.22369cs.CVOct 2026

Manuscript Offprint

arXiv:2610.22369

SoftCache: Adaptive Step Size Caching for Diffusion Transformers

Shimon Malnick, Nadav Orenstein, Ohad Fried, Shai Avidan

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

ABSTRACT

Diffusion and flow models generate a sample over iterative steps, each a full pass through a large network, and that pass dominates generation cost. Training-free caching accelerates them by reusing activations from recent evaluations instead of recomputing them. Dynamic caching methods decide when to refresh by accumulating a cheap probe of the network input into a staleness signal and spending a fresh evaluation once it crosses a threshold. They perform hard caching: the signal is a binary switch between refresh and reuse, and every step, fresh or cached, advances by the prescribed step size. We observe that the signal carries much more than this switch. How far it sits below the threshold, its headroom, predicts the error induced by reuse. We propose SoftCache, which performs soft caching: instead of a binary switch, the headroom sets how far each cached step goes. Where the headroom is large, the sampler jumps past several scheduled nodes, and as a refresh nears, its steps shrink back toward the original step. These adaptive jumps may land between the scheduled nodes, taking the sampler off its fixed grid. SoftCache requires no training and adds no per-backbone settings: on FLUX for images and on HunyuanVideo and Wan2.1 for video, at speedups from 3.5×3.5 \times to 6.9×6.9 \times, it is ahead of every baseline on all four fidelity metrics.

1 INTRODUCTION

Diffusion and flow models set the state of the art in image and video synthesis (Black Forest Labs, 2024; Kong et al., 2024; Wan et al., 2025; Esser et al., 2024). These models are slow at inference: producing a single output requires tens of full network evaluations, each a pass through the same large transformer. Yet the latent changes only slightly between steps, so successive passes largely recompute what the previous one already produced. This redundancy is the resource that acceleration methods draw on, and they differ in what they are willing to give up to reach it. In practice, this is done using distillation (Song et al., 2023; Salimans & Ho, 2022), fewer-step solvers (Song et al., 2021a; Lu et al., 2022; Zhao et al., 2023), or cheaper attention (Yuan et al., 2024; Xi et al., 2025; Zhang et al., 2025b;a), each with its own cost in training, calibration, or fidelity.

A different lever is to reuse the model's own output, i.e., caching, instead of solving faster or attending more cheaply. Successive steps can then share computation directly rather than recompute it. Every cache must still decide when to refresh, and many settle this before sampling begins, with a refresh pattern that is fixed in advance and shared by every prompt (Ma et al., 2024; Selvaraju et al., 2024; Liu et al., 2025b; Cui et al., 2026; Aliev et al., 2026). Dynamic caches instead make refresh timing their central question and decide it during sampling: a cheap probe of the network predicts how much its output is about to change, and this signal decides, per prompt, when the cached computation has gone stale (Liu et al., 2025a; Chung et al., 2026).

Yet these dynamic caches spend the signal on a single binary decision, a form of hard caching: at every node of the sampler's fixed grid, the signal is compared with a threshold, and the sampler either reuses the cached computation or refreshes it. How far below the threshold the signal sits plays no role. A node where the cache has barely aged and one on the verge of refresh are treated identically, and both advance by exactly the step the schedule prescribed.

We observe that this ignored distance is informative. Below the threshold, the signal closely tracks the reuse error, the gap between the cached computation and a fresh one at the current node. The distance from the threshold, which we call the headroom, measures how safely the cache can be trusted, and we use it to set the step size instead of only the refresh decision: this is soft caching. When the headroom is large, the cache is still reliable, so the sampler takes a long step that skips several scheduled nodes and can land between them (Fig. 1). When the headroom is small, refresh is near, so the step shrinks back toward the scheduled one. We call this method SoftCache: the headroom sets the step continuously rather than picking

Figure

Figure 1: SoftCache: how far, not just whether. Hard caching walks the fixed grid of scheduled nodes one node at a time, deciding only whether to refresh or reuse. SoftCache also sets the step size: a reused step the cache still supports skips several nodes and lands between them (inset).

how many nodes to skip, and every node a step passes over is one the sampler no longer visits.

Set against both kinds of cache, this is a different form of adaptivity. A fixed schedule refreshes at the same nodes for every prompt. A dynamic cache refreshes at nodes that vary with the prompt, but at scheduled nodes all the same. Here the steps vary with the prompt too, and they also land where no node was scheduled. This freedom translates into fidelity: on FLUX, HunyuanVideo and Wan2.1, against caches of both kinds at comparable speed, SoftCache reproduces the uncached model most faithfully on every metric at every operating point we test. Adaptivity, then, does not stop at deciding when to refresh. It also decides where the sampler goes next.

Our main contributions are: (1) We identify that the refresh signal of a dynamic cache carries more than a binary decision: its headroom below the threshold tracks the reuse error, so it measures how far the cached computation can still be trusted. (2) We propose SoftCache, which reads the headroom as a step size: cached steps jump off the scheduler's grid in proportion to it, the tail is re-spaced so that every node passed is dropped from the trajectory, and the cached residual is extrapolated linearly to the landing, at no extra network cost. (3) On image and video backbones, SoftCache adds no per-backbone settings and is ahead of every cache we compare on all four fidelity metrics in every speed band from 3.5×3.5 \times to 6.9×6.9 \times.

References (92)