TL;DR
Text-to-image diffusion models often ignore unusual or counterfactual prompt instructions (e.g., "a square Earth") because they default to deeply ingrained visual priors. This paper shows that text encoders discard fine-grained concept information in their final layers, and proposes Intermediate Text Representation (IR)-guided diffusion—a training-free method that injects intermediate text encoder states into early denoising steps to successfully recover suppressed concepts.
What Problem Does This Paper Address?
When you ask a state-of-the-art text-to-image (T2I) model like Stable Diffusion 3.0 to generate an image of a "yellow Earth," it often fails, stubbornly rendering our familiar blue-green marble instead. This issue is known as concept association bias: the model binds certain visual attributes so tightly to a concept during training that explicit textual overrides are suppressed.
This bias becomes exceptionally acute for what the authors term one-and-only (OAO) entities—objects that exist in a single canonical form, such as the Earth, the Eiffel Tower, or the Mona Lisa.
Through an information-theoretic lens, the authors discover why this happens: as a text prompt passes through the deep layers of a text encoder, word-level distinctiveness is compressed into abstract, sentence-level semantics. By the final layer, the explicit "counterfactual" attributes (like yellow or square) are effectively discarded, leaving the denoising network to rely entirely on its rigid visual priors.
Methods
To solve this without expensive retraining or prompt-specific optimization, the authors introduce Intermediate Text Representation (IR)-guided diffusion.
The core approach relies on two key components:
-
Additive IR Injection: Instead of conditioning the diffusion model solely on the final text embedding ($c_f$), the method extracts richer, word-level representations from an early intermediate layer ($c_h$) and injects them into the conditioning signal: $$\tilde{c} = c_f + \lambda c_h$$ where $\lambda$ is a scaling factor.
-
Adaptive Scheduling: Diffusion models naturally establish global image structure in early denoising steps and refine fine-grained details later. Injecting intermediate representations throughout the entire process can introduce unwanted artifacts. To counter this, the authors design an Adaptive Scheduler that monitors structural changes in the estimated clean image using Tweedie's formula. IR-guidance is dynamically applied only during the early "structure formation" phase and safely turned off once the layout stabilizes.
Datasets
The authors evaluate their method across four distinct benchmarks:
- OAO-AttackBench (New): A benchmark introduced in this paper consisting of 504 counterfactual prompts designed to directly challenge the core visual identity of OAO objects across three categories: celestial objects, landmarks, and artworks (e.g., "Octagon-shaped Earth", "Knitted Mona Lisa").
- Whoops: A dataset of "weird" prompts that violate everyday commonsense and physical rules.
- Gecko (Gecko(R) and Gecko(S)): A large-scale, general-purpose compositional text-to-image benchmark used to test whether the method generalizes well to standard prompts without degrading overall quality.
Key Insights and Ideas
- The Data Processing Inequality (DPI) at Work: By modeling the text encoder as a Markov chain ($Y \rightarrow c_h \rightarrow c_f$), the authors prove mathematically that the intermediate hidden states ($c_h$) carry greater or equal mutual information about the prompt than the final embedding ($c_f$).
- Delaying Structural Convergence: The step-wise analysis reveals that standard diffusion models converge on a global layout almost immediately. IR-guidance effectively delays this premature structural convergence, widening the window for the model to explore and materialize unusual or counterfactual layouts during early denoising steps.
- Layer Normalization Preserves Semantics: Simply adding intermediate states directly causes a distributional mismatch. Applying the text encoder's final layer normalization to $c_h$ before injection aligns the distributions while preserving critical word-level distinctiveness.
Key Results
- Substantial Alignment Gains: On OAO-AttackBench, IR-guided diffusion achieved up to a 19.1 percentage-point improvement in VQAScore (a metric highly sensitive to fine-grained attribute presence) over the baseline Stable Diffusion 3.0.
- Maintained Image Fidelity: Evaluation using Kernel Inception Distance (KID) confirmed that the method preserves distributional fidelity, meaning it fixes text alignment without introducing visual artifacts or degrading image quality.
- Human Preference: Images generated via IR-guidance scored consistently higher on human preference metrics (HPSv2 and HPSv2.1) across both OAO-AttackBench and Whoops.
- Negligible Overhead: Because it requires no optimization loops or external models, the method adds almost zero computational cost—increasing generation time on an A100 GPU from 4.80 seconds to just 5.07 seconds for SD3.0.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Unwanted Context Leaks: Because the intermediate representations amplify the target attribute globally, they can occasionally bleed into the background (e.g., making the sky look like "clay" when the prompt specifies "Big Ben made of clay").
- Anatomical Limitations: The method is bound by the architectural limits of its backbone diffusion model; it cannot fix deep-seated structural issues like the poor rendering of complex human anatomy.
Future research directions include combining IR-guidance with localized attention-masking techniques to restrict attribute overrides strictly to the target objects.
Summary updated