Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ahn, Donghoon, Cho, Hyoungwon, Min, Jaewon, Jang, Wooseok, Kim, Jungwoo, Kim, SeonHwa, Park, Hyun Hee, Jin, Kyong Hwan, Kim, Seungryong
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911040011239424
author Ahn, Donghoon
Cho, Hyoungwon
Min, Jaewon
Jang, Wooseok
Kim, Jungwoo
Kim, SeonHwa
Park, Hyun Hee
Jin, Kyong Hwan
Kim, Seungryong
author_facet Ahn, Donghoon
Cho, Hyoungwon
Min, Jaewon
Jang, Wooseok
Kim, Jungwoo
Kim, SeonHwa
Park, Hyun Hee
Jin, Kyong Hwan
Kim, Seungryong
contents Recent studies have demonstrated that diffusion models are capable of generating high-quality samples, but their quality heavily depends on sampling guidance techniques, such as classifier guidance (CG) and classifier-free guidance (CFG). These techniques are often not applicable in unconditional generation or in various downstream tasks such as image restoration. In this paper, we propose a novel sampling guidance, called Perturbed-Attention Guidance (PAG), which improves diffusion sample quality across both unconditional and conditional settings, achieving this without requiring additional training or the integration of external modules. PAG is designed to progressively enhance the structure of samples throughout the denoising process. It involves generating intermediate samples with degraded structure by substituting selected self-attention maps in diffusion U-Net with an identity matrix, by considering the self-attention mechanisms' ability to capture structural information, and guiding the denoising process away from these degraded samples. In both ADM and Stable Diffusion, PAG surprisingly improves sample quality in conditional and even unconditional scenarios. Moreover, PAG significantly improves the baseline performance in various downstream tasks where existing guidances such as CG or CFG cannot be fully utilized, including ControlNet with empty prompts and image restoration such as inpainting and deblurring.
format Preprint
id arxiv_https___arxiv_org_abs_2403_17377
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance
Ahn, Donghoon
Cho, Hyoungwon
Min, Jaewon
Jang, Wooseok
Kim, Jungwoo
Kim, SeonHwa
Park, Hyun Hee
Jin, Kyong Hwan
Kim, Seungryong
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Recent studies have demonstrated that diffusion models are capable of generating high-quality samples, but their quality heavily depends on sampling guidance techniques, such as classifier guidance (CG) and classifier-free guidance (CFG). These techniques are often not applicable in unconditional generation or in various downstream tasks such as image restoration. In this paper, we propose a novel sampling guidance, called Perturbed-Attention Guidance (PAG), which improves diffusion sample quality across both unconditional and conditional settings, achieving this without requiring additional training or the integration of external modules. PAG is designed to progressively enhance the structure of samples throughout the denoising process. It involves generating intermediate samples with degraded structure by substituting selected self-attention maps in diffusion U-Net with an identity matrix, by considering the self-attention mechanisms' ability to capture structural information, and guiding the denoising process away from these degraded samples. In both ADM and Stable Diffusion, PAG surprisingly improves sample quality in conditional and even unconditional scenarios. Moreover, PAG significantly improves the baseline performance in various downstream tasks where existing guidances such as CG or CFG cannot be fully utilized, including ControlNet with empty prompts and image restoration such as inpainting and deblurring.
title Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2403.17377