Scalable Approaches for a Theory of Many Minds

Maximilian Puelma Touzel, Amin Memarian, Matthew Riemer, Andrei Mircea, Andrew Robert Williams, Elin Ahlstrand, Lucas Lehnert, Rupali Bhati, Guillaume Dumas, Irina RishAgentic Markets @ ICML 2024

TL;DR

This paper tackles the challenge of building AI agents that can understand and predict the behavior of a massive number of other agents simultaneously. They propose a "Theory of Many Minds" (ToMM) framework that uses parameter sharing and novel architectural features to efficiently learn joint policies, enabling more realistic simulations for complex multi-agent systems.

What Problem Does This Paper Address?

As AI systems become more integrated into real-world scenarios, they will increasingly interact with a vast number of other agents, both human and artificial. To effectively operate in these environments, AI agents need to develop a "Theory of Mind" (ToM) – the ability to infer the intentions, beliefs, and actions of others. However, scaling traditional ToM models to handle a massive number of interacting agents presents a significant computational and modeling challenge. Existing approaches often focus on learning about agents sequentially, which is inefficient when many agents are observed in parallel. This paper addresses this gap by formulating the "Theory of Many Minds" (ToMM) problem, specifically focusing on estimating the joint policy of many agents efficiently, even with a fixed computational budget. This is crucial for building more capable agents and for applications in fields like social science and economics that rely on simulating complex group dynamics.

Methods

The authors propose two key architectural modifications to existing scalable ToM models to address the ToMM problem:

  • Encoder-side: Incorporating Interactions: They suggest augmenting sequence models (like those used in ToMnet) with a multi-head self-attention mechanism. This allows the hidden states of different agents to influence each other during the encoding process, capturing inter-agent dependencies. While this introduces an $O(N^2)$ operation, it's linear and can be efficiently parallelized.
  • Decoder-side: Abstracting the Joint Action Space: Instead of treating each agent's action independently, they propose abstracting the joint action space. This can be done by representing the joint action of $N$ agents as a single index, reducing the complexity of the action space. This is inspired by nearest neighbor classifiers and uses an attention-buffer decoder. This approach is parameter-free and can exploit correlations in joint actions, potentially reducing policy entropy and improving learning efficiency.

The core idea behind scaling is parameter sharing, where a single model learns representations for multiple agents, rather than training a separate model for each. This is crucial for keeping the model size from growing with the number of agents ($N$).

Datasets

Not discussed in the paper. The paper focuses on the theoretical formulation and architectural proposals for the ToMM problem, using synthetic data generated from a "ground system" for evaluation.

Key Insights and Ideas

  • The "Theory of Many Minds" (ToMM) is distinct from single-agent ToM: The paper formalizes the problem of estimating the joint policy of many agents, which is a necessary step for understanding group behavior, rather than just individual agent behavior.
  • Parameter sharing is essential for scalability: To handle a large number of agents ($N$) with a fixed computational budget, sharing model parameters across agents is not just beneficial but necessary for achieving $O(1)$ scaling in model size.
  • Inter-agent interactions can be learned efficiently: By incorporating attention mechanisms on the encoder side, models can learn how agents influence each other's internal states, even when processing them in parallel.
  • Abstracting joint actions offers significant advantages: Representing the combined actions of multiple agents as a single entity can exploit correlations, reduce the effective action space complexity, and lead to more efficient learning.
  • Real-world simulations are a key application: The ability to accurately model and simulate the behavior of many agents is vital for advancing fields like social science, political science, and economics.

Key Results

The paper presents theoretical arguments and architectural proposals rather than empirical results with specific quantitative metrics.

  • Theoretical scaling benefits: Table 1 and Figure 1 illustrate how parameter sharing (especially full sharing) dramatically improves model capacity for a fixed number of parameters as the number of agents increases, compared to no sharing or encoder-only sharing.
  • PAC Bounds: The paper derives PAC bounds (Appendix A) showing that the sample complexity for learning joint policies scales with the action space size and logarithmically with the number of agents, suggesting that abstraction can help manage this complexity. Figure 2 visualizes these bounds, highlighting the relatively weak dependence on $N$ when abstraction is used.

Limitations and Future Work

  • Focus on Estimation, not Decision-Making: The paper primarily focuses on estimating the joint policy (the ToMM problem). The authors acknowledge that the problem of an embedded agent using this ToMM to make optimal decisions is left for future work.
  • Parallel Observation Assumption: The proposed methods assume parallel observation of agents. While realistic for some scenarios, many real-world situations involve sequential or partial observations.
  • Extension to Multiple Abstractions: The paper outlines an extension to multiple (soft or hard-assigned) groups of agents, which is a more realistic scenario than a single monolithic abstraction. This "agent abstraction" problem is presented as a key direction for future research.
  • Parameter-Free Decoder: While parameter-free components are advantageous, the paper doesn't deeply explore the trade-offs in performance compared to learned decoders.
  • Empirical Validation: The paper is largely theoretical. Future work would involve implementing and empirically validating these proposed architectures on relevant multi-agent benchmarks.

Summary updated

BibTeX
@inproceedings{touzel2024scalable,
  author = {Maximilian Puelma Touzel and Amin Memarian and Matthew Riemer and Andrei Mircea and Andrew Robert Williams and Elin Ahlstrand and Lucas Lehnert and Rupali Bhati and Guillaume Dumas and Irina Rish},
  title = {{Scalable Approaches for a Theory of Many Minds}},
  booktitle = {Agentic Markets @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=P0oG5gDh6T},
}
Figure