mlsanityData to 7 Oct 2026

Circuit Mechanisms for Spatial Relation Generation in Diffusion Transformers

arXiv 2601.06338 ↗First posted 9 Jan 2026cs.AI cs.CV cs.LGcited by 3

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Diffusion Transformers (DiTs) have greatly advanced text-to-image generation, but models still struggle to generate the correct spatial relations between objects as specified in the text prompt. In this study, we adopt a mechanistic interpretability approach to investigate how a DiT can generate correct spatial relations between objects. We train, from scratch, DiTs of different sizes with different text encoders to learn to generate images containing two objects whose attributes and spatial relations are specified in the text prompt. We find that, although all the models can learn this task to near-perfect accuracy, the underlying mechanisms differ drastically depending on the choice of text encoder. When using random text embeddings, we find that the spatial-relation information is passed to image tokens through a two-stage circuit, involving two cross-attention heads that separately read the spatial relation and single-object attributes in the text prompt. When using a pretrained text encoder (T5), we find that the DiT uses a different circuit that leverages information fusion in the text tokens, reading spatial-relation and single-object information together from a single text token. We further show that, although the in-domain performance is similar for the two settings, their robustness to out-of-domain perturbations differs, potentially suggesting the difficulty of generating correct relations in real-world scenarios.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 25 of its 33 references that are in the map. First posted on arXiv 9 Jan 2026.

Builds on

25 of 33 references.

Closest ancestors · 7

Same direction, newest first

  1. 2024CoMPaSS: Enhancing Spatial Understanding in Text-to-Image Diffusion Models17 Dec
  2. 2024Progressive Compositionality in Text-to-Image Generative Models22 Oct
  3. 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing6 Mar
  4. 2023GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignment17 Oct
  5. 2023Grounded Text-to-Image Synthesis with Attention Refocusing8 Jun
  6. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  7. 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attention10 Oct

Other references · 18

  1. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  5. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  6. 2022Classifier-Free Diffusion Guidancecited by 5,717
  7. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  8. 2022Video Diffusion Modelscited by 2,280
  9. 2022DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Modelscited by 924
  10. 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 854
  11. 2023Analyzing and Improving the Training Dynamics of Diffusion Modelscited by 396
  12. 2024SANA: Efficient High-Resolution Image Synthesis with Linear Diffusion Transformerscited by 331
6 more
  1. 2023T2I-CompBench++: An Enhanced and Comprehensive Benchmark for Compositional Text-to-image Generationcited by 253
  2. 2023Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Taskcited by 91
  3. 2022Testing Relational Understanding in Text-Guided Image Generationcited by 59
  4. 2024Emergence of Hidden Capabilities: Exploring Learning Dynamics in Concept Spacecited by 33
  5. 2024Getting it Right: Improving Spatial Consistency in Text-to-Image Modelscited by 30
  6. 2025Into the Rabbit Hull: From Task-Relevant Concepts in DINO to Minkowski Geometrycited by 26

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Training-free Regional Prompting for Diffusion Transformers
  2. 2026Few Channels Draw The Whole Picture: Revealing Massive Activations in Diffusion Transformers
  3. 2025Spatial Transport Optimization by Repositioning Attention Map for Training-Free Text-to-Image Synthesis
  4. 2026DifFRACT: Diffusion Feature Reconstruction and Attribution for Circuit Tracing
  5. 2024In-Context LoRA for Diffusion Transformers
  6. 2024Improving Explicit Spatial Relationships in Text-to-Image Generation through an Automatically Derived Dataset
  7. 2024Latent Space Disentanglement in Diffusion Transformers Enables Precise Zero-shot Semantic Editing
  8. 2023Unlocking Spatial Comprehension in Text-to-Image Diffusion Models