Abstract
Sample efficiency and scalability to a large number of agents are two important goals for multi-agent reinforcement learning (MARL) systems. Recent works address the non-stationarity of the environment from a single agent's perspective by utilizing a deep net critic which depends on all observations and actions. However, standard critics concatenate agent data in a user-specified order, and since deep nets are not permutation invariant, a permuted input changes the critic output despite the environment remaining identical. To avoid this inefficiency, we propose a "permutation invariant critic" (PIC), which yields identical output irrespective of the agent permutation. This consistent representation enables our model to scale to 30 times more agents and to achieve improvements of test episode reward between 15% to 50% on the challenging multi-agent particle environment (MPE).
Introduction
In Multi-Agent Reinforcement Learning, environments are inherently non-stationary from the perspective of a single agent because other agents are simultaneously updating their policies. A common solution, popularized by algorithms like MADDPG, is to use a centralized critic during training that observes the concatenated observations and actions of all agents to estimate the value function.
However, this concatenation imposes an arbitrary order. For a set of identical agents, the state representation [Agent A, Agent B] is semantically identical to [Agent B, Agent A]. Standard Multi-Layer Perceptrons (MLPs) fail to recognize this symmetry, treating each permutation as a novel state. As the number of agents $N$ grows, the number of permutations increases factorially ($N!$), leading to extreme sample inefficiency. Standard MLP critics consequently struggle to scale to environments with many agents, wasting training time learning that these permutations represent the same underlying state.
Methodology: The Permutation Invariant Critic
To solve this representational inefficiency, we introduce the Permutation Invariant Critic (PIC). Instead of an MLP, PIC models the multi-agent environment as a graph where each agent is a node.
Graph Neural Networks for MARL
PIC utilizes a Graph Convolutional Network (GCN) to process agent states and actions. GCNs are naturally suited for this task because they use shared weights across nodes and aggregate data using commutative operations (such as max pooling or summation). This architecture mathematically guarantees that the output remains identical regardless of the input order of agents.
Handling Heterogeneity
While many MARL tasks involve homogeneous agents, others are heterogeneous (e.g., predators vs. prey). A strictly permutation-invariant critic might fail to distinguish between these roles. To address this, we augment the input of heterogeneous agents with learned "group attributes" or embeddings. This allows the GCN to distinguish between different agent types while maintaining permutation invariance within each specific group.
Experimental Evaluation
We evaluated PIC on a high-performance, vectorized version of the Multi-Agent Particle Environment (MPE). This optimized backend allowed us to speed up physics and collision computations by a factor of 30, enabling the training of up to 200 agents in a single day.
Key Insights
- Inductive Bias vs. Data Augmentation: Shuffling agent order during training (data augmentation) for a standard MLP critic is insufficient. Baking the physical symmetries directly into the architecture via GCNs provides a far superior inductive bias.
- Scalable Value Estimation: GCNs serve as effective value-estimation engines by naturally modeling the relational dynamics between agents without requiring complex routing mechanisms.
Results
PIC demonstrated significant improvements in both performance and scalability across various MPE tasks, including Cooperative Navigation, Prey and Predator, and Heterogeneous Navigation.
- Reward Improvements: PIC achieved 15% to 50% higher average test episode rewards compared to the standard MADDPG baseline.
- Massive Scalability: In the Cooperative Navigation task, PIC successfully learned effective policies for up to 200 agents. In contrast, the baseline MLP critic completely failed to learn useful strategies at this scale.
- Training Efficiency: The combination of the PIC architecture and our vectorized MPE reduced training time for 30 agents from over 100 hours to under 5 hours.
Conclusion and Future Work
PIC addresses a fundamental representational flaw in centralized critics for MARL. By ensuring permutation invariance, we significantly improve sample efficiency and scalability. While our current implementation uses fully connected graphs, which scale quadratically ($O(N^2)$), future work will explore alternative graph connectivities and sparse architectures to push MARL capabilities to thousands of agents.
Summary updated