- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes Z-Cache, a training-free reflection wrapper for feature caching. Although skip-step acceleration introduces cumulative errors, such errors tend to drop sharply after every full computation pass. This indicates that the model itself rectifies the denoising trajectory whenever a full computation is executed. Based on this observation, Z-Cache is equipped with a self-reflection mechanism. It leverages features computed at future full timesteps to calibrate previously predicted features, followed by an additional forward propagation pass. Notably, Z-Cache is not a standalone feature predictor. Instead, it applies the self-reflection mechanism to refine pre-existing prediction outputs and must be built upon other predictors such as TaylorSeer. Experimental results demonstrate that this plug-and-play approach effectively improves image quality. Furthermore, Z-Cache is not limited to standard DiT text-to-image generation tasks. It can be transferred to a broader range of scenarios, including few-step distillation models, image editing tasks, quantization, and U-Net backbones. This validates the generalization capability of Z-Cache across diverse tasks and settings.
Strengths and weaknesses
Strengths:
- The cache-then-check (self-reflection) based caching mechanism is quite intriguing. Conventional feature caching methods only predict future features relying on historical features. In contrast, Z-Cache works differently: it not only predicts future states from past information, but also calibrates existing predicted features using fully-computed features from future timesteps, followed by an additional forward propagation pass. Experimental results show that this method improves image quality across various predictors and tasks.
- Z-Cache boasts strong compatibility. Instead of being tailored for a single specific predictor, Z-Cache acts as a reflection wrapper that can be directly stacked with other feature caching approaches such as TaylorSeer, MagCache and TeaCache. Experiments verify that combining Z-Cache with diverse feature caching strategies consistently boosts quantitative metrics under different acceleration ratios.
- The extensive scope of experiments strengthens the reliability of the method’s generalization ability. The paper conducts evaluations not only on class-to-image and text-to-image tasks, but also extends its validation to text-to-video generation, FLUX-Kontext image editing, the few-step distilled Qwen-Image-Lightning model, 8-bit quantization, and U-Net backbones like SDXL. Weaknesses:
- The theoretical analysis is relatively weak and leans more toward intuitive reasoning rather than rigorous mathematical guarantees. The theoretical section of this paper builds upon Lipschitz continuity, demonstrating that if the self-reflection mechanism reduces the hidden error, the upper bound of the final prediction error will also decline. While this analysis helps rationalize the intuition behind the method, it fails to prove that future-anchor prediction is inherently more accurate than past-anchor prediction.
- Z-Cache combines past-anchor and future-anchor via a linear weighting scheme defined by . Although this design makes intuitive sense, it is overly simplistic, and the paper does not sufficiently justify whether this weighting formulation is optimal. For instance, the design of could draw inspiration from DiCache, which measures the bias of intermediate predictions toward past or future states based on relative distances.
- Most existing feature caching methods adopt a past-anchor paradigm, whose computational pipeline aligns naturally with the timestep-wise denoising process inherent to diffusion models. In contrast, after acquiring the future-anchor, Z-Cache executes an additional "Forward Again" operation: it reverts to the current caching window and re-runs the full denoising pass. Since this workflow breaks the unidirectional timestep progression, readers who have not examined the source code may struggle to quickly grasp Z-Cache’s computation flow solely from Figure 3’s flowchart and textual descriptions. Including pseudocode would significantly improve clarity.
- While Z-Cache improves the performance of underlying baseline methods, it drastically increases inference latency (seconds) and peak memory consumption (GiB) in certain scenarios. The combination of MagCache and Z-Cache serves as a representative example, where marginal performance gains come at the cost of substantially elevated latency. This indicates that Z-Cache yields only limited improvements under some conditions and is not a low-overhead wrapper module.
The text-to-image generation section contains an insufficient number of qualitative showcase examples.
Questions
- The core design of Z-Cache is intuitively reasonable. Since the future-anchor is derived from a full computation, it can provide relatively reliable feature information to rectify the deviated denoising trajectory within the current cache window. Nevertheless, a potential concern exists regarding "Step-3: Forward Again" illustrated in Figure 3. After the reflection operation, Z-Cache rolls back to re-perform the denoising process. As a result, the newly predicted future-anchor may not be identical to the original future-anchor obtained via full computation. How significant is this discrepancy? Does it impair the stability of subsequent denoising trajectories and the final generation quality?
- Z-Cache adopts linear weights to fuse the past-anchor and future-anchor. This design is overly simplistic and may not be optimal. Have the authors experimented with alternative weighting strategies?
- Where do the extra latency and peak memory overhead of Z-Cache primarily originate? Are they caused by "Step-3: Forward Again"? Could this issue be mitigated via code-level optimizations?
Limitations
Yes
Paper formatting concerns
No
Final justification
I have carefully read the authors’ rebuttal. The response addresses my concern on the proposed Z-Cache.
Response to Reviewer QSmR
Thank you for recognizing Z-Cache's cache-then-check mechanism, compatibility, and broad evaluation. We address each weakness and question directly.
W1 — Theoretical scope
The criticism assumes that Z-Cache requires the future-conditioned estimate to be inherently more accurate than the past-conditioned estimate. It does not: improvement can arise from complementary errors. Let
ep=H^p−H⋆,ef=H^f−H⋆,ez=(1−w)ep+wef.
Then
∥ez∥2=(1−w)∥ep∥2+w∥ef∥2−w(1−w)∥ep−ef∥2.
For a weight in
(0,1], reflection improves over past-only prediction exactly when∥ef∥2−∥ep∥2<(1−w)∥ep−ef∥2.
Thus, even a larger future error can help when its direction is sufficiently complementary; a biased or aligned error may not. We will add this condition, retain the theorem as a conditional local bound, and state that the future anchor supplies a complementary constraint—not that it is always more accurate or ensures global convergence.
W2 + W4, Q2 + Q3 — Fusion design and practical overhead
First, Z-Cache does not linearly interpolate latents. TaylorSeer extrapolates cached features from the past FULL anchor and backward from the future FULL anchor; the reflection function only fuses these two Taylor-predicted features before scheduler replay.
Q2: Were alternative reflection functions tested?
Yes. The review motivated four functions. With Taylor order
K,dL=i−a,dR=b−i,r=dL+dRdL,
we tested
w_{\mathrm{original}}&=r,\\ w_{\mathrm{remainder}}&=\frac{d_L^{K+1}}{d_L^{K+1}+d_R^{K+1}},\\ w_{\mathrm{variance}}&=\frac{d_L^{2(K+1)}}{d_L^{2(K+1)}+d_R^{2(K+1)}},\\ w_{\mathrm{jet}}&=r^2(3-2r). \end{aligned}$$ **original-linear** uniformly transitions between Taylor predictions. **remainder-ratio** weights their modeled Taylor-remainder scales. **variance-optimal** squares those scales, matching inverse-variance fusion under an independent-error model; it is deterministic, not oracle-based. **jet-smoothstep** is cubic with zero endpoint slope. On 200 paired DrawBench prompts under one immutable FLUX.1-dev/TaylorSeer `N=6` schedule: | Reflection function | PSNR ↑ | SSIM ↑ | LPIPS ↓ | ImageReward ↑ | |---|---:|---:|---:|---:| | original-linear | 29.1348 | 0.6462 | 0.3914 | **0.9908** | | remainder-ratio | 29.1644 | 0.6474 | 0.3888 | 0.9763 | | variance-optimal | **29.1813** | **0.6476** | **0.3883** | 0.9863 | | jet-smoothstep | 29.1531 | 0.6471 | 0.3898 | 0.9821 | All use the same Base schedule, FLOPs, and peak memory. No rule wins every metric: variance-optimal leads reconstruction metrics, while original-linear leads ImageReward. We therefore retain linear as a simple parameter-free default, not a claimed optimum. ### Q3: Where do latency/VRAM overhead arise, and can they be reduced? **For profiled FLUX.1-dev/TaylorSeer `N=6`, a major reducible cost comes from Step 3's fine-grained replay/state implementation, not extra Base-scheduled FULL evaluations.** Fusing 95 sites creates hook, small-kernel, scheduler, state-access, and live-state costs not represented by Transformer FLOPs. We therefore designed a **stack-wise residual** backend: unlike the original Z-Cache which stores caches for all blocks, it only stores the feature differences btween first block's input and last block's output | Backend | PSNR | SSIM | LPIPS | IR | A100 latency | TFLOPs | Peak GiB | |---|---:|---:|---:|---:|---:|---:|---:| | block-wise | 29.1348 | 0.6462 | 0.3914 | 0.9908 | 6.7656 s | 747.502 | 41.652 | | stack-wise residual | **29.3412** | **0.6505** | **0.3797** | **0.9916** | **5.4130 s** | **747.095** | **40.011** | The **stack-wise residual** improves all four quality point estimates, reduces median clean A100 latency by 19.99% (`1.250x`), and lowers peak allocated memory by 3.94%. It changes the approximation and is not a behavior-preserving micro-optimization. Latency is the median of 7 balanced post-warm-up rounds covering hooks, denoising, and replay but excluding model/text/VAE preparation. ## W3 + Q1 — Forward Again, endpoint consistency, and stability Z-Cache does not reverse committed denoising states. A window remains provisional until its next Base-scheduled FULL observation; only this closed window is replayed. Appendix pseudocode will explicitly: (1) advance the immutable Base schedule; (2) observe the future FULL anchor and construct two Taylor predictions; (3) discard only the closed provisional window and replay it with reflected features; and (4) atomically commit its endpoint latent/cache state and continue forward. No earlier committed state changes and no Base FULL decision moves. ### Q1: Does the changed endpoint impair subsequent denoising? **The replayed endpoint need not equal the provisional endpoint, because it belongs to the intentionally corrected trajectory. The relevant test is whether Z-Cache is closer to Full than unreflected TaylorSeer—not whether replay reproduces the trajectory being corrected.** We first saved all 50 latent tensors for matched Full, TaylorSeer-only, and Z-Cache runs on FLUX.1-dev: 32 frozen prompts, two seeds, and `N={6,8}`. All share the initial latent and scheduler. For Z-Cache, the replayed value replaces the provisional value at every revisited step. With $$d_i^{M}=\frac{\left\lVert x_i^{M}-x_i^{\mathrm{Full}}\right\rVert_2 }{\max\left(\left\lVert x_i^{\mathrm{Full}}\right\rVert_2,\epsilon\right)}.$$ $$\operatorname{AUC}^{M}=\frac{1}{T-1} \sum_{i=0}^{T-2} \frac{d_i^{M}+d_{i+1}^{M}}{2}.$$ 20,000-resample prompt-cluster intervals give: | N | Metric | TaylorSeer | Z-Cache | Z benefit [95% CI] | |---:|---|---:|---:|---:| | 6 | trajectory AUC ↓ | 0.21298 | **0.19812** | 0.01486 [0.01155,0.01858] | | 6 | final rel-L2 ↓ | 0.57401 | **0.54684** | 0.02717 [0.02016,0.03465] | | 6 | final cosine ↑ | 0.82375 | **0.84140** | 0.01766 [0.01325,0.02246] | | 8 | trajectory AUC ↓ | 0.25629 | **0.23565** | 0.02063 [0.01688,0.02450] | | 8 | final rel-L2 ↓ | 0.66909 | **0.63089** | 0.03820 [0.03038,0.04670] | | 8 | final cosine ↑ | 0.76294 | **0.79240** | 0.02947 [0.02237,0.03713] | Z-Cache reduces trajectory AUC by 6.98%/8.05% at `N=6/8`; all three prompt-aggregated metrics improve for 32/32 prompts at both settings. We do not claim sample-wise universality: final rel-L2 improves for 60/64 and 63/64 samples. To isolate reflection from previously accumulated drift, we additionally forked **local Full, local TaylorSeer, and reflected Z-Cache from the exact same canonical left-anchor state in every window**. The Full-local oracle runs FULL at each local step but never supplies features or a future anchor to either cached branch; it is a diagnostic reference, not an equal-compute baseline. This covers seven/five windows per sample at `N=6/8`, 768 matched windows total: Direct Taylor-to-Z replay-endpoint relative L2, normalized by the Taylor endpoint norm, is `0.01418 [0.01365,0.01473]` at `N=6` and `0.02306 [0.02221,0.02391]` at `N=8`; window-level p95 values are `0.02563/0.03723`, and mean cosine is `0.999891/0.999729`. The endpoint therefore changes measurably but remains finite. | N | Local metric | TaylorSeer | Z-Cache | Z benefit [95% CI] | |---:|---|---:|---:|---:| | 6 | trajectory AUC ↓ | 0.012688 | **0.008928** | 0.003760 [0.003596,0.003926] | | 6 | endpoint rel-L2 ↓ | 0.026057 | **0.016922** | 0.009135 [0.008744,0.009530] | | 6 | endpoint cosine ↑ | 0.999620 | **0.999828** | 0.000208 [0.000191,0.000226] | | 8 | trajectory AUC ↓ | 0.020822 | **0.015519** | 0.005303 [0.005049,0.005543] | | 8 | endpoint rel-L2 ↓ | 0.045693 | **0.031364** | 0.014329 [0.013640,0.014996] | | 8 | endpoint cosine ↑ | 0.998882 | **0.999430** | 0.000548 [0.000501,0.000596] | All three sample-aggregated local metrics favor Z-Cache for 64/64 samples and 32/32 prompts at both settings. All 52,736 global and 20,992 local checked values are finite, with no execution failure. The complete DrawBench200 results likewise improve TaylorSeer to +Z at `N=6`: PSNR `28.84→29.22`, SSIM `.6302→.6539`, LPIPS `.4359→.3914`, ImageReward `.9737→.9882`; and at `N=8`: `28.46→28.71`, `.5703→.6002`, `.5190→.4692`, `.9292→.9451`. Thus, from an identical window start, reflection moves both the local trajectory and endpoint closer to conditional Full; globally, the benefit survives subsequent denoising and improves final-image metrics. This directly counters instability within the evaluated FLUX/TaylorSeer settings, but is not a universal convergence or stability guarantee. ## W5 — Qualitative coverage The existing panel is too small to characterize failure frequency or human preference, but the claims do not depend on selected images: they use paired DrawBench and complete trajectory controls. We will add appendix Full/Base/+Z panels with frozen random, win, mixed, largest-error, and degradation cases, disclosing prompts, seeds, schedules, and selection rules. We will add more visual comparision examples in appendix in the final version. ## Revision summary We will add the exact theory condition, reflection-function ablation, state-graft analysis, appendix pseudocode/state diagram, global and same-start local trajectory analyses, and expanded visuals. We will position Z-Cache as a training-free cache-then-check quality-recovery mechanism—not a universal predictor replacement or latency-free wrapper.