2026-08-06
Why AI Mixes Up Colors and Clothing

AI image models swap colors and clothing between subjects because they do not firmly attach a property to a single object; you prevent it by naming each attribute right next to its subject and making the subjects clearly different from each other. Ask for "a woman in a red coat next to a man in a grey sweater" and the man sometimes gets the red coat, or the colors blend into something in between. This is not a coincidence but a well-known weakness of text-to-image models. Below you will read why it happens and how to prevent it in your prompt.
What is attribute swapping?
Attribute swapping (known in the literature as attribute binding) is when a property, such as a color, fabric, or item of clothing, ends up on the wrong subject or leaks across several subjects. You name two things with their own color each, and the model mixes them up.
Research describes this as a structural failure mode. The paper Attend-and-Excite (Chefer et al., SIGGRAPH 2023) identifies two recurring errors in text-to-image models: catastrophic neglect, where a named subject disappears entirely, and incorrect attribute binding, where an attribute is attached to the wrong subject. Their example: the color "yellow", meant for one object, lands on the bench next to it.
Why does the model mix up colors?
The core lies in how the model links language to imagery. With a single subject and a single color it usually goes fine. As soon as several colored objects appear in one prompt, the representations start to bleed into each other and a property leaks from one subject to another.
Compositional benchmarks show this is a measurable, recurring problem. T2I-CompBench, a benchmark for compositional prompts, counts color binding, shape binding, and texture binding as separate categories that models are tested on, precisely because correctly attaching color, shape, and texture to the right object goes wrong so often.
Swapping becomes more likely when:
- you name several subjects that strongly resemble each other (two people, two coats, two cars);
- you put many competing colors in one prompt;
- you name the colors away from their object, for example at the end of the sentence.
How to bind an attribute to the right subject
The fix lies mostly in how you structure your prompt. Place each property as close as possible to the subject it belongs to, and do not let the subjects look alike.
- Put the attribute right next to the noun. Write "a woman in a red coat next to a man in a grey sweater", not "a woman and a man, red and grey". The model binds words that sit next to each other more strongly.
- Make the subjects visually different. Differences in age, hair, pose, and position (left and right) help the model keep them apart. The more two subjects resemble each other, the faster their properties leak.
- Limit the number of competing attributes. Two clearly described objects work better than five. If you need many colored elements, build the image up in steps rather than cramming everything into one prompt.
- Repeat the binding if it keeps going wrong. Name the pair a second time: "the red coat ... her coat is red". A repeated link is harder for the model to ignore.
- Use short, separated clauses per subject. A clear split between "subject A does X" and "subject B does Y" keeps the descriptions from running into each other.
Then test small. Generate one image first, check that each color sits on the right subject, and adjust your prompt before you produce a whole series. To structure how you build your prompt, the prompt generator helps keep subject, clothing, and scene neatly separated.
Fix a swap without starting over
If the error slips in anyway, you do not have to regenerate the whole thing every time. Often you can resolve a single swap more precisely.
- Regenerate with a small variation. Swap the order of the subjects or use a different seed. Sometimes one fresh render is all it takes.
- Repair only the wrong part with inpainting. In the photo editor, select just the garment with the wrong color and describe the correct color. The rest of the image stays untouched, so you keep the details that already worked.
- Generate your base image in the photo generator and, with multiple subjects, keep the prompt short and separated per person.
That way you only pay for the renders you actually need, instead of running the whole image ten times over.
Frequently asked questions
What is attribute swapping in AI images?
It is when a property such as a color or item of clothing ends up on the wrong subject, or when the colors of two subjects run together. Research calls this incorrect attribute binding.
Why does a color leak from one subject to another?
With several colored objects in one prompt, the internal representations become entangled, so a property from one object carries over to the other. With a single subject and a single color, this rarely happens.
How do I stop two people from getting each other's clothing?
Name each outfit right next to the person ("a man in a blue suit, a woman in a green dress") and make the people visually different in age, hair, and position. The less they resemble each other, the more stable the binding.
Can I still correct a wrong color afterwards?
Yes. With inpainting you select only the wrongly colored part and describe the correct color, without regenerating the rest of the image.
Attribute swapping is not a bug you have to accept, but a matter of how you build your prompt. Bind each property to its subject, keep the subjects different, and test small. Create an account and try it on your next image.