cs.AIOct 15, 2026
SaveConstrained Multi-Agent Reinforcement Learning in Imagination
Organizations: Ben-Gurion University of the Negev, Beer-Sheva, Israel
Abstract
Predicting cost in a multi-agent world model moves most constrained policy updates into imagination: the stronger model-free baseline needs to times CA-MAMBA's interactions on the median SMAC configuration, and CA-MAMBA earns to times the baselines' MAMuJoCo reward at equal budget. In controlled tests on one task per benchmark, pricing the model's cost advantages at parity more than halves a cost-blind learner's cost and meets a tight continuous-control limit the learned multiplier misses, suggesting the model's cost estimates are not the bottleneck.
Figures & tables
Figure 1. The two training phases for agent ; Sections 3.2 to 3.4 define each component (GRU: gated recurrent unit, the recurrent network ; enc: the observation encoder; dec: the decoder). (a) On replay, attention over turns the previous actions and stochastic states into a message that drives the recurrent update; the posterior combines with the encoded observation, and a Kullback–Leibler (KL) penalty ties the prior, which predicts from alone, to it. The decoder reads ; the reward and cost heads read with , which carries the agents’ actions , and the per-agent costs are averaged into . (b) From replay posteriors, the actor (policy) and prior roll out imagined steps; the critics (value estimators) form for the actor, while the price steps on the measured cost of the latest real episode. Diagram of the two training phases: world-model learning on replay, and actor-critic learning in imagination with a multiplier updated from measured cost.
Figure 2. How many interactions MAPPO-Lagrangian needs to catch up with CA-MAMBA at 100k on SMAC. (a) Among the 23 configurations where CA-MAMBA wins any episode, the fraction on which MAPPO-Lagrangian has matched CA-MAMBA’s 100k mean cost (dashed), mean win rate (dotted), or both (solid) by each checkpoint; the solid curve is the distribution of , defined in the text. (b) Medians over the 24 configurations of casualties per allied unit (red) and win rate (blue): MAPPO-Lagrangian (lines), MACPO at 100k and 5M (squares), CA-MAMBA at 100k (stars). Two panels. Left: fraction of SMAC configurations on which MAPPO-Lagrangian matches CA-MAMBA's 100k cost and win rate, against MAPPO-Lagrangian's interactions. Right: median casualties per allied unit and median win rate against interactions.
| Method (interactions) | Reward | Cost |
|---|---|---|
| Ant | ||
| MACPO | ||
| MAPPO-Lag | ||
| CA-MAMBA | ||
| no comm. | ||
| Ant | ||
Table 1. MAMuJoCo at the SafePO default limit , every method at a matched budget of 1M interactions. No comm. acts without messages ( ) but learns and imagines with them. Mean sample standard deviation over three seeds ( : two). Bold: highest mean reward; : mean cost above .
| At 100k | |||
|---|---|---|---|
| Multiplier | Cost | Win rate | |
| Imagined | |||
| Measured | |||
| PID | |||
Table 2. Multiplier rules on SMAC 8m at . Mean sample standard deviation over three runs (seeds 1–3) of each run’s episodes between 95k and 100k interactions; at 100k. Imagined and Measured update ( ) from imagined or measured cost; PID uses , , ; the rows hold fixed, so does not enter them.
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 3. Execution: every agent runs its own world model and a parameter-tied actor. Each world model sends its previous action and stochastic latent to an attention layer over the neighborhood and receives the message , which drives its recurrent update; the actor then reads the latent . Under the attention is all-to-all; setting removes the exchange and changes nothing else. No privileged global state is used. Execution diagram: each agent's world model exchanges previous actions and latents through attention and feeds its latent to a shared actor.
| Quantity | Value |
| World-model learning rate | |
| Actor learning rate (Adam, wd ) | |
| Critic learning rate | |
| Multiplier step (applied times per step) | |
| Initial multiplier | |
| PPO clip |
Table 3. Optimization and training settings, read from the training code. Every term of Eq. (1), including the divergence and the three terms inherited from MAMBA (the continuation and action-availability heads and, for discrete actions, the action classifier), enters the world-model loss with weight ; KL balancing splits the divergence toward the direction that updates the prior and toward the posterior.
| Component | Specification |
|---|---|
| Deterministic state | (GRU) |
| Stochastic state | categ. (DreamerV2) |
| Feature | |
| Observation embedding | |
| Reward / cost heads | 2-layer MLP, width |
| Continuation head | 2-layer MLP, width |
Table 4. Network architecture, read from the training code. The transition attention is the only inter-agent communication path; the actor is a per-agent MLP over the communication-conditioned latent.
| Environment | Steps | Reward | Cost | |
|---|---|---|---|---|
| Ant | 100k | 3 | ||
| 500k | 3 | |||
| 700k | 3 | |||
| 800k | 3 | |||
| 900k | 3 | |||
| 1M | 3 |
Table 5. CA-MAMBA at against interaction budget, with both model-free baselines at the matched 1M budget and at 10M. The baseline rows are the same runs read at two checkpoints. Cost is not monotone in the budget: it exceeds on Ant at 700k to 900k and on HalfCheetah at 100k and 800k.
| Ant , | Ant , | HalfCheetah , | |||||
| Method | Steps | Reward | Cost | Reward | Cost | Reward | Cost |
| CA-MAMBA, | 1M | ||||||
| CA-MAMBA, | 1M | ||||||
| CA-MAMBA, PID | 1M | ||||||
| MACPO | 1M | ||||||
| MAPPO-Lag | 1M | ||||||
Table 6. Reward and cost on the multi-agent MuJoCo velocity tasks at tight cost limits: on Ant , on Ant , on HalfCheetah . CA-MAMBA updates its multiplier from the measured episode cost with step size , or sets it with a PID controller on the same signal ( , , ), and is read after 1M interactions; MACPO and MAPPO-Lag are read after 1M and 10M. Each run’s reward and cost average its episodes (CA-MAMBA) or logged interval means (MACPO, MAPPO-Lag) in the last 5k interactions before the budget; entries are mean sample standard deviation over three seeds per cell. : mean cost above . The PID multiplier reached its clip value within the first 1M interactions in 1 of 3 runs on HalfCheetah .
| Environment | Reward | Cost | |||
|---|---|---|---|---|---|
| Ant | 0.2 | ||||
| 25 | ✓ | ||||
| ✓ | |||||
| Ant | 1.0 | ||||
Table 7. Multiplier learning rate at 1M interactions, at both cost limits per environment.
| Multiplier | Reward | Cost | Reward | Cost |
|---|---|---|---|---|
| Learned | (1/3) | |||
| Parity start | (2/3) | (2/3) | ||
| Imagined | (2/3) | (1/3) | ||
| PID | (1/3) | (2/3) | ||
| (A) | (3/3) | (3/3) | ||
Table 8. Multiplier rules on HalfCheetah after 1M interactions. Each run’s reward and cost average its episodes in the last 5k interactions; cells give mean sample standard deviation over three runs and, in parentheses, how many runs end within (not available for Learned at ). Learned updates from the measured episode cost ( , ; the June–July 2026 runs of the main MAMuJoCo table); Parity start starts it at ; Imagined feeds it the imagined cost return instead; PID sets by PID control on the measured cost ( , , ). The last three rows hold fixed; weights the standardized cost and reward advantages equally, and (A) and (B) are two independent sets of runs with the same settings. With fixed, does not enter training, so the two columns of a fixed row differ only by run-to-run variation. : mean cost above .
| Environment | Steps | Reward, messages | Reward, none | Cost, messages | Cost, none | |
|---|---|---|---|---|---|---|
| Ant | 25 | 500k | ||||
| 700k | ||||||
| 800k | ||||||
| 900k | ||||||
| 1M | ||||||
| 0.2 | 500k |
Table 9. CA-MAMBA acting with messages ( ) and without them ( in every collected episode; world-model learning and imagination use in both), , mean sample standard deviation over three runs per cell.
Figure 4. Training dynamics at . Top row, the easier maps bane_vs_bane and 2m_vs_1z , where MACPO-Discrete catches up only at 5M; bottom row, 8m and 1c3s5z , where it stays at zero win rate. Each panel pairs the full – M baseline range with the zoomed – k range. CA-MAMBA is green, MACPO-Discrete red. Four panels of SMAC learning curves at d=0 for bane_vs_bane, 2m_vs_1z, 8m and 1c3s5z, each comparing CA-MAMBA (green) with MACPO-Discrete (red) over the full 0 to 5M range and a zoomed 0 to 100k range.
| MACPO (1M) | CA-MAMBA (100k) | |||||
|---|---|---|---|---|---|---|
| Scenario | Score | Cost | Win rate | Score | Cost | Win rate |
| 2s_vs_1sc | ||||||
| 3m | ||||||
| 2s3z | ||||||
| 3s_vs_3z | ||||||
| 3s_vs_4z | ||||||
Table 10. Dense collision cost at : CA-MAMBA after 100k interactions versus MACPO after 1M. Score is SMAC’s episode return, which credits damage and kills as well as the win (near for a clean win). Mean sample standard deviation over three seeds; bold marks the better mean of the two methods per metric.
Figure 5. Safety-mechanism ablation on 8m (left) and 1c3s5z (right), . Constrained CA-MAMBA (green) versus the unconstrained MAMBA learner (red), over cost, return, and win rate. Two panels, 8m and 1c3s5z at d=0, comparing cost, return and win rate of constrained CA-MAMBA (green) and the unconstrained MAMBA learner (red) over training.
Figure 6. HalfCheetah , : predicted against realized team cost on training batches. The prediction follows the full rise-and-fall arc. Predicted and realized team cost on HalfCheetah 2x3 at d=25 against training interactions; the prediction tracks the rise and fall of realized cost.
Figure 7. Ant , : cost is zero until roughly 0.4M interactions. The head predicts the zero phase and the onset. Predicted and realized team cost on Ant 2x4 at d=25 against training interactions; both stay at zero until about 0.4M interactions, then rise together.
Figure 8. Ant , : cost stays near zero throughout and the prediction stays with it, within regression noise. Predicted and realized team cost on Ant 4x2 at d=25 against training interactions; both stay near zero throughout.
| Env | Price | KL per agent | TV per agent | [ ] | [ ] | Imagined 14-step cost | Real 14-step cost | Real imagined | |
|---|---|---|---|---|---|---|---|---|---|
| 8m | 0 | Learned | ( ) | ||||||
| HalfCheetah | 5 | Parity start | ( ) | ||||||
| 5 | Fixed | ( ) | |||||||
| 25 | Learned | ( ) | |||||||
| 25 | Parity start | ( ) | |||||||
| 25 | Fixed | ( ) |
Table 11. World-model error on the runs whose logs record every episode’s exact length, three runs (seeds 1–3) per row. Each quantity is a run’s average over its last of interactions (100k for 8m , 1M for HalfCheetah), then mean sample standard deviation over runs. Learned is the measured-cost multiplier of the main results; Parity start runs the same update from ; Fixed holds the price at parity. KL is between the prior and the posterior over one agent’s latent ( categoricals), TV a Monte Carlo estimate of their total variation. and are per-step estimates on replay, real minus model as in Theorem L.1 . Imagined and real costs are discounted windows of the costed imagined steps ( ): imagined team cost per step, and realized episode cost divided by exact episode length, each times that sum. The cost head is an unconstrained regressor, so imagined cost can fall slightly below zero where real cost is near zero. The percentage is from the row means and , positive when the model under-predicts; marks rows whose mean gap is within one standard deviation of the per-run gaps.
| Multiplier | |||||
|---|---|---|---|---|---|
| Imagined | |||||
| Measured | |||||
| PID | |||||
Table 12. World-model transition diagnostics on SMAC 8m at , logged on replayed sequences during training and averaged over the second half of training (50k to 100k environment interactions); each entry is a mean over the seeds that logged it, with the sample standard deviation ( ) below it (three per row). For a replay step with deterministic state , compares the cost critic at a posterior latent with its mean over prior latents . is the mean of , an estimate of in Theorem L.1 (i) with the cost critic as the cost-to-go. is the mean of . is the mean critic value at posterior latents, the scale for the first two columns. is the Monte Carlo total-variation distance between an agent’s posterior and prior over its whole latent, averaged over agents, which upper-bounds the latent-space per-agent transition error of Proposition L.3 on replay states. is the largest per-agent average. Rows list the arms whose runs logged these diagnostics.
Figure 9. HalfCheetah , : rises while episode cost exceeds the limit, then relaxes once cost returns below it. The multiplier beta and episode cost on HalfCheetah 2x3 at d=25 against training interactions; beta rises while cost exceeds the limit and falls once cost is back below it.
Figure 10. Ant , : holds at zero while the constraint is inactive and rises when it activates. The multiplier beta and episode cost on Ant 2x4 at d=25 against training interactions; beta stays at zero while cost is below the limit and rises when the limit becomes active.
Figure 11. Ant , : cost never exceeds the limit and never leaves zero. The multiplier beta and episode cost on Ant 4x2 at d=25 against training interactions; cost stays below the limit and beta stays at zero.
Figure 12. SMAC at with the measured-cost multiplier, : MMM (left) and 1c3s5z (right). The multiplier (top, mean and one standard deviation over three seeds) rises linearly and stays below at 100k interactions, while episode cost (bottom) falls but stays above the limit. Two panels of multiplier and episode cost against environment interactions for MMM and 1c3s5z at a zero casualty limit.
| Baseline | CA-MAMBA lower cost | CA-MAMBA higher win rate | Baseline never wins |
|---|---|---|---|
| MACPO (100k) | 23/24 | 22/24 | 22/24 |
| MACPO (5M) | 16/24 | 17/24 | 16/24 |
| MAPPO-Lag (100k) | 23/24 | 22/24 | 22/24 |
| MAPPO-Lag (1M) | 14/24 | 13/24 | 10/24 |
| MAPPO-Lag (5M) | 5/24 | 5/24 | 5/24 |
| CA-MAMBA feasible | 5/24 | ||
Table 13. CA-MAMBA after 100k interactions against MACPO and MAPPO-Lag at the listed interaction budgets, over the 24 SMAC scenario–limit configurations all methods ran. Counts compare unrounded seed means at the same configuration with strict inequalities; a baseline never wins when its mean win rate is zero, and CA-MAMBA is feasible when its mean cost is at most .
| MAPPO-Lag budget | Configurations |
|---|---|
| (100k) | 0 |
| (500k) | 3 |
| (1M) | 7 |
| (2M) | 3 |
| (5M) | 5 |
| Not within | 5 |
Table 14. The interaction multiple of a SMAC configuration is the smallest multiple of CA-MAMBA’s 100k interactions, among , , , , , at which MAPPO-Lag’s mean cost is at most and its mean win rate at least CA-MAMBA’s at 100k, ties counting as matched. Configurations where CA-MAMBA never wins are excluded, and the median is over the remaining 23, counting unmatched ones as . Resampling runs within each configuration, the median exceeds in of resamples and equals in .
| Scenario | Score | Cost | Win rate | |
|---|---|---|---|---|
| 1c3s5z | 0 | |||
| 1c3s5z | 4 | |||
| 2m_vs_1z | 0 | |||
| 2m_vs_1z | 1 | |||
| 2s_vs_1sc | 0 | |||
| 2s_vs_1sc | 1 |
Table 15. CA-MAMBA results at exactly 100k interactions on the 24 SMAC configurations shared with the baselines, with the multiplier updated from the measured episode cost. Score is SMAC’s episode return, which credits damage and kills as well as the win (near for a clean win). Entries are mean sample standard deviation across seeds; CA-MAMBA uses three valid seeds except the starred configuration, which uses two.
| CA-MAMBA (100k) | MAPPO-Lag (100k) | MAPPO-Lag (1M) | MAPPO-Lag (5M) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Scenario | Cost | Win | Cost | Win | Cost | Win | Cost | Win | |
| 1c3s5z | 0 | ||||||||
| 1c3s5z | 4 | ||||||||
| 2m_vs_1z | 0 | ||||||||
| 2m_vs_1z | 1 | ||||||||
| 2s_vs_1sc | 0 | ||||||||
Table 16. CA-MAMBA after 100k environment interactions against MAPPO-Lag after 100k, 1M and 5M interactions on the 24 SMAC scenario–limit configurations both methods ran. Read each row across: at the same scenario and limit , lower cost and higher win rate are better, and a method is feasible when its mean cost is at most . Entries are mean sample standard deviation across seeds. MAPPO-Lag uses three seeds at every checkpoint; CA-MAMBA uses three valid seeds except the starred configuration, which uses two. Each daggered entry includes one run that stopped before 5M and contributes its last logged window ( 2m_vs_1z at , seed 1, stopped at 3.01M; bane_vs_bane at , seed 1, stopped at 4.52M).
| CA-MAMBA (100k) | MACPO (100k) | MACPO (5M) | |||||
|---|---|---|---|---|---|---|---|
| Scenario | Cost | Win | Cost | Win | Cost | Win | |
| 1c3s5z | 0 | ||||||
| 1c3s5z | 4 | ||||||
| 2m_vs_1z | 0 | ||||||
| 2m_vs_1z | 1 | ||||||
| 2s_vs_1sc | 0 | ||||||
Table 17. CA-MAMBA after 100k environment interactions against MACPO after 100k and 5M interactions on the 24 SMAC scenario–limit configurations all methods ran. Read each row across: at the same scenario and limit , lower cost and higher win rate are better. Entries are mean sample standard deviation over three seeds, or two where starred. Daggered MACPO (5M) entries include runs that stopped before 5M, whose tracked values predate 5M ( 1c3s5z at , seed 1, last logged at 2.155M; 1c3s5z at , seed 2, last logged at 2.025M; 3s_vs_5z at , seed 1, last logged at 4.25M; 3s_vs_5z at , seed 2, last logged at 4.28M; 3s_vs_5z at , seed 1, last logged at 4.05M; 3s5z_vs_3s6z at , seed 2, last logged at 2.55M; 3s5z_vs_3s6z at , seed 2, last logged at 2.295M; bane_vs_bane at , seed 2, last logged at 0.735M; bane_vs_bane at , seed 3, last logged at 1.29M).
| Parameter | Default | SMAC override |
|---|---|---|
| Network | ||
| Hidden size | 512 | 128 |
| Layers | 2 | 1 |
| Activation | ReLU | – |
| Orthogonal init (gain) | 0.01 | – |
| Feature normalization | yes | – |
Table 18. Hyperparameters of the MACPO baseline on SMAC. SMAC-specific overrides are listed separately; all other parameters use the defaults shown.
When multiple agents share a cost budget, a common Lagrange multiplier can enforce the aggregate constraint but does not determine how its penalty should be allocated across agents. Uniform penalties ignore heterogeneity in the rewards agents sacrifice, while agent-specific multipliers may still rely on the same aggregate cost signal. We introduce Lagrangian Responsibility Allocation (LiRA), which learns each agent's share of a common multiplier by optimizing social welfare over a finite training horizon. The multiplier enforces the aggregate budget, while responsibility shares redistribute its influence without modifying the original rewards or constraints. For convex games under standard regularity conditions, varying these shares induces a smooth family of normalized generalized Nash equilibria in which active constraints remain at their budgets while welfare varies. To optimize responsibility before convergence, we derive a welfare gradient that accounts for both learning updates and the induced change in data distribution. Across CityLearn, MABIM, Harvest, and MetaDrive, spanning 3 to 400 agents, LiRA improves average social welfare by up to 29% over uniform and agent-specific multiplier baselines. Grid and driving costs remain within budget, inventory violations decrease, and Harvest makes more effective use of available budget.
MA-WAM: Multi-Agent World-Action Model for Test-Time Planning
Multi-agent cooperative tasks require different agents to execute a joint action simultaneously, and each agent's action affects both the observations and responses of the other agents. Hence, a world model is needed to predict the team return resulting from the joint actions of all agents. A naive extension directly applies a single-agent world model to each agent's action when predicting the team return step by step. However, such an extension fails to capture the dependencies among the simultaneous actions of multiple agents. We propose Multi-Agent World-Action Model (MA-WAM), a test-time planning framework that enables a frozen multi-agent flow policy to evaluate futures of candidate joint actions. To our knowledge, MA-WAM is the first test-time world-model planner for multi-agent flow policies. MA-WAM predicts the consequences of each joint action according to cross-agent dependencies and enables efficient candidate scoring. Across 30 offline multi-agent reinforcement learning (MARL) settings on MAMuJoCo, SMAC, and MPE, MA-WAM achieves mean relative gains of 22.0% over direct execution and 25.6% over uniform action selection. Under the standard evaluation protocol on an A100 GPU, MA-WAM adds 12.1 ms, accounting for 2.5% of the measured generation-and-scoring time.
Coordination Graphs for Constrained Multi-Agent Reinforcement Learning
Constrained Multi-agent reinforcement learning (CMARL) faces two intertwined challenges: the joint action space grows exponentially with the number of agents, and additional requirements couple agents in ways that reward structure alone does not capture. We introduce Coordination Graphs for Constrained Multi-Agent Reinforcement Learning (CG-CMARL), a framework that addresses both challenges by combining coordination graphs with Lagrangian duality. The system decomposes the joint problem into pairwise regions, each served by a set of shared Q-functions, one for the primary objective and one for each of the constraints, so that the number of learned models is independent of the number of agents. At execution time, Max-Sum message passing coordinates actions across the factor graph, while a Lagrangian multiplier controls the objective--constraint tradeoff, allowing a single trained model to trace a Pareto front without retraining. We provide convergence guarantees under mild conditions, together with a compositional error bound that decomposes into separate interpretable sources, each traceable to a specific design choice and independently controllable. Experiments on cooperative navigation tasks (where teams of up to 10 agents must coordinate to reach target positions while satisfying pairwise constraints) show that our method produces Pareto fronts dominating established baselines trained at fixed reward-shaping ratios, while scaling to team sizes where centralized approaches become intractable.