When a text-to-image model reads "a brown cat and a black dog," its text encoder processes words left to right, and each word's internal representation absorbs what came before it. This is called causal token pollution: the encoder uses a causal mask, meaning each token can only look backward, so the representation of "dog" already contains "cat," and "black" can drift onto the wrong animal. Prior work has shown this mechanism clearly and built training-free fixes for it. Almost all of that evidence, however, comes from short template prompts such as "a [animal] and a [animal]," while real users write long, comma-separated lists of style tags. We therefore do not know whether these fixes, or even the pollution itself, matter on the prompts people actually type.
This proposal starts from a simple observation. Real prompts in DiffusionDB are mostly an anchor phrase followed by modifier segments separated by commas. Shuffling those trailing segments leaves the request nearly unchanged in meaning, but under a backward-only encoder it changes every token's representation. Order sensitivity on real prompts is therefore a label-free, in-distribution probe of causal pollution. The same idea gives a fix: encode the prompt under several segment orderings and average each segment's representation across them. This removes directional accumulation without a syntactic parser and without cutting segments off from each other's context.
Core Claim
We claim three things. First, causal token pollution can be quantified on uncurated real prompts, with no ground-truth binding labels, by measuring how generated images and per-segment representations change under permutations of the exchangeable segments. Second, a permutation-averaged encoding reduces this sensitivity and improves human-judged attribute binding on real multi-entity prompts. It costs only a few extra text-encoder passes, which are tiny next to the diffusion steps. Third, and most important for the evaluation question, method rankings on templated benchmarks are a weak predictor of rankings on real prompts. We test this directly with a rank correlation, so the claim can fail.
The averaged representation for token $t$ of prompt $p$ is
$$\bar e_t(p) = \frac{1}{|\Pi|}\sum_{\pi \in \Pi} E(\pi(p))_{\pi(t)},$$
where $\Pi$ is a sampled set of orderings that keep the anchor segment first and permute the rest, $E(\cdot)_i$ is the encoder's output at position $i$, and $\pi(t)$ is where token $t$ lands after reordering. The averaged tokens are placed back in the original order. The end-of-sequence and padding positions are averaged the same way and never removed.
Grounding in Prior Work
Work that motivates the proposal. A Cat Is A Cat (Not A Dog!) shows that later object tokens absorb earlier ones, which raises embedding cosine similarity and makes cross-attention maps overlap. Its fix, TEBOpt, optimizes embeddings toward their isolated versions. The evidence comes from a 400-prompt template animal set, and the authors leave attribute binding to future work. Addressing Text Embedding Leakage and Token Merging identify the end-of-sequence token as a "sponge" that mixes everything in the prompt. Their evaluations are, respectively, 3,000 combinatorial edits and 50 GPT-4o template prompts. DiffusionDB supplies the real distribution: 1.8M unique prompts, a modifier-hierarchy structure, a spike at the 75-token limit, and full generation recipes. It does no mechanistic analysis. Our permutation probe exists to connect these two bodies of work.
Work that constrains the design. Padding Tone shows that in the transformer-based diffusion models SD3 and FLUX, padding tokens act as scratch space, and stripping them causes objects to merge. StructureDiffusion likewise reports fidelity loss when CLIP padding is removed. Both rule out fixes that delete padding, so we average padding rather than drop it. Get What You Want, Not What You Don't shows that padding carries a redundant summary of the whole prompt. If that summary stays order-dependent, it remains a leak path, so our method averages it too.
Work that supplies parts of the method. StructureDiffusion's idea of encoding each noun phrase separately and realigning it to the original positions is the closest relative. It cuts context entirely and depends on a constituency parser. We keep cross-segment context and split only on commas, which matches how real users write per DiffusionDB.
The data-property lens. Common Data Properties Limit Object-Attribute Binding in CLIP finds, on synthetic digits, that binding accuracy drops to 50–60% under realistic saliency bias and peaks around 3.5 attributes per object. This is a synthetic finding about small, from-scratch CLIP models. We test whether its attribute-density curve shows up as order sensitivity on real prompts in pretrained generative pipelines.
Research Program
Corpus. From DiffusionDB-2M we sample prompts that fit within 75 tokens, have at least three comma segments, and are in English. We set aside prompts at the truncation boundary, because there permutation changes which content survives, and analyze them separately. For each prompt we regenerate images with the original seed, guidance scale, sampler, and step count, which DiffusionDB records. Our baseline images are thus the users' own settings rather than our choices.
Probe. For each prompt and ordering we compute two kinds of change.
The first is in the text encoder. We separate a content effect from a position effect. For the content effect, we hold a segment at a fixed position and replace its predecessors with length-matched segments from other prompts. For the position effect, we keep the predecessors' content and move the segment.
The second is in the image. We measure feature dispersion across orderings at a fixed seed using two independent feature extractors, so the result does not hinge on one embedding. We also measure per-segment presence, read from VQA answers, as a function of the segment's position.
A backward-only encoder predicts a content effect that flows forward only. Running the same probe on the T5 branch of SD3 tests whether a bidirectional encoder removes the directional part of this effect. The Token Merging authors argue that bidirectional encoders still mix attributes.
Method. We implement permutation averaging for SD1.4 (CLIP only, matching TEBOpt's setting), SDXL (two CLIP encoders, matching ToMe), and SD3. For SD3 we average only the CLIP stream, keep the padding count fixed, and leave the T5 stream untouched. We sweep $|\Pi|$ from 2 to 16.
Real-prompt binding set. Template-free evaluation still needs some ground truth. We will select about 1,000 DiffusionDB prompts that name at least two entities with distinct bound attributes, and have human raters label bleed, swap, merge, and omission errors in the generated images. The automated judges (BLIP-VQA as in T2I-CompBench, OWL-ViT, GPT-4o-style scoring) are each scored for agreement with these human labels before we use them. This follows the warning in RSI for Science that unverified automatic checkers can turn evaluation into a sandbox.
Baselines
Do nothing. The naive reference is the unmodified pipeline with the user's recorded settings. It sets both the raw order sensitivity and the baseline binding error rate on real prompts.
TEBOpt. A Cat Is A Cat (Not A Dog!) optimizes text embeddings at inference time, pulling each object toward its isolated encoding and pushing objects apart. It is the strongest direct competitor because it acts at the same place we do, the text encoder output, and has similarly low overhead. Its authors report adding "typically ... one second" and a 125.42% information-balance improvement on SD1.4 on their animal set. We run it on SD1.4 with its published loss weights and give it the same wall-clock budget as our method at $|\Pi|=8$. Because it needs object spans, we supply them from our comma segmentation, so it is not handicapped by parsing.
ToMe. Token Merging merges attribute and object tokens and substitutes the end-of-sequence token. It is the strongest reported binding method on SDXL, scoring 0.95 versus 0.49 for SDXL on its 50-prompt GPT-4o benchmark. We run it with spaCy parsing exactly as published and log parse failures as an outcome rather than discarding those prompts.
SynGen. Linguistic Binding in Diffusion Models steers attention during denoising and is the strongest denoising-time method, with 94.76% Proper Binding on the A&E data and a cost of 9.7s versus 4.0s. We run it on SD1.4.
Reported numbers on real prompts. For all of these methods, we found no reported result on Lacuna for DiffusionDB prompts.
What counts as beating them. Permutation averaging beats a baseline if it achieves a lower human-rated binding error on the real set with overlapping-free 95% bootstrap intervals, at equal or lower latency, and without a worse T2I-CompBench attribute-binding score.
Ablations isolating the key ingredient. The key ingredient is removing direction while keeping context. Three ablations test it:
- Isolated encoding encodes each segment alone and realigns it, in the StructureDiffusion and ORE style. It removes direction but loses context.
- Dropout averaging averages over random segment deletions instead of reorderings, with the same number of passes. It tests whether the gain is just ensembling.
- Averaging without the special tokens leaves the end-of-sequence and padding tokens untouched, to measure how much leakage runs through the sponge tokens.
Why not just…?
Why not just switch to a bidirectional encoder like T5? SD3 and FLUX already use one alongside CLIP, so this is partly a measurement question, and our probe answers it. If SD3's T5 stream shows no directional content effect, and SD3 shows low image-level order sensitivity on real prompts, then the problem is legacy-specific. Our contribution would then narrow to the large installed base of CLIP-only models. Token Merging argues that bidirectional encoders still bleed attributes, but that claim was not tested on real prompts, so we treat this alternative as a live threat.
Why not just encode each segment in isolation? This is the StructureDiffusion and ORE idea, and it is the alternative most likely to match us. It already appears as an ablation. Our expectation is that isolation hurts prompts where segments refer to each other, such as "red hair" needing "woman" to mean what the user intends. We expect it to help where they do not. If isolation matches permutation averaging on human-rated binding, we will report that the simpler method suffices and that the useful contribution is the real-prompt probe.
Why not just evaluate existing methods on DiffusionDB with a VQA judge and skip the new method? That is the obvious benchmark study, and part of our program does it. The catch is that real prompts have no binding labels, and detector- or VQA-based judges were built for template prompts. The ALE authors note that these judges fail on non-rigid and unsegmented scenes. Without our human-labeled set and the agreement check against human labels, such a study would trade one unverified sandbox for another.
Why not accept that order sensitivity is a feature, since users may put important words first? This is a fair objection. Some positional emphasis may be wanted. Our content-versus-position decomposition addresses it. Emphasis should appear as a position effect on a segment's own fidelity. Pollution appears as a content effect: one segment's attributes showing up on a different entity. We claim harm only for the second, and the human labels distinguish "weaker" from "on the wrong object."
Proposed Experiments and Decisive Checks
Synthetic versus real rankings. The first decisive check is the rank correlation of the six systems (do nothing, TEBOpt, ToMe, SynGen, isolation, permutation averaging) between T2I-CompBench attribute binding and human-rated binding on the real set. A high correlation would weaken our synthetic-reliance thesis, and we would report it as such.
Is the probe meaningful? The second check is whether per-prompt order sensitivity in the unmodified CLIP pipelines predicts human-labeled binding errors on the same prompts. If it does not, the label-free probe has no value, and the proposal reduces to a method paper.
Does the data-property finding transfer? The third check asks whether order sensitivity, plotted against attributes per entity on real prompts, shows the inverted-U shape that Common Data Properties Limit Object-Attribute Binding in CLIP found in synthetic CLIP training. We will also test whether the first-mentioned entity dominates, as saliency bias would predict. We will report either outcome.
Does the fix leave padding intact? The fourth check applies to SD3. We test whether averaging the CLIP stream while preserving padding avoids the object-merging failures that Padding Tone attributes to disturbing padding, using the human merge label.
Fidelity. Throughout, we report image fidelity with FID on MSCOCO captions so that binding gains are not bought with quality loss.
References
- A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization
- Addressing Text Embedding Leakage in Diffusion-based Image Editing
- Token Merging for Training-Free Semantic Binding in Text-to-Image Synthesis
- DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Models
- Padding Tone: A Mechanistic Analysis of Padding Tokens in T2I Models
- Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis
- Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models
- Common Data Properties Limit Object-Attribute Binding in CLIP
- T2I-CompBench: A Comprehensive Benchmark for Open-world Compositional Text-to-image Generation
- RSI for Science: A Verifier-First Framework for AI Scientists
- Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment