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

Overcoming Environmental Meta-Stationarity in MARL via Adaptive Curriculum and Counterfactual Group Advantage

Weiqiang Jin, Yang Liu, Shixiang Tang, Jinhu Qi, Wentao Zhang, Junli Wang, Biao Zhao, Hongyang DuarXiv 2025

TL;DR

Most multi-agent reinforcement learning (MARL) algorithms train agents against a fixed difficulty level from start to finish, causing them to overfit to static conditions and get trapped in local optima. This paper introduces CL-MARL, a framework that breaks this limitation by combining an automated, statistical difficulty scheduler (FlexDiff) with a novel credit-assignment algorithm (CGRPA). By dynamically scaling opponent difficulty and stabilizing policy updates during transitions, CL-MARL achieves state-of-the-art performance and significantly faster convergence on challenging StarCraft II benchmarks.

What Problem Does This Paper Address?

In cooperative MARL, agents must learn to coordinate actions to achieve a shared goal, often against scripted opponents. While the learning process itself is highly non-stationary because agents are co-adapting, the overall task difficulty (e.g., opponent AI strength) is almost always held completely static throughout a training run. The authors term this overlooked limitation environmental meta-stationarity.

When trained under meta-stationary conditions, agents frequently overfit to the specific quirks of that single difficulty level. They fall into the "fixed-difficulty trap," converging to shallow local optima that fail to generalize to slightly different or harder scenarios. To overcome this, the authors look to human education and propose integrating Curriculum Learning (CL)—gradually moving from easy to hard tasks—into cooperative adversarial MARL.

Figure 1: When CL Meets MARL: A comparative illustration of training paradigms between CL-based supervised learning and CL-based MARL. Part 1 and Part 2 represent the traditional CL framework for supervised learning (e.g., CV, NLP) with labeled data and its optimization trajectories (supervision loss minimization), and Part 3 and Part 4 are the CL-based MARL training framework in the SMAC adversarial environment (2s_vs_3z map) and corresponding optimization trajectories (optimal policy exploration).

Methods

The authors introduce the CL-MARL framework, which consists of two primary components designed to inject a dynamic curriculum into MARL without destabilizing the learning process:

  1. FlexDiff (Flexible Difficulty Scheduler): Instead of relying on hand-crafted schedules or complex black-box machine learning models, FlexDiff uses closed-form statistical rules to adjust difficulty online. It monitors a dual-metric stream: win rates (for task completion) and continuous returns (for graded progress). Crucially, FlexDiff implements an asymmetric decision boundary. Promoting agents too early can cause catastrophic policy unlearning, whereas demoting them too early merely slows down training. FlexDiff handles this asymmetry by making promotion thresholds dynamically harder to satisfy than demotion thresholds.
  2. CGRPA (Counterfactual Group Relative Policy Advantage): Shifting the curriculum introduces severe non-stationarity and reward sparsity. Traditional value-based credit assignment methods (like QMIX) struggle to adapt. CGRPA solves this by fusing Group Relative Policy Optimization (GRPO) with Counterfactual Multi-Agent Policy Gradients (COMA). It evaluates an agent's true contribution by comparing its chosen action against potential counterfactual actions, stabilizing policy updates when the environment's difficulty shifts.
Figure 2: The architecture of our proposed CL-based MARL framework for cooperative-adversarial scenarios in SMAC. The framework comprises: (1) the original MARL training with static environment settings, (2) our proposed FlexDiff scheduler for dynamic difficulty adjustment, and (3) our introduced CGRPA algorithm enhancing Actor-Critic with counterfactual inter-action advantage estimation.

Datasets

The framework was comprehensively evaluated on the StarCraft Multi-Agent Challenge (SMAC) and its enhanced version, SMACv2. SMACv2 introduces randomized unit starting positions and dynamic army compositions to prevent algorithmic overfitting. The authors tested their method across nearly 20 different maps spanning three distinct difficulty tiers: Easy (e.g., 3m, 8m, 1c3s5z), Hard (e.g., 5m_vs_6m, 7s7z), and Super-Hard (e.g., MMM2, 3s5z_vs_3s6z, 27m_vs_30m).

Key Insights and Ideas

  • The Solution Manifold Track: By starting with easier opponent levels, agents first find stable local minima. As FlexDiff increments the difficulty, the policy smoothly tracks these solution manifolds toward the global optimum of the target difficulty, bypassing the poor local optima that trap static-difficulty baselines.
  • Two-Timescale Separation: To prevent the dynamic curriculum from breaking the inner reinforcement learner, FlexDiff operates on a slower timescale (checking metrics once per evaluation cycle) than CGRPA's fast-timescale gradient updates. This ensures the agents experience a quasi-stationary environment long enough to approach a stage-wise Bellman fixed point before the next difficulty bump.
  • Counterfactuals as a Stabilizer: Fusing group-relative baselines with counterfactual reasoning acts as an anchor. When the environment suddenly gets harder and global rewards drop, counterfactual advantages prevent the agents' policies from diverging wildly.

Key Results

CL-MARL was benchmarked against prominent SOTA MARL baselines, including QMIX, OW-QMIX, DER, EMC, and MARR:

  • Super-Hard Map Breakthroughs: On the notoriously difficult 3s5z_vs_3s6z map, CL-MARL achieved a 40% mean win rate, outperforming QMIX by ~30% and QPLEX by ~20%.
  • Faster Convergence: CL-MARL reached its peak win rate 1.28× faster on the 8m_vs_9m map and 1.42× faster on 3s5z_vs_3s6z compared to the strongest baselines.
  • Substantial Performance Surges: On the hard 5m_vs_6m map, integrating CL-MARL caused QMIX's final win rate to surge from a baseline of 45–60% up to 75–90%.

Limitations and Future Work

Despite its success, the authors noted a few limitations:

  • Heterogeneous Micromanagement: On maps with highly diverse unit types (like MMM2), CL-MARL improves global coordination but lacks specialized micro-management optimization for distinct unit roles, leaving a slight performance gap compared to QPLEX.
  • Episode Length Bottlenecks: The default maximum episode lengths in SMAC occasionally cut off winning strategies prematurely on super-hard maps. Extending these limits significantly boosted CL-MARL's win rates, indicating that standard benchmark constraints might be hiding the model's true potential.
  • Hyperparameter Tuning: FlexDiff introduces several rule-based hyperparameters (e.g., window lengths, thresholds). The authors plan to explore meta-reinforcement learning in future work to automate these parameters dynamically.

Summary updated

BibTeX
@misc{jin2025overcoming,
  author = {Weiqiang Jin and Yang Liu and Shixiang Tang and Jinhu Qi and Wentao Zhang and Junli Wang and Biao Zhao and Hongyang Du},
  title = {{Overcoming Environmental Meta-Stationarity in MARL via Adaptive Curriculum and Counterfactual Group Advantage}},
  year = {2025},
  eprint = {2506.07548},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07548},
}
Figure