Abstract
Constrained multiagent reinforcement learning (C-MARL) is essential for safety-critical systems like power grids and autonomous swarms. However, standard primal-dual approaches often lack interpretability regarding real-world safety guarantees and suffer from training instability due to shifting reward functions. This paper provides a rigorous framework for interpreting penalty terms through occupation measures, enabling the enforcement of probabilistic safety metrics like Chance Constraints and Conditional Value at Risk (CVaR). Furthermore, we introduce a "structured critic" that exploits the affine relationship between value functions and Lagrange multipliers to significantly accelerate convergence and improve training stability.
Introduction
In safety-critical environments, agents must maximize rewards while strictly adhering to operational constraints, such as voltage limits in power grids or collision avoidance in drone swarms. The standard reinforcement learning (RL) approach utilizes a primal-dual framework, where a penalty term scaled by a Lagrange multiplier ($\lambda$) is added to the reward function. While effective in theory, this method presents two major challenges:
- Interpretability: It is often unclear how a discounted sum of penalties translates to physical safety metrics (e.g., probability of failure).
- Training Instability: Because $\lambda$ is updated continuously, the reward function becomes a moving target, making it difficult for the "critic" (value estimator) to converge.
Methods
Probabilistic Penalties and Risk Bounds
The authors analyze safety through the occupation measure, a probability distribution describing an agent's expected state-action trajectory. They demonstrate that standard Lagrangian methods only guarantee safety "in expectation," which is often insufficient for high-stakes engineering.
By modifying the penalty function, the framework can enforce stricter safety metrics:
- Chance Constraints: Using an indicator function ($I[C(x) \ge \alpha]$) limits the probability of failure.
- Conditional Value at Risk (CVaR): Using a hinge function ($[C(x) - \alpha]_+$) limits the severity of worst-case failures.
The Structured Critic
To address training instability, the authors observe that the relationship between the value function $V(x, \lambda)$ and the dual variable $\lambda$ is affine (linear plus a constant). Instead of learning a single complex mapping, the Structured Critic (SC) learns two separate components: one for the reward ($V_R$) and one for the constraints ($V_C$). These are combined as:
$$V(x, \lambda) = V_R(x) - \lambda^T V_C(x)$$
This architecture allows the critic to instantly adjust its value estimates whenever $\lambda$ is updated, removing the need to "re-learn" the value function from scratch after every dual update.
Experimental Setup
The approach was evaluated using the Multiagent Particle Environment (MPE). In this scenario, two agents navigate toward landmarks while adhering to a joint state constraint representing a global safety limit. The landmarks are positioned outside the "safe zone," forcing agents to learn the optimal trade-off between goal achievement and safety. The implementation utilized the EPyMARL framework.
Key Results
Enhanced Training Stability
The Structured Critic (SC) demonstrated superior performance compared to generic critics. By hard-coding the affine relationship into the network architecture, the SC maintained a significantly lower Mean Squared Temporal Difference Error (MS TDE) throughout the training process.
Improved Risk Control
Modified penalties successfully bounded CVaR and Chance Constraints. Specifically, the CVaR-based policy met strict safety targets without becoming overly conservative, a common pitfall of standard penalty methods.
Discussion and Future Work
This work clarifies that discounted constraints primarily protect the system within an "effective horizon" determined by the discount factor ($\gamma$). While the framework provides robust safety bounds, some challenges remain. For instance, obtaining a tight CVaR bound currently requires an offline approximation of the Value at Risk (VaR); future work could explore tuning this parameter online. Additionally, in non-cooperative settings, global constraints may lead to "unfair" outcomes where specific agents bear a disproportionate cost for collective safety, marking an important area for future game-theoretic research.
Summary updated