Fast Sampling Through The Reuse Of Attention Maps In Diffusion Models
Abstract Text-to-image diffusion models have demonstrated unprecedented capabilities for flexible and realistic image synthesis. Nevertheless, these models rely on a time-consuming sampling procedure, which has motivated attempts to reduce their latency. When improving efficiency, researchers often use the original diffusion model to train an additional network designed specifically for fast image generation. In contrast, our approach seeks to reduce latency directly, without any retraining, fine-tuning, or knowledge distillation. In particular, we find the repeated calculation of attention maps to be costly yet redundant, and instead suggest reusing them during sampling. Our specific reuse strategies are based on ODE theory, which implies that the later a map is reused, the smaller the distortion in the final image. We empirically compare our reuse strategies with few-step sampling procedures of comparable latency, finding that reuse generates images that are closer to those produced by the original high-latency diffusion model.
Authors
- Mohamed S. Abdelfattah (ORCID: https://orcid.org/0000-0002-4568-8932)
- Hongkai Wen (ORCID: https://orcid.org/0000-0003-1159-090X)
- Łukasz Dudziak (ORCID: https://orcid.org/0000-0003-4929-265X)
- Sourav Bhattacharya (ORCID: https://orcid.org/0000-0001-9670-5264)
- Rosco Hunter
- Abhinav Mehrotra (ORCID: https://orcid.org/0000-0001-6751-0302)
Institutions
- Cornell University (US)
- University of Warwick (GB)
- Samsung (United Kingdom) (GB)
Publication Details
- Journal
- International Journal of Computer Vision
- Published
- 2025-06-11
- DOI
- https://doi.org/10.1007/s11263-025-02463-x
- Citations
- 1
- Primary Topic
- Generative Adversarial Networks and Image Synthesis
- Type
- article
- Field-Weighted Citation Impact
- 1.28
Funders
- University of Warwick
- Samsung