Introduction
In Multi-Agent Reinforcement Learning (MARL), effective coordination is the cornerstone of success. While communication serves as the primary mechanism for this coordination, it presents a significant challenge: determining "who should talk to whom." Traditional approaches often rely on fully connected networks, which suffer from high bandwidth requirements and signal noise, or manually designed communication topologies that are difficult to optimize and often fail to generalize across different tasks.
This paper introduces CommFormer (Communication Transformer), a framework that treats multi-agent communication as a learnable graph modeling problem. By optimizing the communication architecture alongside agent policies, CommFormer discovers efficient, sparse communication patterns that maintain high performance while significantly reducing resource consumption.
Methodology
CommFormer conceptualizes the communication architecture as a directed graph where nodes represent agents and edges represent message-passing channels. The framework addresses the optimization of this graph through several key technical innovations:
Bi-level Optimization
The learning process is structured as a bi-level optimization problem. The "upper level" focuses on optimizing the communication graph structure (the adjacency matrix), while the "lower level" optimizes the agents' policy parameters (the neural network weights). This separation allows the model to refine the communication topology based on the performance of the underlying policies.
Continuous Relaxation and Gumbel-Max
Deciding whether a communication edge exists is inherently a discrete choice, which typically prevents the use of gradient-based optimization. CommFormer overcomes this by employing continuous relaxation via the Gumbel-Max trick. This allows the graph structure to be treated as a continuous entity during training, enabling end-to-end optimization through standard backpropagation.
Relation-Enhanced Transformer
The core architecture utilizes an Encoder-Decoder Transformer. The Encoder features a "relation-enhanced" attention mechanism; rather than simply processing message content, it explicitly incorporates the specific relationship (the edge) between the sender and the receiver. To ensure stable training, an auto-regressive decoder generates actions sequentially, providing a mathematical guarantee of monotonic performance improvement.
Experimental Setup
The effectiveness of CommFormer was evaluated across four diverse cooperative benchmarks:
- StarCraft II Multi-Agent Challenge (SMAC): A high-dimensional environment requiring micro-management of heterogeneous units.
- Google Research Football (GRF): A strategic "3 vs 2" academy scenario testing high-level coordination.
- Predator-Prey (PP): A classic task requiring agents to surround a target.
- Predator-Capture-Prey (PCP): A complex variant where communication is mandatory because some agents can see the prey but cannot catch it, while others can catch it but are "blind."
Key Results and Insights
Superior Performance and Efficiency
CommFormer consistently outperformed established baselines, including MAPPO, HAPPO, and QMIX, as well as specialized communication models like MAGIC and TarMAC. In the SMAC benchmark, CommFormer achieved near 100% win rates on "Hard" and "Hard+" maps (such as 3s5z and 6h_vs_8z) where other methods often plateaued.
The Power of Sparsity
One of the most significant findings is that CommFormer, when configured with a sparsity setting of 0.4, performs almost identically to a fully connected model. This indicates that approximately 60% of communication in these complex tasks is redundant. By identifying and removing these unnecessary edges, CommFormer reduces bandwidth and mitigates the "noise" problem inherent in dense communication.
Robustness and Generalization
The model demonstrated strong generalization capabilities, remaining robust even when the number of agents changed. This suggests that the learned graph structures capture fundamental coordination logic rather than just overfitting to a specific agent count.
Conclusion and Future Work
CommFormer demonstrates that learning a communication graph is vastly superior to manual design. By integrating graph modeling with Transformer architectures, agents can autonomously discover who they need to listen to for optimal credit assignment and coordination.
Currently, CommFormer learns a static graph that remains fixed after training. Future research may explore dynamic graphs that adapt in real-time based on agent proximity or environmental changes. Additionally, for extremely large-scale environments, hybrid approaches that combine proximity-based segmentation with CommFormer’s graph optimization could further enhance scalability.
Summary updated