Never Explore Repeatedly in Multi-Agent Reinforcement Learning

Chenghao Li, Tonghan Wang, Chongjie Zhang, Qianchuan ZhaoarXiv 2023 · DOI

Abstract

Exploration in Multi-Agent Reinforcement Learning (MARL) is often hindered by the "revisitation" problem, where agents repeatedly re-explore familiar states due to the limited expressive capability and forgetting inherent in neural-based intrinsic rewards. We introduce Never Explore Repeatedly (NER), a framework designed to break this cycle. NER utilizes a non-parametric, kernel-based scaling factor to dynamically dampen intrinsic rewards in familiar territory. By maintaining a stable memory of visited states through a replay buffer and K-Nearest Neighbors (KNN) approach, NER facilitates broader exploration. Our evaluation across Maze, Google Research Football (GRF), and StarCraft II (SMAC) environments demonstrates that NER achieves state-of-the-art performance, particularly in challenging sparse-reward scenarios.

Introduction: The Revisitation Problem

Exploration in MARL is notoriously difficult as the state-action space grows exponentially with the number of agents. To address this, researchers often employ intrinsic motivation (curiosity), where agents receive additional rewards for visiting novel states. Most modern methods calculate these rewards using variational approximators—neural networks that estimate state probability.

However, these neural networks suffer from limited memory and catastrophic forgetting. As an agent explores new areas, the network's error for previously visited states may increase. The agent misinterprets this high error as "novelty," leading it to waste training time re-exploring old ground. The authors formally characterize this as revisitation using the Jensen-Shannon (JS) distance between joint observation distributions at different time steps. If the distribution at time $t$ closely matches a distribution from a much earlier time $t'$, a revisitation has occurred.

Comparison of JS Distance and visitation distributions across MAVEN, CDS, and NER. The JS distance peaks indicate when agents return to previously explored distributions.

Methods: The NER Framework

NER (Never Explore Repeatedly) dynamically scales intrinsic rewards to ensure agents consistently push the environment's boundaries. The framework is built on top of CDS (Celebrated Diversity in Shared MARL) and utilizes the QMIX architecture for value factorization.

Dynamic Reward Scaling

Instead of relying solely on a neural network's curiosity score ($r^I$), NER multiplies it by a scaling factor $\alpha$: $$r^{scale} = \alpha r^I$$

Non-Parametric Adjustment Module

To solve the forgetting problem, $\alpha$ is calculated using a K-Nearest Neighbors (KNN) approach. The system maintains a replay buffer of joint observations. If a new observation is similar to many points in the buffer (indicating high familiarity), $\alpha$ is reduced. If the observation is unique, $\alpha$ remains large. This provides a "stable memory" that does not fluctuate as the neural model trains.

The NER adjustment module architecture, showing how joint observations are stored in a buffer and processed via KNN to produce the scaling factor alpha.

Experimental Evaluation

The researchers evaluated NER across three distinct environments:

  • Didactic Maze: A 6x12 grid requiring coordinated movement to distant corners.
  • Google Research Football (GRF): Academy scenarios including Pass and Shoot and Counterattack Hard in deterministic and stochastic settings.
  • StarCraft II Micromanagement (SMAC): Evaluated on maps like 2m vs 1z using sparse reward settings where rewards are only granted for winning.

Key Results

  • Maze Dominance: NER was the only algorithm to achieve a 100% success rate, whereas baselines like MAVEN and CDS frequently revisited the maze center and failed.
  • SMAC Sparse Rewards: In the 2m vs 1z map, NER reached a near 100% win rate in under 2 million steps. All other baselines (CDS, MAVEN, QMIX, QPLEX) failed to learn a winning strategy entirely.
  • Robustness: In stochastic GRF environments, NER demonstrated it learns robust policies capable of handling unpredictable opponent behavior rather than just memorizing paths.

Conclusion

NER addresses a fundamental flaw in neural-based exploration: the tendency to forget visited states and succumb to redundant re-exploration. By introducing a non-parametric scaling factor, NER provides the stable memory necessary for effective exploration in high-dimensional MARL tasks. Future work may focus on addressing "symmetry in cooperation," where agents might redundantly explore functionally identical strategies, to further improve exploration efficiency.

Summary updated

BibTeX
@misc{li2023never,
  author = {Chenghao Li and Tonghan Wang and Chongjie Zhang and Qianchuan Zhao},
  title = {{Never Explore Repeatedly in Multi-Agent Reinforcement Learning}},
  year = {2023},
  eprint = {2308.09909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.09909},
}
Figure