Discriminative Experience Replay for Efficient Multi-agent Reinforcement Learning

Xunhan Hu, Jian Zhao, Wengang Zhou, Houqiang Li · DOI

Introduction

In cooperative Multi-Agent Reinforcement Learning (MARL), agents must coordinate to achieve a shared goal. However, environments typically provide only a single global team reward, leading to a significant "credit assignment" problem. Determining which specific actions by individual agents contributed to a team's success or failure is a major challenge. While value factorization methods estimate individual contributions to a global value, they often treat the entire team's transition as a single unit during experience replay. This approach is inefficient, particularly in heterogeneous teams where critical individual experiences can be "diluted" by the mundane actions of the rest of the group.

The DIFFER Framework

To address these inefficiencies, we introduce DIFFER (Decomposing Individual Reward for Fair Experience Replay). This framework moves beyond treating team transitions as atomic units by decomposing the global reward into individual components.

Comparison of the DIFFER training architecture with traditional value factorization methods. DIFFER (b) introduces a Decomposer and Fair Experience Replay to handle individual agent learning more effectively than the traditional joint approach (c).

The framework consists of two primary innovations:

  1. The Decomposer: Rather than using heuristics, DIFFER employs a mathematically grounded approach based on Gradient Invariance. By solving a partial differential equation (PDE), the system ensures that the learning gradient produced by the sum of individual rewards is equivalent to the gradient from the original team reward. This provides a theoretically consistent closed-form solution for calculating individual rewards ($r_i$) dynamically.
  2. Fair Experience Replay: With individual rewards established, the system calculates an individual TD-error for every agent at every time step. This error serves as a priority score, allowing the algorithm to sample individual experiences that are most "surprising" or informative to the model. A warm-up strategy is also utilized to prevent overfitting to noisy early-stage data.

Experimental Evaluation

DIFFER was evaluated across several challenging benchmarks, including the StarCraft Multi-Agent Challenge (SMAC), Google Football Research (GRF), and Multi-Agent Mujoco (MAMujoco).

Mean test win rates for DIFFER compared to QMIX and MASER across various hard and super-hard SMAC maps. DIFFER consistently achieves higher win rates and faster convergence.

The results demonstrate that DIFFER consistently outperforms state-of-the-art baselines like QMIX and QPLEX. The performance gains are most pronounced in "super-hard" SMAC scenarios involving heterogeneous units, such as the MMM2 map. In these cases, DIFFER successfully identifies and prioritizes the unique experiences of specialized units (e.g., Medivacs), teaching them critical sub-tasks like staying out of direct combat to provide healing—a behavior that standard methods often fail to capture.

Conclusion

DIFFER provides a robust, mathematically sound method for individual credit assignment in cooperative MARL. By prioritizing high-utility individual experiences, it significantly improves sample efficiency and learning stability in complex, multi-agent environments. While the additional computation required for reward decomposition is a consideration, the resulting gains in performance and robustness make it a powerful tool for training diverse agent teams. Future work may extend this framework to communication-heavy or competitive multi-agent settings.

Summary updated

BibTeX
@inproceedings{hu2023discriminative,
  author = {Xunhan Hu and Jian Zhao and Wengang Zhou and Houqiang Li},
  title = {{Discriminative Experience Replay for Efficient Multi-agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=AG9A7Ae9r3},
}
Figure