ToDo: Token Downsampling for Efficient Generation of High-Resolution Images

Ethan Smith, Nayan Saxena, Aninda Saha
2/21/2024
cs.CVcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Attention mechanism has been crucial for image diffusion models, however, their quadratic computational complexity limits the sizes of images we can process within reasonable time and memory constraints. This paper investigates the importance of dense attention in generative image models, which often contain redundant features, making them suitable for sparser attention mechanisms. We propose a novel training-free method ToDo that relies on token downsampling of key and value tokens to accelerate Stable Diffusion inference by up to 2x for common sizes and up to 4.5x or more for high resolutions like 2048x2048. We demonstrate that our approach outperforms previous methods in balancing efficient throughput and fidelity.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{smith2024todo,
  title  = {ToDo: Token Downsampling for Efficient Generation of High-Resolution Images},
  author = {Ethan Smith and Nayan Saxena and Aninda Saha},
  year   = {2024},
  eprint = {2402.13573},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13573v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.13573.svg)](https://codeofpaper.com/paper/2402.13573)

Discussion