Skip to main content
QUICK REVIEW

[Paper Review] Improving Sample Quality of Diffusion Models Using Self-Attention Guidance

Susung Hong, Gyuseong Lee|arXiv (Cornell University)|Oct 3, 2022
Image and Signal Denoising MethodsComputer Science9 citations
TL;DR

This paper introduces Self-Attention Guidance (SAG), a condition- and training-free method that improves sample quality in diffusion models by leveraging intermediate self-attention maps. By adversarially blurring only the attended regions during denoising, SAG enhances stability and fidelity, achieving state-of-the-art FID scores across multiple models including Stable Diffusion and DiT when combined with classifier-free guidance.

ABSTRACT

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.

Motivation & Objective

  • To improve the sample quality of diffusion models beyond existing classifier or classifier-free guidance methods.
  • To develop a condition-free and training-free strategy that enhances generation fidelity using internal model attention mechanisms.
  • To stabilize the denoising process by focusing on regions the model attends to during sampling.
  • To achieve consistent performance gains across diverse diffusion architectures such as ADM, IDDPM, Stable Diffusion, and DiT.
  • To enable synergistic improvements when combined with conventional guidance techniques.

Proposed method

  • SAG uses intermediate self-attention maps from the diffusion model's transformer layers to identify regions of high attention during each denoising step.
  • It applies an adversarial blurring operation exclusively to these attended regions to suppress noise and enhance structural consistency.
  • The blurring is differentiable and integrated into the denoising process without requiring additional training or external conditions.
  • The method operates in a latent space, preserving high-resolution details while improving feature coherence.
  • SAG is compatible with existing classifier-free guidance, allowing for combined use to further boost performance.
  • The approach is architecture-agnostic and applicable to various diffusion models, including those based on U-Net and ViT.

Experimental results

Research questions

  • RQ1Can self-attention maps be leveraged to improve sample quality in diffusion models without additional training or conditions?
  • RQ2How does targeting only attended regions during denoising affect image fidelity and structural consistency?
  • RQ3To what extent can SAG enhance performance across diverse diffusion architectures like Stable Diffusion and DiT?
  • RQ4Does combining SAG with classifier-free guidance yield synergistic improvements in FID and visual quality?
  • RQ5Can a simple, differentiable blurring mechanism on attention maps stabilize the denoising process and reduce mode collapse?

Key findings

  • SAG achieves state-of-the-art FID scores on CIFAR-10 and ImageNet-64 benchmarks, outperforming existing condition-free methods.
  • On ImageNet-64, SAG improves FID by 1.8 points compared to baseline when combined with classifier-free guidance.
  • The method improves sample quality across multiple architectures, including ADM, IDDPM, Stable Diffusion, and DiT, with consistent gains.
  • SAG enhances visual quality without requiring additional inference time computation or model fine-tuning.
  • The ablation study confirms that attention-guided blurring is more effective than uniform or random blurring.
  • Combining SAG with classifier-free guidance leads to a 2.1 FID point improvement over baseline on LSUN-Church.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.