Shared Experience Actor-Critic for Multi-Agent Reinforcement Learning

Filippos Christianos, Lukas Schäfer, Stefano V. Albrecht

Presented at NeurIPS 2020, Shared Experience Actor-Critic (SEAC) introduces a straightforward yet highly effective method for improving exploration and sample efficiency in Multi-Agent Reinforcement Learning (MARL). It is particularly impactful in environments where rewards are sparse and difficult to discover.

The Challenge of Multi-Agent Exploration

Reinforcement learning in multi-agent settings is notoriously difficult due to two primary factors:

  1. Non-stationarity: As one agent learns and updates its behavior, the environment effectively changes from the perspective of all other agents, creating a "moving target" for learning.
  2. Sparse Rewards: In many complex tasks—such as a warehouse robot needing to navigate to and deliver a specific shelf—agents might wander for thousands of steps before stumbling upon a single reward signal.

A common failure mode in MARL under these conditions is the "learning rate mismatch." If one agent accidentally finds a reward and improves its policy quickly, it might start "carrying" the team or solving the task in a way that prevents other agents from ever learning their respective roles. This imbalance leads to sub-optimal team performance or a total failure to coordinate.

Introducing SEAC: Collective Learning

To address these challenges, the authors propose Shared Experience Actor-Critic (SEAC). While most MARL algorithms either train agents completely independently (Independent Actor-Critic, or IAC) or rely on a complex centralized critic (like MADDPG or QMIX), SEAC takes a collaborative middle path.

SEAC allows agents to learn from each other's experiences by sharing trajectories and using importance sampling to update their individual policies. This "collective learning" prevents agents from diverging significantly in skill levels.

Key components of the SEAC architecture include:

  • Experience Sharing: Every agent collects its own trajectory data. However, during the neural network update phase, every agent evaluates the data collected by all other agents.
  • Off-Policy Correction: Because Agent A is learning from Agent B’s data (and Agent B might have a different policy), SEAC employs Importance Sampling. It weights the gradients derived from other agents' data by the ratio of the "learning" agent's policy to the "acting" agent's policy.
  • Decentralized but Collaborative: Each agent maintains its own distinct policy and critic. They are not forced to be identical, but they effectively "advise" each other through their shared data.

This approach is distinct from Shared Network Actor-Critic (SNAC), where agents literally share the same neural network weights. In SEAC, agents can develop distinct, specialized behaviors while still benefiting from the critical reward discoveries made by their peers.

Evaluation Environments

The authors evaluated SEAC across four distinct sparse-reward environments, releasing open-source implementations for the community:

The four sparse-reward multi-agent environments used for evaluation: Predator Prey, SMAC, Level-Based Foraging, and RWARE.
  1. Predator Prey (PP): A classic coordination task where multiple predators must capture a faster prey simultaneously.
  2. Starcraft Multi-Agent Challenge (SMAC): A sparse-reward variant of the 3-marine micro-management task.
  3. Level-Based Foraging (LBF): A grid-world game where agents must coordinate to pick up food items that are too heavy for any single agent to lift alone.
  4. Multi-Robot Warehouse (RWARE): A complex environment simulating robots navigating and moving shelves in a warehouse setting.

Key Insights and Results

The core "aha moment" of SEAC is that synchronized progress is key. Sharing experience keeps agents at a similar skill level. When one agent discovers a path to a reward, the others immediately learn from that trajectory, ensuring the whole team advances together rather than one agent leaving the others behind.

Remarkably, this simplicity wins. SEAC requires almost no extra computational power (less than 3% overhead) and avoids complex centralized architectures. It simply changes which data is used for the gradient update. Furthermore, while importance sampling can sometimes be unstable, the authors found that in SEAC, the importance weights stayed mostly between 0.5 and 1.5, suggesting that the agents' policies remain "close enough" to each other for the math to remain stable.

Empirical results demonstrated significant performance gains:

  • Speedup: SEAC reached target returns up to 70% faster than independent learning baselines in several tasks.
  • Higher Ceiling: In the "Hard" version of the RWARE environment, SEAC achieved a mean return of ~70%, while independent learning and shared-network baselines struggled to reach 30-40%.
  • Solving the "Unsolvable": In the sparse Predator-Prey task, SEAC was the only algorithm that consistently learned to solve the task across all random seeds; baselines like MADDPG and QMIX often failed entirely.

Limitations and Future Work

While highly effective, SEAC does have limitations. Primarily, it relies on a homogeneity assumption—that the experience of one agent is actually useful for another. This works well when agents have similar capabilities and observation spaces, but it is unclear how well this approach would scale to highly heterogeneous teams (e.g., a drone and a ground robot sharing data).

Additionally, scalability remains a concern. While sharing every trajectory with every agent works well for small teams (2-4 agents), it could become a severe communication bottleneck as the number of agents grows to dozens or hundreds. Future work may explore how this "shared experience" concept could be integrated into other MARL frameworks beyond basic Actor-Critic, or how to selectively share experiences to reduce communication overhead in massive multi-agent systems.

Summary updated

BibTeX
@inproceedings{christianos2020shared,
  author = {Filippos Christianos and Lukas Schäfer and Stefano V. Albrecht},
  title = {{Shared Experience Actor-Critic for Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=YraBolofcN4},
}
Figure