NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Policy Representations in Multiagent Systems

Aditya Grover, Maruan Al-Shedivat, Jayesh K. Gupta, Yuri Burda, Harrison Edwards

Introduction

In multiagent systems—whether it involves a game of poker, a fleet of autonomous cars, or robots wrestling—understanding how other agents behave is crucial for success. Traditionally, "agent modeling" has required hand-engineering features based on domain knowledge (e.g., explicitly coding rules like "this player is aggressive because they bet high").

The primary challenge is creating a general, task-agnostic way to model agents that does not rely on human intuition or environment-specific rules. This paper introduces a general, unsupervised framework for learning continuous "fingerprints" (embeddings) of agent policies. By observing just a few episodes of interaction, the model can identify an agent's underlying strategy, allowing for better outcome prediction, policy clustering, and significantly faster reinforcement learning (RL) through opponent adaptation.

Methodology: An Unsupervised Encoder-Decoder Framework

The authors propose treating agent modeling as a representation learning problem, utilizing an unsupervised encoder-decoder architecture.

  1. The Encoder ($f_\theta$): The encoder takes a small set of "interaction episodes"—sequences of observations and actions—and maps them into a continuous, low-dimensional embedding vector representing the agent's policy.
  2. The Decoder ($\pi_{\phi, \theta}$): Acting as a conditional policy network, the decoder takes the embedding generated by the encoder and attempts to recreate (imitate) the observed actions of the agent.
  3. The Hybrid Objective: To ensure the learned embeddings are of high quality and accurately represent distinct strategies, the authors employ two complementary training goals:
  4. Generative (Imitation): The model is trained via behavioral cloning to predict the agent's next action. If the embedding is accurate, the decoder should be able to simulate the agent effectively.
  5. Discriminative (Identification): Using a triplet loss function, the model is forced to pull embeddings of the same agent's behavior close together in the latent space, while pushing embeddings of different agents far apart.

Furthermore, the authors introduce a formal method to measure generalization using "agent-interaction graphs." This distinguishes between "weak generalization" (evaluating unseen interactions between known agents) and "strong generalization" (evaluating entirely new, unseen agents).

Experimental Setup

The framework was evaluated on two distinct multiagent environments to test both competitive physical control and cooperative communication:

Agent-Interaction Graph and Evaluation Environments
  • RoboSumo: A competitive 3D environment built on MuJoCo where multi-legged robots attempt to push each other out of a ring. This tests the framework's ability to handle continuous control and high-dimensional physics.
  • ParticleWorld: A cooperative communication environment where "Speaker" agents must send binary messages to "Listener" agents to guide them to a target landmark. This tests the model's capacity to represent discrete communication protocols.

Key Insights and Results

  • Imitation as Identity: A core finding is that simply attempting to imitate an agent (the generative task) serves as a powerful mechanism to identify them. Accurately predicting an agent's moves effectively captures their unique "policy signature."
  • Embeddings as Privileged Information: In reinforcement learning, knowing your opponent's "type" provides a significant advantage. By feeding the learned policy embeddings into an RL agent's own policy network, the agent learns to counter specific opponent strategies much faster than a baseline PPO (Proximal Policy Optimization) agent that must learn from scratch.
  • Clustering and Identification: The model successfully clustered different agent policies in a low-dimensional space. The "Intra-Inter Cluster Ratio" (IICR) demonstrated that embeddings for the same agent were significantly more similar than those for different agents.
  • Outcome Prediction: In the RoboSumo environment, using the learned embeddings to predict the winner of a match achieved up to 73% accuracy, outperforming models that lacked the hybrid training objective.
  • Strong Generalization: Even when faced with "unseen" opponents—agents the encoder never observed during training—the embeddings remained highly useful, allowing the RL agents to maintain a performance edge and near-100% win rates.

Limitations and Future Directions

While highly effective, the framework operates under a black-box assumption: it assumes we can observe an agent's actions but not their internal code, hidden states, or reward functions. While realistic for many applications, this makes it challenging to model agents with very long-term dependencies.

Additionally, the current iteration relies on fixed-length interaction data, whereas real-world interactions are often fluid and variable. Future work could incorporate Recurrent Neural Networks (like LSTMs) to better capture agents whose policies evolve over time or depend heavily on historical actions. Finally, the authors suggest exploring "semantic interpolation"—navigating the embedding space to synthesize brand-new agent behaviors that are mixtures of known policies.

Summary updated

BibTeX
@inproceedings{grover2018learning,
  author = {Aditya Grover and Maruan Al-Shedivat and Jayesh K. Gupta and Yuri Burda and Harrison Edwards},
  title = {{Learning Policy Representations in Multiagent Systems}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure