Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Improving Sample Quality of Diffusion Models Using Self-Attention Guidance

About

Denoising diffusion models (DDMs) have attracted attention for their exceptional generation quality and diversity. This success is largely attributed to the use of class- or text-conditional diffusion guidance methods, such as classifier and classifier-free guidance. In this paper, we present a more comprehensive perspective that goes beyond the traditional guidance methods. From this generalized perspective, we introduce novel condition- and training-free strategies to enhance the quality of generated images. As a simple solution, blur guidance improves the suitability of intermediate samples for their fine-scale information and structures, enabling diffusion models to generate higher quality samples with a moderate guidance scale. Improving upon this, Self-Attention Guidance (SAG) uses the intermediate self-attention maps of diffusion models to enhance their stability and efficacy. Specifically, SAG adversarially blurs only the regions that diffusion models attend to at each iteration and guides them accordingly. Our experimental results show that our SAG improves the performance of various diffusion models, including ADM, IDDPM, Stable Diffusion, and DiT. Moreover, combining SAG with conventional guidance methods leads to further improvement.

Susung Hong, Gyuseong Lee, Wooseok Jang, Seungryong Kim• 2022

Related benchmarks

TaskDatasetResultRank
Class-conditional Image GenerationImageNet 256x256 (val)
FID13.53
427
Class-conditional Image GenerationImageNet 512x512 (val)
FID (Val)18.58
97
Text-to-Image GenerationCOCO 2014 (val)
Precision49.6
34
Text-to-Image AlignmentMS-COCO
CLIP Score0.305
20
Paired Perceptual DeviationCOCO
LPIPS0.106
10
Paired Perceptual DeviationLAION
LPIPS0.121
10
Text-image alignmentLAION
CLIP Cosine Similarity0.308
10
Unconditional Image GenerationImageNet
FID64.29
10
Unconditional Image GenerationImageNet 512x512 (test)
FID46.55
5
Conditional Image GenerationMS-COCO 2017 (val)
FID43.76
5
Showing 10 of 15 rows

Other info

Follow for update