Back to the story shelf

A fairy tale

The Lantern That Learned the Way

A tale of a lamp that remembered every road it walked

Reading time
5 min read
Best for
Explorer · Builder

At the edge of a forest so old it had forgotten its own name, there lived a lamplighter’s daughter called Nell. The forest had a hundred paths, and only a handful of them were kind. The rest led travellers in circles until the moon went down and their courage went with it.

Nell owned nothing in the world but a small brass lantern with a cracked pane. It was not a magic lantern. It had no opinions at all. It simply burned, the way lanterns do.

One hundred evenings

Every evening Nell walked. And every evening, at the mouth of each path, she stopped and told her lantern the truth about it. This one is kind, she would say, laying her palm against the warm brass. It runs beside the stream and comes out by the miller’s gate. Or: This one is cruel. It looks wide and it looks easy, and it ends in the bog.

The lantern said nothing. But it listened, in the patient way that brass listens, and it remembered.

After ten evenings, nothing. After fifty, Nell fancied the flame leaned a little — the way a dog’s ear turns — whenever she passed the path by the stream. After a hundred evenings there was no mistaking it. At a kind path the flame stood tall and green-gold and glad. At a cruel one it shrank down small and blue, as if it had caught a chill.

Show me a road and I will learn it,Walk me a hundred and I will know.But do not ask me, in the dark,For roads you never let me go.

The stranger at the crossroads

One night a stranger came out of the rain with his collar turned up and his boots full of river. He had heard, he said, of a lantern that knew the forest. He wanted the north road — the old drovers’ road, beyond the ridge.

Nell held the lantern up. The flame did something it had never done before. It guttered. It leaned left, then right, then stood upright and trembled, like a child asked a question in front of the whole school.

“It does not know,” said Nell.

“Then it is a poor sort of magic,” said the stranger.

“It is no sort of magic at all,” said Nell. “It is only as wise as the walking I have done. I have never taken the north road. So it has never learned it, and it will not pretend.” She set the lantern down between them, and it burned steady and uncertain. “A light that guessed would be worse than no light. A light that guessed would put you in the bog and tell you it was a meadow.”

The stranger looked a long while at the small honest flame. Then he sat down by Nell’s fire until morning, and in the morning they walked the north road together — slowly, carefully, with the lantern held between them.

And that evening, at the mouth of the north road, Nell stopped as she always did, laid her palm against the warm brass, and told it the truth about what they had found.

A lantern only knows the roads it has been shown.

Learning from examples (training data)

The lesson hidden in the tale

Nell’s lantern was not magic. It only ever knew what Nell had shown it, one evening at a time. That is exactly how a computer learns: you give it many, many examples, and it finds the pattern hiding inside them.

The examples you show a computer are called its training data. A lantern shown a hundred safe paths glows brightly on safe paths. A computer shown a hundred thousand photographs of cats gets very good at spotting cats.

And the flicker matters just as much. When the stranger asked about a road Nell had never walked, the lantern did not lie — it wavered. A well-made AI should do the same: when it has not seen something before, the honest answer is I am not sure.

Ask Sparky about it

Take one of these to the tutor and keep the conversation going.