Theory of Mind as Intrinsic Motivation for Multi-Agent Reinforcement Learning

Ini Oguntola, Joseph Campbell, Simon Stepputtis, Katia Sycara

TL;DR

This paper introduces a novel multi-agent reinforcement learning (MARL) framework that uses Theory of Mind (ToM) as an intrinsic motivator. By explicitly grounding human-interpretable beliefs within deep policies and rewarding agents for accurately predicting the internal beliefs of others, the authors demonstrate the emergence of highly sophisticated cooperative and competitive strategies.

What Problem Does This Paper Address?

In multi-agent environments, success often depends on understanding what other agents are doing. Traditional MARL approaches handle this by modeling the external actions of other agents. However, they largely ignore internal mental states—such as beliefs, desires, and intentions—collectively known as Theory of Mind (ToM).

While some recent deep learning models attempt to incorporate ToM, evaluating them is notoriously difficult. Artificial agents often find "shortcuts" or exploit spurious correlations to solve a task without actually developing a true internal model of another agent's mind.

This paper flips the script: instead of training an agent to solve a task and hoping it develops a Theory of Mind, the authors explicitly force the agent to learn semantically grounded beliefs and use its ability to predict others' beliefs (2nd-order belief prediction) as an intrinsic reward signal to help solve the task.

Methods

The authors propose a multi-step architecture to model and reward ToM reasoning:

  1. Modeling 1st-Order Beliefs via Concept Learning: Rather than using purely black-box representations, policies are forced to route information through an intermediate "concept layer" that represents explicit beliefs about the environment (e.g., "Which landmark is the target?"). This layer is trained via supervised auxiliary losses against ground-truth environment states.
  2. Information-Theoretic Disentanglement: Because explicit concepts might not capture all necessary task information, a parallel "residual network" captures remaining features. To prevent the model from cheating and hiding belief information inside this residual layer, the authors minimize the mutual information between the belief vector and the residual vector using a contrastive log-ratio upper bound (CLUB).
  3. 2nd-Order Belief Prediction as Intrinsic Motivation: Agents are augmented with a network that predicts the 1st-order belief vectors of all other agents. Crucially, the negative prediction error (mean-squared error or cross-entropy) is added directly to the agent's reward function as an intrinsic motivator ($r_{tom}$).

During training, gradients from the task reward do not flow back into the 1st-order belief network, preventing "malicious actor" scenarios where an agent might intentionally alter its own beliefs just to make its partner's predictions easier.

Figure 1. Policy models with 1st and 2nd-order belief prediction. The belief predictor is supervised by ground truth labels, and the residual network is regularized via mutual information minimization with respect to beliefs.

Datasets

The approach was evaluated using a modified variant of the ParticleWorld: Physical Deception environment.

Figure 2. ParticleWorld physical deception environment.

In this 2D world, there are $N$ landmarks, $N$ cooperative green agents, and one red adversary agent. One landmark is the secret "target." Green agents receive a joint reward based on their distance to the target, but they must hide which landmark is the correct one from the adversary, who is penalized based on its distance to the target. The adversary must infer the target solely by watching the green agents' behaviors.

Key Insights and Ideas

  • ToM as a Driver, Not a Byproduct: Treating 2nd-order reasoning as an intrinsic reward successfully biases the policy's value estimation toward states where the future behaviors and beliefs of other agents are highly predictable.
  • The Necessity of Disentanglement: Forcing a strict information bottleneck between explicit concepts and latent residuals ensures that the policy actually utilizes human-interpretable beliefs rather than bypassing them via latent shortcuts.
  • Symmetry of Benefit: Intrinsic ToM motivation helps both sides of a mixed environment. It helps cooperative agents coordinate complex deceptive maneuvers, and it helps competitive adversaries become more decisive.

Key Results

The authors evaluated their method against baselines with no explicit beliefs and models with only 1st-order beliefs.

Figure 3. Training curves for agents on ParticleWorld physical de- ception task, in various belief configurations, averaged across 5 random seeds. Good agents trained with the 2nd-order belief intrin- stic reward significantly outperform the other variants. Similarly, adversaries trained with the 2nd-order belief intrinsic perform bet- ter than their 1st-order belief and no-belief baseline counterparts.

Quantitative Findings

As shown in the training curves and performance metrics, adding 2nd-order ToM reasoning yielded substantial performance gains:

  • Good Agents: Achieved a mean episodic reward of 2.760 when using 2nd-order beliefs, compared to just 1.889 for the baseline (no beliefs) and 2.209 for 1st-order beliefs only.
  • Adversary Agent: Reduced its penalty to -14.01 when equipped with 2nd-order beliefs, outperforming its baseline counterpart (-15.32).

Qualitative Strategy Shifts

  • Baseline & 1st-Order Only: Green agents simply drifted toward unique landmarks, and the adversary drifted randomly.
  • 2nd-Order Green Agents: Developed a "swapping" strategy where agents would dynamically change target destinations mid-episode to actively confuse the adversary.
  • 2nd-Order Adversary: Exhibited much more decisive movements, quickly picking up on subtle cues from the green agents to head straight for the correct landmark.

Limitations and Future Work

While promising, the authors acknowledge that these preliminary results are limited to a single, relatively simple environment with a small number of agents.

Future directions include:

  1. Scaling the framework to more complex environments with larger, arbitrary numbers of agents.
  2. Exploring scenarios with more varied social dynamics.
  3. Studying how this intrinsic ToM motivation impacts the efficacy of explicit agent-to-agent communication in both cooperative and competitive tasks.

Summary updated

BibTeX
@inproceedings{oguntola2023theory,
  author = {Ini Oguntola and Joseph Campbell and Simon Stepputtis and Katia Sycara},
  title = {{Theory of Mind as Intrinsic Motivation for Multi-Agent Reinforcement Learning}},
  booktitle = {ToM @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=LlaHT6NeWu},
}
Figure