Attention Actor-Critic algorithm for Multi-Agent Constrained Co-operative Reinforcement Learning

P. Parnika, Raghuram Bharadwaj Diddigi, Sai Koti Reddy Danda, Shalabh Bhatnagar

Abstract

The Multi-Agent Constrained Attention Actor-Critic (MACAAC) algorithm addresses the challenge of cooperative multi-agent reinforcement learning (MARL) under strict safety and resource constraints. By employing a novel multi-attentive critic architecture, MACAAC allows agents to selectively focus on different environmental features for goal achievement versus constraint satisfaction. Experimental results on cooperative navigation and treasure collection tasks demonstrate that MACAAC significantly outperforms existing baselines in both performance and constraint adherence.

Introduction

In multi-agent reinforcement learning (MARL), agents often work together to maximize a shared reward. However, real-world scenarios—such as autonomous warehouse robots or smart grid management—are rarely unconstrained optimizations. They require agents to reach targets while strictly following safety or resource constraints, such as avoiding collisions or maintaining network stability.

Two major hurdles exist in this field:

  1. Scalability and Non-stationarity: As the number of agents grows, the environment becomes chaotic because every agent is learning and changing simultaneously.
  2. Information Overload: Not all information from other agents is relevant at all times. To optimize a goal, an agent might need to look at one neighbor; to avoid a collision, it might need to look at another.

The Research Landscape

The field of reinforcement learning has evolved from single-agent paradigms to complex multi-agent systems that incorporate attention mechanisms and constraints.

Evolution of RL research leading to the proposed work.

Addressing the Research Gap

While previous works have explored multi-agent settings, attention mechanisms, or constraints in isolation, few have integrated all three effectively. Existing "Attention" mechanisms helped with scalability by letting agents focus on relevant neighbors, but they typically didn't account for the fact that the information needed to achieve a goal is often different from the information needed to obey a constraint.

Comparison of features across different RL research categories.

The MACAAC Algorithm

The authors propose MACAAC, which builds on the Actor-Critic framework. The "Actor" decides on actions, while the "Critic" evaluates them. The key innovations include:

  • Lagrangian Formulation: Instead of manually tuning constraint weights, the algorithm uses a two-timescale approach. It learns optimal "penalty weights" (Lagrange parameters) on a slow timescale while the agents learn their policies on a faster one.
  • Multiple Attentive Critics: This is the core novelty. Each agent maintains $m+1$ critics: one for the primary objective and one for each of the $m$ constraints.
  • Task-Specific Attention: Each of these critics has its own attention mechanism. This allows the "Goal Critic" to focus on target locations while the "Safety Critic" focuses on the proximity of other agents.

Experimental Evaluation

MACAAC was evaluated on two benchmark multi-agent environments modified to include constraints:

  1. Constrained Cooperative Navigation: 5 agents must reach 5 targets. The constraint is a threshold on the total number of collisions allowed per episode.
  2. Constrained Cooperative Treasure Collection: 8 agents (6 "collectors" and 2 "depositors"). Collectors must deliver treasures to depositors of matching colors. Constraints are placed on collisions for both roles.

Key Results and Insights

MACAAC consistently outperformed MADDPG-C (a constrained version of a popular MARL algorithm) and unconstrained baselines:

  • Navigation Task: MACAAC achieved an average total cost of 45.79 while keeping the penalty at 1.87 (well below the threshold of 3). MADDPG-C was significantly less efficient, with a cost of 60.33.
  • Treasure Collection: MACAAC achieved a much higher reward (represented as a negative cost of -76.21) compared to MADDPG-C (-22.20), while satisfying strict collision constraints.
  • Attention Divergence: A striking insight is that the attention required for the main task and constraints is often different. In the treasure task, the "Penalty Critic" (focused on safety) distributes attention broadly to avoid bumps, while the "Goal Critic" focuses on specific depositors to complete the task.

Conclusion and Future Work

MACAAC demonstrates that separate attention heads for objectives and constraints allow agents to find near-optimal paths that respect rules more effectively than single-head architectures. While currently focused on cooperative settings, future research could extend this multi-attentive approach to competitive or mixed-motive environments and investigate its scalability to extremely large agent populations.

Summary updated

BibTeX
@inproceedings{parnika2021attention,
  author = {P. Parnika and Raghuram Bharadwaj Diddigi and Sai Koti Reddy Danda and Shalabh Bhatnagar},
  title = {{Attention Actor-Critic algorithm for Multi-Agent Constrained Co-operative Reinforcement Learning}},
  booktitle = {AAMAS},
  year = {2021},
}
Figure