Machine Theory of Mind
Neil C. Rabinowitz, Frank Perbet, H. Francis Song, Chiyuan Zhang, S. M. Ali Eslami, Matthew Botvinick
TL;DR
The paper presents ToMnet, a meta-learned observer that builds machine Theory of Mind by learning a general prior over agent behavior and an agent-specific posterior from observed trajectories. It uses a three-part architecture (character net, mental state net, prediction net) to predict future actions, object consumptions, and latent representations across diverse agent species in gridworld POMDPs. Through experiments with random, algorithmic, and deep RL agents, the work demonstrates both implicit and explicit belief modeling, including false beliefs, and shows how disentangled embeddings can reveal underlying behavioral abstractions. These results point toward interpretable, sample-efficient multi-agent AI capable of rapid adaptation to new agents and scenarios, while highlighting limitations and avenues for scaling to richer environments.
Abstract
Theory of mind (ToM; Premack & Woodruff, 1978) broadly refers to humans' ability to represent the mental states of others, including their desires, beliefs, and intentions. We propose to train a machine to build such models too. We design a Theory of Mind neural network -- a ToMnet -- which uses meta-learning to build models of the agents it encounters, from observations of their behaviour alone. Through this process, it acquires a strong prior model for agents' behaviour, as well as the ability to bootstrap to richer predictions about agents' characteristics and mental states using only a small number of behavioural observations. We apply the ToMnet to agents behaving in simple gridworld environments, showing that it learns to model random, algorithmic, and deep reinforcement learning agents from varied populations, and that it passes classic ToM tasks such as the "Sally-Anne" test (Wimmer & Perner, 1983; Baron-Cohen et al., 1985) of recognising that others can hold false beliefs about the world. We argue that this system -- which autonomously learns how to model other agents in its world -- is an important step forward for developing multi-agent AI systems, for building intermediating technology for machine-human interaction, and for advancing the progress on interpretable AI.
