M/Visual Library
  1. Visual Library
  2. Gen AI
  3. Negation and Quantifiers in Prompts

Gen AI

Negation and Quantifiers in Prompts

Why 'no people' brings people, 'a few birds' brings a flock and 'none' is ignored: how image models handle negation, quantity and scope, and what to write instead.

Also known as: negation in prompts, why 'no' doesn't work in AI prompts, negative prompts vs negation, quantifiers in prompts, counting in text-to-image

The word is still there

In language, 'a street with no cars' is clear: it describes an empty street. For a text-to-image model, the word 'cars' is still in the prompt, still linked to thousands of images of cars, and the small word 'no' carries far less weight. Research on vision-language models has repeatedly found that they handle negation poorly; a 2025 study titled simply 'Vision-Language Models Do Not Understand Negation' measured it across many models.

Quantifiers, words like few, several, many, most, all and none, are a related problem. They depend on counting and on scope, two things captions rarely make explicit. Knowing how these words fail lets you say absence and amount in ways a model can actually draw.

Negation

Mention summons

Naming something, even to exclude it, activates it: 'no clouds' can produce clouds.

Describe presence instead

Say what is there: 'a clear, cloudless sky' or better 'a flat, pale blue sky'.

Negative prompts

A separate negative field works differently from 'no' in the main prompt; use it for things that keep appearing.

Contrast words

'Instead of', 'rather than' and 'not X but Y' are often read as 'X and Y'.

Quantifiers

Vague amounts

'A few', 'several' and 'many' are interpreted loosely and vary between runs.

Exact numbers

Small numbers work better than large ones; above four or five, counts become unreliable.

All and every

'Every window is lit' often gives some lit windows; describe the effect instead: 'a building glowing from every floor'.

None and nothing

'Nothing on the table' invites objects; 'a bare, empty table' works better.

Scope and arrangement

Scope ambiguity

'Two women with hats' may give one hat or four; attach the quantity to each object.

Arrangements over counts

'A row of five lanterns' or 'a pair of shoes' gives structure that helps counting.

Groups as wholes

'A crowd', 'a flock', 'a stack' are easier than '43 people'.

Sequence and position

'The third house is red' rarely works; use left, middle and right, or a closer framing.

When it still fails

Change the frame

If a word keeps summoning something, choose a scene where it doesn't belong.

Edit after

Remove an unwanted object with inpainting instead of fighting it in the prompt.

Use layout tools

Boxes, sketches or regional prompts fix numbers and positions directly.

Stronger encoders

Models built on large language models handle negation and counting somewhat better; test across tools.

The words to describe it

Precise words for the qualities above. Combine a few of them instead of naming the style or artist alone.

  • negation
  • presence over absence
  • negative prompt field
  • quantifier
  • vague quantity
  • exact small number
  • scope ambiguity
  • arrangement over count
  • bare empty surface
  • mention activates the concept
A description to start from

Instead of 'a room with no furniture and not many windows': 'An empty room with bare white walls and a worn wooden floor, a single tall window on the left, soft daylight.'

How to put it into words

  • Describe what is there, not what is missing.
  • Attach every number to its object and keep numbers small.
  • Use the negative field only for things that keep appearing.

Where we usually get it wrong

Writing a list of exclusions in the main prompt, 'no people, no cars, no text, no clouds', fills it with exactly the words you don't want. Each 'no' is weak; each noun is strong. Describe the empty, quiet, clear scene you actually want.

Try this

Write 'a beach with no people and only a few birds'. Generate it three times. Then rewrite it as 'an empty beach at dawn, smooth untouched sand, three gulls standing at the water's edge'. Compare how well each version kept the absence and the number.

Sources and further reading

  • Alhamoud et al., 'Vision-Language Models Do Not Understand Negation' (CVPR 2025).
  • Paiss et al., 'Teaching CLIP to Count to Ten' (ICCV 2023).

Keep looking