Part I · Turning Language into Space Chapter 03

Embeddings: The Map of Meaning

Turning words into coordinates where distance means similarity and directions mean ideas.

8 min read · 3 interactive labs · Zero math required

At the end of Chapter 2, we turned text into neat puzzle pieces — each tagged with an ID number like #496 or #15717. There is just one huge problem: ID numbers don't carry any meaning.

If king is token #412, queen is token #8903, and toaster is token #413, the numbers alone would trick a computer into thinking king and toaster are best friends while king and queen are strangers.

How do you teach a machine what words actually mean? You stop treating words as isolated ID labels, and instead place every word as a glowing star on a Map of Meaning — a coordinate location called an embedding.

The Golden Rule of Meaning Space

On a Map of Meaning, closeness equals similarity. Words that show up in similar sentences naturally drift into the same neighborhood — royalty clusters with royalty, animals with animals, and morning coffee with breakfast.

Explore the glowing 2D constellation below. Click any two stars on the map (or use the quick-compare buttons) to measure the beam between them and watch the Closeness Meter respond.

Lab 3.1 Interactive 2D Meaning Map
Click any 2 stars to measure closeness
king ↔ queen Close Neighbors
Notice how the distance on the map mirrors the length of the Closeness Meter. Stars inside the same neighborhood glow with a short, bright beam; stars across opposite corners stretch into a long, faint line.

Even Cooler Than Neighborhoods: Directions Mean Ideas

If embeddings only grouped similar words into clumps, they would already be useful. But something far more magical happens when a model learns its map from billions of sentences: directions in space begin to represent pure concepts.

Imagine drawing an arrow from man to woman. That arrow has a specific direction and length — let's call it the "shift to feminine" step.

Now pick up that exact same arrow — don't rotate it, don't stretch it — and drop its tail onto king. Where does the tip land?

Right on queen!

The same geometric magic works for countries and capitals, verb tenses, singulars and plurals, and dozens of other relationships. Scrub the slider below (or hit Animate Slide) to watch a single arrow carry an idea cleanly across the map.

Lab 3.2 Directions Mean Ideas (Arrow Analogies)
0%
Slide Arrow
Drag the slider from 0% to 100%. The golden arrow never changes angle or length — yet sliding the exact same step from man → woman onto king lands straight on queen!

What Do All Those Hidden Dimensions Actually Feel Like?

On a flat screen, our map only has 2 directions (left-right and up-down). That's enough to separate royalty from rockets, but real language has way more nuance than two directions can hold. Is a puppy alive? Yes. Is it royal? Not usually. Is it small? Yes. Is it edible? Definitely not!

So real LLMs give each word thousands of coordinates instead of just two. Don't try to picture a 4,000-dimensional cube — nobody's brain can do that! Instead, picture a dashboard of glowing feature dials. Each dial measures one subtle flavor of meaning, and together they form a word's unique luminous fingerprint.

Pick two words below and compare their 5 feature dials side by side.

Lab 3.3 Feature Dials: What Dimensions Feel Like
Compare two words' visual fingerprints
Word A
Word B
Fingerprint Match: puppy vs. castle 42%
Real models learn thousands of dials like these automatically during training — not labeled in English, but capturing everything from "living vs. object" to "formal vs. playful" to "used in cooking". Two words live close together on the Meaning Map whenever their glowing dials line up!
A Cliffhanger for Part II

Wait a second! Look closely at our Map of Meaning and notice one big catch: every word gets only one fixed home address. What happens to a word like bank, which means something totally different in "sat by the river bank" versus "deposited cash at the bank"? Solving that riddle is the superpower of the next chapter: Attention.

Check Your Intuition

On a trained Map of Meaning, why does sliding the arrow from "Paris → France" onto "Tokyo" land right near "Japan"?