Introduction
In human social interaction, we do not merely react to physical movements; we infer intent. This capacity, known as Theory of Mind (ToM), allows us to represent and predict the internal states and goals of others. In Multi-Agent Reinforcement Learning (MARL), agents often achieve impressive coordination, yet it remains unclear whether they develop internal representations of their partners' intentions or merely follow complex reactive policies. This paper investigates whether deep RL agents explicitly represent the goals of their teammates and how this affects their ability to generalize to new partners.
The Cooperative Navigation Task
The researchers utilized a Cooperative Navigation environment where three agents must coordinate to cover three distinct landmarks in a 2D space. Success requires agents to decide on destinations that avoid collisions and ensure full coverage.
Methods: Probing the Hidden State
To determine if agents represent intentions, the authors trained agents using Multi-Agent Deep Deterministic Policy Gradient (MADDPG). They then attached linear "probes"—simple linear classifiers—to different layers of the trained neural networks. These probes were tasked with predicting the final destination of a partner agent based solely on the internal state of the observing agent. If a linear model can decode this information, it indicates that the information is explicitly represented within the network.
Key Results: Explicit Representation of Intentions
The study found that an agent's hidden layers contain significant information about its partners' goals. Linear probes could predict another agent's final landmark with 50-70% accuracy, far exceeding the 33% chance baseline. This prediction was possible from the very first timestep of an episode.
As shown in Figure 6, the "sweet spot" for intention representation is Hidden Layer 1. By the time information reaches Hidden Layer 2, accuracy often drops as the network transitions from high-level goal representation to specific motor action planning. Notably, this representation emerges spontaneously during training without explicit supervision.
The Challenge of Co-adaptation
Despite these internal representations, standard MARL training often leads to extreme "co-adaptation." Agents develop rigid, idiosyncratic strategies tailored to their specific training partners. For example, agents might "break symmetry" by always taking a specific landmark (e.g., "I always go left"). While efficient, this makes them brittle; when paired with a "Sheldon" agent—a hard-coded partner that refuses to move from a specific spot—the trained agents often fail to adjust, leading to a significant generalization gap.
Mitigating Brittleness
The researchers found that simple training modifications can improve robustness. The most effective method was "shuffling" the order of agents in the observation vector during training. This prevents agents from relying on fixed identities or "favorite" spots, forcing them to learn a more generalized strategy for reading intentions and coordinating with any partner.
Conclusion
This research demonstrates that deep RL agents do indeed model the intentions of others within their hidden layers. However, the natural tendency toward co-adaptation can hinder their ability to work with new partners. By employing techniques like role-shuffling, we can encourage the development of more robust, generalizable social intelligence in artificial agents.
Summary updated