IdealCache: Rethinking Cache Scheduling in Diffusion Transformers via Ideal Trajectories
Shang Xue, Li Zhu, Ping Chen
NeurIPS 2026
TL;DR. IdealCache accelerates Diffusion Transformers by reframing feature caching as finding the cached path with minimum deviation from a per-input ideal trajectory under a step budget, achieving up to 6.35× speedup without retraining or quality loss.
Abstract. Feature caching accelerates Diffusion Transformers by reusing intermediate computations across denoising timesteps, yet existing methods share a fundamental blind spot: they treat the standard reference denoising trajectory as the optimisation target, approximating its per-step states and thus inheriting its output as an implicit quality ceiling. We argue that this target is arbitrary --- what truly matters is the ideal result, not the intermediate path taken to reach it. We propose IdealCache, a training-free framework that abandons step-wise imitation of the reference trajectory. Instead, it anchors caching on a per-input ensemble of ideal trajectories constructed from candidate target results, aggregates their geometry into a single graph, and discovers optimal non-uniform schedules via a constrained shortest path on this graph. By decoupling from the reference process, IdealCache breaks the performance bottleneck of trajectory-approximation; our schedules can attain near-lossless fidelity in generation and even surpass on task-specific metrics (e.g., maintaining higher semantic consistency in image editing). Without retraining, IdealCache achieves speedup on Qwen-Image, on Qwen-Image-Edit, and on HunyuanVideo, with competitive or superior quality across tasks.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
All reviewers gave positive scores and agreed that the paper presents an interesting and effective cache-scheduling method. The main concerns are limited evaluation across models, missing metrics and ablations, and insufficient justification of several design choices, as noted by Reviewers gvfj, wHUd, and 38ZG. These issues should be addressed in the revision, but they do not outweigh the paper’s novelty and empirical strengths. The AC therefore considers the paper above the acceptance bar and recommends acceptance as a poster.
Final justification
The rebuttal addresses the concerns raised by the reviewers. All reviewers are positive, and one reviewer even increased their rating to Accept. Given this consensus, the AC recommends acceptance and encourages the authors to incorporate the relevant clarifications and additional content from the rebuttal into the final version of the paper.
Read meta-review
Meta-review
All reviewers gave positive scores and agreed that the paper presents an interesting and effective cache-scheduling method. The main concerns are limited evaluation across models, missing metrics and ablations, and insufficient justification of several design choices, as noted by Reviewers gvfj, wHUd, and 38ZG. These issues should be addressed in the revision, but they do not outweigh the paper’s novelty and empirical strengths. The AC therefore considers the paper above the acceptance bar and recommends acceptance as a poster.
Final justification
The rebuttal addresses the concerns raised by the reviewers. All reviewers are positive, and one reviewer even increased their rating to Accept. Given this consensus, the AC recommends acceptance and encourages the authors to incorporate the relevant clarifications and additional content from the rebuttal into the final version of the paper.
3 comments
General Response
[GR-C2] Direct schedule comparison
@wHUd, @38ZG
To test whether placement matters, we fix the budget at (nine full passes) and vary only where those passes fall, on a fixed DrawBench evaluation subset. The 50-step pipeline (full compute) is the reference for both Δ% and LPIPS/SSIM:
| Schedule | ImageReward↑ (Δ%) | LPIPS↓ | SSIM↑ |
|---|---|---|---|
| Vanilla, 50 steps (reference) | 1.080 (0.0%) | 0.000 | 1.000 |
| Top-1 shortest path (ours) | 1.016 (−5.9%) | 0.349 | 0.746 |
| Top-2 | 1.020 (−5.6%) | 0.349 | 0.746 |
| Top-3 | 0.994 (−8.0%) | 0.353 | 0.743 |
| Uniform (hand-designed) | −0.383 (−135.5%) | 0.641 | 0.557 |
| Lognormal (hand-designed) | −2.053 (−290.1%) | 0.685 | 0.486 |
Two things follow. The model is not simply tolerant of any schedule, since the hand-designed placements degrade sharply. And the selection is stable rather than arbitrary: the top three shortest paths lie within 2.6% ImageReward of one another, and graphs built from as few as 50–100 reference runs recover these same top paths ([GR-C4]), as Proposition 1 predicts. The full per-budget schedules are in the supplementary material and will be released with our code.
[GR-C3] Reference-anchor ablation
@38ZG, @wHUd
We do not claim to beat the 50-step pipeline in T2I or T2V (Intro L52; Sec. 4.3). The only setting where we exceed it is image editing, where the source image supplies a genuine target (background preservation 0.687/0.679 vs 0.665; GEdit-EN OS 7.62 vs 7.54). The reason is structural. Prior caching is scored against the reference's intermediate states, so the reference output bounds it by construction; our objective is scored against an endpoint anchor, which makes the attainable quality a property of that anchor rather than of the method. This is testable, and it holds: with the budget fixed at , output quality rises with anchor quality.
| Proxy anchor | Anchor ImageReward↑ | IdealCache ImageReward↑ |
|---|---|---|
| 20-step reference | 1.022 | 0.969 |
| 100-step reference | 1.063 | 1.003 |
| 50-step reference (default) | 1.080 | 1.016 |
The ranking of the outputs follows the ranking of the anchors exactly. By default we build the anchor from the model's officially recommended 50-step sampling, which also gives the best anchor quality among these options. (SSIM and LPIPS measured against the vanilla output are fidelity scores that peak at vanilla by definition, so we use only absolute metrics when discussing the ceiling.)
[GR-C4] R ablation
@gvfj, @38ZG
Here is the number of reference runs averaged into the mean graph (; reported on 50 randomly selected DrawBench prompts, averaged over 3 random runs). Quality is essentially unchanged across , so it saturates early, and affects only the one-time offline cost.
| Reference / | ImageReward↑ | LPIPS↓ | SSIM↑ |
|---|---|---|---|
| Vanilla, 50 steps (reference) | 1.080 | 0.000 | 1.000 |
| 0.908 | 0.354 | 0.742 | |
| 0.994 | 0.353 | 0.743 | |
| 1.016 | 0.349 | 0.746 |
General Response-GR-C5
[GR-C5] IdealCache from first principles, in more detail
Our earlier responses did not explain the principle behind IdealCache clearly enough, so this note clarifies it further. It will be written into the revised version.
Setup (Sec. 3.2, Eq. 6). Fix an anchor x_0: the officially recommended sampling output in generation, the source image in editing. Under flow matching x_t⋆ = (1−t)x_0 + t·ε is the forward diffusion of that x_0, with constant velocity v⋆ = ε − x_0. We do not claim the sampler follows {x_t⋆}; we measure against it, and now call it the target-anchored reference trajectory.
Problem (Eq. 10). Of the M sampler steps, exactly B run a full evaluation and the other M − B reuse a cache (Eq. 5). Which B, so that the cached trajectory deviates least from {x_t⋆}? Writing the chosen steps as P = (t_1 > … > t_B), each cache reused until the next full evaluation:
P⋆ = argmin_{|P| = B} Σ_j ‖ x̂_{t_{j+1}} − x⋆_{t_{j+1}} ‖²
Budget, cache mechanism and network are unchanged; only placement is free. What changes is the yardstick: prior schedules are scored against the vanilla sampler's intermediate states, ours against the target's diffusion trajectory.
Solving it backwards. Let w(k→t) be the deviation a single cache spanning (k, t) introduces, and C(k) the best that can still be done from x_k⋆: denoising onward from that state, the cumulative deviation minimised over every way of placing the remaining caches down to the target. C is zero at the target and extends outward: one full evaluation at x_t⋆ followed by a cache down to k costs w(k→t), so
C(t) = min_{k < t} [ C(k) + w(k→t) ]
It has to be built this way: forwards, the cost of everything ahead is unknown and the deviation left at each step keeps propagating below it; backwards, every cleaner node is settled before the noisier one that needs it.
Then it is a constrained shortest path. With every edge weighted, the reverse graph is a single-direction DAG, and choosing a schedule is just: find the shortest path from source to sink visiting exactly B nodes. Sec. 3.3 solves this (Eq. 11), carrying the node count as a second index. Nothing greedy or heuristic enters.
What one edge weight is (Eqs. 7–8). An edge k→t is one cache interval: one full evaluation at x_t⋆ gives v_t, whose block feature residuals (Eqs. 3–4) are reused from t down to k. Under linear flow the endpoints are x̂_k = x_t⋆ − (t−k)v_t and x_k⋆ = x_t⋆ − (t−k)v⋆, while the model's own prediction of the final image is x̂_0(t) = x_t⋆ − t·v_t, against x_0 = x_t⋆ − t·v⋆. Subtracting,
x̂_k − x_k⋆ = (t−k)(v⋆ − v_t) = ((t−k)/t)·(x̂_0(t) − x_0)
w(k→t) = ‖x̂_k − x_k⋆‖² = ((t−k)/t)² · ‖x̂_0(t) − x_0‖²
So every edge weight, wherever it sits, is the same quantity: the model's squared error on the final image at the step the cache was taken, times a dimensionless (t−k)/t ∈ (0,1) — the fraction of the remaining distance covered while coasting on that cache. Nothing timestep-dependent remains, so summing along a path is adding like to like: the additivity follows from the derivation rather than being imposed on it.
How x̂_k is obtained. Not from this formula. We noise the anchor x_0 to t, run one full pass, then feature-cache down to k, exactly as at inference; w is that measurement (Eq. 8), averaged over reference runs (Eq. 9). The identity is the ideal case — one Euler step at frozen velocity — which a real model does not realize, and the measurement includes that gap. The one thing we do idealize is where an edge starts: at x_t⋆ rather than where the previous interval drifted to (Eq. 7), which is what keeps the edges independent.
Cost (Appendix A). Offline: R·M full evaluations, paid once, plus O(M²) cached rollouts per run for the edges; the DP itself is O(M²B). Inference runs exactly B full passes, with no runtime overhead.
Discussion: the ceiling. No schedule reaches zero cost: even full computation departs from the straight line, since the model's velocity is not v⋆. The reference is a yardstick, not a reachable goal. What is reachable is set by the anchor, not by the caching algorithm — prior schedules are bounded by the vanilla output by construction, ours by x_0. In generation the two coincide; in editing the source image is a real target and the bound differs.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes IdealCache, a cache scheduling method for Diffusion Transformers. Instead of matching the vanilla 50-step denoising trajectory, the method optimizes schedules with respect to an ideal result. It constructs an ideal trajectory from noise to the target result, defines cache interval deviation as graph edge weights, and solves a constrained shortest-path problem to obtain a fixed-budget schedule. The perspective is novel and the results are relatively strong, especially for image editing where the source image provides a more natural target reference.
Strengths and weaknesses
Strengths.
1.The paper offers a novel perspective by questioning why cache scheduling should imitate the vanilla denoising trajectory. This makes the work conceptually more interesting than standard cache scheduling methods.
2.The image editing setting is particularly convincing because the input image can serve as a meaningful target reference.
3.The experiments cover text-to-image, image editing, and text-to-video generation, and compare against multiple caching baselines, showing a competitive quality-budget frontier.
Weaknesses.
1.The main concern is the source of the ideal target in T2I and T2V. The paper criticizes the vanilla 50-step output as an implicit quality ceiling, but in open-ended generation it still uses the vanilla output as a proxy target, which weakens the claim of breaking the vanilla trajectory ceiling.
2.The method also ultimately produces a static schedule and lacks online adaptation to different prompts or samples. In addition, offline graph construction is not free, especially when mean graphs or reference ensembles are used for video generation.
3.The linear ideal-trajectory assumption is also strong, since real DiT hidden dynamics and semantic formation may not follow a simple noise-to-target linear path.
4.Finally, the paper provides limited analysis of low-budget failure cases.
Questions
1.For T2I and T2V, how can IdealCache be said to break the vanilla trajectory ceiling if the vanilla output is still used as the proxy target?
2.How sensitive is the method to the quality of the target proxy and the offline reference ensemble?
3.How does IdealCache compare with online adaptive cache routing methods that choose Full/Cache steps per sample at runtime?
Limitations
The paper should more clearly distinguish image editing, where the ideal target is more meaningful, from T2I/T2V settings where the vanilla output is still used as a proxy target. Offline graph construction cost and lack of online sample-level adaptation should also be discussed more explicitly.
Final justification
The authors clarified the scope of the vanilla-ceiling claim, provided additional theoretical justification for the cache-deviation objective and additive path formulation, and added informative evaluations on anchor quality, ensemble size, schedule placement, and cross-model settings.
I retain my score of Borderline Accept and continue to support the paper during the consensus phase. The authors must fully incorporate all new derivations, experiments, refined claims, and research limitations into the final revision.
In addition, supplementing analyses of GOC, Speca, and ERTACache in the related work section will help readers better understand the development trajectory of Diffusion Cache.
Formatting concerns
N/A
3 comments
Response to Reviewer 38ZG
Thank you. The shared arguments are in the General Response; the specifics are below.
The claim scope, the anchor-quality measurement, and the linear-interpolant derivation are in the General Response, [GR-C1] and [GR-C3].
Q1 and Limitations: the proxy target in T2I/T2V
We agree, and the paper already scopes this: the Introduction (L52) declines universal superiority, and Sec. 4.3 keeps the 50-step pipeline as the ImageReward upper bound. Everything that exceeds vanilla is from editing, where is the source image. Proposition 1 ([GR-C1]) also shows that the objective targets the model's marginal-velocity update rather than the proxy image itself, so the proxy is not the ceiling; the anchor is, which is why raising the anchor raises the output monotonically at a fixed budget ([GR-C3]). We will sharpen the wording accordingly.
Q2: sensitivity to the proxy and the ensemble
These are two separate axes. Output quality moves with anchor quality ([GR-C3]), so the method is sensitive to the proxy in the way one would expect. Ensemble size, by contrast, barely matters: quality is flat from to ([GR-C4]), and a one-shot graph transfers in both images and video.
Q3: online adaptive routing
Good question, and this comparison is already in the paper. TeaCache and DiCache are online methods that decide Full/Cache per sample at runtime, and both are baselines in our text-to-video results (Table 4). IdealCache outperforms them at matched compute: against TeaCache at a comparable 3.2× speedup, LPIPS is 0.159 vs 0.363 and SSIM 0.817 vs 0.651, with a similar margin over DiCache. Our schedule is also static and budget-fixed, which gives a predictable compute cost that runtime routing does not. Making the graph itself input-adaptive, i.e. a learned per-sample graph, is a promising next step we plan to explore.
W2: offline cost
The shortest-path search is algebraic and takes negligible time. The real offline cost is computing the edge weights, which needs one full forward pass at each of the candidate timesteps per reference run, i.e. roughly the wall-clock of a single Vanilla 50-step generation (the vanilla latencies reported in Tables 1, 3, and 4). It is a one-time cost, amortized over all later inference, and affects only this stage.
W1, W3, W4: the linear assumption and low-budget behavior
The linear-trajectory concern is the one addressed by Proposition 1: we do not assume straight-line dynamics ([GR-C1]). On low-budget behavior (W4), this is a good point. The comparison in [GR-C2] is already a stress test, showing that when quality collapses it is the placement, not caching itself, that is responsible. Whether an even lower budget still works depends not only on our scheduling but also on the base model's own capacity, so the budgets we report mark the usable-cache boundary. We will add a bad-case comparison analysis at the smallest usable budget in the next version.
The authors clarified the scope of the vanilla-ceiling claim, provided additional theoretical justification for the cache-deviation objective and additive path formulation, and added informative evaluations on anchor quality, ensemble size, schedule placement, and cross-model settings.
I retain my score of Borderline Accept and continue to support the paper during the consensus phase. The authors must fully incorporate all new derivations, experiments, refined claims, and research limitations into the final revision.
In addition, supplementing analyses of GOC, Speca, and ERTACache in the related work section will help readers better understand the development trajectory of Diffusion Cache.
Response to Reviewer 38ZG (Round 2)
Thank you for your time, for the continued support during the consensus phase, and for the concrete pointer on related work.
The new derivations, experiments, refined claims and limitations will all be incorporated into the final version. We have also posted a further note, [GR-C5], which explains the principle behind the objective more clearly than our earlier replies did, in case it is of interest.
On related work, we agree the section should give a fuller picture. We will add SpeCa [1], ERTACache [2] and GOC [3], and take the opportunity to broaden the discussion beyond these three, so that the development trajectory of diffusion caching and where our method sits in it are clear to the reader. Thank you for the suggestion.
References
[1] SpeCa: Accelerating Diffusion Transformers with Speculative Feature Caching.
[2] ERTACache: Error Rectification and Timesteps Adjustment for Efficient Diffusion.
[3] Accelerating Diffusion Transformer via Gradient-Optimized Cache.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This manuscript introduces IdealCache, a training-free framework designed to improve the sampling efficiency of diffusion transformer via feature caching. It focuses mainly on optimizing the caching schedule and formulates it as finding the shortest path in a directed acyclic graph under fixed budget. Specifically, the DAG is constructed as follow: For a sample generated from a given prompt (or source image for image editing task) and its corresponding noise, the proposed method linearly interpolate between them at each denoising timestep as a ideal trajectory. For interval , it starts from the interpolated state, reuses the hidden-state residual computed at timestep for the subsequent denoising steps, and defines the weight of the edge as the deviation between the result and the ideal . Averaging such edge weights over reference runs yields a mean graph, on which dynamic programming is used to select the minimum-cost schedule. Experiment results demonstrate that the proposed method can achieve better quality than some existing approaches across text-to-image generation, text-to-video generation, and image-editing tasks under similar speedup ratio.
Strengths and weaknesses
This paper is well-organized and easy to read, and the results across multiple tasks demonstrate the effectiveness of the proposed method. But despite the empirical effectiveness, the rationale behind the proposed method is not theoretically established, many design choices are not derived from first principles, e.g., using the deviation from a CondOT-style linear interpolation as the criterion seems not very well-motivated, and the proposed method remains far from breaking the ceiling of inherited from the reference trajectory on most of tasks and metrics, making the claimed limitation of prior methods is still not clearly overcome. In addition, Although the reported results demonstrate advantages over some existing solutions, the gain is relatively modest to show the significance of the proposed method.
Questions
- Choose the linear interpolation as the “ideal trajectory” need further justified. For the models considered in this paper, there is no guarantee that “the influence of on the rollout trajectory is higher-order.” The actual reverse-time dynamics induced by the learned marginal velocity fields will almost always not be straight lines, and the proposed ideal trajectory cannot be naturally realized, making the term “ideal trajectory” somewhat misleading (implies to mimic it). It is suggested to explicitly measure how large the accumulated deviation is in practice. Actually, the linear interpolation trajectories defined by different noise–sample pairs are not guaranteed to be non-intersecting, so the target of may not be uniquely defined even for the same $ x_{t}^{*}$. Therefore, framing the proposed framework as select “minimum-deviation path” against ideal trajectory is somewhat misleading. This target looks more like to optimizing a kind of cfm loss by searching over cache schedule.
- The logic in Section 5 has a gap. Achieving “nearly identical performance” is not sufficient to conclude that “optimal caching intervals are intrinsic to the model architecture and the denoising process”. It also may because the model is simply robust to a range of caching schedules. Why not compare the resulting caching schedules directly? A major concern is that the selection approach is not well-motivated and the selected schedule seems somewhat arbitrary. It is recommended to at least compare the schedule corresponding to top-k shortest paths and report their corresponding generation performance.
- Why the shortest path is the most desirable? It is suggested to explain the assumption and rationale behind such the additive path cost, given that the state in each timestep has different scales.
Limitations
yes
Final justification
In the discussion phase, the author provides further justification for their motivation and present the resulting cache schedule. Now I agree with their argument that the scales of the edge weights starting different timesteps are comparable, and previous concern on this point has been eliminated. The earlier concern arose from comparing samples of drawn either from the marginal distribution or from the conditional distribution given . But in such case, they are actually drawn from . The resulting cache schedule also looks reasonable to me. Therefore, I would like to maintain my original rating.
Formatting concerns
None
3 comments
Response to Reviewer wHUd
Thank you for a careful reading. Your three questions point to choices we stated but can in fact derive, which we now do in the General Response; the mapping is below.
Propositions 1–2, the schedule comparison, and the claim scope are in the General Response, [GR-C1]–[GR-C3].
Q1: the linear "ideal trajectory"
(a) The meaning of the interpolant. We no longer treat the reverse dynamics as straight. Proposition 1 ([GR-C1]) shows that the mean edge weight measures deviation from the model's marginal field , so a single interpolant is only an unbiased estimator of that target and serves purely as a measurement anchor.
(b) Terminology. We agree the name is misleading and rename it the target-anchored reference trajectory.
(c) The connection to CFM. This is a good observation, and we think it is exactly right: once averaged, our objective coincides with a conditional-flow-matching objective [1, 2]. The difference is only in how it is used. CFM uses this objective to train a network, whereas we keep the network fixed and use the same optimization objective to select a caching schedule; averaging over the intersecting interpolants is what makes it well defined (Prop. 1). We will add these citations and state the link explicitly.
Q2: the Sec. 5 argument
We agree that matching performance at and does not by itself rule out the model being tolerant of many schedules. We therefore ran the direct comparison you suggested, evaluating the top- shortest paths against hand-designed schedules at the same budget ([GR-C2]). The hand-designed placements degrade sharply, while the top three paths agree to within 2.6% and low- graphs recover the same paths. We will revise the Sec. 5 sentence to this supported form.
Q3: the shortest path and additivity
Proposition 2 ([GR-C1]) settles this. Under linear flow the deviation has the closed form , so : the deviation over an interval depends only on the cache captured at and the interval length, not on any earlier interval. The error therefore propagates only once and does not compound across intervals, which is precisely why the additive path cost is exact and an exact dynamic program recovers the optimal schedule. All edge weights are squared deviations in the same latent space, so they are directly comparable.
On the ceiling and the size of the gains
We tried to be careful about this in the paper. The Introduction (L52) says we deliberately avoid claiming universal superiority over the 50-step output, and Sec. 4.3 states that the vanilla pipeline remains the upper bound on aggregate ImageReward; the cases that do exceed it are all in editing, where a real target exists. We agree the point deserves more prominence and will make it clearer. What we do claim is well supported: a frontier that dominates prior caching at matched compute (ImageReward 1.1814 vs 1.1506 at about 5× FLOPs, and 1.1068 vs 1.0419 at the highest compression), which is a real rather than marginal margin, together with a ceiling that is now a tunable anchor ([GR-C3]).
References
[1] Lipman et al. Flow Matching for Generative Modeling.
[2] Tong et al. Improving and Generalizing Flow-Based Generative Models with Minibatch Optimal Transport.
Thanks for the response. I am glad to see that the author is willing to adopt more accurate expression for some statements in the revision. However, although I pointed out that the objective resembles a cfm loss, but I do not think optimizing it through searching cache schedule makes a lot of sense. GR-C1 also does not provide sufficient justification on it. On the other hand, the response on the additive path cost is also not very convincing. Even if we set aside whether the optimal-substructure property really holds, summing quantities with different scales remains questionable. In the same latent space does not mean they are “directly comparable”. And as far as I understand, there is no such thing as a “cache velocity”. In addition, a suggestion in Q2 that is not directly addressed is to explicitly show the resulting caching schedules (I understand it may because my original expression “Why not compare the resulting caching schedules directly?” has ambiguity). Overall, I still think this work is not well-motivated and therefore intend to maintain the original score.
Response to Reviewer wHUd (Round 2)
Thank you for your time, and for maintaining a positive score. We give some further detail below, in the hope of clearing up the remaining doubts.
The schedules
We misread Q2, and apologise for it. The schedules are in the released code (supplementary/1.run_edit_qwen_IdealCache.py, CACHE_PATH_BY_STEPS) . The lists are node indices of our graph, where 49 is the highest-noise node and 0 the cleanest; a full DiT pass runs at denoising step i iff 49 − i appears in the list (should_calc_mask[i] = (49 − i) ∈ path), with num_inference_steps fixed at 50.
| Budget B | Graph nodes given a full pass (0 = cleanest→49 = highest noise) | Equivalently, denoising steps i (0 = first) |
|---|---|---|
| 4 | 49, 46, 40, 29 | 0, 3, 9, 20 |
| 5 | 49, 46, 41, 32, 20 | 0, 3, 8, 17, 29 |
| 6 | 49, 46, 42, 35, 26, 13 | 0, 3, 7, 14, 23, 36 |
| 8 | 49, 47, 44, 39, 33, 26, 17, 7 | 0, 2, 5, 10, 16, 23, 32, 42 |
| 9 | 49, 47, 44, 40, 35, 29, 22, 16, 8 | 0, 2, 5, 9, 14, 20, 27, 33, 41 |
| 10 | 49, 47, 45, 42, 38, 33, 27, 20, 12, 5 | 0, 2, 4, 7, 11, 16, 22, 29, 37, 44 |
| 25 | 49, 48, 47, 46, 45, 44, 42, 40, 38, 36, 34, 32, 29, 26, 23, 20, 17, 14, 12, 9, 7, 5, 3, 1, 0 | 0, 1, 2, 3, 4, 5, 7, 9, 11, 13, 15, 17, 20, 23, 26, 29, 32, 35, 37, 40, 42, 44, 46, 48, 49 |
The remaining schedules and the full code will be released.
The additive cost, and "cache velocity"
On the second point you are right, and we will drop the term: what is cached is the block feature residual, and v_t is simply the model's velocity output at the step where the full evaluation runs.
On the first, our earlier reply asserted that the weights were commensurable rather than showing it, which was not an answer. Instead of repeating ourselves here we have posted a short general note, [GR-C5], which derives the edge weight: under linear flow it reduces to ((t−k)/t)² ‖x̂_0(t) − x_0‖², the model's own squared error on the final image scaled by a dimensionless factor, the same quantity at every timestep. The additivity then follows from the derivation rather than being assumed. We would rather point you there than restate it.
Thank you again for the care you have put into reading this.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a new scheduling mechanism for cached DiT inference. The main contribution of the paper is using the per-timestep intermediate states induced by the actual flow matching process on a representative dataset (instead of using the intermediate states of the vanilla non-cached pipeline).
Motivation
Existing DiT caching methods use the vanilla denoising model as the optimization target to tune the cached DiT inference with the end goal of approximating the original model’s per-timestep states (with reduced DiT block inference count). This causes the cached DiT inference to be theoretically upper-bound by the vanilla model’s performance.
Idea
Instead, the authors find that using the ideal trajectories induced by flow matching on the representative dataset can be instead used to find the optimal cache schedule. To this end, they compute the cached inference’s deviation (in stepping from one timestep to another) across different timesteps inducing a graph, with edge weights representing the cost of caching over a specific interval. The ideal cache schedule is then the shortest-path along this graph.
This enables the authors to avoid using a hand-designed cache schedule, and instead rely on the data driven graph (capturing cached inference deviation) to find optimal schedule for different budgets.
Results
The paper demonstrates promising results for IdealCache on three different tasks: text-to-image, image-editing and text-to-video, picking a model each as a baseline for each of the tasks. IdealCache performs better than prior DiT caching methods on all three tasks (in terms of visual quality), with reduced FLOPs + 4-6x speedup on all three tasks' baseline 50-step models.
Notably, the Qwen-Image-Edit model bundled with IdealCache has a slight edit-quality improvement (semantic consistency in image editing) over the 50-step baseline, indicating that the flow-matching induced optimization target for cache scheduling does work in practice.
Strengths and weaknesses
Strengths
- The paper is well motivated, and presents the interesting finding that instead of chasing the vanilla uncached pipeline as an optimization target for DiT caching, we can instead penalize the caching schedule over the intermediate states induced by flow matching.
- Results show that IdealCache operates with a reduced FLOPs and latency budget as compared to prior DiT caching methods across both image based tasks. Moreover, IdealCache cache schedule calibration done on a single data sample still generalizes well with minimal loss in visual quality.
Weaknesses
- While the paper presents IdealCache results over three different tasks: text-to-image, image-editing, and text-to-video, it chooses a single model for each of them (Qwen-Image, Qwen-Image-Edit and HunyuanVideo respectively). To demonstrate generalization, the paper should add atleast one other model for each task. For example, Flux 2 for text-to-image and image editing, and WAN/LTX for text-to-video.
- IdealCache FLOP measurements and OOD transferability for text-to-video task are not reported.
- While the paper shows how IdealCache performs with two sizes of the representative dataset (=1000 and 1). This section would be stronger if the paper includes an ablation analyzing how this changes with the diversity and size of the dataset (on a more granular level).
Questions
- In tables 1 and 3, there are two speed columns, one of them seems to be theoretical speedup, while the other one seems to be actual wall time speed-up. It would be great if the difference is specified in the table caption/somewhere else, or the columns be merged if they’re supposed to be the same.
- If the authors can show IdealCache improvements over atleast one more model for each of the three tasks, I would be inclining more towards recommending the paper. Given the method is training-free, preparing results for other models should be doable within the rebuttal deadline. Without these numbers, the approach is promising but lacks evidence for generalizability.
- In Table 5, which discusses out-of-distribution transferability (i.e. calibrating IdealCache schedule over a single sample), the authors discuss effect on only text-to-image and image-editing, but not text-to-video. Is there any particular reason text-to-video transferability has been omitted?
Limitations
Yes
Final justification
Authors have justified my concerns, I changed my rating to accept.
Formatting concerns
None
2 comments
Response to Reviewer gvfj
Thank you for the specific and actionable requests. The new results are below; shared items are marked [GR-Cx].
W1 and Q2: a cross model per task
Both models are training-free. We solve a single one-shot () graph once and reuse it across the whole set, and average quality over 50 prompts with 3 runs each.
FLUX.2 [dev], text-to-image (DrawBench, 1024×1024; SSIM and LPIPS are measured against each prompt's own 50-step output):
| Method | Latency(s)↓ | FLOPs(T)↓ | FLOPs speedup↑ | SSIM↑ | LPIPS↓ |
|---|---|---|---|---|---|
| Vanilla, 50 steps | 32.25 | 14140.5 | 1.00× | 1.000 | 0.000 |
| Vanilla, 25 steps | 16.15 | 7075.5 | 2.00× | 0.902 | 0.091 |
| IdealCache, | 16.58 | 7075.8 | 2.00× | 0.951 | 0.042 |
| Vanilla, 15 steps | 9.77 | 4249.5 | 3.33× | 0.853 | 0.142 |
| IdealCache, | 10.05 | 4249.9 | 3.33× | 0.894 | 0.107 |
| Vanilla, 10 steps | 6.52 | 2836.5 | 4.99× | 0.800 | 0.205 |
| IdealCache, | 6.81 | 2837.0 | 4.98× | 0.825 | 0.209 |
IdealCache is ahead of the few-step baseline at every matched-FLOPs point (for example 0.951 vs 0.902 at 2×).
FLUX.2 [dev], image editing (FlowEdit; Consistency is SSIM to the 50-step output, Background Preservation is SSIM to the source image):
| Method | FLOPs(T)↓ | FLOPs speedup↑ | Consistency↑ | Bg. Preservation↑ |
|---|---|---|---|---|
| Vanilla, 50 steps | 29154.3 | 1.00× | 1.000 | 0.778 |
| IdealCache, | 14585.5 | 2.00× | 0.983 | 0.777 |
| IdealCache, | 8758.0 | 3.33× | 0.965 | 0.778 |
| IdealCache, | 5844.2 | 4.99× | 0.948 | 0.774 |
Background preservation stays close to the 50-step pipeline (0.778) even at roughly 5×.
Wan2.2-T2V-A14B, text-to-video (VBench, 480×832, 49 frames; latency and FLOPs cover the denoising ViT forward only, i.e. the per-step conditional and unconditional passes, since the text encoder and VAE decode are constant in the number of steps; SSIM and LPIPS are per-frame against each prompt's 50-step video):
| Method | Latency(s)↓ | Latency speedup↑ | FLOPs(T)↓ | FLOPs speedup↑ | SSIM↑ | LPIPS↓ |
|---|---|---|---|---|---|---|
| Vanilla, 50 steps | 254.45 | 1.00× | 83249.3 | 1.00× | 1.000 | 0.000 |
| few-step, 25 steps | 127.20 | 2.00× | 41624.6 | 2.00× | 0.510 | 0.516 |
| IdealCache, | 129.43 | 1.97× | 41628.4 | 2.00× | 0.883 | 0.090 |
| IdealCache, | 104.46 | 2.44× | 33304.2 | 2.50× | 0.802 | 0.170 |
| IdealCache, | 79.03 | 3.22× | 24980.1 | 3.33× | 0.732 | 0.261 |
| IdealCache, | 53.93 | 4.72× | 16655.9 | 5.00× | 0.531 | 0.537 |
At the same compute as a 25-step run, SSIM rises from 0.510 to 0.883 and LPIPS drops from 0.516 to 0.090.
W2 and Q3: T2V FLOPs and OOD transfer
We add both to the text-to-video results (HunyuanVideo / VBench). The Mean graph LPIPS/SSIM columns are exactly the numbers already reported in the paper's Table 4; new here are the FLOPs columns (W2) and the one-shot columns (Q3, the T2V OOD transfer that was missing):
| Method | Latency(s)↓ | Wall speedup↑ | FLOPs(T)↓ | FLOPs speedup↑ | Mean graph (LPIPS↓/SSIM↑) | One-shot (LPIPS↓/SSIM↑) |
|---|---|---|---|---|---|---|
| Vanilla, 50 steps | 80.94 | 1.00× | 11561.3 | 1.00× | — | — |
| IdealCache, | 24.97 | 3.24× | 3502.1 | 3.30× | 0.159 / 0.817 | 0.183 / 0.822 |
| IdealCache, | 18.74 | 4.32× | 2606.7 | 4.44× | 0.206 / 0.760 | 0.236 / 0.777 |
The FLOPs speedup is 3.30–4.44×, and a schedule built from the single official example prompt shipped with the diffusers library stays within 0.03 LPIPS of the graph. Text-to-video was left out of the OOD analysis only for lack of time, not because it fails to transfer; we will fold both the FLOPs and the one-shot columns into Table 4.
W3: a finer dataset-size ablation
The sweep is in [GR-C4]: quality is flat from to (within about 1% ImageReward), so it saturates well before 1000.
Q1: the two speed columns
They are different measurements and should not be merged. One is the FLOPs speedup, the ratio of full-transformer FLOPs; the other is the wall-clock speedup, the end-to-end latency at batch size 1. Wall-clock is always the smaller of the two because it also includes the fixed cost of the VAE, text encoder, and scheduler, for instance 3.30× against 3.24× at . We will label the columns accordingly and note this in the captions.
We sincerely thank Reviewer gvfj for upgrading the score to 5 and offering positive feedback on our work. We will thoroughly revise and polish the manuscript following your constructive comments.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
General Response
We thank the reviewers and the AC for their feedback. The recurring concerns are theoretical grounding, whether the schedule is principled, the scope of our "ceiling" claim, breadth of evaluation, and reporting. We address them below, and new numbers are also in the revised supplementary.
To the AC and Reviewer gvfj: additional cross-model evaluation. The meta-review's primary concern is limited evaluation across models. We address it directly. Since IdealCache is training-free, we add two more models, FLUX.2 [dev] (text-to-image and editing) and Wan2.2-T2V-A14B (text-to-video), and both confirm the method at matched compute. Full tables are in our response to Reviewer gvfj.
[GR-C1] The objective follows from first principles
@wHUd, @38ZG
We can derive, rather than assume, both the deviation criterion and the additive path cost.
Setup. For an edge k→t we obtain xt⋆ by noising the target directly to step t (xt⋆=(1−t)x0⋆+tϵ), run one full forward pass at t to populate the cache, and then reuse those cached residuals for every Euler step from t down to k. The rollout endpoint is x^k=cache(xt⋆,k), and the edge weight is w(k→t)=∥x^k−xk⋆∥2.
Proposition 1. For the deterministic cached map f(xt)=cache(xt,k), a bias–variance split gives
and the second term does not depend on the schedule. Since xk⋆=xt−(t−k)(ϵ−x0), its conditional mean is
which is exactly the marginal velocity field of flow matching that the network is trained to approximate [1, 2]. The mean edge weight is therefore the deviation of the cached rollout from the exact full-model update, a quantity intrinsic to the model. This is why we never assume the reverse dynamics are straight: each per-sample interpolant is only an unbiased estimator of that marginal target, so we rename the "ideal trajectory" the target-anchored reference trajectory to make clear it is a measurement anchor.
Proposition 2. Under linear flow, with the cached velocity taken as locally constant over (k,t), the deviation at k has a closed form that depends only on the cache captured at t:
where v⋆=ϵ−x0 is the ground-truth velocity and vt the cached velocity at t. The deviation over an interval thus depends only on the velocity error of the cache at t and the interval length (t−k), and not on any earlier interval: each cached interval incurs a single, self-contained error, so the error propagates only once and does not compound across intervals. This is exactly the optimal-substructure property that makes the additive path cost exact and the reverse shortest-path/DP solution optimal, with no need to track continuous error accumulation. All edge weights are squared deviations in the same latent space and are therefore directly comparable. We add both as Prop. 1 (Sec. 3.2) and Prop. 2 (Eq. 8).
References
[1] Lipman et al. Flow Matching for Generative Modeling.
[2] Liu et al. Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow.