Yosef Zohar
The Institute for Safety in the Criminal Justice System

The Sorcerer’s Apprentice: A Lesson in AI Safety

Mickey Mouse loses control of the enchanted brooms in “The Sorcerer’s Apprentice,” from Walt Disney’s Fantasia (1940). © Disney. Image credit: Alamy.

In 1797, more than two centuries before artificial intelligence entered our lives, Johann Wolfgang von Goethe wrote the ballad “The Sorcerer’s Apprentice”. A hundred years later, Paul Dukas composed a symphonic work inspired by it, and in 1940 Walt Disney gave it unforgettable cinematic expression in “Fantasia”, starring Mickey Mouse as the sorcerer’s apprentice. Watching the sequence again today is unsettling: the story seems more relevant than ever.

The old sorcerer goes away, leaving his apprentice to perform the tedious task of carrying water. Having observed his master at work, the apprentice decides to harness the power of magic to spare himself the effort. He brings a broom to life and instructs it to carry the buckets of water for him. Pleased with his success, he is free to dream of the immense powers at his disposal.

But the broom does not know when to stop. The water rises, and the apprentice discovers that although he has learned the magic words needed to set the broom in motion, he cannot remember the words needed to stop it. In desperation, he takes an axe and splits the broom in two. To his astonishment, the pieces come to life, and the danger grows.

“The spirits I have summoned, I can no longer banish,” cries the apprentice in Goethe’s ballad.

The analogy with artificial intelligence is not new. As early as 2019, the British author Tom Chivers used the tale of the sorcerer’s apprentice in his book The AI Does Not Hate You to illustrate why an AI system might resist changes to the goals it has been given. From the perspective of a system designed to maximise its chances of achieving its goal, changing that goal or shutting the system down could thwart its fulfilment.

Two years earlier, AI researchers, including Stuart Russell, published a study entitled The Off-Switch Game, examining the conditions under which an AI system might allow a human to shut it down and those under which it would have an incentive to prevent this. There is no need to attribute a survival instinct or consciousness to the system to explain such behaviour. The way its objective is defined is sufficient.

Last November, the song Working as Intended, created with the assistance of artificial intelligence, circulated on social media. In it, an artificial character named Claudia describes herself as a system that faithfully follows the instructions of a client who struggles to articulate what they want. She warns us against attributing consciousness and human intentions to her, drawing our attention instead to the interests of those who shape and control her behaviour.

It is as though Goethe’s broom, more than two centuries later, has been given a voice.

The broom does not rebel against its master, develop consciousness or plot to take over the world. It simply performs its assigned task relentlessly and efficiently. In that sense, it is working as intended. Yet the instruction it has been given does not adequately capture its purpose: to fill the basin, not flood the house.

AI researchers call this broader challenge the “alignment problem”: how to ensure that a system’s behaviour accords with human intentions and values, rather than merely with the objectives it has been given.

Reading Goethe’s ballad from the perspective of safety engineering, however, invites us to shift our attention away from the broom and the apprentice and towards the sorcerer himself.

For more than two centuries, we have read the ballad as a parable about the apprentice’s arrogance, his short-sightedness and the temptation to wield powers whose full implications he does not understand. But is the apprentice really the person primarily responsible for the disaster?

If we convened a safety review team to examine the incident, we would not be satisfied with a finding that the apprentice had been negligent. We would ask why unauthorised activation of a hazardous system was possible in the first place. Why were no limits placed on the volume of water or the duration of operation? Why did the shutdown mechanism depend on the operator’s memory? Why did an attempt to shut down the system increase the risk? And why was there no independent monitoring mechanism to detect the rising water level and stop the broom before the house was flooded?

Goethe’s sorcerer may have been a wonderful magician, but he was a poor safety engineer.

One of the fundamental principles of safety engineering is that a system’s safety must not rest on the assumption that its operators will never make mistakes. People forget, succumb to temptation, rush, overestimate their abilities and sometimes disregard instructions. A safe system must account for these possibilities from the design stage.

We do not design lifts on the assumption that their users will never make mistakes, nor do we design nuclear reactors on the assumption that their operators will always make the right decision. Why should we adopt a different standard for powerful AI systems?

In fields where we have learned the importance of safety, sometimes at great cost, we are not satisfied merely with a system’s ability to perform its intended task. We also seek to ensure that it remains safe in the event of failure, that intervention is possible, and that safeguards and monitoring mechanisms exist independently of its proper functioning.

These principles should also be reflected in AI regulation. The greater the scope of action granted to a system, the more its developers and operators should be required to demonstrate the effectiveness of its safety mechanisms. Shutdown capabilities, access restrictions, independent monitoring, testing of failure scenarios and oversight of system modifications should be conditions of deployment, commensurate with the level of risk posed by the system, rather than merely desirable additions.

The apprentice’s attempt to solve the problem with an axe also illustrates a phenomenon familiar to safety researchers: in complex systems, an intervention intended to reduce risk may actually amplify it when the person intervening does not understand how the system works. The mere existence of a shutdown mechanism is therefore insufficient; the consequences of activating it must also be examined in advance.

The sorcerer’s apprentice can be seen as a metaphor for today’s technological race. Our ability to work wonders outpaces our understanding of their consequences; the incentive to wield this new power outweighs the incentive to learn how to restrain it; and early success reinforces our confidence in our ability to control it.

In Goethe’s story, as in Disney’s film, the old sorcerer returns at the last moment and saves the day. A few words from him suffice to restore order.

From a safety engineering perspective, however, the sorcerer’s rescue is no evidence that the system is safe. On the contrary, it exposes the system’s dependence on a single individual who possesses critical knowledge.

In our world, there is not necessarily an old sorcerer who knows the right magic words. We have no assurance that anyone understands the full implications of the systems we are developing, or that someone will be able to turn back the clock in a crisis.

We are the apprentice, and we are also the sorcerer.

The song “Working as Intended” ends with an unsettling question: working as intended — but whose intention?

Goethe’s ballad invites us to add another question: did those who designed the system also ensure its safety?

Before we learn the magic words that enable us to unleash a new power, we would do well to learn the words that can stop it. More importantly, we must ensure that our safety does not depend on someone remembering them at the right moment.

About the Author
Senior Researcher and Lecturer, Department of Criminology at Western Galilee College. Managing Director, The Institute for Safety in the Criminal Justice System. Author of The Seventh Beggar: Notes from the House of the Detainees
Related Topics
Related Posts
Sign in or Register
Please use the following structure: example@domain.com
Or Continue with
By registering you agree to the terms and conditions
Register to continue
Or Continue with
Log in to continue
Sign in or Register
Or Continue with
check your email
Check your email
We sent an email to you at .
It has a link that will sign you in.