mlsanityData to 14 Oct 2026

Local Mechanisms of Compositional Generalization in Conditional Diffusion

arXiv 2509.16447 ↗First posted 19 Sep 2025cs.LGcited by 3

On the map: Diffusion models → Diffusion foundations and sampling

Abstract (arXiv)

Conditional diffusion models appear capable of compositional generalization, i.e., generating convincing samples for out-of-distribution combinations of conditioners, but the mechanisms underlying this ability remain unclear. To make this concrete, we study length generalization, the ability to generate images with more objects than seen during training. In a controlled CLEVR setting (Johnson et al., 2017), we find that length generalization is achievable in some cases but not others, suggesting that models only sometimes learn the underlying compositional structure. We then investigate locality as a structural mechanism for compositional generalization. Prior works proposed score locality as a mechanism for creativity in unconditional diffusion models (Kamb & Ganguli, 2024; Niedoba et al., 2024), but did not address flexible conditioning or compositional generalization. In this paper, we prove an exact equivalence between a specific compositional structure ("conditional projective composition") (Bradley et al., 2025) and scores with sparse dependencies on both pixels and conditioners ("local conditional scores"). This theory also extends to feature-space compositionality. We validate our theory empirically: CLEVR models that succeed at length generalization exhibit local conditional scores, while those that fail do not. Furthermore, we show that a causal intervention explicitly enforcing local conditional scores restores length generalization in a previously failing model. Finally, we investigate SDXL and find that in pixel-space, spatial locality is present but conditional-locality is mostly absent; however, we find quantitative evidence of local conditional scores in the network's learned feature-space.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 46 of its 56 references that are in the map. First posted on arXiv 19 Sep 2025.

Builds on

46 of 56 references.

Closest ancestors · 19

Same direction, newest first

  1. 2025Locality in Image Diffusion Models Emerges from Data Statistics11 Sep
  2. 2025How Compositional Generalization and Creativity Improve as Diffusion Models are Trained17 Feb
  3. 2025Mechanisms of Projective Composition of Diffusion Models6 Feb
  4. 2024Towards a Mechanistic Explanation of Diffusion Model Generalization28 Nov
  5. 2024Breaking the Curse of Dimensionality: Diffusion Models Efficiently Learn Low-Dimensional Distributions4 Sep
  6. 2024A Phase Transition in Diffusion Models Reveals the Hierarchical Nature of Data26 Feb
  7. 2023Analyzing and Improving the Training Dynamics of Diffusion Models5 Dec
  8. 2023Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task13 Oct
  9. 2023On Memorization in Diffusion Models4 Oct
  10. 2023Generalization in diffusion models arises from geometry-adaptive harmonic representations4 Oct
  11. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis4 Jul
  12. 2023Diffusion Models Generate Images Like Painters: an Analytical Theory of Outline First, Details Later4 Mar
7 more
  1. 2023Reduce, Reuse, Recycle: Compositional Generation with Energy-Based Diffusion Models and MCMC22 Feb
  2. 2022Classifier-Free Diffusion Guidance26 Jul
  3. 2022Elucidating the Design Space of Diffusion-Based Generative Models1 Jun
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
  5. 2021Diffusion Models Beat GANs on Image Synthesis11 May
  6. 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
  7. 2020Denoising Diffusion Probabilistic Models19 Jun

Other references · 27

  1. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
  2. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  3. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 6,013
  4. 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,101
  5. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  6. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  7. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
  8. 2022Editing Models with Task Arithmeticcited by 1,120
  9. 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 941
  10. 2023GLIGEN: Open-Set Grounded Text-to-Image Generationcited by 781
  11. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 702
  12. 2022Compositional Visual Generation with Composable Diffusion Modelscited by 624
15 more
  1. 2018Disentangling by Factorisingcited by 616
  2. 2017Understanding the Effective Receptive Field in Deep Convolutional Neural Networkscited by 553
  3. 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusioncited by 282
  4. 2023LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generationcited by 259
  5. 2023Composing Parameter-Efficient Modules with Arithmetic Operationscited by 156
  6. 2022A Length-Extrapolatable Transformercited by 127
  7. 2019Spatial Broadcast Decoder: A Simple Architecture for Learning Disentangled Representations in VAEscited by 117
  8. 2024An analytic theory of creativity in convolutional diffusion modelscited by 104
  9. 2024Be Yourself: Bounded Attention for Multi-Subject Text-to-Image Generationcited by 69
  10. 2023Freestyle Layout-to-Image Synthesiscited by 67
  11. 2023LayoutDiffuse: Adapting Foundational Diffusion Models for Layout-to-Image Generationcited by 65
  12. 2025On the Closed-Form of Flow Matching: Generalization Does Not Arise from Target Stochasticitycited by 50
  13. 2023Compositional Diffusion-Based Continuous Constraint Solverscited by 40
  14. 2024Emergence of Hidden Capabilities: Exploring Learning Dynamics in Concept Spacecited by 35
  15. 2024Rethinking The Training And Evaluation of Rich-Context Layout-to-Image Generationcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024How Diffusion Models Learn to Factorize and Compose
  2. 2026Test-Time Compositional Generalization in Diffusion Models via Concept Discovery
  3. 2026Catastrophic Compositional Generation: Why Vanilla Diffusion Models Fail to Extrapolate
  4. 2024Swing-by Dynamics in Concept Learning and Compositional Generalization
  5. 2025Principled Out-of-Distribution Generalization via Simplicity
  6. 2024Do Diffusion Models Learn Semantically Meaningful and Efficient Representations?
  7. 2023Exploring Compositional Visual Generation with Latent Classifier Guidance
  8. 2025Localized Diffusion Models