NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Safe-Fair MACPO: Burden-Fair Constrained Policy Optimization for Safe Multi-Agent Reinforcement Learning

Ankita Kushwaha, Kiran Ravish, Preeti, Pawan KumarNeurIPS 2026

TL;DR

In multi-agent reinforcement learning, a team of robots can achieve zero collisions and maximize their shared score while secretly bullying one specific robot into always yielding, detouring, or skipping the battery charger. Safe-Fair MACPO solves this "burden unfairness" by introducing a fairness-debt memory system into constrained policy optimization. It strictly prioritizes safety first, never risking a crash to be polite, while keeping a running tab of operational sacrifices so no single agent gets stuck doing all the thankless work over time.

What Problem Does This Paper Address?

Imagine two warehouse robots approaching a narrow corridor. To avoid a collision, one has to stop and wait. In traditional Safe Multi-Agent Reinforcement Learning (MARL), algorithms optimize a shared team reward while keeping global safety violations (like crashes) below a strict budget.

Here is the catch: if Robot A yields to Robot B every single time, the team is 100% safe and gets the maximum shared reward. Traditional reward-fairness metrics look at the shared team score, see that both agents got the exact same payout, and declare the system perfectly fair. Meanwhile, Robot A’s actuators are worn out from constant braking, or it is perpetually denied access to a shared charging station. The authors identify this blind spot as burden unfairness under hard safety: unequal distribution of physical and operational costs (waiting, detouring, control effort) hidden behind a symmetric team reward.

Methods

The authors build upon MACPO (Multi-Agent Constrained Policy Optimization), a standard framework where agents act independently using local observations (decentralized execution) but learn together using shared critiques and trust-region updates—mathematical guardrails that prevent policy updates from changing behavior too drastically at once.

To make MACPO burden-aware without compromising safety, Safe-Fair MACPO introduces four new components:

  1. Per-Agent Burden Logging: Environments emit physical effort features for each agent (e.g., yield events, detour length, actuator effort, charger denial), which are normalized into scalar burdens.
  2. Temporal Fairness Debt: Instantaneous equality is dangerous—you want one robot to yield in an emergency. Instead of punishing immediate imbalance, the algorithm maintains a clipped "debt" state ($z_{i,t}$) that tracks persistent disparities over an episode.
  3. A Dedicated Fairness Critic: Alongside standard reward and safety value estimators, a third critic estimates future fairness costs (a blend of accumulated debt and pairwise "envy" between agents).
  4. Lexicographic Two-Cost Update: During policy updates, agents solve a local optimization problem subject to both safety and fairness budgets. Crucially, a safety-first filter acts as a gatekeeper: fairness is only optimized when there is sufficient "safety slack." If an update is unsafe, it is rejected or projected back into the safe set, using lower fairness debt only to break ties.
Figure 1: Schematic of the Safe-Fair MACPO update. The method follows a centralized-training, decentralized-execution framework, augmenting each rollout with agent-wise burden features. These features are normalized by target shares, accumulated through temporal fairness debt, and used to compute the fairness cost. Separate reward, safety, and fairness critics estimate the corresponding value functions from the collected trajectories. The policy update is formulated as a two-cost trust-region optimization problem that seeks to improve return while satisfying safety and fairness budgets. A lexicographic safety-first filter prioritizes safety-feasible updates, applying recovery when necessary and using lower fairness debt to resolve safety-equivalent choices. This separation ensures that fairness influences policy optimization only within the safety-feasible region, while persistent burden imbalance is carried forward through the debt state.

Datasets

Because this is an online reinforcement learning paper, evaluation happens across interactive simulation environments rather than static datasets:

  • Locomotion (SMAMuJoCo-style wrappers): HalfCheetah-2x3, Ant-2x4, and ManyAgent-Ant. Here, "agents" are different actuator partitions (like front legs vs. back legs) on a single robot, testing whether mechanical workload is balanced evenly across joints.
  • Navigation & Resource Sharing: Safety-Gym MultiGoal, Safety-Gym ChargeShare, and VMAS-SafeMultiGoal, testing physical coordination, waiting, and scarce charger access.
  • SafeFairBench-v0 Adapters: Newly introduced wrappers used on tasks like VMAS ChargeShare, POGEMA Warehouse, and Highway Merge that include external "recovery layers" (safety shields that override unsafe actions) to test attribution.

Key Insights and Ideas

  • Memory Makes Fairness Safe: By appending accumulated fairness debt to the critic's state, the system remains mathematically Markovian (meaning standard RL value functions still work without needing infinite history) while gaining a memory of past sacrifices. Ablating this debt state caused fairness costs on ChargeShare to nearly double (from 7.68 to 14.43).
  • Fairness Can Actually Boost Performance: In multi-joint locomotion, preventing one set of limbs from bearing all the mechanical burden appeared to help coordinate smoother gaits, leading to higher overall returns alongside zero safety violations.
  • The "Safety Shield" Illusion: Safe RL often uses external recovery controllers (shields) to block crashes. In ablation tests on POGEMA Warehouse and VMAS ChargeShare, the authors found that slapping a recovery shield onto a fairness-blind baseline achieved nearly the exact same fairness and safety scores as Safe-Fair MACPO. Recognizing that safety shields can accidentally distribute burdens on their own—and explicitly isolating this via "attribution controls"—is a standout methodological insight.

Key Results

Across 180k-step matched-budget evaluations, results are judged lexicographically: policies must achieve zero hard safety violations first before return and fairness (measured via fairness cost $C_f$ and the Jain balance index, where $1.0$ is perfect equality) are compared.

Matched-budget comparison across six multi-agent tasks showing return, safety costs, and fairness metrics.
  • Locomotion Wins: Compared to MAPPO-Lag, Safe-Fair MACPO reduced burden fairness cost by 13.6% on Ant-2x4 and 32.3% on ManyAgent-Ant, while simultaneously boosting returns (from 1789.29 to 1907.11, and 3693.17 to 3852.73, respectively) with 0.00 safety cost.
  • Escaping Over-Conservatism: On HalfCheetah-2x3, standard MACPO stayed safe ($C_s = 0.00$, Jain = 0.98) by barely moving, scoring 1411.05. Safe-Fair MACPO maintained 0.00 safety cost and a 0.96 Jain index while surging to a return of 2503.33.
  • Extended Horizon: When trained longer (500k steps) on Safety-Gym MultiGoal and ChargeShare, Safe-Fair MACPO maintained 0.00 safety violations while reaching strong Jain fairness indices of 0.86 and 0.94.

Limitations and Future Work

The authors are refreshingly candid about where the method hits its limits:

  • Domain-Dependent Engineering: What counts as a "burden" isn't learned automatically; humans have to hand-craft the burden features and capability target shares for every task.
  • Theory vs. Neural Reality: While the exact mathematical formulation guarantees Pareto efficiency and hard safety, neural network approximations mean learned policies can still violate safety budgets in practice (for instance, a 500k-step HalfCheetah run reported in the appendix chased high returns at the expense of exceeding safety budgets).
  • Shield Dominance: When conservative external recovery shields are active, they can dominate system behavior—either masking any added benefit from learned fairness or, as seen on Highway Merge, strangling returns for all methods alike.

Future work aims to learn adaptive burden representations automatically, tighten theoretical safety guarantees under approximate optimization, and scale to larger, partially observable heterogeneous teams.

Summary updated

BibTeX
@inproceedings{kushwaha2026safe,
  author = {Ankita Kushwaha and Kiran Ravish and Preeti and Pawan Kumar},
  title = {{Safe-Fair MACPO: Burden-Fair Constrained Policy Optimization for Safe Multi-Agent Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Wff0AXdNL4},
}
Figure