This paper, presented at RLC 2024, introduces PRD-MAPPO, a new algorithm designed to solve one of the most persistent headaches in Multi-Agent Reinforcement Learning (MARL): the credit assignment problem. By leveraging a technique called Partial Reward Decoupling (PRD), the authors show how to filter out the "noise" created by irrelevant teammates, leading to faster learning and more stable performance in complex environments like StarCraft II.
TL;DR
PRD-MAPPO uses a learned attention mechanism to identify which teammates actually influence an agent's success, allowing the agent to ignore rewards from irrelevant peers. This targeted approach significantly reduces gradient variance, enabling multi-agent teams to learn more efficiently than standard methods like MAPPO or QMix.
What Problem Does This Paper Address?
In cooperative MARL, agents work together to maximize a group reward. However, as the number of agents grows, it becomes incredibly difficult for any single agent to determine how its specific actions contributed to the final outcome—this is the credit assignment problem.
Mathematically, this manifests as high variance in policy gradient estimates. If Agent A’s update is influenced by the rewards of Agent B, but their actions are totally independent, Agent B’s reward essentially acts as random noise in Agent A’s learning process. To overcome this noise, standard algorithms like MAPPO (Multi-Agent Proximal Policy Optimization) require massive amounts of data—often billions of interactions—to reach high performance.
Methods
The authors propose integrating Partial Reward Decoupling (PRD) into the MAPPO framework. The core idea is to dynamically decompose a large team into smaller, relevant subgroups.
1. The Attention-Based Critic
The algorithm uses a Graph Neural Network (GNN) with an attention mechanism to estimate a Q-function. As shown in Figure 1, the network takes the states and actions of all agents and computes attention weights ($w_{ij}$). If the weight $w_{ij}$ is near zero, it indicates that Agent $j$’s actions do not influence Agent $i$’s future rewards.
2. "Soft" Decoupling
Unlike previous PRD implementations that used a hard threshold to exclude agents, this paper introduces PRD-MAPPO-soft. Instead of a binary "in or out" decision, it softly re-weights the advantage terms in the PPO update based on the learned attention weights. This prevents the instability that can come from suddenly dropping or adding agents to a relevant set.
3. Linear Scaling
Previous PRD methods scaled quadratically ($O(M^2)$) with the number of agents $M$, making them impractical for large teams. The authors optimized this by using two separate critics—one for identifying the relevant set and one for calculating the baseline—reducing the computational burden to linear scaling ($O(M)$).
4. Handling Shared Rewards
Most PRD methods require individual reward streams for each agent. The authors propose PRD-MAPPO-shared, which uses the attention weights as a heuristic to decompose a single global reward into individual "pseudo-rewards," allowing the algorithm to work in environments where only a team score is provided.
Datasets
The authors evaluated PRD-MAPPO across a diverse range of benchmarks:
- Team Collision Avoidance: 24 agents split into three teams.
- Pursuit: 8 agents coordinating to surround evaders.
- Pressure Plate: 6 agents solving a sequential puzzle.
- Level-Based Foraging (LBF): Agents coordinating to collect items.
- SMAClite: A lightweight version of the StarCraft Multi-Agent Challenge, featuring scenarios like 5m_vs_6m, 10m_vs_11m, and 3s5z.
Key Insights and Ideas
- Variance is the Enemy: The paper provides a formal analysis showing that gradient variance scales roughly linearly with the number of agents. By decoupling irrelevant agents, PRD-MAPPO effectively "shrinks" the perceived team size for each agent, lowering variance.
- Attention as a Map: The attention weights aren't just a black-box tool; they actually map out the task's dependencies. In the Collision Avoidance task, the model learned to only pay attention to teammates on the same team, ignoring the other two teams entirely.
- Efficiency Gains: By reducing noise, the agents reach higher performance levels much earlier in the training process compared to vanilla MAPPO.
Key Results
- Superior Performance: PRD-MAPPO (specifically the "soft" variant) outperformed state-of-the-art baselines like QMix, HAPPO, and MAPPO across almost all tasks.
- StarCraft Success: In the challenging 10m_vs_11m StarCraft scenario, PRD-MAPPO-soft achieved significantly higher mean episode returns than standard MAPPO.
- Empirical Variance Reduction: The authors tracked the variance of the gradient estimates during training. They found that PRD-MAPPO consistently avoided the massive "spikes" in variance that plague standard MAPPO, explaining its superior stability.
Limitations and Future Work
The authors note that PRD is not a silver bullet. Its effectiveness depends on the decomposability of the task. If an environment has "dense" interactions where every agent's action truly affects every other agent (like a crowded traffic junction), the relevant set will include everyone, and PRD-MAPPO will effectively revert to standard MAPPO.
Future work could explore more sophisticated ways to handle these dense interaction scenarios or investigate how these learned relevant sets could be used to improve communication protocols between agents.
Summary updated