mlsanityData to 7 Oct 2026

Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching

arXiv 2406.01733 ↗First posted 3 Jun 2024cs.LG cs.CVcited by 138

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

  1. 2024LD-Pruner: Efficient Pruning of Latent Diffusion Models using Task-Agnostic Insights18 Apr
  2. 2024LAPTOP-Diff: Layer Pruning and Normalized Distillation for Compressing Diffusion Models17 Apr
  3. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesis5 Mar
  4. 2024DistriFusion: Distributed Parallel Inference for High-Resolution Diffusion Models29 Feb
  5. 2024T-Stitch: Accelerating Sampling in Pre-Trained Diffusion Models with Trajectory Stitching21 Feb
  6. 2024SDXL-Lightning: Progressive Adversarial Diffusion Distillation21 Feb
  7. 2023Cache Me if You Can: Accelerating Diffusion Models through Block Caching6 Dec
  8. 2023DeepCache: Accelerating Diffusion Models for Free1 Dec
  9. 2023Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference6 Oct
  10. 2023Denoising Diffusion Step-aware Models5 Oct
  11. 2023Fast Training of Diffusion Models with Masked Transformers15 Jun
  12. 2023OMS-DPM: Optimizing the Model Schedule for Diffusion Probabilistic Models15 Jun
25 more
  1. 2023Parallel Sampling of Diffusion Models25 May
  2. 2023Structural Pruning for Diffusion Models18 May
  3. 2023PTQD: Accurate Post-Training Quantization for Diffusion Models18 May
  4. 2023MDTv2: Masked Diffusion Transformer is a Strong Image Synthesizer25 Mar
  5. 2023Consistency Models2 Mar
  6. 2023Q-Diffusion: Quantizing Diffusion Models8 Feb
  7. 2022Scalable Diffusion Models with Transformers19 Dec
  8. 2022Post-training Quantization on Diffusion Models28 Nov
  9. 2022Diffusion Probabilistic Model Made Slim27 Nov
  10. 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models2 Nov
  11. 2022All are Worth Words: A ViT Backbone for Diffusion Models25 Sep
  12. 2022Your ViT is Secretly a Hybrid Discriminative-Generative Diffusion Model16 Aug
  13. 2022gDDIM: Generalized denoising diffusion implicit models11 Jun
  14. 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps2 Jun
  15. 2022Elucidating the Design Space of Diffusion-Based Generative Models1 Jun
  16. 2022Fast Sampling of Diffusion Models with Exponential Integrator29 Apr
  17. 2022Pseudo Numerical Methods for Diffusion Models on Manifolds20 Feb
  18. 2022Analytic-DPM: an Analytic Estimate of the Optimal Reverse Variance in Diffusion Probabilistic Models17 Jan
  19. 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
  20. 2021Score-Based Generative Modeling with Critically-Damped Langevin Diffusion14 Dec
  21. 2021Gotta Go Fast When Generating Data with Score-Based Models28 May
  22. 2021Diffusion Models Beat GANs on Image Synthesis11 May
  23. 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
  24. 2020Denoising Diffusion Implicit Models6 Oct
  25. 2020Denoising Diffusion Probabilistic Models19 Jun

Other references · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  4. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
  5. 2016Improved Techniques for Training GANscited by 2,938
  6. 2019Improved Precision and Recall Metric for Assessing Generative Modelscited by 925
  7. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  8. 2021Generating Images with Sparse Representationscited by 262
  9. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
  10. 2023SnapFusion: Text-to-Image Diffusion Model on Mobile Devices within Two Secondscited by 227
  11. 2023DiT-3D: Exploring Plain Diffusion Transformers for 3D Shape Generationcited by 110
  12. 2023VDT: General-purpose Video Diffusion Transformers via Mask Modelingcited by 102
8 more
  1. 2023InfoBatch: Lossless Training Speed Up by Unbiased Dynamic Data Pruningcited by 90
  2. 2024Shortened LLaMA: Depth Pruning for Large Language Models with Comparison of Retraining Methodscited by 80
  3. 2023Large-Vocabulary 3D Diffusion Model with Transformercited by 48
  4. 2023ViT-TTS: Visual Text-to-Speech with Scalable Diffusion Transformercited by 24
  5. 2023Distribution Shift Inversion for Out-of-Distribution Predictioncited by 23
  6. 2023SlimSAM: 0.1% Data Makes Segment Anything Slimcited by 20
  7. 2024Hash3D: Training-free Acceleration for 3D Generationcited by 19
  8. 2023U-DiT TTS: U-Diffusion Vision Transformer for Text-to-Speechcited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 21; 2025: 60; 2026: 57.

138 papers.

Sort:

By area:

  1. 2024Timestep Embedding Tells: It's Time to Cache for Video Diffusion Modelcited by 245
  2. 2024SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Modelscited by 161
  3. 2024Accelerating Diffusion Transformers with Token-wise Feature Cachingcited by 143
  4. 2024Real-Time Video Generation with Pyramid Attention Broadcastcited by 140
  5. 2025dKV-Cache: The Cache for Diffusion Language Modelscited by 140
  6. 2025Autoregressive Adversarial Post-Training for Real-Time Interactive Video Generationcited by 84
  7. 2025A Survey on Diffusion Language Modelscited by 75
  8. 2025OminiControl2: Efficient Conditioning for Diffusion Transformerscited by 56
  9. 2025SP-VLA: A Joint Model Scheduling and Token Pruning Approach for VLA Model Accelerationcited by 56
  10. 2024xDiT: an Inference Engine for Diffusion Transformers (DiTs) with Massive Parallelismcited by 55
  11. 2025EEdit: Rethinking the Spatial and Temporal Redundancy for Efficient Image Editingcited by 45
  12. 2024TinyFusion: Diffusion Transformers Learned Shallowcited by 44
38 more
  1. 2025Follow-Your-Emoji-Faster: Towards Efficient, Fine-Controllable, and Expressive Freestyle Portrait Animationcited by 41
  2. 2025MagCache: Fast Video Generation with Magnitude-Aware Cachecited by 36
  3. 2024LazyDiT: Lazy Learning for the Acceleration of Diffusion Transformerscited by 35
  4. 2025Efficient Diffusion Models: A Surveycited by 35
  5. 2025FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruningcited by 34
  6. 2025DiCache: Let Diffusion Model Determine Its Own Cachecited by 34
  7. 2024Spatiotemporal Skip Guidance for Enhanced Video Diffusion Samplingcited by 33
  8. 2024Token Pruning for Caching Better: 9 Times Acceleration on Stable Diffusion for Freecited by 30
  9. 2024Token Caching for Diffusion Transformer Accelerationcited by 29
  10. 2026Transition Matching Distillation for Fast Video Generationcited by 27
  11. 2024Rethinking Token-wise Feature Caching: Accelerating Diffusion Transformers with Dual Feature Cachingcited by 26
  12. 2025Training-free Diffusion Acceleration with Bottleneck Samplingcited by 25
  13. 2025FastCache: Fast Caching for Diffusion Transformer Through Learnable Linear Approximationcited by 23
  14. 2024AsyncDiff: Parallelizing Diffusion Models by Asynchronous Denoisingcited by 22
  15. 2024Layer- and Timestep-Adaptive Differentiable Token Compression Ratios for Efficient Diffusion Transformerscited by 21
  16. 2025TREAD: Token Routing for Efficient Architecture-agnostic Diffusion Trainingcited by 21
  17. 2024SmoothCache: A Universal Inference Acceleration Technique for Diffusion Transformerscited by 19
  18. 2025FullDiT2: Efficient In-Context Conditioning for Video Diffusion Transformerscited by 17
  19. 2024HarmoniCa: Harmonizing Training and Inference for Better Feature Caching in Diffusion Transformer Accelerationcited by 16
  20. 2024Presto! Distilling Steps and Layers for Accelerating Music Generationcited by 16
  21. 2025CAT Pruning: Cluster-Aware Token Pruning For Text-to-Image Diffusion Modelscited by 16
  22. 2025OmniCache: A Trajectory-Oriented Global Perspective on Training-Free Cache Reuse for Diffusion Transformer Modelscited by 16
  23. 2025Accelerating Diffusion Transformer via Gradient-Optimized Cachecited by 15
  24. 2025FlexiDiT: Your Diffusion Transformer Can Easily Generate High-Quality Samples with Less Computecited by 12
  25. 2025Accelerating Diffusion Transformer via Increment-Calibrated Caching with Channel-Aware Singular Value Decompositioncited by 12
  26. 2025SkipVAR: Accelerating Visual Autoregressive Modeling via Adaptive Frequency-Aware Skippingcited by 11
  27. 2025How far can we go with ImageNet for Text-to-Image generation?cited by 10
  28. 2024Unveiling Redundancy in Diffusion Transformers (DiTs): A Systematic Studycited by 9
  29. 2024Learnable Sparsity for Vision Generative Modelscited by 9
  30. 2025Training-free Mixed-Resolution Latent Upsampling for Spatially Accelerated Diffusion Transformerscited by 9
  31. 2025SADA: Stability-guided Adaptive Diffusion Accelerationcited by 9
  32. 2025MosaicDiff: Training-free Structural Pruning for Diffusion Model Acceleration Reflecting Pretraining Dynamicscited by 9
  33. 2025LeMiCa: Lexicographic Minimax Path Caching for Efficient Diffusion-Based Video Generationcited by 9
  34. 2026Light Forcing: Accelerating Autoregressive Video Diffusion via Sparse Attentioncited by 9
  35. 2026SVG-EAR: Parameter-Free Linear Compensation for Sparse Video Generation via Error-aware Routingcited by 9
  36. 2025Provable Failure of Language Models in Learning Majority Boolean Logic via Gradient Descentcited by 8
  37. 2025HiCache: A Plug-in Scaled-Hermite Upgrade for Taylor-Style Cache-then-Forecast Diffusion Accelerationcited by 8
  38. 2025RainFusion: Adaptive Video Generation Acceleration via Multi-Dimensional Visual Redundancycited by 7

50 most cited of 138 All 138 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026BeCARE: Budgeted Cache Refresh for Diffusion Transformer Acceleration
  2. 2024FORA: Fast-Forward Caching in Diffusion Transformer Acceleration
  3. 2026DiffSparse: Accelerating Diffusion Transformers with Learned Token Sparsity
  4. 2025Accelerating Diffusion Transformer via Error-Optimized Cache
  5. 2026Forecast the Principal, Stabilize the Residual: Subspace-Aware Feature Caching for Efficient Diffusion Transformers
  6. 2025CorGi: Contribution-Guided Block-Wise Interval Caching for Training-Free Acceleration of Diffusion Transformers
  7. 2024Delta-DiT: A Training-Free Acceleration Method Tailored for Diffusion Transformers
  8. 2025Let Features Decide Their Own Solvers: Hybrid Feature Caching for Diffusion Transformers