Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
On the map: Diffusion models → Diffusion foundations and sampling
Abstract (arXiv)
Diffusion Transformers have recently demonstrated unprecedented generative capabilities for various tasks. The encouraging results, however, come with the cost of slow inference, since each denoising step requires inference on a transformer model with a large scale of parameters. In this study, we make an interesting and somehow surprising observation: the computation of a large proportion of layers in the diffusion transformer, through introducing a caching mechanism, can be readily removed even without updating the model parameters. In the case of U-ViT-H/2, for example, we may remove up to 93.68% of the computation in the cache steps (46.84% for all steps), with less than 0.01 drop in FID. To achieve this, we introduce a novel scheme, named Learning-to-Cache (L2C), that learns to conduct caching in a dynamic manner for diffusion transformers. Specifically, by leveraging the identical structure of layers in transformers and the sequential nature of diffusion, we explore redundant computations between timesteps by treating each layer as the fundamental unit for caching. To address the challenge of the exponential search space in deep models for identifying layers to cache and remove, we propose a novel differentiable optimization objective. An input-invariant yet timestep-variant router is then optimized, which can finally produce a static computation graph. Experimental results show that L2C largely outperforms samplers such as DDIM and DPM-Solver, alongside prior cache-based methods at the same inference speed. Code is available at https://github.com/horseee/learning-to-cache
Key facts. Cited by 138 papers in the map (data through 7 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 57 of its 74 references that are in the map. First posted on arXiv 3 Jun 2024.
Builds on
57 of 74 references.
Closest ancestors · 37
Same direction, newest first
- 2024LD-Pruner: Efficient Pruning of Latent Diffusion Models using Task-Agnostic Insights18 Apr
- 2024LAPTOP-Diff: Layer Pruning and Normalized Distillation for Compressing Diffusion Models17 Apr
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesis5 Mar
- 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models29 Feb
- 2024T-Stitch: Accelerating Sampling in Pre-Trained Diffusion Models with Trajectory Stitching21 Feb
- 2024SDXL-Lightning: Progressive Adversarial Diffusion Distillation21 Feb
- 2023Cache Me if You Can: Accelerating Diffusion Models through Block Caching6 Dec
- 2023DeepCache: Accelerating Diffusion Models for Free1 Dec
- 2023Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference6 Oct
- 2023Denoising Diffusion Step-aware Models5 Oct
- 2023Fast Training of Diffusion Models with Masked Transformers15 Jun
- 2023OMS-DPM: Optimizing the Model Schedule for Diffusion Probabilistic Models15 Jun
25 more
- 2023Parallel Sampling of Diffusion Models25 May
- 2023Structural Pruning for Diffusion Models18 May
- 2023PTQD: Accurate Post-Training Quantization for Diffusion Models18 May
- 2023MDTv2: Masked Diffusion Transformer is a Strong Image Synthesizer25 Mar
- 2023Consistency Models2 Mar
- 2023Q-Diffusion: Quantizing Diffusion Models8 Feb
- 2022Scalable Diffusion Models with Transformers19 Dec
- 2022Post-training Quantization on Diffusion Models28 Nov
- 2022Diffusion Probabilistic Model Made Slim27 Nov
- 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models2 Nov
- 2022All are Worth Words: A ViT Backbone for Diffusion Models25 Sep
- 2022Your ViT is Secretly a Hybrid Discriminative-Generative Diffusion Model16 Aug
- 2022gDDIM: Generalized denoising diffusion implicit models11 Jun
- 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps2 Jun
- 2022Elucidating the Design Space of Diffusion-Based Generative Models1 Jun
- 2022Fast Sampling of Diffusion Models with Exponential Integrator29 Apr
- 2022Pseudo Numerical Methods for Diffusion Models on Manifolds20 Feb
- 2022Analytic-DPM: an Analytic Estimate of the Optimal Reverse Variance in Diffusion Probabilistic Models17 Jan
- 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
- 2021Score-Based Generative Modeling with Critically-Damped Langevin Diffusion14 Dec
- 2021Gotta Go Fast When Generating Data with Score-Based Models28 May
- 2021Diffusion Models Beat GANs on Image Synthesis11 May
- 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
- 2020Denoising Diffusion Implicit Models6 Oct
- 2020Denoising Diffusion Probabilistic Models19 Jun
Other references · 20
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
- 2016Improved Techniques for Training GANscited by 2,938
- 2019Improved Precision and Recall Metric for Assessing Generative Modelscited by 925
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2021Generating Images with Sparse Representationscited by 262
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
- 2023SnapFusion: Text-to-Image Diffusion Model on Mobile Devices within Two Secondscited by 227
- 2023DiT-3D: Exploring Plain Diffusion Transformers for 3D Shape Generationcited by 110
- 2023VDT: General-purpose Video Diffusion Transformers via Mask Modelingcited by 102
8 more
- 2023InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruningcited by 90
- 2024Shortened LLaMA: Depth Pruning for Large Language Models with Comparison of Retraining Methodscited by 80
- 2023Large-Vocabulary 3D Diffusion Model with Transformercited by 48
- 2023ViT-TTS: Visual Text-to-Speech with Scalable Diffusion Transformercited by 24
- 2023Distribution Shift Inversion for Out-of-Distribution Predictioncited by 23
- 2023SlimSAM: 0.1% Data Makes Segment Anything Slimcited by 20
- 2024Hash3D: Training-free Acceleration for 3D Generationcited by 19
- 2023U-DiT TTS: U-Diffusion Vision Transformer for Text-to-Speechcited by 9
Built on by
Citing papers per year: 2024: 21; 2025: 60; 2026: 57.
138 papers.
Sort:
By area:
- 2024Timestep Embedding Tells: It's Time to Cache for Video Diffusion Modelcited by 245
- 2024SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Modelscited by 161
- 2024Accelerating Diffusion Transformers with Token-wise Feature Cachingcited by 143
- 2024Real-Time Video Generation with Pyramid Attention Broadcastcited by 140
- 2025dKV-Cache: The Cache for Diffusion Language Modelscited by 140
- 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generationcited by 84
- 2025A Survey on Diffusion Language Modelscited by 75
- 2025OminiControl2: Efficient Conditioning for Diffusion Transformerscited by 56
- 2025SP-VLA: A Joint Model Scheduling and Token Pruning Approach for VLA Model Accelerationcited by 56
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelismcited by 55
- 2025EEdit: Rethinking the Spatial and Temporal Redundancy for Efficient Image Editingcited by 45
- 2024TinyFusion: Diffusion Transformers Learned Shallowcited by 44
38 more
- 2025Follow-Your-Emoji-Faster: Towards Efficient, Fine-Controllable, and Expressive Freestyle Portrait Animationcited by 41
- 2025MagCache: Fast Video Generation with Magnitude-Aware Cachecited by 36
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 35
- 2025Efficient Diffusion Models: A Surveycited by 35
- 2025FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruningcited by 34
- 2025DiCache: Let Diffusion Model Determine Its Own Cachecited by 34
- 2024Spatiotemporal Skip Guidance for Enhanced Video Diffusion Samplingcited by 33
- 2024Token Pruning for Caching Better: 9 Times Acceleration on Stable Diffusion for Freecited by 30
- 2024Token Caching for Diffusion Transformer Accelerationcited by 29
- 2026Transition Matching Distillation for Fast Video Generationcited by 27
- 2024Rethinking Token-wise Feature Caching: Accelerating Diffusion Transformers with Dual Feature Cachingcited by 26
- 2025Training-free Diffusion Acceleration with Bottleneck Samplingcited by 25
- 2025FastCache: Fast Caching for Diffusion Transformer Through Learnable Linear Approximationcited by 23
- 2024AsyncDiff: Parallelizing Diffusion Models by Asynchronous Denoisingcited by 22
- 2024Layer- and Timestep-Adaptive Differentiable Token Compression Ratios for Efficient Diffusion Transformerscited by 21
- 2025TREAD: Token Routing for Efficient Architecture-agnostic Diffusion Trainingcited by 21
- 2024SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformerscited by 19
- 2025FullDiT2: Efficient In-Context Conditioning for Video Diffusion Transformerscited by 17
- 2024HarmoniCa: Harmonizing Training and Inference for Better Feature Caching in Diffusion Transformer Accelerationcited by 16
- 2024Presto! Distilling Steps and Layers for Accelerating Music Generationcited by 16
- 2025CAT Pruning: Cluster-Aware Token Pruning For Text-to-Image Diffusion Modelscited by 16
- 2025OmniCache: A Trajectory-Oriented Global Perspective on Training-Free Cache Reuse for Diffusion Transformer Modelscited by 16
- 2025Accelerating Diffusion Transformer via Gradient-Optimized Cachecited by 15
- 2025FlexiDiT: Your Diffusion Transformer Can Easily Generate High-Quality Samples with Less Computecited by 12
- 2025Accelerating Diffusion Transformer via Increment-Calibrated Caching with Channel-Aware Singular Value Decompositioncited by 12
- 2025SkipVAR: Accelerating Visual Autoregressive Modeling via Adaptive Frequency-Aware Skippingcited by 11
- 2025How far can we go with ImageNet for Text-to-Image generation?cited by 10
- 2024Unveiling Redundancy in Diffusion Transformers (DiTs): A Systematic Studycited by 9
- 2024Learnable Sparsity for Vision Generative Modelscited by 9
- 2025Training-free Mixed-Resolution Latent Upsampling for Spatially Accelerated Diffusion Transformerscited by 9
- 2025SADA: Stability-guided Adaptive Diffusion Accelerationcited by 9
- 2025MosaicDiff: Training-free Structural Pruning for Diffusion Model Acceleration Reflecting Pretraining Dynamicscited by 9
- 2025LeMiCa: Lexicographic Minimax Path Caching for Efficient Diffusion-Based Video Generationcited by 9
- 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attentioncited by 9
- 2026SVG-EAR: Parameter-Free Linear Compensation for Sparse Video Generation via Error-aware Routingcited by 9
- 2025Provable Failure of Language Models in Learning Majority Boolean Logic via Gradient Descentcited by 8
- 2025HiCache: A Plug-in Scaled-Hermite Upgrade for Taylor-Style Cache-then-Forecast Diffusion Accelerationcited by 8
- 2025RainFusion: Adaptive Video Generation Acceleration via Multi-Dimensional Visual Redundancycited by 7
50 most cited of 138 All 138 (JSON)
- 2026CAST: Reconstruction-Coupled Acceleration of Interactive World Models28 Sep 2026
- 2026GeoShrink: Accelerating Diffusion Transformers with Two Lines of Code27 Sep 2026
- 2026ReAL: Accelerating Flow Matching through Segment Advancement with Shared Lookahead27 Sep 2026
- 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasing26 Sep 2026
- 2026Accelerating Diffusion Transformers with Gaussian Process Rectified Feature Cache5 Sep 2026
- 2026Spectral-Guided Diffusion: Accelerating Inference via Static Spectral Layer Scheduling24 Aug 2026
- 2026Beyond Attention Masks: Instruction Anchoring for Efficient In-Context Diffusion Generation21 Aug 2026
- 2026Tensor Field Models19 Aug 2026
- 2026BAG: Budget-Aware Gating for Diffusion Caching10 Aug 2026
- 2026OnlineCache: Learning Dynamic Caching Policies with Error Correction for Efficient Diffusion Inference31 Jul 2026
- 2026OmniCache: Multidimensional Hierarchical Feature Caching For Diffusion Models26 Jul 2026
- 2026Evolving Cache Schedules for Fast Diffusion Policy Inference22 Jul 2026
38 more
- 2026DiTango: Cost-Effective Parallel Diffusion Generation with Selective Attention State Reuse17 Jul 2026
- 2026ACID: Adaptive Caching for vIDeo generation14 Jul 2026
- 2026D2PO: Optimizing Diffusion Samplers via Dynamic Preference7 Jul 2026
- 2026OTCache: Optimal Transport for Geometry-Aware Caching in Diffusion Models30 Jun 2026
- 2026DiLaServe: High SLO Attainment Serving for Diffusion Language Models27 Jun 2026
- 2026Keep The Essentials: Efficient Reference Conditioned Generation via Token Dropping22 Jun 2026
- 2026HiLo-Token: Input-Adaptive High-Low Frequency Token Compression for Efficient Image Editing11 Jun 2026
- 2026Where to Refine, When to Stop: Rethinking Redundancy via Latent Discrepancy for Efficient Visual Autoregressive Generation29 May 2026
- 2026PARE: Pruning and Adaptive Routing for Efficient Video Generation26 May 2026
- 2026Trajectory-Consistent Calibration for Cache-Accelerated Diffusion Models24 May 2026
- 2026Rethinking Cross-Layer Information Routing in Diffusion Transformers20 May 2026
- 2026DealMaTe: Multi-Dimensional Material Transfer via Diffusion Transformer15 May 2026
- 2026Image Restoration via Diffusion Models with Dynamic Resolution14 May 2026
- 2026Test-time Sparsity for Extreme Fast Action Diffusion13 May 2026
- 2026ChunkFlow: Communication-Aware Chunked Prefetching for Layerwise Offloading in Distributed Diffusion Transformer Inference11 May 2026
- 2026Muninn: Your Trajectory Diffusion Model But Faster11 May 2026
- 2026Beyond Fixed Formulas: Data-Driven Linear Predictor for Efficient Diffusion Models29 Apr 2026
- 2026Accelerating Frequency Domain Diffusion Models with Error-Feedback Event-Driven Caching24 Apr 2026
- 2026Not All Frames Deserve Full Computation: Accelerating Autoregressive Video Generation via Selective Computation and Predictive Extrapolation3 Apr 2026
- 2026Memory-Efficient Fine-Tuning Diffusion Transformers via Dynamic Patch Sampling and Block Skipping21 Mar 2026
- 2026Timestep-Aware Block Masking for Efficient Diffusion Model Inference20 Mar 2026
- 2026SVG-EAR: Parameter-Free Linear Compensation for Sparse Video Generation via Error-aware Routing9 Mar 2026
- 2026HybridStitch: Pixel and Timestep Level Model Stitching for Diffusion Acceleration8 Mar 2026
- 2026SODA: Sensitivity-Oriented Dynamic Acceleration for Diffusion Transformer7 Mar 2026
- 2026WorldCache: Accelerating World Models for Free via Heterogeneous Token Caching6 Mar 2026
- 2026Frequency-Aware Error-Bounded Caching for Accelerating Diffusion Transformers5 Mar 2026
- 2026Diff-ES: Stage-wise Structural Diffusion Pruning via Evolutionary Search5 Mar 2026
- 2026Analyzing and Improving Fast Sampling of Text-to-Image Diffusion Models28 Feb 2026
- 2026Jano: Adaptive Diffusion Generation with Early-stage Convergence Awareness28 Feb 2026
- 2026SenCache: Accelerating Diffusion Model Inference via Sensitivity-Aware Caching27 Feb 2026
- 2026S2O: Early Stopping for Sparse Attention via Online Permutation26 Feb 2026
- 2026LESA: Learnable Stage-Aware Predictors for Diffusion Model Acceleration24 Feb 2026
- 2026Predict to Skip: Linear Multistep Feature Forecasting for Efficient Diffusion Transformers20 Feb 2026
- 2026DDiT: Dynamic Patch Scheduling for Efficient Diffusion Transformers19 Feb 2026
- 2026CHAI: CacHe Attention Inference for text2video18 Feb 2026
- 2026AdaCorrection: Adaptive Offset Cache Correction for Accurate Diffusion Transformers13 Feb 2026
- 2026Rethinking Multi-Condition DiTs: Eliminating Redundant Attention via Position-Alignment and Keyword-Scoping6 Feb 2026
- 2026FlowConsist: Make Your Flow Consistent with Real Trajectory6 Feb 2026
50 newest of 138 All 138 (JSON)
- 2024Timestep Embedding Tells: It's Time to Cache for Video Diffusion Modelcited by 245
- 2024SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Modelscited by 161
- 2024Accelerating Diffusion Transformers with Token-wise Feature Cachingcited by 143
- 2025dKV-Cache: The Cache for Diffusion Language Modelscited by 140
- 2025A Survey on Diffusion Language Modelscited by 75
- 2025OminiControl2: Efficient Conditioning for Diffusion Transformerscited by 56
- 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelismcited by 55
- 2024TinyFusion: Diffusion Transformers Learned Shallowcited by 44
- 2025MagCache: Fast Video Generation with Magnitude-Aware Cachecited by 36
- 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 35
- 2025Efficient Diffusion Models: A Surveycited by 35
- 2025DiCache: Let Diffusion Model Determine Its Own Cachecited by 34
12 most cited of 114 All 114 (JSON)
- 2026GeoShrink: Accelerating Diffusion Transformers with Two Lines of Code27 Sep 2026
- 2026ReAL: Accelerating Flow Matching through Segment Advancement with Shared Lookahead27 Sep 2026
- 2026Accelerating Diffusion Transformers with Gaussian Process Rectified Feature Cache5 Sep 2026
- 2026Spectral-Guided Diffusion: Accelerating Inference via Static Spectral Layer Scheduling24 Aug 2026
- 2026Beyond Attention Masks: Instruction Anchoring for Efficient In-Context Diffusion Generation21 Aug 2026
- 2026BAG: Budget-Aware Gating for Diffusion Caching10 Aug 2026
- 2026OnlineCache: Learning Dynamic Caching Policies with Error Correction for Efficient Diffusion Inference31 Jul 2026
- 2026OmniCache: Multidimensional Hierarchical Feature Caching For Diffusion Models26 Jul 2026
- 2026Evolving Cache Schedules for Fast Diffusion Policy Inference22 Jul 2026
- 2026DiTango: Cost-Effective Parallel Diffusion Generation with Selective Attention State Reuse17 Jul 2026
- 2026ACID: Adaptive Caching for vIDeo generation14 Jul 2026
- 2026D2PO: Optimizing Diffusion Samplers via Dynamic Preference7 Jul 2026
12 newest of 114 All 114 (JSON)
- 2024Real-Time Video Generation with Pyramid Attention Broadcastcited by 140
- 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generationcited by 84
- 2025EEdit: Rethinking the Spatial and Temporal Redundancy for Efficient Image Editingcited by 45
- 2025Follow-Your-Emoji-Faster: Towards Efficient, Fine-Controllable, and Expressive Freestyle Portrait Animationcited by 41
- 2025SkipVAR: Accelerating Visual Autoregressive Modeling via Adaptive Frequency-Aware Skippingcited by 11
- 2025How far can we go with ImageNet for Text-to-Image generation?cited by 10
- 2024DreamCache: Finetuning-Free Lightweight Personalized Image Generation via Feature Cachingcited by 6
- 2025FreeSwim: Revisiting Sliding-Window Attention Mechanisms for Training-Free Ultra-High-Resolution Video Generationcited by 6
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2025MatterDoor: Sampling Zero-shot Spatio-semantic Priors using Generative Modelscited by 1
- 2026S2O: Early Stopping for Sparse Attention via Online Permutationcited by 1
- 2025Which Layer Causes Distribution Deviation? Entropy-Guided Adaptive Pruning for Diffusion and Flow Modelscited by 0
12 most cited of 17 All 17 (JSON)
- 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasing26 Sep 2026
- 2026Tensor Field Models19 Aug 2026
- 2026Where to Refine, When to Stop: Rethinking Redundancy via Latent Discrepancy for Efficient Visual Autoregressive Generation29 May 2026
- 2026S2O: Early Stopping for Sparse Attention via Online Permutation26 Feb 2026
- 2026Rethinking Multi-Condition DiTs: Eliminating Redundant Attention via Position-Alignment and Keyword-Scoping6 Feb 2026
- 2026FlowConsist: Make Your Flow Consistent with Real Trajectory6 Feb 2026
- 2025Which Layer Causes Distribution Deviation? Entropy-Guided Adaptive Pruning for Diffusion and Flow Models26 Nov 2025
- 2025FreeSwim: Revisiting Sliding-Window Attention Mechanisms for Training-Free Ultra-High-Resolution Video Generation18 Nov 2025
- 2025MatterDoor: Sampling Zero-shot Spatio-semantic Priors using Generative Models13 Oct 2025
- 2025Follow-Your-Emoji-Faster: Towards Efficient, Fine-Controllable, and Expressive Freestyle Portrait Animation20 Sep 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generation11 Jun 2025
12 newest of 17 All 17 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026BeCARE: Budgeted Cache Refresh for Diffusion Transformer Acceleration
- 2024FORA: Fast-Forward Caching in Diffusion Transformer Acceleration
- 2026DiffSparse: Accelerating Diffusion Transformers with Learned Token Sparsity
- 2025Accelerating Diffusion Transformer via Error-Optimized Cache
- 2026Forecast the Principal, Stabilize the Residual: Subspace-Aware Feature Caching for Efficient Diffusion Transformers
- 2025CorGi: Contribution-Guided Block-Wise Interval Caching for Training-Free Acceleration of Diffusion Transformers
- 2024Delta-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers
- 2025Let Features Decide Their Own Solvers: Hybrid Feature Caching for Diffusion Transformers