Grande potere, grande responsabilità · Great power, great responsibility

, , ,

Spot the mistake: the Robot’s Word Map

Monday the neuron, Tuesday training. But how can an AI work with words if inside it only does calculations? It turns them into numbers! And with those numbers it builds a kind of map, where similar words live close together. They’re called embeddings.

🧒 For Mini Heroes (ages 6-10) · read with a grown-up

Imagine a big map with lots of neighbourhoods. In the animals’ neighbourhood live the cat, the dog and the horse. In the vehicles’ neighbourhood the bicycle, the train and the bus. In the fruit neighbourhood the apple, the pear and the cherry.

The Robot has a map like this too. For the Robot, every word has an address made of numbers. Words that are alike have addresses close together: “cat” and “dog” are almost next-door neighbours, while “cat” and “train” live really far apart.

The Robot learned where to put the words by reading lots and lots of sentences. But today its map has a few mistakes! You are the detectives: find the words that ended up in the wrong neighbourhood.

🧑‍🎤 For Young Heroes (ages 11-17)

These “addresses” are called embeddings: each word (or text, or other piece of data) becomes a vector, a list of numbers. In embedding space the distance between two points shows how similar the two things are: the closer they are, the more related the model considers them.

How does the model work out that two words are alike? Some models learn to predict the context of words: words that appear in similar sentences end up close together. A free course gives this example: if the texts include “They rode a burro down into the Grand Canyon” and “They rode a horse down into the canyon”, the model notices that “burro” (a Spanish word meaning “donkey”) and “horse” appear in similar contexts.

On our map the neighbourhoods have clear names. On real ones they don’t: for words, 256, 512 or 1024 dimensions are often used, and the individual dimensions rarely have a meaning a person can easily understand. Embeddings also depend on the task: for a model that tells vegetarian from non-vegetarian dishes, “cereal” and “breakfast sausage” are probably far apart; for one that suggests what to eat depending on the time of day, probably close together.

A curious limit: in “static” embeddings, like the old word2vec model, each word has just one point, even if it has several meanings. Think of “bat”: the small flying animal or the piece of wood used to hit the ball in games like baseball or cricket? Two different meanings, but only one address!

👨‍👩‍👧 For Super Parents & Grandparents

Embeddings are used, for example, in searches “by meaning”: they help to tell whether two texts are about similar things and give a similarity score, instead of just counting the words they have in common.

The practical message: for an AI, “close” means “similar according to the numbers it has learned”, not “true” or “right”. When an AI offers you a “similar” result, check that it really is what you were looking for (T in S.T.O.P.: Test it with another source).

Today’s game is screen-free. A reminder: in Italy, children under 14 need the consent of whoever holds parental responsibility to access artificial intelligence technologies (Law 132/2025, art. 4, paragraph 4).

🕵️ The Word Map

Age: 6+, with a grown-up · Time: about 15 minutes · Players: 2 or more (one grown-up and one or more detectives) · You need: a large sheet of paper, coloured pencils

  1. The grown-up draws three big circles, the neighbourhoods, without writing their names.
  2. The grown-up writes (or draws) the words exactly where the Robot put them. Circle 1: cat, dog, horse, banana. Circle 2: bicycle, train, bus, rabbit. Circle 3: apple, pear, cherry, scooter.
  3. The detectives look at each circle and give the neighbourhood a name. (Animals, vehicles, fruit.)
  4. Spot the mistake: in each neighbourhood there’s an intruder. Find it and explain why it doesn’t belong.
  5. Redraw each intruder in the right neighbourhood and cross it out of the wrong one.
  6. Distance game: the grown-up says two words from the map, for example “cat and horse”, then “cat and train”. The detectives answer by opening their arms wide (“far!”) or bringing their hands together (“close!”).
  7. Solution: the banana goes with the fruit, the rabbit with the animals and the scooter with the vehicles. The game ends when all the neighbourhoods are tidy: the detectives draw a badge on the map!

💡 Moral: for an AI, words are addresses made of numbers, and similar ones live close together. But the map isn’t perfect: for example, a word with two meanings has only one address. Checking is our job!

🔍 Mini challenge

Screen-free, for teens and grown-ups: redo the map with the same 12 words but a different rule, “big things” and “small things”. Now the horse lives next to the bus and the rabbit next to the cherry! That’s exactly how real embeddings work: the map changes depending on the task. And the donkey: which neighbourhood would you put it in on the first map? Next to whom?

📚 Sources


Discover more from AI Hero Lab Family

Subscribe to get the latest posts sent to your email.

🚦 Ricorda il S.T.O.P. Sai cosa stai chiedendo? · Trova una conferma · Occhio ai dati · Pensa tu l’ultima parola.
🚦 Remember S.T.O.P. Say exactly what you need · Test it with another source · Our data stays private · Pilot decides.