Skip to content
Minute Campus.

How AI actually worksLesson 061 min

How does AI know “king” and “queen” are related?

An AI model stores every word as a long list of numbers called an embedding, which works like a place on a map with hundreds of directions. Words used in similar sentences end up close together, such as cat and dog. Directions carry meaning too: the step from man to woman is almost the same as the step from king to queen. Nobody typed these meanings in.

Remember

Words become positions on a map, where nearness and direction carry meaning.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

Inside an AI model, you can do maths with words. Take king, subtract man, add woman, and the nearest answer is queen. Researchers showed this in twenty thirteen. How? Every word is stored as a long list of numbers, called an embedding. Think of those numbers as a place on a map. Not a flat map with two directions, but one with hundreds. During training, words that are used in similar sentences end up close together. Cat sits near dog. Paris sits near London. And directions on the map carry meaning too. The step from man to woman is almost the same as the step from king to queen. Nobody typed these meanings in. They came from reading how words are used. Next: how a chatbot uses this map to read documents it was never trained on.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.