---
title: Actor-Attention-Critic (MAAC)
url: https://www.emergentmind.com/topics/actor-attention-critic-maac
type: topic
---

# Actor-Attention-Critic (MAAC)

The Actor-Attention-Critic (MAAC) architecture is a multi-agent reinforcement learning (MARL) algorithm that integrates centralized critics with learned attention mechanisms to address the challenges of scalability, non-stationarity, and partial observability endemic to multi-agent domains. MAAC supports both cooperative and competitive settings, requires only decentralized execution, and achieves state-of-the-art performance on complex multi-agent benchmarks. The MAAC framework forms the basis for scalable MARL in both standard and constrained environments, and provides practical advantages over previous centralized-critic approaches by employing attention to selectively aggregate information from other agents [1810.02912, 2002.10525, 2101.02349].

## 1. Multi-Agent Markov Games and Centralized Training with Decentralized Execution

MAAC builds on the formalism of an $N$-agent partially-observable Markov game defined as $(S, \{O_i\}, \{A_i\}, T, \{R_i\}, \gamma)$, where each agent $i$ receives local observation $o_i \in O_i$ and takes action $a_i \in A_i$. The joint transition kernel $T$ and agent-specific rewards $R_i$ are available only during training, enabling centralized critic learning, while each actor policy $\pi_{\theta_i}(a_i|o_i)$ is conditioned solely on its own observation for decentralized execution.

This centralized training with decentralized execution (CTDE) paradigm addresses the non-stationarity inherent to MARL by providing each critic with access to the joint observation and action space during learning, while ensuring that the learned policies are deployable without global state [1810.02912].

## 2. Soft Actor-Critic Actor-Critic Formulation and Attention-Based Critic Architecture

MAAC employs a maximum-entropy (soft) actor-critic algorithm. Each agent $i$ maintains:
- A decentralized stochastic actor $\pi_{\theta_i}(a_i|o_i)$;
- A centralized, attention-based critic $Q^\psi_i(o_1, ..., o_N, a_1, ..., a_N)$.

The critics employ an intra-critic attention mechanism, wherein each agent's local embedding $e_i = g_i(o_i, a_i)$ is projected into query, key, and value spaces by shared learnable matrices $W_q, W_k, V$. Unnormalized attention weights $\tilde\alpha_{ij}$ and normalized weights $\alpha_{ij}$ are computed from key‒query dot products, and the context vector $x_i$ is formed as an attention-weighted sum over other agents' value vectors. The critic output is then $Q^\psi_i(o,a) = f_i(e_i, x_i)$, with $f_i$ a learned multi-layer perceptron. Extensions to $H$-head attention allow richer relational reasoning [1810.02912, 2002.10525].

## 3. Policy Optimization and Off-Policy Training Dynamics

Policy optimization in MAAC uses the soft actor-critic gradient, with an advantage function derived from the centralized critic and a multi-agent baseline $b_i(o, a_{\setminus i})$:
$$
\nabla_{\theta_i}J_i(\theta_i) = \mathbb{E}_{o,a} \left[ \nabla_{\theta_i} \log \pi_{\theta_i}(a_i|o_i) \left( -\alpha \log \pi_{\theta_i}(a_i|o_i) + Q^\psi_i(o,a) - b_i(o,a_{\setminus i}) \right) \right]
$$
with $b_i$ marginalizing over actions for variance reduction. The critic is trained off-policy by minimizing the squared soft Bellman error across agents.

The training loop alternates between interaction with the environment (joint sampling of ($o_1, ..., o_N, a_1, ..., a_N, r_1, ..., r_N, o'_1, ..., o'_N$)), critic update steps (minimizing squared temporal-difference error), actor update steps (via policy gradient with advantage), and target network Polyak averaging. Experience is stored in a shared off-policy replay buffer [1810.02912, 2002.10525].

## 4. Scalability, Network Design, and Key Hyperparameters

Conventional centralized-critic methods, such as MADDPG and COMA, concatenate all agents' observations and actions, resulting in input and network sizes that scale linearly with the number of agents $N$. In contrast, MAAC's attention-based critics maintain fixed per-agent input and parameter dimensions, scaling only computation with $O(HN)$ forward passes and $O(N^2 d_{\text{enc}})$ in practice, and enabling parameter sharing for efficient multitask regression.

Key architectural elements (typical settings from [2002.10525]):
- Shared encoder MLP: hidden layers 128 units;
- Local/global critic branches: 64 units;
- Key/query/value attention projections: 64 units each;
- Output MLP: 128 units;
- Replay buffer size: $1.25 \times 10^6$;
- Critic/actor learning rate: $1 \times 10^{-3}$;
- Polyak averaging ($\tau$): $0.0005$;
- Minibatch size: 1000;
- Entropy bonus: $0.01$.

Replay buffer size and batch size are critical for stability, as is slow target network updating for large agent populations. Single-head attention suffices for $N \leq 16$; multiple heads enhance capacity for larger populations [2002.10525].

## 5. Constrained Extensions and Multiple Attention Modes

MAAC has been extended to constrained cooperative settings with the introduction of multiple critics, each equipped with its own attention mechanism. For constraints expressed as expectations of single-stage costs, a Lagrangian framework is adopted, with the primary critic optimizing the cumulative cost plus weighed constraints, and separate "penalty critics" for each constraint.

Each critic utilizes separate sets of key/query/value projections, supporting distinct attention "modes" for optimizing the cooperative objective and satisfying constraints. Dual ascent in the Lagrangian multipliers is applied on a slower timescale, and attention heatmap analysis reveals interpretable specialization in how critics aggregate information most relevant to their respective objectives or constraints [2101.02349].

## 6. Empirical Evaluation and Benchmarks

MAAC has been empirically validated on several multi-agent tasks:
- Cooperative Navigation (3 agents);
- Cooperative Treasure Collection (up to 12 agents, mixed rewards);
- Rover-Tower Communication (8 agents).

MAAC consistently outperforms or matches baseline CTDE approaches (MADDPG, COMA), with the performance margin growing with the number of agents. In the Cooperative Treasure Collection, the relative advantage over MADDPG+SAC scales from 17% ($N=4$) to 208% ($N=12$). Attention analysis shows that the network learns to prioritize relevant agent pairs (e.g., each rover attends to its tower), correlating with specialized interaction patterns [1810.02912, 2002.10525].

In constrained MARL settings, MAAC-based algorithms (e.g., MACAAC) achieve constraint satisfaction (collision avoidance, safe exploration) while optimizing the main reward, outperforming constrained MADDPG both in constraint violation rates and main objective performance. Analysis of learned attention for different critics reveals interpretable source selection: e.g., penalty critics focus on fellow agents for constraint estimation, while the Lagrangian critic focuses on task-relevant subgroups [2101.02349].

## 7. Limitations and Directions for Extension

MAAC requires access to all agents' local observations and actions during training, but not necessarily the global environment state. Discrete action counterfactual baselines are exact; continuous versions require Monte Carlo estimation or auxiliary value networks. The scalability benefit depends on parameter sharing across critics: if agent reward structures diverge, partial decoupling may be needed. The architecture is highly extensible, admitting hierarchical attention, richer inter-agent communication, integration with centralized-policy attention, adversarial training, and applications in multi-agent inverse RL [1810.02912, 2002.10525, 2101.02349].

Actor-Attention-Critic sets the state of the art for scalable, interpretable, and extensible multi-agent actor-critic learning, providing methodological advances that generalize to large-scale and constrained MARL domains.

Source: https://www.emergentmind.com/topics/actor-attention-critic-maac