arXiv:2610.07491cs.LGOct 2026

Manuscript Offprint

arXiv:2610.07491

Who Bears the Burden? Learning Responsibility for Shared Constraints in Multi-Agent Reinforcement Learning

Xiaoyang Cao, Jingqi Li, Zhe Fu, Alexandre M. Bayen

ABSTRACT

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.

1 INTRODUCTION

Consider two delivery robots approaching a narrow corridor. One carries an urgent package, while the other is traveling to collect a package. Either robot may yield to avoid a collision, but delaying the loaded robot incurs a larger loss. A shared collision-avoidance constraint excludes unsafe outcomes, but does not determine how the burden of satisfying the constraint should be allocated between the robots. This ambiguity arises more broadly in multi-agent systems subject to shared constraints, including power limits, resource budgets, and safety requirements, when agents incur heterogeneous costs for adapting their behavior.

A shared Lagrange multiplier specifies the strength of the penalty associated with a common constraint, but does not determine how that penalty should be apportioned across agents. Applying the same penalty to all agents leaves this allocation implicit. Introducing agent-specific multipliers does not resolve the issue when each multiplier is driven by the same aggregate constraint cost. We instead make the allocation of constraint responsibility explicit. Specifically, a responsibility share determines the fraction of the shared penalty applied to each agent's objective, while the common multiplier continues to enforce the aggregate constraint. The original rewards and constraint budget remain unchanged. Responsibility allocation therefore modifies which agents are incentivized to adapt without altering the underlying constrained problem.

∗^{*}Corresponding author.

(a) Who should yield?

Figure

(b) Same safety, different welfare · Theorem 1

Figure

Same active safety

ρ↦(θ∗(ρ),λ∗(ρ))\rho \mapsto (\theta^*(\rho), \lambda^*(\rho))

Ck(θ∗(ρ))=dkC_k(\theta^*(\rho)) = d_k

λ∗\lambda^* adapts with ρ\rho.

(c) LiRA: learn responsibility · Theorem 2

Shared safety penalty

μt,ik=Nλt,kρik(ϕ),∑iρik(ϕ)=1\mu_{t,i k}=N\lambda_{t,k}\rho_{i k}(\phi),\quad\sum_{i}\rho_{i k}(\phi)=1

1 Look ahead · M≥2M \geq 2 independent runs

Figure

Fresh evaluation

W(θq(1))W(\theta_q^{(1)})

W(θq(2))W(\theta_q^{(2)})

2 Differentiate

Vq(ϕ∣x0)=E[W(θq)]V_q(\phi \mid x_0) = \mathbb{E}[W(\theta_q)]

∇ϕVq=DU+SC\nabla_{\phi} V_q = \mathrm{DU} + \mathrm{SC}

DU · Direct unroll

E[dW(θq)/dϕ]\mathbb{E}[dW(\theta_q)/d\phi]

SC · Sampling correction

E[W(θq)∑t=0q−1st]\mathbb{E}[W(\theta_q)\sum_{t=0}^{q-1}s_t]

Update ϕ\phi; resume actual learning from x0x_{0}.

Figure 1: Overview of LiRA. (a) In the illustrated corridor scenario, uniform shares leave both robots waiting; learned shares let the robot without an urgent package yield so that the loaded robot proceeds. Both outcomes avoid collision but differ in welfare. (b) Under Theorem 1's conditions, varying responsibility ρ\rho selects a smooth equilibrium family. For each active constraint kk, cost CkC_k stays at its budget dkd_k, while welfare WW can vary and the shared equilibrium multiplier λ∗\lambda^* adapts to ρ\rho. (c) From checkpoint x0x_0, LiRA runs M≥2M \geq 2 independent lookahead of qq learner updates, each followed by fresh evaluation. It combines direct unrolling (DU) with sampling correction (SC) to estimate ∇ϕVq\nabla_{\phi} V_q, update ϕ\phi, and restart from x0x_0.

This additional degree of freedom induces a nontrivial equilibrium-selection problem. Under convexity, monotonicity, and standard regularity conditions, varying the responsibility shares generates a smooth family of normalized generalized Nash equilibria. Along this family, each active constraint remains satisfied at its budget, while social welfare may vary (Theorem 1). Motivated by this observation, we introduce Lagrangian Responsibility Allocation (LiRA), which optimizes responsibility shares to select among feasible equilibria according to social welfare.

LiRA does not require the underlying agents to converge to equilibrium before responsibility allocation can be optimized. Instead, it evaluates a candidate allocation through the welfare obtained after a finite lookahead of the learning dynamics. Changing the responsibility shares influences both the policy updates within this lookahead and the distribution of data collected for subsequent updates. We derive a gradient estimator that accounts for both effects by differentiating through the learning dynamics and correcting for the induced change in the sampling distribution (Theorem 2). Independent lookaheads initialized from a common training checkpoint allow this gradient to be estimated without modifying the primary learning trajectory. Figure 1 summarizes the resulting framework, from responsibility allocation in the motivating corridor example to its implementation within the learning procedure.

We test LiRA on four multi-agent tasks, including building energy management in CityLearn (Nw-eye et al., 2025) with 3 agents, inventory control in MABIM (Yang et al., 2023) with 400 agents, resource harvesting in Harvest (Melting Pot commons_harvest_open (Agapiou et al., 2022)) with 7 agents, and autonomous driving in MetaDrive (Li et al., 2023) with 4 agents. LiRA has the highest mean welfare in all four tasks (Section 4.1). It keeps grid costs within budget in CityLearn, reduces safety violations in MetaDrive, and cuts order-rejection penalties in MABIM. A matched CityLearn episode (Section 4.2) traces the gain to individual buildings: the two that overcool receive a larger share of the grid-electricity penalty, cool less, and recover comfort while district electricity falls.

References (62)