Lune

NSDI2024Top-tier venue

Approximate Caching for Efficiently Serving Text-to-Image Diffusion Models

Shubham Agarwal, Subrata Mitra, Sarthak Chakraborty, Srikrishna Karanam, Koyel Mukherjee, Shiv Kumar Saini

Abstract

Text-to-image generation using diffusion models has seen explosive popularity owing to their ability in producing high quality images adhering to text prompts. However, diffusionmodels go through a large number of iterative denoising steps, and are resource-intensive, requiring expensive GPUs and incurring considerable latency. In this paper, we introduce a novel approximate-caching technique that can reduce such iterative denoising steps by reusing intermediate noise states created during a prior image generation. Based on this idea, we present an end-to-end text-to-image generation system, NIRVANA, that uses approximate-caching with a novel cache management policy to provide 21% GPU compute savings, 19.8% end-to-end latency reduction, and 19% dollar savings on two real production workloads. We further present an extensive characterization of real production text-to-image prompts from the perspective of caching, popularity and reuse of intermediate states in a large production environment.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Katz: Efficient Workflow Serving for Diffusion Models with Many Adapters cites LoRA: Low-Rank Adaptation of Large Language Models
  • Katz: Efficient Workflow Serving for Diffusion Models with Many Adapters cites Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching
  • Katz: Efficient Workflow Serving for Diffusion Models with Many Adapters cites Learning Transferable Visual Models From Natural Language Supervision
  • Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching cites Diffusion Models Beat GANs on Image Synthesis
  • Learning-to-Cache: Accelerating Diffusion Transformer via Layer Caching cites Denoising Diffusion Probabilistic Models
  • Communication-Efficient Diffusion Denoising Parallelization via Reuse-then-Predict Mechanism cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • ENAT: Rethinking Spatial-temporal Interactions in Token-based Image Synthesis cites Diffusion Models Beat GANs on Image Synthesis
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Learning-to-Cache: Accelerating Diffusion Transformer via Layer CachingXinyin Ma, Gongfan Fang, Michael Bi Mi, Xinchao WangNeurIPS 2024 · 167 citations
  2. Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented GenerationShubham Agarwal, Sai Sundaresan, Subrata Mitra, Debabrata Mahapatra et al.SIGMOD 2025 · 20 citations
  3. ENAT: Rethinking Spatial-temporal Interactions in Token-based Image SynthesisZanlin Ni, Yulin Wang, Renping Zhou, Yizeng Han et al.NeurIPS 2024 · 15 citations
  4. Katz: Efficient Workflow Serving for Diffusion Models with Many AdaptersSuyi Li, Lingyun Yang, Xiaoxiao Jiang, Hanfeng Lu et al.USENIX ATC 2025 · 14 citations
  5. Communication-Efficient Diffusion Denoising Parallelization via Reuse-then-Predict MechanismKunyun Wang, Bohan Li, Kai Yu, Minyi Guo et al.NeurIPS 2025 · 3 citations

Builds on28

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  5. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations

Related papers

  1. MoDM: Efficient Serving for Image Generation via Mixture-of-Diffusion ModelsYuchen Xia, Divyam Sharma, Yichao Yuan, Souvik Kundu et al.ASPLOS 2026
  2. Reusing Computation in Text-to-Image Diffusion for Efficient Generation of Image SetsDale Decatur, Thibault Groueix, Wang Yifan, Rana Hanocka et al.ICCV 2025
  3. SnapFusion: Text-to-Image Diffusion Model on Mobile Devices within Two SecondsYanyu Li, Huan Wang, Qing Jin, Ju Hu et al.NeurIPS 2023 · 300 citations
  4. Cache Me if You Can: Accelerating Diffusion Models through Block CachingFelix Wimbauer, Bichen Wu, Edgar Schönfeld, Xiaoliang Dai et al.CVPR 2024 · 25 citations
  5. Clockwork Diffusion: Efficient Generation With Model-Step DistillationAmirhossein Habibian, Amir Ghodrati, Noor Fathima, Guillaume Sautière et al.CVPR 2024
Dusk over the sea between two cliffs drawn in fine vertical lines