A word is the company it keeps
In the 1950s the linguists Zellig Harris and J. R. Firth proposed that words appearing in similar contexts have similar meanings. Firth's line, 'You shall know a word by the company it keeps', became the founding idea of distributional semantics, and the basis of almost every modern language model. Word2vec (2013) showed that such learned representations capture analogies; CLIP (2021) extended the idea to images and captions together.
For image-makers this explains a daily experience: words carry more than their dictionary meaning. 'Vintage' carries sepia, grain and 1970s furniture because those things kept appearing near it in captions. Every prompt word pulls its neighbourhood into the picture. Understanding that neighbourhood is the difference between a word that works and a word that drags clichés along.
The core idea
Words used in similar contexts have similar meanings; meaning is learned from patterns of use.
Each word or caption becomes a point in a high-dimensional space; nearby points mean similar things.
What appears together in text and images becomes linked: 'rustic' with wood, linen, bread.
Models like CLIP place images and captions in the same space, so words and looks become neighbours.
Why words carry baggage
'Cyberpunk' brings neon, rain, Japanese signage and leather jackets, whether you asked or not.
'Epic', 'stunning', 'masterpiece' sit near over-processed, high-contrast images, so they push that look.
Language data links professions, genders and places in skewed ways, and images inherit it.
Words with few examples have vague neighbourhoods and give unpredictable results.
Using neighbourhoods on purpose
Instead of naming a mood, name things from its neighbourhood: 'enamel mug, wool blanket, frost on glass' for a winter morning.
'Weathered' versus 'vintage', 'quiet' versus 'moody': small swaps change the whole neighbourhood.
Generate a bare word to see its neighbourhood before relying on it.
Mixing two far-apart clusters, 'baroque' and 'laundromat', produces fresh images.
Limits of the approach
Models know what goes together, not always why or how.
Common contexts dominate; specific or minority meanings get crowded out.
Neighbourhoods are richest in English and thinner in other languages.
Meanings shift over time; a model's neighbourhoods reflect the period of its data.
The words to describe it
Precise words for the qualities above. Combine a few of them instead of naming the style or artist alone.
- distributional hypothesis
- word embedding
- co-occurrence
- semantic neighbourhood
- joint image-text space
- word baggage
- association bias
- less loaded synonym
- neighbourhood evocation
- frequency effect
Instead of 'cosy aesthetic winter morning': 'A wool blanket on a windowsill, an enamel mug of tea, frost patterns on the glass, low pale sun across the floorboards.' The objects carry the cosiness without the clichés of the word.
How to put it into words
- Ask what usually appears near a word, not only what it means.
- Replace loaded words with concrete members of the neighbourhood you want.
- Test a single word before building a prompt around it.
Where we usually get it wrong
Treating words as neutral labels. 'Aesthetic', 'cinematic' or 'vintage' each pull a crowd of associations into the image. If results feel generic, the words are usually doing exactly what their neighbourhoods suggest.
Generate five single-word prompts: 'nostalgia', 'luxury', 'cosy', 'futuristic', 'ancient'. For each, list the five objects or qualities that appeared without being asked. That list is the word's neighbourhood.
Sources and further reading
- J. R. Firth, 'A Synopsis of Linguistic Theory, 1930–1955' (1957).
- Zellig Harris, 'Distributional Structure' (1954).
- Mikolov et al., 'Efficient Estimation of Word Representations in Vector Space' (2013).
- Radford et al., 'Learning Transferable Visual Models From Natural Language Supervision' (CLIP, 2021).
- Caliskan, Bryson and Narayanan, 'Semantics derived automatically from language corpora contain human-like biases' (Science, 2017).