Where to Look Is Not How to Fix: Pre-Denoising Diagnostics and Modality-Dependent Control in Diffusion Composition

Fangzheng Wu, Brian SummaNeurIPS 2026

TL;DR

When a text-to-image model fails to paint a "blue pizza," it’s tempting to assume the layer where the glitch is easiest to spot is also the best place to fix it. By tracing how compositional errors flow from text encoders into image denoisers, the authors uncover a fundamental dissociation: where you diagnose an error is not how—or where—you fix it. Understanding this mismatch saves us from intervening in the wrong layers and points toward much sharper, surgical control of generative models.

What Problem Does This Paper Address?

Modern diffusion models like Stable Diffusion can render photorealistic masterpieces, yet remain weirdly brittle on rare combinations. Ask for a "red car," and you get one. Ask for a "blue pizza" or a "glass cat," and the model often fumbles the color or texture.

Researchers usually tackle this in one of two places: upstream in the text encoder (fixing how words are represented) or downstream in the denoiser (steering the cross-attention layers that bind words to pixels, often blasting corrections across all layers at once). Implicit in both camps is a tidy assumption: the spot in the pipeline where a compositional failure is most detectable is also where it is most correctable. Wu and Summa put this assumption to the test, mapping out exactly where compositional stress shows up versus where interventions actually work.

Methods

The authors trace prompts across two classic UNet models (SD1.5, SDXL) and the text pathway of a newer transformer-based pipeline (SD3), separating diagnostics from interventions:

  • Upstream Diagnostic — Compositional Stress Index (CSI): A novel, pre-denoising test. If a text encoder truly understands composition, the embedding for "a studio photo of a blue pizza" should be roughly reconstructable from its parts ("blue," "pizza," and context). When a rare prompt triggers strange, non-linear interactions, reconstruction leaves a large "non-factorization residual." CSI measures this gap before a single pixel is denoised.
  • Downstream Diagnostic — Diagnostic Accessibility (DA): Inside the UNet denoiser (split into encoder, middle, and decoder blocks), DA measures how clearly a block's cross-attention separates normal prompts from weird ones by tracking how tightly attribute tokens bind to object regions.
  • Targeted Interventions: Upstream, they train low-rank adapters to nudge weird text embeddings to look mathematically well-behaved. Downstream, they test three cross-attention edits block-by-block: selective boost (amplifying the color word), selective zeroing (muting the color word), and broad ablation (flattening all text conditioning in that block). Success is measured via Color Hit Rate (CHR)—the fraction of object pixels matching the target color.
Figure 2: Cross-model CSI decile curves. Probability of stress membership increases monotonically with CSI decile; SD1.5, SDXL, and SD3 collapse to the same transition pattern. ROC-AUC=1.0 in all three models.

Datasets

The authors construct a controlled "anchor–stress" protocol consisting of 432 prompts organized into 216 matched pairs. Each pair holds the object and context identical while swapping a common attribute ("anchor," like red pizza) for a rare one ("stress," like blue pizza). Vocabulary is drawn from established compositional benchmarks: T2I-CompBench, CLEVR, and ARO. For image-level color scoring, a subset of 52 chromatic stress prompts is evaluated.

Key Insights and Ideas

  • Risk is visible before generation begins: You don't need to run the expensive image denoiser to know a prompt is in trouble; text encoders already tangle up rare combinations, producing a massive spike in CSI.
  • Fixing the math doesn't fix the picture: Training an adapter to clean up the text encoder's representation residual makes the embeddings look nicely factorized, yet yields zero (or even negative) improvement in the generated image. The diagnostic coordinate is not the causal control knob.
  • Inside the denoiser, the "sensor" and the "steering wheel" live in different blocks: Deep encoder blocks (specifically D2) are the best sensors—they show the clearest diagnostic gap between normal and weird prompts. Yet boosting attention at D2 does nothing. Instead, decoder blocks (U0/U1) are the steering wheel: they faithfully execute whatever flawed instructions arrive from upstream, making them the most responsive site when you selectively boost the right attribute token.
Figure 3: DA (blue) and CE under boost (green) across cross-attention block groups. The plotted DA and CE profiles are historical; updated phase1 means place the largest positive DA at D2 and boost CE at U0/U1. The largest positive signed DA mean occurs at D2. The retained plot uses historical runs and intervals; phase1 prompt-level CE results are reported in Table 6.

Key Results

  • Perfect Upstream Separation: Across SD1.5, SDXL, and SD3, text-only CSI separates common anchors from rare stress prompts with ROC-AUC = 1.0, and strongly predicts downstream attribute failures (ROC-AUC = 0.89 against BLIP-VQA labels).
  • Upstream vs. Downstream Repair: On a matched six-prompt localization test, low-rank adapters successfully shrank representation residuals ($\Delta_{\text{repr}} = -0.100$ to $-0.184$), but token-level embedding repair hurt color accuracy ($\text{CHR} = -0.0680$). Meanwhile, downstream cross-attention intervention boosted CHR by $+0.0272$.
  • Block-Level Dissociation: Diagnostic accessibility peaks at the deep encoder D2 ($\text{DA} = +0.0039$ in SDXL; $+0.0282$ in SD1.5), where selective boosting has no detectable effect. Relocating that boost to the decoder yields the largest positive mean CHR gains ($+0.0061$ in SDXL U0; $+0.0084$ in SD1.5 U1). Conversely, broadly ablating cross-attention at SDXL's decoder U0 causes a massive collapse in color accuracy ($-0.1338$).

Limitations and Future Work

The authors are admirably candid about statistical boundaries:

  • Modest Effect Sizes: Per-block selective boost gains in CHR are small ($+0.006$ to $+0.008$) and, while nominally significant against baseline, do not survive strict false-discovery-rate (FDR) correction across all blocks.
  • Scope: Image control experiments focus purely on color binding (52 prompts) and UNet architectures; Diffusion Transformers (DiTs) like SD3 were only tested on the text-diagnostic side, and relational/multi-object compositions remain untested.
  • Future Directions: Extending this site–modality map to DiT backbones, testing upstream adapters trained with denoiser-aligned objectives (like WiCLP), and testing a direct prediction of their work: restricting popular all-layer steering methods (like Attend-and-Excite) to decoder-only layers to save compute without losing quality.

Summary updated

Abstract

Text-to-image diffusion models fail on semantically rare attribute--object compositions, but it is unclear whether this brittleness arises during denoising or is already present in conditioning representations. We study this question at three levels of granularity. First, using a controlled stress protocol across SD1.5, SDXL, and SD3, we show that a Compositional Stress Index derived from text-side non-factorization residuals separates anchor from stress prompts with perfect discrimination (AUC${=}1.0$) cross-model, establishing a robust pre-denoising risk axis. Second, embedding-level low-rank repair reduces representation residuals without any positive semantic improvement, while a downstream cross-attention intervention succeeds on the same subset---a site-sensitive boundary between diagnosis and control. Third, we decompose this boundary at block-group resolution under three intervention modalities. Diagnostic accessibility peaks at the deep encoder (D2) across all conditions, but token-level intervention of either sign produces no measurable improvement at any block. Only broad cross-attention ablation moves semantics at D2, while decoder blocks respond to selective boost and collapse under ablation. Together, these results establish that compositional defects are diagnosable before denoising, but \textbf{where to look is not how to fix}: the diagnostic site and the control site require different intervention modalities, and even at the correct site, the wrong modality is futile.
BibTeX
@inproceedings{wu2026where,
  author = {FANGZHENG WU and Brian Summa},
  title = {{Where to Look Is Not How to Fix: Pre-Denoising Diagnostics and Modality-Dependent Control in Diffusion Composition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=E9pAceKeYu},
}
Figure