PMAT: Optimizing Action Generation Order in Multi-Agent Reinforcement Learning

Kun Hu, Muning Wen, Xihuai Wang, Shao Zhang, Yiwei Shi, Minne Li, Minglong Li, Ying Wen

Abstract

In Multi-Agent Reinforcement Learning (MARL), the order in which agents generate actions significantly impacts team coordination. While sequential models like the Multi-Agent Transformer (MAT) allow agents to observe the decisions of their predecessors, they typically rely on fixed or randomized execution orders. This paper introduces the Prioritized Multi-Agent Transformer (PMAT), a framework that learns the optimal action generation sequence on the fly. By utilizing a differentiable ranking mechanism called Action Generation with Plackett-Luce Sampling (AGPS), PMAT prioritizes agents with the most significant local observations. Experimental results across StarCraft II, Google Research Football, and Multi-Agent MuJoCo demonstrate that PMAT achieves state-of-the-art win rates and superior training stability compared to existing simultaneous and sequential baselines.

1. Introduction

Multi-agent systems generally operate under one of two paradigms: simultaneous action generation or sequential generation. Simultaneous models are the industry standard but often suffer from coordination failures because agents cannot "see" their teammates' decisions in real-time. Sequential models, such as MAT, mitigate this by allowing agents to act one after another. However, these models face a significant challenge: determining the optimal order of operations.

With $N!$ possible permutations, finding the perfect sequence is a combinatorial nightmare. Furthermore, standard sorting methods are non-differentiable, leading to vanishing gradients and training instability. PMAT addresses these hurdles by treating the action order as a learnable parameter, optimizing who should "decide" first to maximize team utility.

2. The PMAT Framework

PMAT integrates a scoring mechanism and a probabilistic ranking model into the Transformer architecture to dynamically determine agent priority.

2.1 The Scoring Block

PMAT utilizes a Transformer encoder to process the local observations of all agents. These representations are passed through a "Scoring Block" (a multi-layer perceptron) that assigns a "decision credit" to each agent. This score represents the relative importance of an agent's current state to the overall team strategy.

2.2 Action Generation with Plackett-Luce Sampling (AGPS)

To ensure the ranking process is compatible with gradient-based learning, PMAT employs Plackett-Luce (P-L) sampling. Instead of a "hard sort," P-L sampling is a probabilistic model where the likelihood of an agent being chosen next in the sequence is proportional to its score relative to the remaining agents. This multi-step sampling process is differentiable in expectation, smoothing out the ranking process and resolving the issues of vanishing gradients and erratic training fluctuations.

2.3 Auto-regressive Decoding

Once the sequence is sampled, the Transformer decoder generates actions auto-regressively. Agent $i$ makes a decision, and that decision—along with the agent's observation—is fed into the decoder to inform the decision of Agent $j$ (the next in the sequence). This ensures that the most critical information, identified by the scoring block, flows through the rest of the team's decision-making process.

3. Experimental Evaluation

PMAT was evaluated on three major MARL benchmarks to test its coordination capabilities in diverse scenarios.

  • StarCraft II Multi-Agent Challenge (SMAC): On the "Super Hard" MMM2 map, PMAT achieved an 85.0% win rate, significantly outperforming the original MAT (75.0%) and MAPPO (58.8%).
  • Google Research Football (GRF): In the academy pass and shoot scenario, PMAT reached an average score of 0.964, surpassing MAT's 0.947. Qualitative analysis showed that PMAT learned to let players with clear shooting lanes decide to wait for a pass, while teammates prioritized the delivery.
  • Multi-Agent MuJoCo: In the Ant-v2 task, PMAT demonstrated superior stability in controlling the joints of a multi-agent robot, maintaining smoother training curves than randomized-order baselines.

4. Key Insights

4.1 Observation Significance as Priority

The core innovation of PMAT is the realization that agents with the most critical information (e.g., the player closest to the goal) should decide first. Their decision credit acts as a guiding signal for the rest of the team.

4.2 The Catalyst of Heterogeneity

PMAT shows its most significant gains in heterogeneous tasks—environments where agents have different roles, such as Medivacs and Marines in StarCraft. In these cases, the sequence of decision-making is far more consequential than in homogeneous teams, as different roles must synchronize their unique capabilities.

5. Conclusion and Future Work

PMAT demonstrates that the order of operations is a vital, yet often overlooked, component of multi-agent coordination. By making the sequence differentiable and learnable, PMAT achieves new levels of performance in complex environments. Future research will focus on scaling this approach to massive swarms where Transformer complexity may become a bottleneck and exploring the application of learned ordering to broader reinforcement learning challenges.

Summary updated

BibTeX
@inproceedings{hu2025pmat,
  author = {Kun Hu and Muning Wen and Xihuai Wang and Shao Zhang and Yiwei Shi and Minne Li and Minglong Li and Ying Wen},
  title = {{PMAT: Optimizing Action Generation Order in Multi-Agent Reinforcement Learning}},
  booktitle = {AAMAS},
  year = {2025},
  doi = {10.48550/arxiv.2502.16496},
}
Figure