NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sample-efficient multi-agent reinforcement learning with masked reconstruction

Jung In Kim, Young Jae Lee, Jongkook Heo, Jin‐Hyeok Park, Jaehoon Kim, Sae Rin Lim, Jin‐Yong Jeong, Seoung Bum KimPLoS 2023

Abstract

Deep reinforcement learning (DRL) is a powerful approach that combines reinforcement learning (RL) and deep learning to address complex decision-making problems in high-dimensional environments. Although DRL has been remarkably successful, its low sample efficiency necessitates extensive training times and large amounts of data to learn optimal policies. These limitations are more pronounced in the context of multi-agent reinforcement learning (MARL). To address these limitations, various studies have been conducted to improve DRL. In this study, we propose an approach that combines a masked reconstruction task with QMIX (M-QMIX). By introducing a masked reconstruction task as an auxiliary task, we aim to achieve enhanced sample efficiency—a fundamental limitation of RL in multi-agent systems. Experiments were conducted using the StarCraft II micromanagement benchmark to validate the effectiveness of the proposed method. We used 11 scenarios comprising five easy, three hard, and three very hard scenarios. We particularly focused on using a limited number of time steps for each scenario to demonstrate the improved sample efficiency. Compared to QMIX, the proposed method is superior in eight of the 11 scenarios. These results provide strong evidence that the proposed method is more sample-efficient than QMIX, demonstrating that it effectively addresses the limitations of DRL in multi-agent systems.

Introduction

Multi-agent reinforcement learning (MARL) is notoriously "data-hungry." In complex environments where multiple agents must cooperate—like autonomous robot swarms or team-based games—algorithms often require millions of interactions with the environment to learn effective policies. This low sample efficiency stems from high-dimensional input data and the "non-stationarity" inherent in having multiple learning agents acting simultaneously.

While the QMIX algorithm is a powerful baseline for these problems, it often struggles to extract meaningful features from raw observations quickly. M-QMIX addresses this by integrating self-supervised representation learning, specifically a masked reconstruction task, into the standard MARL framework.

Methodology

M-QMIX enhances the popular QMIX algorithm by adding a "masked reconstruction" auxiliary task. This forces agents to reconstruct missing parts of their observations, leading to more robust internal representations.

The Core Architecture

The system relies on two primary components: the QMIX baseline and the auxiliary reconstruction task.

  1. QMIX Baseline: This uses a mixing network to combine individual agent values into a global joint action-value ($Q_{tot}$), ensuring decentralized execution with centralized training. As shown in the architectural overview, each agent processes its local observations through a recurrent network to produce individual Q-values.
The QMIX baseline architecture: (a) the mixing network structure and (b) the internal recurrent neural network structure of an individual agent.
  1. The Masked Reconstruction Task: Inspired by the "Bootstrap Your Own Latent" (BYOL) method, M-QMIX adds an Online Network and a Target Network. During training, a portion of the agent's observation (e.g., 20%) is randomly masked. The Online Network attempts to predict the full, unmasked representation, while the Target Network (which sees the original data) provides the ground truth.
The M-QMIX architecture, illustrating the integration of the masked reconstruction auxiliary task with the standard RL objective.

By combining a Mean Squared Error (MSE) loss from this reconstruction task with the standard RL loss, the agents are incentivized to understand the underlying structure of their environment rather than just reacting to immediate rewards.

Experimental Setup

The study utilizes the StarCraft II micromanagement benchmark (SMAC), testing 11 scenarios across three difficulty levels:

  • Easy: 1c3s5z, 2s3z, 3s5z, 2s_vs_1sc, 10m_vs_11m.
  • Hard: 2c_vs_64zg, bane_vs_bane, 5m_vs_6m.
  • Super Hard: MMM2, 27m_vs_30m, corridor.

To rigorously test sample efficiency, the authors intentionally reduced the number of training timesteps compared to standard benchmarks, forcing the algorithms to learn faster.

Key Results and Insights

M-QMIX demonstrated superior performance in 8 out of the 11 scenarios.

  • Efficiency in Complex Scenarios: The method proved particularly effective in "Super Hard" maps. In the 27m_vs_30m scenario, M-QMIX showed a massive performance margin over QMIX. In the corridor map, where QMIX failed to learn entirely (0% win rate), M-QMIX achieved a nearly 10% win rate within the limited time steps.
  • Optimal Masking Ratio: Hyperparameter tuning revealed that a 20% masking ratio ($r_m = 0.2$) is the "sweet spot." Excessive masking (e.g., 80%) makes the task too difficult and degrades performance.
  • Representation Learning: The success of M-QMIX suggests that RL agents often fail due to a lack of environmental "understanding." Masking acts as a fill-in-the-blanks test, forcing the encoder to learn relationships between different features in the observation vector.

Conclusion

M-QMIX effectively addresses the sample efficiency limitations of MARL by leveraging auxiliary self-supervised tasks. While the current implementation focuses on vector-shaped data and introduces some computational overhead due to extra networks, the gains in data efficiency are significant. Future work may explore applying these techniques to image-based environments and investigating other data augmentation methods like temporal shifting.

Summary updated

BibTeX
@inproceedings{kim2023sample,
  author = {Jung In Kim and Young Jae Lee and Jongkook Heo and Jin‐Hyeok Park and Jaehoon Kim and Sae Rin Lim and Jin‐Yong Jeong and Seoung Bum Kim},
  title = {{Sample-efficient multi-agent reinforcement learning with masked reconstruction}},
  booktitle = {PLoS},
  year = {2023},
  doi = {10.1371/journal.pone.0291545},
}
Figure