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 (Attention-based Embeddings of Recurrence In multi-Agent Learning) improves coordination in multi-agent systems by replacing the "true global state" used during training with a learned representation of agents' collective memories. This approach, combined with a new stochastic benchmark called MessySMAC, demonstrates that current state-of-the-art methods are surprisingly fragile when faced with noisy sensors and random starting conditions.

What Problem Does This Paper Address?

In Multi-Agent Reinforcement Learning (MARL), the standard paradigm is Centralized Training for Decentralized Execution (CTDE). During training, a central "critic" has access to the global state of the environment to help agents learn. However, when deployed, agents must act based only on their local, often noisy, observations.

The authors argue that current MARL research relies too heavily on the "true state" ($s_t$) during training. In real-world scenarios—like fleet management or industrial robotics—observations are stochastic (noisy) and partially observable. Relying on a perfect global state during training can lead to "overly optimistic" behavior: the critic assumes agents know more than they actually do, leading to policies that fail when the environment gets "messy." Furthermore, popular benchmarks like the StarCraft Multi-Agent Challenge (SMAC) are largely deterministic, masking this fundamental weakness.

Methods

The authors propose AERIAL, which shifts the critic's focus from the global state to the agents' internal "recurrence."

  1. Memory Embeddings: Instead of using the true state $s_t$, AERIAL uses the joint hidden states ($h_t$) of the agents' Recurrent Neural Networks (RNNs). These hidden states act as a compact summary of each agent's individual history of observations and actions.
  2. Attention Mechanism: To account for the fact that agents' decisions are interdependent, AERIAL passes these joint memory representations through a simplified Transformer (self-attention layer). This allows the model to learn the latent dependencies between agents without assuming their histories are independent.
  3. Gradient Detachment: Crucially, the memory representations are detached from the critic's computation graph. This ensures that the agents' memories are shaped by their local task performance, not by the centralized critic's potentially biased view.
Figure 1. Illustration of the AERIAL setup. Left: Recurrent agent network structure with memory representations ht−1,i and ht,i. Right: Value function factorization via factorization operator Ψ using the joint memory representation ht = ⟨ht,i⟩i∈D of all agents’ RNNs instead of true states st. All memory representations ht,i are detached from the computation graph to avoid additional differentiation (indicated by the dashed gray arrows) and passed through a simplified transformer before being used by Ψ for value function factorization.

Datasets

The paper evaluates AERIAL across three distinct environments:

  • Dec-Tiger: A classic, small-scale benchmark for decentralized partially observable Markov decision processes (Dec-POMDPs) where agents must coordinate to open the correct door based on noisy listening actions.
  • SMAC: The standard StarCraft-based benchmark for MARL.
  • MessySMAC (New): A modified version of SMAC introduced by the authors. It adds two types of stochasticity: observation noise (negating values with probability $\phi$) and initialization stochasticity (starting episodes with $K$ random steps).

Key Insights and Ideas

  • The "Optimism" Pitfall: The paper mathematically demonstrates that the optimal state-based value function is an upper bound on the true Dec-POMDP value function. State-based CTDE can therefore converge to policies that are physically impossible to execute successfully under partial observability.
  • Recurrence over State: In noisy environments, the history of what agents have seen and done is a more reliable basis for coordination than the underlying "true" state, which the agents cannot see anyway.
  • Benchmarking Blindspots: The authors use PCA visualizations to show that in original SMAC, agents can often tell what time step they are in just by looking at their observations. This suggests that SMAC may be solvable via "open-loop" control, which doesn't reflect real-world complexity. MessySMAC breaks this by increasing entropy, forcing agents to rely on "closed-loop" control.
Figure 2. Left: Screenshot of two SMAC maps. Middle: PCA visualization of the joint observations in original SMAC within the first 5 steps of 1,000 episodes using a random policy with K = 0 initial random steps. Right: Analogous PCA visualization for MessySMAC with K = 10 initial random steps. For visual comparability, the observations are deterministic here.

Key Results

  • Dec-Tiger: AERIAL achieves near-optimal returns (approx. 0), while all state-based CTDE baselines fail, converging to a sub-optimal "optimistic" policy (approx. -15).
  • MessySMAC: AERIAL consistently outperforms state-of-the-art baselines like QMIX and QPLEX. As the noise level ($\phi$) or initial randomness ($K$) increases, the performance gap between AERIAL and state-based methods widens significantly.
  • Original SMAC: AERIAL remains competitive with top-tier methods, proving that replacing the true state with memory embeddings doesn't hurt performance even in deterministic settings.
Figure 3. Average learning progress w.r.t. the return of AERIAL variants and state-of-the-art baselines in Dec-Tiger over 50 runs. Shaded areas show the 95% confidence interval.

Limitations and Future Work

  • Compute Overhead: The addition of a Transformer layer increases the computational cost, though the authors noted this was negligible in their specific experiments.
  • Exploration: The dependence on joint memory might introduce bias that could limit performance in "hard exploration" domains where agents need to discover very specific sequences of actions.
  • Future Directions: The authors plan to test AERIAL in SMACv2 (which features procedural generation) and in mixed competitive-cooperative environments involving multiple independent teams.

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