Inference of Intrinsic Rewards and Fairness in Multi-Agent Systems

Victor Villin, Christos Dimitrakakis

TL;DR

Can we tell whether an AI agent is inherently selfish, altruistic, or fair without knowing what it truly wants? This paper presents a Bayesian Multi-Agent Inverse Reinforcement Learning (MAIRL) framework that disentangles an agent’s private "intrinsic" rewards from its social fairness attitude by observing how agents interact across multiple, rotating group pairings.

What Problem Does This Paper Address?

In multi-agent systems, observed behavior depends both on what an agent wants for itself (its intrinsic reward) and how much it values the welfare of its peers (its fairness or altruism level). Standard Inverse Reinforcement Learning (IRL) struggles here: a helpful action could mean an agent is genuinely altruistic, or it could simply mean the action was inherently rewarding for that agent anyway.

This ambiguity causes severe reward unidentifiability in general-sum Markov games, which often have multiple conflicting equilibria. Without knowing either the intrinsic rewards or the fairness preferences, inferring both simultaneously from behavioral demonstrations seems fundamentally ill-posed.

Methods

The authors model an agent $i$’s total reward within an $n$-agent group $p$ as a linear combination of its intrinsic reward $r_i$ and the average intrinsic reward of its co-players, scaled by a fairness parameter $\lambda_i \in [\lambda_{\min}, \lambda_{\max}]$:

$$R_{p,i}(s, a) = r_i(s, a) + \frac{\lambda_i}{n - 1} \sum_{k \in p, k \neq i} r_k(s, a)$$

To infer both $r$ and $\lambda$, the authors investigate two Bayesian formulation strategies:

  1. Direct Reward Posterior (DRP): A baseline extending Boltzmann rationality to Quantal Response Equilibria (QRE). It models trajectory likelihood directly by integrating over the entropy/rationality parameter $\beta$.
  2. Policy-Oriented Reward Posterior (PORP): A two-step Bayesian formulation that avoids strict behavioral policy assumptions. It first infers a posterior distribution over policies from demonstrations, then scores reward candidates via an optimality gap function: $$P(R \mid \pi) \propto P(R) e^{-c \Delta_R(\pi)}$$

To make PORP computationally tractable and immune to degenerate constant rewards, the authors introduce the Policy Stability Gap (PSG). PSG measures the KL divergence between an agent's policy and its entropy-regularized "soft response" under candidate rewards, drastically improving speed over standard Nash Imitation Gaps (NIG).

Posterior sampling is carried out using Metropolis-Hastings (MH) or the gradient-based Unadjusted Langevin Algorithm (ULA).

       Demonstrations across Multiple Agent Groupings
                             │
                             ▼
             Step 1: Infer Policy Posterior
                             │
                             ▼
      Step 2: Score Rewards via Policy Stability Gap (PSG)
                             │
                             ▼
       Disentangled Estimates: Fairness (λ) & Intrinsic Rewards (r)

Datasets

The authors evaluate their approach on simulated environments (no static pre-recorded datasets are used):

  • Randomized Markov Games (MGs): Synthetic 2-player games with 5 states, 3 actions, and Dirichlet-sampled transition dynamics symmetric under player permutations.
  • Collaborative Cooking Benchmark: A discrete gridworld inspired by Overcooked, featuring 390 unique states and 5 actions (movement and object interaction). Two chefs must coordinate to fetch tomatoes, cook soup in a pot, plate it, and make deliveries.

Key Insights and Ideas

  • Group shuffling breaks unidentifiability: If two agents play only against each other, their fairness and intrinsic rewards remain hopelessly confounded. Shuffling agents from a pool into diverse pairings exposes them to different partner behaviors, forcing them to reveal distinct facets of their utility functions.
  • Decoupling policies from rewards pays off: Direct trajectory likelihoods (DRP) struggle because equilibrium policies depend non-linearly on joint rewards. PORP's two-step procedure (demonstrations $\to$ policies $\to$ rewards) provides far more stable convergence.
  • PSG prevents degenerate reward collapse: Trivial constant rewards often appear "optimal" under standard Nash gaps. PSG naturally penalizes constant rewards because they induce uniform random policies under entropy regularisation, which will not match structured demonstration policies.

Key Results

  • Robust Disentanglement: In random MGs, ULA-PORP-PSG was the only tested algorithm that reliably disentangled fairness from intrinsic rewards, reaching near-zero error with modest trajectory counts.
  • The Necessity of Multiple Pairings: In the cooking task, restricting the pool to 2 fixed agents left fairness essentially unidentifiable (normalized absolute fairness error of $1.16 \pm 0.06$, which is worse than the random-guessing baseline of $1.0$). Expanding to a pool of 3 rotating agents dropped this error down to $0.46 \pm 0.05$, while intrinsic reward error plummeted from $0.62$ to $0.21$.
  • Computational Efficiency: On 5-state MGs, ULA-PORP-PSG completed sampling in 1,098 seconds, compared to 6,896 seconds for the Nash Imitation Gap alternative (ULA-PORP-NIG).

Limitations and Future Work

  • Sample Requirements: Recovering accurate reward landscapes in more complex multi-agent domains requires thousands of interaction trajectories, which can be expensive.
  • Uniform Grouping: The current framework samples agent combinations uniformly at random. The authors highlight active grouping selection (choosing the most informative pairings on the fly) as an essential next step to reduce demonstration requirements.
  • Stationary Preferences: Agents are assumed to have static, fixed fairness levels; relaxing this to account for dynamic or evolving social preferences remains open.

Summary updated

BibTeX
@inproceedings{villin2025inference,
  author = {Victor Villin and Christos Dimitrakakis},
  title = {{Inference of Intrinsic Rewards and Fairness in Multi-Agent Systems}},
  booktitle = {EWRL},
  year = {2025},
  url = {https://openreview.net/forum?id=dPL035yNrN},
}
Figure