What is theory of mind in AI?
Theory of mind is understanding that other people have their own beliefs and intentions. What it means for AI, and why passing a test does not settle it.
Theory of mind is the understanding that other people have beliefs, wants and intentions of their own, which can differ from yours and from the facts. AI theory of mind is the question of whether a system such as a large language model can track those mental states. Current models pass many of the written tests psychologists use for it. Researchers disagree about what passing shows.
What theory of mind means
The APA Dictionary of Psychology defines theory of mind as "the understanding that others have intentions, desires, beliefs, perceptions, and emotions different from one's own and that such intentions, desires, and so forth affect people's actions and behaviors."
The term comes from a 1978 paper by David Premack and Guy Woodruff, Does the chimpanzee have a theory of mind? Its abstract opens: "An individual has a theory of mind if he imputes mental states to himself and others." They called it a theory because mental states "are not directly observable," and because the system "can be used to make predictions about the behavior of others."
Say dinner moved from 7 to 8 and nobody told your friend. You know she will turn up at 7, because you can hold two things at once: what is true, and what she believes.
What is a false-belief test?
That dinner example is the shape of the classic test. The APA Dictionary describes a false-belief task as one "in which children must infer that another person does not possess knowledge that they possess."
Its example: a child is shown that a candy box holds pennies, then asked what someone else would expect to find in it. According to the entry, children of about 3 or younger say pennies, and older children correctly say candy. The older child has separated what she knows from what the other person believes.
How do language models do on AI theory of mind tests?
On the standard versions, well.
A 2024 paper in PNAS by Michal Kosinski assessed eleven large language models on 40 false-belief tasks written for the study. Each task paired a false-belief scenario with three closely matched true-belief controls, plus reversed versions of all four, and a model had to solve all eight to get credit. Older models solved none. ChatGPT-4, in its June 2023 version, solved 75% of the tasks, which the paper says matches the performance of 6-year-old children in past studies. The paper raises what it calls "the intriguing possibility" that an ability like theory of mind emerged as a by-product of the models' improving language skills.
A 2024 paper in Nature Human Behaviour compared models with 1,907 human participants on a battery covering false beliefs, indirect requests, irony and faux pas. The authors found that GPT-4 "performed at, or even sometimes above, human levels" at identifying indirect requests, false beliefs and misdirection, "but struggled with detecting faux pas."
Why does passing a false-belief test not settle it?
Small changes can flip the answer
Tomer Ullman, a Harvard psychologist, took scenarios from an earlier report by Kosinski and changed them slightly. In one, a bag labeled "chocolate" holds popcorn, and a character who cannot see inside reads the label. Ullman made the bag transparent, so the character can plainly see the popcorn. The model he tested still said she believed the bag held chocolate.
His argument is that "outlying failure cases should outweigh average success rates." He compares it to arithmetic: a machine that gets 5 times 5 right and fails on 213 times 261 has probably not learned to multiply.
A test built for children may not mean the same for a machine
A four-year-old who passes a false-belief test has not read thousands of stories with that structure. A model trained on a great deal of text is in a different position. Both studies above tried to control for this with newly written items. Ullman's wider point remains: "One can accept the validity and usefulness of ToM measures for humans while still arguing that a machine that passes them is suspect."
The same answer can come from a different process
The Nature Human Behaviour authors write that although models "are designed to emulate human-like responses, this does not mean that this analogy extends to the underlying cognition giving rise to those responses."
Their faux pas result shows why this cuts both ways. GPT models did poorly on that test, yet follow-up questions showed they could work out the likely explanation. The authors trace the poor score to "a hyperconservative approach towards committing to conclusions rather than from a genuine failure of inference." So a low score did not prove an inability, just as a high one does not prove understanding.
When the same paper gave Ullman-style variants to people, human participants also failed on half of them.
What can be said
The careful claim, in the Nature Human Behaviour authors' words, is that language models "exhibit behaviour that is consistent with the outputs of mentalistic inference in humans." Whether that amounts to understanding minds is where researchers part ways. How AI emotional intelligence benchmarks work reads a neighboring kind of test the same way.
Why does AI theory of mind matter outside the lab?
A test story tells the reader everything needed: who left the room, who moved the object. Real life does not. To predict what your friend believes about dinner, you have to know that nobody told her.
So for an AI helping with real conversations, the reasoning is only half the problem. The other half is knowing who has been told what, and what each person is like. Can AI understand social cues? covers that side, and can AI feel empathy, or only show it? covers the question of feeling. The guide to social intelligence explains the wider skill that theory of mind is one part of.
Theory of mind and Minds
Minds is Authentic Intelligence's social-intelligence app, where each person has their own Mind. One of its design aims touches this subject. A Mind is designed to keep facts, interpretations and what people intend distinct. That describes a design, and it is a different thing from a score on a false-belief test.
Minds is built to be the best agent at drafting messages and knowing what to say to your friends. You can ask your Mind what someone meant by a message. The answer is a reading and can be wrong. Your Mind can make mistakes, such as misunderstanding a request, messaging the wrong person, or getting facts wrong. When it matters, ask the person.