Today is Friday the 13th. Some people will avoid walking under a ladder. Others will go and buy a lottery ticket. Either way, the mechanism is the same: believing there is a link between two things that have nothing to do with each other.
We like to think machines are free of this flaw. They calculate, they do not cross their fingers. Yet AIs have superstitions of their own. And we have developed new ones by learning to talk to them.
The pigeons that danced for food
In 1948, the American psychologist B. F. Skinner ran an experiment that became famous. He placed hungry pigeons in a cage where a dispenser gave them food at regular intervals, whatever they did. Nothing the bird did had any effect on the arrival of the grain.
Yet six of the eight pigeons developed genuine rituals. One turned on the spot, always in the same direction. Another swung its head like a pendulum. A third pushed its beak towards a corner of the cage. Each simply repeated the gesture it happened to be making when the food arrived. Skinner titled his paper Superstition in the Pigeon.
When an AI learns the wrong link
An AI learns a little like those pigeons: it is rewarded when it gives the right answer, and it reinforces whatever came before the reward. The problem is that it does not always know what really mattered.
In 2016, three researchers from the University of Washington, Marco Tulio Ribeiro, Sameer Singh and Carlos Guestrin, gave a demonstration that became famous. They trained a program to tell photos of wolves from photos of huskies, deliberately choosing images in which the wolves are almost always in the snow. The program seemed to work well. But their analysis tool revealed what it was really looking at: it was not interested in the animal. It was checking whether there was snow in the background. It had concluded that snow meant wolf.
This kind of shortcut turns up everywhere. Researchers have shown that programs meant to detect pneumonia on X-rays relied partly on cues specific to each hospital, rather than on the lungs. Like the pigeon, the machine repeats what worked, without knowing why.
In the early 20th century, in Berlin, a horse named Hans caused a sensation: he answered arithmetic questions by tapping his hoof. In 1907, the psychologist Oskar Pfungst uncovered the mystery. Hans was not counting. He was watching the tiny changes in posture of the person questioning him, who relaxed without realising it once the right number of taps had been reached. AI researchers still speak of the "Clever Hans effect" today when a program finds the right answer for the wrong reasons.
Our magic formulas
Superstition does not stop at machines. Look at how we talk to them. Some people promise their assistant a tip. Others threaten it, plead with it, or start every request with the same ritual phrase, because one day the answer seemed better that way.
The most troubling thing is that some of these formulas have actually worked. In 2023, researchers at Google DeepMind let an AI search for the best prompts for a maths test by itself. The winning formula began with "Take a deep breath". With it, the model of the time achieved its best score.
But these tricks hold for a specific model, at a specific moment. Models change every few months, and what helped yesterday is often no use today. Yet we carry on with our rituals, just as the pigeon carries on turning.
Why we believe in them
At the start of the twentieth century, the anthropologist Bronislaw Malinowski studied the inhabitants of the Trobriand Islands, in the Pacific. He noticed something striking. When they fished in the lagoon, calm and safe, they used no magical rituals. When they set out for the open sea, where anything can happen, the rituals multiplied.
Superstition, he concluded, appears wherever uncertainty and danger reign. It gives us the feeling of controlling what escapes us.
AI is our open sea. We do not really know why it answers well one day and less well the next. So we invent gestures to reassure ourselves. It is not stupidity. It is a very human reaction to a tool that even its creators do not fully understand, as OpenAI's report on its own model showed last week.
How not to go round in circles
Skinner's remedy applies to us too. His pigeons never tested what happened if they stopped turning. We can.
The next time a formula seems to improve your assistant's answers, try without it. Several times. Change one thing at a time, and compare. That is the principle behind our method for comparing AIs yourself. You will often find that the formula had nothing to do with it. And that what really matters is explaining clearly what you want.
Touch wood
Machines are not superstitious by nature. They become so when we reward them without checking what they have really learned. Nor are we condemned to be. All it takes is checking, from time to time, whether the gesture we keep repeating serves any purpose.
In the meantime, happy Friday the 13th. And if your AI answers particularly well today, it is probably not thanks to the date.