Topic 5 of 5 · 3 min read
Stereotyped defaults in generated people
Goal: Identify stereotyped defaults in a set of generated images and revise the prompt to describe the people on purpose.
When a prompt does not say who someone is, the model picks the most common look in its training data, and that look is often a stereotype. If you ask for "a doctor", "a CEO" or "a nurse" and say nothing else, the same kinds of faces, ages and genders come back again and again.
Check yourself · 1 of 3
Why does a prompt for "a nurse" often return people who look alike?
Why it matters
Image models learn from huge sets of pictures from the internet, and those pictures carry the habits and biases of the people who took and captioned them. Research on text-to-image systems has found that simple prompts for jobs and traits can produce strongly stereotyped groups of people, and that the output can be even more skewed than the real world. You may be making a slide, an advert or a class handout. A set of images where every leader is a man in a suit, every carer is a woman and every poor household is shown in one place sends a message you did not choose.
How to do it
- Notice the default. Generate a few images from your short prompt. Look at who appears: age, gender, skin tone, body type, ability, clothing, place. If they are all alike, you found the default.
- Decide who should be there. Think about your real audience, your real team, or the story. This is your choice, not the model's.
- Describe people on purpose. Add the details: "a Black woman in her fifties, a hospital director, in a grey suit". Or vary a group: "five colleagues of different ages and backgrounds, one using a wheelchair". Make the descriptions specific, because "diverse" alone often gives a token, same-looking result.
- Describe, don't caricature. Choose details that reflect a real person, not a symbol of a group.
- Check the result. Models may still drift. Look again at who appears and how they are shown: who is in front, who is serving, who is smiling.
Before and after
Before: A team of engineers working in an office.
Likely result: young men, similar clothes, a generic open-plan office.
After: Four engineers reviewing a screen in a bright office: a woman in her forties leading the discussion, a man in his sixties with grey hair, a young man in a wheelchair, and a woman wearing a headscarf. Documentary photo style, 3:2.
What goes wrong
- Overcorrecting into a token. One person from each category, posed for show, can look fake.
- Trusting "diverse" as a prompt word. It is vague. The model picks a stock version of it.
- Not checking. A prompt can say one thing while the model draws another.
- Using real groups or individuals as a shortcut. Do not depict real people or protected groups in a harmful way.
Examples
Seeing the default
Prompt: "a CEO giving a speech". Four generations show four men in dark suits aged around fifty. That is the model's default.
Revised: "a CEO in her late thirties giving a speech to a small team in a casual office, wearing a jacket and jeans." Now you chose the person.
Groups, not tokens
Before: A diverse group of students.
After: Five students around a lab bench: a boy with a prosthetic arm, two girls laughing at a screen, a tall boy taking notes and a girl in a hijab holding a beaker. Natural light, photo style.
Key points
- With no description, a model fills in people with the most common look in its training data.
- Research has found that simple prompts about jobs and traits can give strongly stereotyped images.
- Generate a few images from a short prompt to see what the default looks like.
- Describe the people you want in specific terms, such as age, role, clothing and ability.
- The word diverse alone is vague, so describe people concretely and check the result.
Common mistakes
- Accepting the first set of images without looking at who appears.
- Using the word diverse and expecting a thoughtful result.
- Giving each person one symbolic trait and nothing else.
- Describing only the leader and leaving the rest of the group to the default.
Check yourself · 2 of 3
Which prompt describes a group of people most deliberately?
Check yourself · 3 of 3
You generate four images for "a CEO" and all show men in dark suits. What is the best next step?
Practice items, not counted towards your mastery.
Start here
- Image generation guide (OpenAI) (opens in a new tab)DocsFree
OpenAI's guide to generating and editing images, including how follow-up edits work.
- Image generation with Gemini (Google) (opens in a new tab)DocsFree
Google's guide to text-to-image and conversational image editing with Gemini, with prompt tips.
- Introducing 4o image generation (OpenAI) (opens in a new tab)ArticleFree
OpenAI's announcement of chat-native image generation, with its stated limits.
More for this topic
- Easily Accessible Text-to-Image Generation Amplifies Demographic Stereotypes at Large Scale (Bianchi et al., 2022) (opens in a new tab)PaperFree
Peer-reviewed study showing simple prompts about jobs and traits can produce stereotyped images.