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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Smith, Ethan, Saxena, Nayan, Saha, Aninda
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929337466355712
author Smith, Ethan
Saxena, Nayan
Saha, Aninda
author_facet Smith, Ethan
Saxena, Nayan
Saha, Aninda
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_13573
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ToDo: Token Downsampling for Efficient Generation of High-Resolution Images
Smith, Ethan
Saxena, Nayan
Saha, Aninda
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
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.
title ToDo: Token Downsampling for Efficient Generation of High-Resolution Images
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2402.13573