mlsanityData to 7 Oct 2026

Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidance

arXiv 2404.05384 ↗First posted 8 Apr 2024cs.CV cs.AIcited by 58

On the map: Diffusion models → Diffusion foundations and sampling

Abstract (arXiv)

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.

Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 50 of its 55 references that are in the map. First posted on arXiv 8 Apr 2024.

Builds on

50 of 55 references.

Closest ancestors · 12

Same direction, newest first

  1. 2023Consistency Models2 Mar
  2. 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models2 Nov
  3. 2022Classifier-Free Diffusion Guidance26 Jul
  4. 2022gDDIM: Generalized denoising diffusion implicit models11 Jun
  5. 2022DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps2 Jun
  6. 2022Elucidating the Design Space of Diffusion-Based Generative Models1 Jun
  7. 2022Fast Sampling of Diffusion Models with Exponential Integrator29 Apr
  8. 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
  9. 2021Cascaded Diffusion Models for High Fidelity Image Generation30 May
  10. 2021Diffusion Models Beat GANs on Image Synthesis11 May
  11. 2020Denoising Diffusion Implicit Models6 Oct
  12. 2020Denoising Diffusion Probabilistic Models19 Jun

Other references · 38

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  5. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  6. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  7. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  8. 2022Generative Adversarial Networkscited by 5,603
  9. 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  11. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  12. 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
26 more
  1. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
  2. 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
  3. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  4. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,419
  5. 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
  6. 2016Generative Adversarial Text to Image Synthesiscited by 735
  7. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
  8. 2017AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networkscited by 664
  9. 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulationcited by 640
  10. 2022Compositional Visual Generation with Composable Diffusion Modelscited by 619
  11. 2023Zero-shot Image-to-Image Translationcited by 503
  12. 2022Text2LIVE: Text-Driven Layered Image and Video Editingcited by 312
  13. 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
  14. 2023Composer: Creative and Controllable Image Synthesis with Composable Conditionscited by 303
  15. 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusioncited by 280
  16. 2023Text-to-image Diffusion Models in Generative AI: A Surveycited by 264
  17. 2023T2I-CompBench++: An Enhanced and Comprehensive Benchmark for Compositional Text-to-image Generationcited by 253
  18. 2021More Control for Free! Image Synthesis with Semantic Diffusion Guidancecited by 211
  19. 2023Compositional Text-to-Image Synthesis with Attention Map Control of Diffusion Modelscited by 82
  20. 2023Diffusion Model is Secretly a Training-free Open Vocabulary Semantic Segmentercited by 76
  21. 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editingcited by 76
  22. 2023Zero-shot spatial layout conditioning for text-to-image diffusion modelscited by 64
  23. 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulationcited by 61
  24. 2024AnimateLCM: Computation-Efficient Personalized Style Video Generation without Personalized Video Datacited by 42
  25. 2023LoCo: Locally Constrained Training-Free Layout-to-Image Synthesiscited by 21
  26. 2021Regularizing Variational Autoencoder with Diversity and Uncertainty Awarenesscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 26; 2026: 26.

58 papers.

Sort:

By area:

  1. 2024An analytic theory of creativity in convolutional diffusion modelscited by 103
  2. 2024DreamStory: Open-Domain Story Visualization by LLM-Guided Multi-Subject Consistent Diffusioncited by 46
  3. 2024Exploring the Role of Large Language Models in Prompt Encoding for Diffusion Modelscited by 45
  4. 2025Diffusion-NPO: Negative Preference Optimization for Better Preference Aligned Generation of Diffusion Modelscited by 21
  5. 2025AnyStory: Towards Unified Single and Multiple Subject Personalization in Text-to-Image Generationcited by 16
  6. 2025Feedback Guidance of Diffusion Modelscited by 16
  7. 2025ImAgent: A Unified Multimodal Agent Framework for Test-Time Scalable Image Generationcited by 14
  8. 2024Text Embedding is Not All You Need: Attention Control for Text-to-Image Semantic Alignment with Text Self-Attention Mapscited by 12
  9. 2025Learn to Guide Your Diffusion Modelcited by 12
  10. 2025Navigating with Annealing Guidance Scale in Diffusion Spacecited by 11
  11. 2025Adaptive Diffusion Guidance via Stochastic Optimal Controlcited by 9
  12. 2025LuciBot: Automated Robot Policy Learning from Generated Videoscited by 4
38 more
  1. 2026C2FG: Control Classifier-Free Guidance via Score Discrepancy Analysiscited by 4
  2. 2026DyWeight: Dynamic Gradient Weighting for Few-Step Diffusion Samplingcited by 4
  3. 2026AccelAes: Accelerating Diffusion Transformers for Training-Free Aesthetic-Enhanced Image Generationcited by 4
  4. 2025APT: Adaptive Personalized Training for Diffusion Models with Limited Datacited by 3
  5. 2025Asynchronous Denoising Diffusion Models for Aligning Text-to-Image Generationcited by 3
  6. 2026Emergence of Distortions in High-Dimensional Guided Diffusion Modelscited by 3
  7. 2026Delta Score Matters! Spatial Adaptive Multi Guidance in Diffusion Modelscited by 3
  8. 2026To Erase, or Not to Erase: Robust Training-Free Concept Erasure with Preservation aware Adaptive Ranked Subspace Expansioncited by 3
  9. 2024Pretrained Reversible Generation as Unsupervised Visual Representation Learningcited by 2
  10. 2025LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Text-Guided Image Editingcited by 2
  11. 2025Inverse Design of Metamaterials with Manufacturing-Guiding Spectrum-to-Structure Conditional Diffusion Modelcited by 2
  12. 2025SoftCFG: Uncertainty-guided Stable Guidance for Visual Autoregressive Modelcited by 2
  13. 2025Controllable Stylistic Text Generation with Train-Time Attribute-Regularized Diffusioncited by 2
  14. 2026Making Training-Free Diffusion Segmentors Scale with the Generative Powercited by 2
  15. 2024PersonaCraft: Personalized and Controllable Full-Body Multi-Human Scene Generation Using Occlusion-Aware 3D-Conditioned Diffusioncited by 1
  16. 2025RFMI: Estimating Mutual Information on Rectified Flow for Text-to-Image Alignmentcited by 1
  17. 2025Self-NPO: Data-Free Diffusion Model Enhancement via Truncated Diffusion Fine-Tuningcited by 1
  18. 2025Brownian Bridge Diffusion for Sequential Recommendationcited by 1
  19. 2025CrimEdit: Controllable Editing for Counterfactual Object Removal, Insertion, and Movementcited by 1
  20. 2026Seeing to Ground: Visual Attention for Hallucination-Resilient MDLLMscited by 1
  21. 2026Z2-Sampling: Zero-Cost Zigzag Trajectories for Semantic Alignment in Diffusion Modelscited by 1
  22. 2026SAFE-DiT: Semantics-Aware Fast-path Execution for High-Resolution Diffusion Transformerscited by 1
  23. 2026DiFA: Inference-Time Forward-Process Alignment for Diffusion Modelscited by 1
  24. 2026Beyond Trial-and-Error: Agentic Optimization for Image-to-Video Adherencecited by 1
  25. 2026Phrase-Localized Language-Contrastive Guidance: Training-Free Localized Accent Control for Code-Switching Text-to-Speechcited by 1
  26. 2025ControlFill: Spatially Adjustable Image Inpainting from Prompt Learningcited by 0
  27. 2025ISAC: Training-Free Instance-to-Semantic Attention Control for Multi-Instance Generationcited by 0
  28. 2025Undress to Redress: A Training-Free Framework for Virtual Try-Oncited by 0
  29. 2025Images Speak Louder Than Scores: Failure Mode Escape for Enhancing Generative Qualitycited by 0
  30. 2025Towards Spatially Consistent Image Generation: On Incorporating Intrinsic Scene Properties into Diffusion Modelscited by 0
  31. 2025Physics-Guided Null-Space Diffusion with Sparse Masking for Corrective Sparse-View CT Reconstructioncited by 0
  32. 2025QSilk: Micrograin Stabilization and Adaptive Quantile Clipping for Detail-Friendly Latent Diffusioncited by 0
  33. 2025EMAG: Self-Rectifying Diffusion Sampling with Exponential Moving Average Guidancecited by 0
  34. 2026Sparsely Supervised Diffusioncited by 0
  35. 2026Align-cDAE: Alzheimer's Disease Progression Modeling with Attention-Aligned Conditional Diffusion Auto-Encodercited by 0
  36. 2026Manifold-Optimal Guidance: A Unified Riemannian Control View of Diffusion Guidancecited by 0
  37. 2026Not all tokens contribute equally to diffusion learningcited by 0
  38. 2026Guidance for Low-Level Perceptual Editing in Unconditional Diffusion Modelscited by 0

50 most cited of 58 All 58 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Classifier-free Guidance with Adaptive Scaling
  2. 2025Dynamic Classifier-Free Diffusion Guidance via Online Feedback
  3. 2026Revisiting Classifier-Free Guidance Methods in Latent Diffusion Models
  4. 2023Adaptive Guidance: Training-free Acceleration of Conditional Diffusion Models
  5. 2024Segmentation-Free Guidance for Text-to-Image Diffusion Models
  6. 2024Classifier-Free Guidance is a Predictor-Corrector
  7. 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Models
  8. 2026Guiding Diffusion Models with Semantically Degraded Conditions