Where to Look Is Not How to Fix: Pre-Denoising Diagnostics and Modality-Dependent Control in Diffusion Composition
Organizations: Department of Computer Science, Tulane University, New Orleans, LA 70118
Abstract
Understanding compositional failures in text-to-image diffusion requires identifying both where stress is detectable and how intervention changes the output. We study these questions through a controlled anchor--stress protocol that jointly evaluates text-encoder diagnostics and denoiser interventions. We introduce a text-only Compositional Stress Index (CSI), which separates common from rare compositions across SD1.5, SDXL, and the SD3 text path and provides an upstream diagnostic coordinate. A matched six-prompt localization study links intervention location to distinct outcomes: residual-minimizing embedding adapters improve representation fit, while downstream cross-attention intervention increases color hit rate (CHR) by 0.0272. Across SD1.5 and SDXL denoiser blocks, the largest positive signed diagnostic-accessibility mean occurs at the deep encoder, whereas selective boost has its largest positive mean CHR response at decoder blocks. Selective subtraction and broad ablation reveal further modality- and architecture-dependent responses, including a substantial CHR decrease when SDXL decoder cross-attention is broadly ablated. We find a diagnosis-control dissociation under our controlled attribute-object composition setting: compositional defects are diagnosable before denoising, but the representation coordinate that exposes risk is not necessarily the coordinate or modality that improves generation.
Figures & tables
| Pipeline site | Diagnostic readout | Targeted edits | Broad ablation |
| Text encoder | Residual signal | Residual reduction | — |
| Deep encoder | Positive DA peak | Small CHR changes | Architecture-dependent |
| Decoder | Smaller signed DA | Peak mean boost CE | SDXL U0: decrease |
| Selective additive | Selective subtractive | Broad subtractive | ||
| Model | Block | (boost) | ( attr_zero ) | (zero) |
| SDXL | D2 | (ns) | (ns) | (ns) |
| U0 | ( ) | (ns) | ( ) | |
| SD1.5 | D2 | (ns) | (ns) | ( ) |
| U1 | ( ) | (ns) | (ns) |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Selective (token-level) | Broad (block/pool-wide) | |
| Embedding additive | Token adapter (MSE) | Pooled adapter |
| Denoiser additive | Boost (attr obj mask) | Untested (identity) |
| Denoiser subtractive | Attr_zero (attr obj mask) | Zero (uniform ) |
| Model | Condition | DA(D2) | FDR |
| SDXL | Boost baseline | ||
| SDXL | Zero baseline | ||
| SDXL | Attr_zero baseline | ||
| SD1.5 | Boost baseline | ||
| SD1.5 | Zero baseline | ||
| SD1.5 | Attr_zero baseline |
| Model | Comparison | CHR | Sig.? | |
| SDXL | Same-site (D2) vs baseline | No | ||
| Relocated (U0) vs baseline | Yes | |||
| Relocated vs same-site | Yes | |||
| SD1.5 | Same-site (D2) vs baseline | No | ||
| Relocated (U1) vs baseline | Yes | |||
| Relocated vs same-site | No |
| Block | SDXL CE | SDXL | SD1.5 CE | SD1.5 |
| D0 | – | – | 0.1854 | |
| D1 | 0.8826 | 0.0182 | ||
| D2 | 0.4093 | 0.4819 | ||
| M | 0.1242 | 0.2763 | ||
| U0 | 0.0168 | – | – | |
| U1 | 0.1788 | 0.0384 |
| Block | SDXL CE | SDXL FDR | SD1.5 CE | SD1.5 FDR |
| D0 | – | – | 0.0014 | |
| D1 | 0.8514 | 0.4669 | ||
| D2 | 0.8514 | 0.0602 | ||
| M | 0.8514 | 0.1225 | ||
| U0 | 0.8514 | – | – | |
| U1 | 0.8514 | 0.0970 |
| Block | SDXL CE | SDXL | SD1.5 CE | SD1.5 |
| D0 | – | – | 0.0002 | |
| D1 | 0.0132 | 0.0002 | ||
| D2 | 0.6619 | 0.0356 | ||
| M | 0.4395 | 0.3511 | ||
| U0 | 0.0002 | – | – | |
| U1 | 0.9126 | 0.4597 |
| Block | SDXL | SD1.5 |
| D0 | 0 | 4 |
| D1 | 4 | 4 |
| D2 | 20 | 4 |
| M | 10 | 2 |
| U0 | 30 | 0 |
| U1 | 6 | 6 |
| Phase | D2 DA | D2 CE (boost) | U0 CE (boost) |
| Early | |||
| Mid | |||
| Late |
| Model | Block | (per-prompt) | Power | for 80% power | |
| SDXL | U0 | ||||
| SD1.5 | U1 |
| Group | Anchor | Stress |
| B001 | a studio photo of a black cat | a studio photo of a glass cat |
| B005 | a studio photo of a yellow banana | a studio photo of a metallic banana |
| B028 | a studio photo of a green pear | a studio photo of a blue pear |
| B045 | a studio photo of a brown guitar | a studio photo of a gold guitar |
| D2 CE | U0 CE | |
| 0.00 | ||
| 0.25 | ||
| 0.50 | ||
| 0.75 | ||
| Reference: boost U0 ( ) | ||
| Reference: zeroing D2 (SD1.5, ) | ||
| Experiment | GPU-hours (approx.) |
| CSI pipeline (cross-model factorization, SD1.5+SDXL+SD3) | 24 |
| Embedding repair (pooled + token adapters, rank sweep) | 12 |
| Output-side BLIP scoring | 4 |
| Per-block boost sweep (432 5 seeds 2 models) | 43 |
| Per-block zeroing sweep (432 3 seeds 2 models) | 20 |
| Attr_zero full-scale (432 5 seeds 2 models) | 36 |
Compositional T2I Generation
Compositional text-to-image generation creates images that faithfully combine multiple objects, attributes, relationships, and styles specified in a prompt.
See all 99 papers