{"course":{"slug":"ai-actually-explained","title":"AI, Actually Explained","url":"https://addaly.com/learn/ai-actually-explained","level":"beginner","track":"start"},"lesson":{"slug":"how-the-prompt-reaches-the-picture","title":"How words steer the picture","url":"https://addaly.com/learn/ai-actually-explained/how-the-prompt-reaches-the-picture","position":54,"of":92,"minutes":9,"answer":"Text encoders turn prompts into representations that guide image generation. Their handling of word order, relationships and negation varies; negative prompts and stronger text encoders can help.","keyIdea":"Text encoders turn prompts into representations that guide image generation. Their handling of word order, relationships and negation varies; negative prompts and stronger text encoders can help, but the image must still be checked against the instruction."},"body":{"format":"markdown","text":"## Two models, not one\n\nIn the text-conditioned diffusion design described here, a text encoder turns prompt tokens into numerical representations. The denoising network uses those representations during sampling. This is one common component arrangement; the encoder, conditioning method and number of components depend on the model. A chatbot-style interface does not identify the internal design.\n\nPrompt following depends on the text representation, the image model, its training and the sampling or editing controls. The encoder matters, but a wrong result alone does not isolate it as the cause.\n\n## The reader that learned from captions\n\nCLIP, published in 2021, learned image-text representations from four hundred million paired examples. Its contrastive objective trained matching images and texts to score more highly than mismatched pairs. CLIP encoders were used in influential image-generation systems, but they were not the only possible text readers.\n\nMatching captions to pictures does not guarantee reliable handling of word order, relationships or negation. Winoground and NegBench test these weaknesses in image-text models such as CLIP. \"A dog chasing a cat\" and \"a cat chasing a dog\" contain the same nouns but describe different events; check whether the generated image preserves that difference. These are measured weaknesses in particular systems, not proof that their encoders contain no grammar or letters.\n\n## Three consequences you will meet immediately\n\n**Compare lists and sentences.** A short list can be useful for naming a subject, medium and light. A sentence can express relationships that a list leaves ambiguous. Try both when appropriate and inspect the result; there is no rule that every text encoder discards sentence structure or that lists always work as well or better.\n\n**Check exclusions such as \"no elephants\".** Image-text benchmarks have found difficulties with negation and relationships, but a particular wrong picture does not establish one exclusive internal cause. Some diffusion interfaces offer a negative prompt. In classifier-free guidance, conditional and baseline denoising predictions are combined to strengthen conditioning; a negative prompt may supply that baseline. The useful scale depends on the model and sampler. Stronger guidance can trade diversity or quality for prompt adherence, and it does not guarantee every requested exclusion.\n\n**Test spatial relationships.** A red cube on a blue sphere specifies more than a set of colours and objects. Check which object is on top and whether the relationship is correct. Some systems miss these constraints more often than others; a mistake is not proof that their representations contain no left, right, above or below.\n\n## What improved it\n\nDifferent systems have improved prompt following in different ways. Google's 2022 Imagen used a frozen text-pretrained T5 encoder; Stable Diffusion 3 and Flux releases in 2024 also used stronger text-conditioning designs. Research on DALL-E 3 showed benefits from detailed generated training captions. These are specific engineering choices, not proof that all earlier encoders lacked grammar or that later readers switched from whole words to individual characters.\n\nBetter image-text alignment is a measured capability. Test it with the instruction you care about: a red cube on a blue sphere, or five objects arranged with two upside down. A successful example does not establish perfect sentence understanding, and a failed example does not establish that understanding is wholly absent.\n\n## What this means in practice\n\nWrite the intended visible result clearly. Name the subject, medium and important relationships; check the actual tool's guidance on exclusions and editing. If a result misses the instruction, revise a controlled part of the prompt or use a supported mask or positioning control, then compare the output. A list is one option, not a cure for every failure, and a wrong image does not reveal that the encoder flattened the sentence."},"check":{"question":"A generated image contains people despite the instruction \"a beach with no people\". What can you safely conclude?","options":[{"text":"The model is trained to make images look lively, so it adds people to empty scenes.","correct":false,"tempting":"One output does not establish that the model was trained to prefer lively scenes."},{"text":"The output did not reliably follow the exclusion; check this tool’s handling of negation and relationships rather than assuming it understood the instruction.","correct":true},{"text":"The model misread the prompt because nearly every beach in its training data contained people, so it could not draw an empty one.","correct":false,"tempting":"This output does not establish the composition of the training data or prove that an empty beach is impossible."},{"text":"The prompt was too short for the model to understand the request.","correct":false,"tempting":"Prompt length alone does not identify why the exclusion was missed or guarantee that a longer prompt will fix it."}]},"prev":{"slug":"a-picture-from-noise","title":"A picture, out of noise","url":"https://addaly.com/learn/ai-actually-explained/a-picture-from-noise"},"next":{"slug":"why-the-hands-were-wrong","title":"Why the hands were wrong","url":"https://addaly.com/learn/ai-actually-explained/why-the-hands-were-wrong"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'How words steer the picture', in AI, Actually Explained. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-actually-explained/how-the-prompt-reaches-the-picture (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"How words steer the picture","courseTitle":"AI, Actually Explained","module":{"index":6,"slug":"beyond-text","title":"Beyond text: pictures, voices and video"},"answer":null,"keyIdea":"Text encoders turn prompts into representations that guide image generation. Their handling of word order, relationships and negation varies; negative prompts and stronger text encoders can help, but the image must still be checked against the instruction.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"two-models-not-one","runs":[{"text":"Two models, not one"}]},{"t":"p","runs":[{"text":"In the text-conditioned diffusion design described here, a text encoder turns prompt tokens into numerical representations. The denoising network uses those representations during sampling. This is one common component arrangement; the encoder, conditioning method and number of components depend on the model. A chatbot-style interface does not identify the internal design."}]},{"t":"p","runs":[{"text":"Prompt following depends on the text representation, the image model, its training and the sampling or editing controls. The encoder matters, but a wrong result alone does not isolate it as the cause."}]},{"t":"h2","id":"the-reader-that-learned-from-captions","runs":[{"text":"The reader that learned from captions"}]},{"t":"p","runs":[{"text":"CLIP, published in 2021, learned image-text representations from four hundred million paired examples. Its contrastive objective trained matching images and texts to score more highly than mismatched pairs. CLIP encoders were used in influential image-generation systems, but they were not the only possible text readers."}]},{"t":"p","runs":[{"text":"Matching captions to pictures does not guarantee reliable handling of word order, relationships or negation. Winoground and NegBench test these weaknesses in image-text models such as CLIP. “A dog chasing a cat” and “a cat chasing a dog” contain the same nouns but describe different events; check whether the generated image preserves that difference. These are measured weaknesses in particular systems, not proof that their encoders contain no grammar or letters."}]},{"t":"h2","id":"three-consequences-you-will-meet-immediately","runs":[{"text":"Three consequences you will meet immediately"}]},{"t":"p","runs":[{"text":"Compare lists and sentences.","b":true},{"text":" A short list can be useful for naming a subject, medium and light. A sentence can express relationships that a list leaves ambiguous. Try both when appropriate and inspect the result; there is no rule that every text encoder discards sentence structure or that lists always work as well or better."}]},{"t":"p","runs":[{"text":"Check exclusions such as “no elephants”.","b":true},{"text":" Image-text benchmarks have found difficulties with negation and relationships, but a particular wrong picture does not establish one exclusive internal cause. Some diffusion interfaces offer a negative prompt. In classifier-free guidance, conditional and baseline denoising predictions are combined to strengthen conditioning; a negative prompt may supply that baseline. The useful scale depends on the model and sampler. Stronger guidance can trade diversity or quality for prompt adherence, and it does not guarantee every requested exclusion."}]},{"t":"p","runs":[{"text":"Test spatial relationships.","b":true},{"text":" A red cube on a blue sphere specifies more than a set of colours and objects. Check which object is on top and whether the relationship is correct. Some systems miss these constraints more often than others; a mistake is not proof that their representations contain no left, right, above or below."}]},{"t":"h2","id":"what-improved-it","runs":[{"text":"What improved it"}]},{"t":"p","runs":[{"text":"Different systems have improved prompt following in different ways. Google’s 2022 Imagen used a frozen text-pretrained T5 encoder; Stable Diffusion 3 and Flux releases in 2024 also used stronger text-conditioning designs. Research on DALL-E 3 showed benefits from detailed generated training captions. These are specific engineering choices, not proof that all earlier encoders lacked grammar or that later readers switched from whole words to individual characters."}]},{"t":"p","runs":[{"text":"Better image-text alignment is a measured capability. Test it with the instruction you care about: a red cube on a blue sphere, or five objects arranged with two upside down. A successful example does not establish perfect sentence understanding, and a failed example does not establish that understanding is wholly absent."}]},{"t":"h2","id":"what-this-means-in-practice","runs":[{"text":"What this means in practice"}]},{"t":"p","runs":[{"text":"Write the intended visible result clearly. Name the subject, medium and important relationships; check the actual tool’s guidance on exclusions and editing. If a result misses the instruction, revise a controlled part of the prompt or use a supported mask or positioning control, then compare the output. A list is one option, not a cure for every failure, and a wrong image does not reveal that the encoder flattened the sentence."}]}],"check":{"question":[{"text":"A generated image contains people despite the instruction “a beach with no people”. What can you safely conclude?"}],"options":[{"text":[{"text":"The model is trained to make images look lively, so it adds people to empty scenes."}],"correct":false,"tempting":[{"text":"One output does not establish that the model was trained to prefer lively scenes."}]},{"text":[{"text":"The output did not reliably follow the exclusion; check this tool’s handling of negation and relationships rather than assuming it understood the instruction."}],"correct":true,"tempting":null},{"text":[{"text":"The model misread the prompt because nearly every beach in its training data contained people, so it could not draw an empty one."}],"correct":false,"tempting":[{"text":"This output does not establish the composition of the training data or prove that an empty beach is impossible."}]},{"text":[{"text":"The prompt was too short for the model to understand the request."}],"correct":false,"tempting":[{"text":"Prompt length alone does not identify why the exclusion was missed or guarantee that a longer prompt will fix it."}]}],"order":[3,1,0,2],"why":null},"prev":{"slug":"a-picture-from-noise","title":"A picture, out of noise","minutes":9},"next":{"slug":"why-the-hands-were-wrong","title":"Why the hands were wrong","minutes":8}}}