LayerCache: Exploiting Layer-wise Velocity Heterogeneity for Efficient Flow Matching Inference
On the map: Diffusion models → Diffusion foundations and sampling
Abstract (arXiv)
Flow Matching models achieve state-of-the-art image generation quality but incur substantial inference cost due to iterative denoising through large Transformer networks. We observe that different layer groups within a Transformer exhibit markedly heterogeneous velocity dynamics: shallow layers are highly stable and amenable to aggressive caching, while deep layers undergo large velocity changes that demand full computation. Existing caching methods, however, treat the entire Transformer as a monolithic unit, applying a single caching decision per timestep and thus failing to exploit this heterogeneity. Based on this finding, we propose LayerCache, a layer-aware caching framework that partitions the Transformer into layer groups and makes independent, per-group caching decisions at each denoising step. LayerCache introduces an adaptive JVP span K selection mechanism that leverages per-group stability measurements to balance estimation accuracy and computational savings. We formulate a three-dimensional scheduling problem over timesteps, layer groups, and JVP span, and solve it with a greedy budget allocation algorithm. On Qwen-Image (1024x1024, 50 steps), LayerCache achieves PSNR 37.46 dB (+5.38 dB over MeanCache), SSIM 0.9834, and LPIPS 0.0178 (a 70% reduction over MeanCache) at 1.37x speedup, dominating all prior caching methods on the quality-speed Pareto frontier.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 21 of its 25 references that are in the map. First posted on arXiv 13 Apr 2026.
Builds on
21 of 25 references.
Closest ancestors · 9
Same direction, newest first
- 2026Frequency-Aware Error-Bounded Caching for Accelerating Diffusion Transformers5 Mar
- 2025DiCache: Let Diffusion Model Determine Its Own Cache24 Aug
- 2025From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers10 Mar
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesis5 Mar
- 2023Cache Me if You Can: Accelerating Diffusion Models through Block Caching6 Dec
- 2023DeepCache: Accelerating Diffusion Models for Free1 Dec
- 2023Consistency Models2 Mar
- 2022Scalable Diffusion Models with Transformers19 Dec
- 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
Other references · 12
- 2022Flow Matching for Generative Modelingcited by 5,702
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
- 2024HunyuanVideo: A Systematic Framework For Large Video Generative Modelscited by 1,660
- 2025Mean Flows for One-step Generative Modelingcited by 561
- 2024Timestep Embedding Tells: It's Time to Cache for Video Diffusion Modelcited by 269
- 2024Real-Time Video Generation with Pyramid Attention Broadcastcited by 149
- 2024FasterCache: Training-Free Video Diffusion Model Acceleration with High Qualitycited by 122
- 2025MagCache: Fast Video Generation with Magnitude-Aware Cachecited by 41
- 2026MeanCache: From Instantaneous to Average Velocity for Accelerating Flow Matching Inferencecited by 10
- 2025EditID: Training-Free Editable ID Customization for Text-to-Image Generationcited by 8
- 2025EditIDv2: Editable ID Customization with Data-Lubricated ID Feature Integration for Text-to-Image Generationcited by 8
- 2026Inject Where It Matters: Training-Free Spatially-Adaptive Identity Preservation for Text-to-Image Personalizationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
- 2026A one-step generation model with a Single-Layer Transformer: Layer number re-distillation of FreeFlow
- 2025OmniCache: A Trajectory-Oriented Global Perspective on Training-Free Cache Reuse for Diffusion Transformer Models
- 2026Training-Free Hidden-State Refinement for Flow-Matching Image Generators
- 2025ProCache: Constraint-Aware Feature Caching with Selective Computation for Diffusion Transformer Acceleration
- 2026AdaCorrection: Adaptive Offset Cache Correction for Accurate Diffusion Transformers
- 2025FastCache: Fast Caching for Diffusion Transformer Through Learnable Linear Approximation
- 2024HarmoniCa: Harmonizing Training and Inference for Better Feature Caching in Diffusion Transformer Acceleration