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

, , ,

Story: the Robot and the Little Stars (how an AI learns by trying)

Illustrazione a fumetti della Famiglia S.T.O.P. in salotto in un pomeriggio di pioggia. Il Robottino con il mantello arancione, dietro una sciarpa stesa a terra come linea di partenza, lancia una pallina di calzini verso una scatola di cartone; altre palline sono per terra e una è dentro la scatola. Il nonno, in poltrona, alza una stellina di carta e ne tiene una pila in grembo; il bambino applaude, la ragazza in ginocchio scrive su un foglio, la mamma e il papà fanno il tifo dal divano e la nonna sorride con un libro aperto.

This week we remembered the Sorting Robot, which learns from examples with the right name, and we met the Robot’s Laundry Basket, which finds groups on its own. Today, with a story, we discover another way of learning: trying, making mistakes, trying again… and getting a reward when it goes well. It’s called reinforcement learning.

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

📖 The Robot and the Little Stars

It was a rainy Saturday. The S.T.O.P. Family was at home and the Robot was wandering around the living room, very bored.

“I want to learn something new!” it said. “I want to score with sock balls in the cardboard box!”

The Mini Hero rolled up three pairs of clean socks. His big sister laid a scarf on the rug: “This is the line. You throw from here.” Dad moved the toys and anything fragile: “That way nobody trips and nothing breaks.” Mom put the box two big steps away from the line.

“So, how do I do it?” asked the Robot. Grandpa smiled: “We won’t tell you. You try. Every time the ball goes into the box, I’ll give you a little paper star. If it doesn’t, no star. That’s all.”

The Robot threw really hard: the ball bounced off the wall. No star. It threw really softly: the ball dropped right in front of its feet. No star. It threw crooked: the ball rolled under the sofa. No star.

“Oh no!” said the Robot. Then it tried a middle throw, not too hard and not too soft. Plop! The ball went into the box. “Star!” said Grandpa.

The Robot remembered that throw and did it again. Plop! Another star! Every now and then, though, it also tried a new throw, to see if there was an even better one. That’s how it found out that with a little arc the ball went in almost every time.

After lots of throws the Robot had a pile of stars. “I’ve learned!” it said. “And nobody explained anything to me: the stars were enough!”

The Mini Hero had a funny idea. “Now I’ll give the stars! I’ll give you a star every time you say HOP!” The Robot tried: “Hop!” Star! “Hop! Hop! HOP!” Star, star, star! And it threw the balls everywhere: on the sofa, under the table, behind the armchair. The star came anyway.

Grandma laughed so much that her glasses slid down her nose. “See? The Robot learns what we reward, not what we mean!”

So the family sat down on the rug and decided the rules all together: a star when the ball goes into the box, and a bonus star when, at the end, the Robot puts the socks away. The Robot learned that too… and became the tidiest robot in town.

“We decide the stars,” said Mom. “That’s the P in S.T.O.P.: Pilot decides.” And outside, at last, the rain stopped.

What did we discover? The Robot learned by trying: when it did the right thing it got a star, when it got it wrong it didn’t. Some AIs learn like this too, with lots of tries and lots of rewards. But the star rule is written by people.

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

A free machine learning course for beginners presents reinforcement learning as one of the basic paradigms, next to supervised learning (examples with the right label, like the Sorting Robot) and unsupervised learning (data without labels, like the clustering in the Robot’s Laundry Basket).

Here’s how it works: an agent takes actions in an environment and gets a reward when it does something good and a penalty when it makes a mistake. Through trial and error, little by little, it figures out the best way to behave. With this method a system can learn tasks like winning a game, getting out of a maze or making a robot walk.

The key words, with the Robot as an example:

  • agent: the one that learns and decides (the Robot);
  • state: the situation the agent is in within its environment (behind the scarf, two steps from the box);
  • actions: the possible moves (hard throw, soft throw, arc…);
  • reward: the score it gets after an action (the star);
  • policy: the strategy, that is which action to choose in each state.

Explore or exploit? If the agent always chooses at random, it explores but makes lots of mistakes; if it always repeats the best move it knows, it may never find the best solution. The course explains that the best approach is a balance between exploration and exploitation of what has already been learned: just like the Robot, which tried a new throw every now and then.

Who decides the stars? In the course, the agent’s goal is defined by a reward function, written by whoever builds the system, and the agent learns to get the highest possible reward: steps that lead to a reward become more important, steps that lead to bad results are discouraged. That’s why the rule matters so much: if it rewards the wrong thing, like the story’s “HOP!”, the agent learns the wrong thing.

One more detail: often the important reward only arrives at the end, as in a game, and the algorithm has to work out which steps made it possible.

👨‍👩‍👧 For Super Parents & Grandparents

Reinforcement learning is reminiscent of how we learn many things ourselves: by trying. But in an AI system the reward rule is written by people, and the system tries to get as many rewards as possible. A badly designed rule leads to the wrong behaviour, even if the system is “doing its job”.

💡 Takeaway: when you hear that a system “learns by itself”, ask yourselves: what is being rewarded, and who decided it? That’s the P in S.T.O.P.: the pilot decides.

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

📖 The Little Stars Game

Age: 6+, with a grown-up · Time: about 20 minutes for two, a few minutes more for each extra player · Players: 2 or more (a Coach and a Robot; with many players, take turns being the Robot while the others watch in silence and try to guess the rule) · You need: 3 pairs of clean socks rolled into balls, an empty cardboard box (or a washing-up bowl), a scarf or ribbon for the line, 20 paper stars (or a sheet of paper and a pencil to draw them), a bit of free space

  1. Get the space ready: nothing fragile nearby, the box about two big steps from the line. While the Robot is throwing, nobody stands in front of or near the box. Only the sock balls are thrown, and only towards the box.
  2. Choose who is the Robot and who is the Coach. In Round 1 the star rule is: “a star when the ball goes into the box”.
  3. Golden rule for the Coach: no tips and no explanations. After each throw the Coach only says “Star!” (and hands it over) or stays silent.
  4. The Robot makes 10 throws and picks up the balls every 3 throws. Count the stars from throws 1-5 and from throws 6-10 separately.
  5. Compare: are there more stars in throws 6-10 than in throws 1-5? What did the Robot change to get more?
  6. Round 2, the funny secret rule: the Coach secretly chooses a different rule, for example “a star when the ball lands OUTSIDE the box” or “a star when you throw with your other hand”. Another 10 throws, still with no tips. Tip for the Robot: if the stars don’t come, try different things!
  7. After Round 2 the Robot tries to guess the secret rule. Did it learn to score, or did it learn to get stars?
  8. Swap roles until everyone has been the Robot once. End of the game: the last Robot puts the socks back in the drawer and everyone gets a bonus star!

💡 Moral: an AI that learns by reinforcement tries to get as many stars as possible. That’s why the star rules must be chosen carefully: we are the ones who decide them!

🔍 Mini challenge

Screen-free, for teens and grown-ups: invent a “star rule” that sounds good but teaches the wrong thing. For example, “a star for every page read” might reward someone who flips through the pages quickly without really reading them. Then rewrite it together so that it really rewards what you want.

📚 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.