paper-with-me

Papers

Circuit Mechanisms for Spatial Relation Generation in Diffusion Transformers

2026-01-09 · Binxu Wang, Jingxuan Fan, Xu Pan 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.

📄 PDF Abstract BibTeX arXiv:2601.06338

Code (0)

등록된 구현이 없습니다.

Tasks

Text-to-Image Generation

Similar Papers 제목 키워드 기반

CausalGeD: Blending Causality and Diffusion for Spatial Gene Expression Generation

2025-02-11 · Rabeya Tus Sadia, Md Atik Ahamed, Qiang Cheng

The integration of single-cell RNA sequencing (scRNA-seq) and spatial transcriptomics (ST) data is crucial for understanding gene expression in spatial context. Existing methods for such integration have limited performa…

AttributeImage Generation

SmartSpatial: Enhancing the 3D Spatial Arrangement Capabilities of Stable Diffusion Models and Introducing a Novel 3D Spatial Evaluation Framework

2025-01-01 · Mao Xun Huang, Hen-Hsen Huang

Stable Diffusion models have made remarkable strides in generating photorealistic images from text prompts but often falter when tasked with accurately representing complex spatial arrangements, particularly involving in…

Dependency ParsingImage Generation

DifFRACT: Diffusion Feature Reconstruction and Attribution for Circuit Tracing

2026-06-14 · Artyom Mazur, Nina Konovalova, Aibek Alanov arxiv

Mechanistic interpretability seeks to explain neural network behavior by decomposing model computations into interpretable features and circuits. While transcoder-based circuit tracing has recently enabled detailed causa…

Image Generation

SSMG: Spatial-Semantic Map Guided Diffusion Model for Free-form Layout-to-Image Generation

2023-08-20 · Chengyou Jia, Minnan Luo, Zhuohang Dang, Guang Dai 외

Despite significant progress in Text-to-Image (T2I) generative models, even lengthy and complex text descriptions still struggle to convey detailed controls. In contrast, Layout-to-Image (L2I) generation, aiming to gener…

DiversityFormImage GenerationLayout-to-Image Generation

DepthArb: Training-Free Depth-Arbitrated Generation for Occlusion-Robust Image Synthesis

2026-03-25 · Hongjin Niu, Jiahao Wang, Xirui Hu, Weizhan Zhang 외 arxiv

Text-to-image diffusion models frequently exhibit deficiencies in synthesizing accurate occlusion relationships of multiple objects, particularly within dense overlapping regions. Existing training-free layout-guided met…