Attention-Based Recurrence for Multi-Agent Reinforcement Learning under Stochastic Partial Observability

Thomy Phan, Fabian Ritz, Philipp Altmann, Maximilian Zorn, Jonas Nüßlein, Michael Kölle, Thomas Gabor, Claudia Linnhoff-Popien

TL;DR

AERIAL improves multi-agent reinforcement learning in noisy, unpredictable environments by replacing the "perfect" global state used during training with a learned representation of the agents' collective memory. The researchers also introduced MessySMAC, a new benchmark that adds realistic sensor noise and initial randomness to the popular StarCraft Multi-Agent Challenge, exposing the weaknesses of current state-of-the-art algorithms.

The Problem with the "True State"

Most modern Multi-Agent Reinforcement Learning (MARL) algorithms rely on a paradigm called Centralized Training for Decentralized Execution (CTDE). During training, a "critic" or "mixer" has access to the true global state of the environment to help agents learn. However, during actual execution, agents only see their own noisy, local observations.

The authors argue that relying on the "true state" during training is a pitfall. In the real world (and in complex Dec-POMDP models), sensors are noisy and initial conditions vary. The true state provides an "optimistic" upper bound that doesn't account for the uncertainty agents actually face. Current benchmarks like the StarCraft Multi-Agent Challenge (SMAC) are too "clean"—their observations are deterministic, which hides this fundamental flaw in state-based training.

Methods: The AERIAL Architecture

The authors propose AERIAL (Attention-based Embeddings of Recurrence In multi-Agent Learning). The core innovation is replacing the true state $s_t$ in the centralized training component with a joint representation of all agents' memory representations (hidden states from their Recurrent Neural Networks).

Key components include:

  • Recurrent Embeddings: Each agent uses an RNN to maintain a history of its local observations and actions.
  • Attention Mechanism: A simplified Transformer processes the set of all agents' hidden states. This allows the model to learn the latent dependencies and correlations between different agents' histories, effectively approximating the "multi-agent recurrence."
  • Gradient Detachment: To keep training stable, the hidden states are detached from the mixer's computation graph, ensuring they are only updated by the agents' individual reinforcement learning objectives.
The AERIAL architecture replaces the global state with a Transformer-processed collection of agent hidden states.

Benchmarks: Introducing MessySMAC

The researchers evaluated their approach on three benchmarks:

  1. Dec-Tiger: A classic, small-scale coordination puzzle where agents must decide whether to open doors or listen for a tiger based on noisy audio.
  2. SMAC (StarCraft Multi-Agent Challenge): The standard benchmark for MARL micromanagement.
  3. MessySMAC (New): A modified version of SMAC introduced in this paper. It adds observation stochasticity (randomly negating sensor values) and initialization stochasticity (starting the episode after a random number of steps).
Comparison of standard SMAC (K=0) and MessySMAC (K=10) showing increased state variance.

Key Insights and Ideas

  • The "True State" is a Lie: In noisy environments, the global state contains information that agents can never access. Training against it leads to policies that assume perfect information, which fail when the "fog of war" gets thick.
  • History is a Better Teacher: By using the agents' internal memories (recurrence) as the basis for training, the centralized mixer learns a value function that is grounded in the same noisy reality the agents experience.
  • Attention is Essential: Simply concatenating agent memories isn't enough. Because agents' observations are often correlated (e.g., two agents seeing the same enemy from different angles), self-attention is needed to filter and integrate these histories into a coherent global picture.

Key Results

  • Dec-Tiger: AERIAL achieved near-optimal returns (approx. 0), while standard state-based methods failed miserably (approx. -15), converging to a naive strategy of ignoring observations entirely.
  • MessySMAC: As noise levels increased, AERIAL's performance remained robust. In scenarios with 15% observation noise and high initial variance, AERIAL consistently outperformed state-of-the-art baselines like QMIX and QPLEX.
  • Standard SMAC: Even in "clean" environments where state-based training works well, AERIAL remained competitive, proving that it doesn't sacrifice performance for robustness.

Limitations and Future Work

The authors acknowledge that AERIAL does not significantly outperform baselines in "easy," deterministic domains, suggesting that the added complexity is most beneficial when stochasticity is high. Additionally, relying on joint memory might introduce bias in tasks requiring extreme exploration.

Future work includes evaluating AERIAL on the newer SMACv2 benchmark and exploring its performance in "mixed" environments where agents are both cooperative and competitive.

Summary updated

BibTeX
@inproceedings{phan2023attention,
  author = {Thomy Phan and Fabian Ritz and Philipp Altmann and Maximilian Zorn and Jonas Nüßlein and Michael Kölle and Thomas Gabor and Claudia Linnhoff-Popien},
  title = {{Attention-Based Recurrence for Multi-Agent Reinforcement Learning under Stochastic Partial Observability}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=23uOLxPd34},
}
Figure