Lune

CVPR2024Top-tier venue

Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance

Dazhong Shen, Guanglu Song, Zeyue Xue, Fu-Yun Wang, Yu Liu

Abstract

Classifier-Free Guidance (CFG) has been widely used in text-to-image diffusion models, where the CFG scale is introduced to control the strength of text guidance on the whole image space. However, we argue that a global CFG scale results in spatial inconsistency on varying semantic strengths and suboptimal image quality. To address this problem, we present a novel approach, Semantic-aware Classifier-Free Guidance (S-CFG), to customize the guidance degrees for different semantic units in text-to-image diffusion models. Specifically, we first design a training-free semantic segmentation method to partition the latent image into relatively independent semantic regions at each denoising step. In particular, the cross-attention map in the denoising U-net backbone is renormalized for assigning each patch to the corresponding token, while the self-attention map is used to complete the semantic regions. Then, to balance the amplification of diverse semantic units, we adaptively adjust the CFG scales across different semantic regions to rescale the text guidance degrees into a uniform level. Finally, extensive experiments demonstrate the superiority of S-CFG over the original CFG strategy on various text-to-image diffusion models, without requiring any extra training cost. our codes are available at https://github.com/SmilesDZgk/S-CFG.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

25 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • Learn to Guide Your Diffusion Model cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Learn to Guide Your Diffusion Model cites Learning Transferable Visual Models From Natural Language Supervision
  • Learn to Guide Your Diffusion Model cites Denoising Diffusion Probabilistic Models
  • Learn to Guide Your Diffusion Model cites Denoising Diffusion Implicit Models
  • Learn to Guide Your Diffusion Model cites Feedback Guidance of Diffusion Models
  • Learn to Guide Your Diffusion Model cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Phased Consistency Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Phased Consistency Models cites Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models
  • Phased Consistency Models cites CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching
  • Phased Consistency Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Phased Consistency Models cites Denoising Diffusion Implicit Models
  • Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models cites CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching
  • CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching cites Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models
  • Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Models cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching cites High-Resolution Image Synthesis with Latent Diffusion Models
  • CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching cites Learning Transferable Visual Models From Natural Language Supervision
  • CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching cites Denoising Diffusion Probabilistic Models
  • CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept Matching cites Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
  • Feedback Guidance of Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Feedback Guidance of Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Feedback Guidance of Diffusion Models cites Denoising Diffusion Implicit Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Learning Transferable Visual Models From Natural Language Supervision
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Probabilistic Models
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding cites Denoising Diffusion Implicit Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers25

  1. Phased Consistency ModelsFu-Yun Wang, Zhaoyang Huang, Alexander William Bergman, Dazhong Shen et al.NeurIPS 2024 · 86 citations
  2. CoMat: Aligning Text-to-Image Diffusion Model with Image-to-Text Concept MatchingDongzhi Jiang, Guanglu Song, Xiaoshi Wu, Renrui Zhang et al.NeurIPS 2024 · 75 citations
  3. Exploring the Role of Large Language Models in Prompt Encoding for Diffusion ModelsBingqi Ma, Zhuofan Zong, Guanglu Song, Hongsheng Li et al.NeurIPS 2024 · 57 citations
  4. Feedback Guidance of Diffusion ModelsFelix Koulischer, Florian Handke, Johannes Deleu, Thomas Demeester et al.NeurIPS 2025 · 16 citations
  5. Learn to Guide Your Diffusion ModelAlexandre Galashov, Ashwini Pokle, Arnaud Doucet, Arthur Gretton et al.ICLR 2026 · 12 citations

Builds on25

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li et al.NeurIPS 2022 · 8,965 citations

Related papers

  1. Steering Guidance for Personalized Text-to-Image Diffusion ModelsSunghyun Park, Seokeon Choi, Hyoungwoo Park, Sungrack YunICCV 2025 · 2 citations
  2. Guiding Diffusion Models with Semantically Degraded ConditionsShilong Han, Yuming Zhang, Hongxia WangCVPR 2026 · 1 citation
  3. Improving Classifier-Free Guidance in Masked Diffusion: Low-Dim Theoretical Insights with High-Dim ImpactKevin Rojas, Ye He, Chieh-Hsin Lai, Yuhta Takida et al.ICLR 2026 · 11 citations
  4. Guiding a Diffusion Model by Swapping Its TokensWeijia Zhang, Yuehao Liu, Shanyan Guan, Wu Ran et al.CVPR 2026 · 2 citations
  5. Stochastic Self-Guidance for Training-Free Enhancement of Diffusion ModelsChubin Chen, Jiashu Zhu, Xiaokun Feng, Nisha Huang et al.ICLR 2026 · 44 citations
Dusk over the sea between two cliffs drawn in fine vertical lines