Emergence of Pragmatics from Referential Game between Theory of Mind Agents

Luyao Yuan, Zipeng Fu, Jingyue Shen, Lu Xu, Junhong Shen, Song-Chun ZhuarXiv 2020

Abstract

Pragmatics studies how context can contribute to language meanings. In human communication, language is never interpreted out of context, and sentences can usually convey more information than their literal meanings. However, this mechanism is missing in most multi-agent systems, restricting the communication efficiency and the capability of human-agent interaction. In this paper, we propose an algorithm, using which agents can spontaneously learn the ability to "read between lines" without any explicit hand-designed rules. We integrate the theory of mind (ToM) in a cooperative multi-agent pedagogical situation and propose an adaptive reinforcement learning (RL) algorithm to develop a communication protocol. ToM is a profound cognitive science concept, claiming that people regularly reason about other's mental states, including beliefs, goals, and intentions, to obtain performance advantage in competition, cooperation or coalition. With this ability, agents consider language as not only messages but also rational acts reflecting others' hidden states. Our experiments demonstrate the advantage of pragmatic protocols over non-pragmatic protocols. We also show the teaching complexity following the pragmatic protocol empirically approximates to recursive teaching dimension (RTD).

Introduction

In human conversation, meaning is rarely confined to literal definitions. For instance, the statement "Some students passed" often implies that not all students passed, even though the literal meaning allows for the possibility that everyone did. This phenomenon, known as pragmatics, relies on context and social expectations to "read between the lines."

Most current multi-agent systems (MAS) operate in a "literal mode," treating messages as fixed labels. This lack of pragmatic reasoning limits communication efficiency in complex environments. Previous attempts to implement pragmatics often relied on hand-coded rules or suffered from computational intractability. This research addresses these issues by enabling pragmatic communication to emerge naturally through an adaptive reinforcement learning framework based on the Theory of Mind (ToM).

Methodology

The core of the approach is a Referential Game involving two agents: a "Teacher" and a "Student." The Teacher identifies a target object among distractors and sends a single message to the Student, who must then select the correct target.

The Referential Game setup and the Theory of Mind (ToM) interaction pipeline.

The framework integrates ToM through two primary mechanisms:

  1. Belief Modeling: The Teacher maintains an internal estimate of the Student’s belief state regarding the target.
  2. Rational Speech Act (RSA): The Teacher selects messages predicted to most effectively shift the Student's belief toward the target.

To ensure stability, the researchers employed an Iterative Best Response (IBR) model. Instead of simultaneous training, they used an alternating approach: fixing the Student's policy while optimizing the Teacher's, and vice versa. This process was tested on both symbolic "Number Set" data and pixel-based "3D Objects" generated via the MuJoCo physics engine.

Results and Discussion

The pragmatic agents demonstrated a significant performance advantage over standard literal baselines. In the Number Set environment, the pragmatic protocol achieved 98.9% accuracy, compared to 79.1% for the baseline. This advantage was even more pronounced in "difficult" scenarios where targets and distractors shared many similar attributes.

Evolution of teacher message likelihood and student belief distribution across training phases.

A key finding was the emergence of "negative" information usage. Pragmatic Students learned that if a Teacher used a general term (e.g., "Blue") when a more specific term (e.g., "Sphere") was available, the Teacher likely intended to refer to a non-spherical blue object. Furthermore, the emerged protocol empirically approximated the Recursive Teaching Dimension (RTD), suggesting the agents discovered a mathematically near-optimal communication strategy.

The agents also showed strong zero-shot generalization, maintaining high performance on unseen instances. While the current model relies on internal belief exchange during training, future work aims to replace this with discrete feedback mechanisms and expand the framework to multi-turn dialogues.

Conclusion

By integrating Theory of Mind into a reinforcement learning framework, this research demonstrates that pragmatic communication can emerge spontaneously in multi-agent systems. This approach not only improves communication efficiency but also results in protocols that are more interpretable and aligned with human-like pedagogical strategies.

Summary updated

BibTeX
@misc{yuan2020emergence,
  author = {Luyao Yuan and Zipeng Fu and Jingyue Shen and Lu Xu and Junhong Shen and Song-Chun Zhu},
  title = {{Emergence of Pragmatics from Referential Game between Theory of Mind Agents}},
  year = {2020},
  eprint = {2001.07752},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07752},
}
Figure