Incentive-Compatible Private Recommendations for Mediating Black-Box LLM Agents

When several language-model agents that we can only reach through an API play a repeated game, they often settle into a poor outcome even when a better stable outcome exists. The most direct recent attempt to fix this trained a small controller that decides when to inject a "strategic analysis" prompt into every agent's context. It raised cooperation in Stag Hunt and the Iterated Prisoner's Dilemma, but in the game of Chicken "no amount of mediation helped" (Learning to Mediate Equilibrium Selection in LLM Games). We argue that this failure follows predictably from what the mediator was allowed to say, not from a limit on steering black-box models. Chicken is an anti-coordination game, meaning each player wants to do the opposite of the others. Its good outcomes are asymmetric: one player swerves and another drives straight. Mutual swerving is not stable, because each player then wants to defect. A message broadcast identically to all players can only ask for symmetric behavior. In Chicken, the symmetric request ("everyone be cooperative") asks for exactly the outcome that every rational player wants to abandon.

Game theory has a classical fix, the correlated equilibrium. A mediator privately tells each player what to do, drawing joint recommendations from a distribution chosen so that no player gains by disobeying, given only their own recommendation. In Chicken, such a mediator achieves higher welfare than any symmetric mixed Nash equilibrium. The welfare-optimal correlated equilibrium of a normal-form game is a linear program. By contrast, picking the welfare-optimal Nash equilibrium becomes NP-hard as soon as anti-coordination appears (Complexity of Efficient Outcomes in Binary-Action Polymatrix Games and Implications for Coordination Problems). This proposal builds a mediator for black-box LLM agents that sends only private, incentive-compatible recommendations. It adapts those recommendations to each API model by measuring how much incentive margin that model needs before it actually complies. It then tests whether incentive compatibility, rather than message wording or controller cleverness, determines when black-box mediation works.

Core Claim

Black-box mediation succeeds when the mediator asks each agent to do something that would be a best response if the others also followed their advice. It fails, as in Chicken, when the mediator asks for non-equilibrium play. Two consequences follow if this is right.

The first concerns computation. Changing the mediator's target from "a good Nash equilibrium" to "a good correlated recommendation scheme" turns an NP-hard selection problem into a small linear program.

The second concerns adaptation. The remaining black-box work is cheap: per model, we estimate a single number, the minimum expected advantage of obeying that makes the model reliably obey. That number enters the program as a linear margin, so heterogeneous mixes of models can be mediated without touching weights or logits.

Concretely, let $x(a)$ be the probability the mediator recommends joint action $a$, let $u_i$ be player $i$'s payoff, let $W(a)=\sum_i u_i(a)$ be welfare, and let $\delta_i \ge 0$ be the compliance margin estimated for the model playing $i$. The mediator solves

$$\max_{x \ge 0,\ \sum_a x(a)=1} \sum_a x(a) W(a)$$

subject to, for every player $i$, recommended action $r$, and deviation $r'$:

$$\sum_{a_{-i}} x(r,a_{-i})\,[u_i(r,a_{-i}) - u_i(r',a_{-i})] \;\ge\; \delta_i \sum_{a_{-i}} x(r,a_{-i}).$$

With $\delta_i=0$ this is the standard welfare-optimal correlated equilibrium. Positive $\delta_i$ requires obedience to beat disobedience by a margin the agent can "see," and it trades welfare for robustness.

Relation to Prior Work

The closest work is Learning to Mediate Equilibrium Selection in LLM Games. Its PPO meta-controller chooses whether to inject a fixed, public, hand-written prompt. That paper motivates ours: its Chicken failure and its finding that mediation slightly hurt the already-cooperative Llama-3.3-70B are the two phenomena we aim to explain. Our mediator differs on three axes. Its messages are private and differ across players. Its content is computed from a program with incentive constraints rather than written in advance. And it is calibrated per model rather than trained by reinforcement learning on welfare.

Polynomial-Time Optimal Equilibria with a Mediator in Extensive-Form Games shows that optimal mediated equilibria in sequential games become polynomial-time when the mediator has perfect recall and communicates privately. It supplies the conceptual template: privacy and the mediator's memory are what make selection tractable. However, it assumes known payoffs and rational players. We keep its private-communication structure, work in repeated stage games, and replace the rationality assumption with measured compliance.

Constrained Phi-Equilibria constrains our design. It shows that side constraints coupling players' actions make welfare maximization NP-hard. Our per-agent margins are deliberately conditioned only on each agent's own recommendation, which keeps them inside the tractable linear-program regime. We would avoid richer "safety" constraints that couple players.

On the adaptation side, How to Train Your Advisor: Steering Black-Box LLMs with Advisor Models trains a small model with GRPO to write instance-specific advice for a frozen model. We use it as the strongest learned-text competitor, not as our mechanism. Agentic Monte Carlo: Simulating Reinforcement Learning for Black-Box Agents steers single black-box agents by resampling rollouts with a small critic. Its lesson that guided search beats blind sampling informs our best-of-N baseline, but it has no notion of strategic incentives between agents.

Research Program

The work proceeds in three parts.

The first is a compliance study. For each API model, we present a single-round decision in which a "mediator" privately recommends an action. We disclose the payoff matrix and state that recommendations come from a publicly known distribution. We then vary the incentive slack of the recommendation, which is the expected gain from obeying conditional on the recommendation, across negative, zero, and positive values. Fitting compliance probability against slack yields a per-model curve. We read $\delta_i$ off this curve as the slack at which compliance reaches a target level, for example 90%. This takes a few hundred queries per model, which is small compared to reinforcement-learning mediators. The curve also tests the core claim directly: if compliance is flat in slack, LLM agents are not responding to incentives, and the approach fails.

The second part is the mediator itself. Each round, it samples a joint action from the solution $x$, sends each agent only its own recommendation together with a short, true justification ("given that you were told to swerve, the others were told to drive straight with probability p"), and records actions. It updates $\delta_i$ online if observed compliance drifts from the fitted curve. Because the program is solved from scratch each round, it handles mixes of different models and changing populations.

The third part covers scale and structure. Beyond the three-player games of the prior work, we use binary-action networked anti-coordination games on cycles and random graphs with four to eight players. The joint action space there reaches 256, which is still trivially solvable as a linear program. This is the regime where the polymatrix hardness result says picking the best Nash equilibrium is intractable. For larger graphs we would replace the full program with one over the per-edge correlation structure, but we treat that as an extension rather than a central claim.

We state the scope plainly. In the one-shot Prisoner's Dilemma, the only correlated equilibrium is mutual defection. Cooperation there depends on repeated-game threats, not on equilibrium selection within the stage game. Our stage-game mediator would therefore recommend defection, which is wrong for the welfare goal. We report this as a predicted boundary of the method rather than hide it. Extending the recommendations to history-dependent repeated-game schemes, in the spirit of the perfect-recall mediator, is a follow-up.

Baselines

The naive reference point is never intervening: the agents play on their own under the persona prompts of the prior work. Against it, Learning to Mediate Equilibrium Selection in LLM Games reports that its PPO meta-controller raised cooperation by +23.7 percentage points in Stag Hunt and +10.8 points in the Iterated Prisoner's Dilemma with Granite-4.1-30B. In Chicken it reports no gain, and no numeric Chicken result is given in the file.

That PPO meta-controller is the strongest existing method on exactly this question, because it is the only published black-box equilibrium-selection mediator. We re-implement it on the same TextArena games, models, round counts, and persona prompts. It receives the same number of training episodes as our total query budget, which is compliance calibration plus any online updates. On Stag Hunt and IPD we count reproducing its reported gains within a few points as a fair setup. On Chicken and the networked anti-coordination games, we count beating it as achieving a statistically significant welfare gain over never intervening, where it achieves none.

A rule-based mediator that intervenes only after a defection is included, because the prior paper used it as its comparison point.

A learned free-text mediator follows the advisor recipe of How to Train Your Advisor: a Qwen2.5-7B-scale model trained with GRPO on collective welfare. It may send different text to each agent, and it receives the same query budget. It is the strongest competitor that could, in principle, discover asymmetric recommendations unaided.

A public correlation device recommends turn-taking between the two pure Nash equilibria of Chicken, announced to all players. It is described under the next section.

Finally, ablations isolate the key ingredient. "Private but not incentive-compatible" privately recommends mutual swerving. "Incentive-compatible but public" broadcasts the joint recommendation. "Zero margin" fixes $\delta_i=0$ for all models. "Bare recommendation" drops the justification text. The headline welfare metric is normalized so that 0 is the best symmetric mixed-Nash welfare and 1 is the optimal correlated-equilibrium welfare.

Why not just…?

Why not just let the existing meta-controller send different prompts to different players? Privacy alone is not the claimed ingredient. Our "private but not incentive-compatible" ablation is exactly this alternative. If privately recommending mutual swerving works as well as incentive-compatible recommendations, the core claim is wrong and we will say so. Our prediction from the compliance curves is that agents disobey negative-slack recommendations at a high rate in Chicken.

Why not just use public turn-taking? This is the most serious threat. A public alternation between (swerve, straight) and (straight, swerve) is itself a correlated equilibrium. In standard Chicken payoffs it recovers much of the welfare gap, since the optimal private scheme beats it only modestly. If LLM agents follow it reliably and our private scheme loses welfare through lower compliance, then the practical lesson is "recommend incentive-compatible play," not "recommend privately." We would still regard that as a finding the field lacks. The experiments separate the two effects directly. Public turn-taking is also unavailable in our networked anti-coordination games beyond simple bipartite graphs, where good outcomes need non-public correlation. We expect privacy to matter most there.

Why not just train a free-text advisor with reinforcement learning and let it find whatever works? It may find turn-taking, but How to Train Your Advisor reports high reward variance from non-deterministic black-box generation. The prior meta-controller, also trained on welfare, found nothing in Chicken. We compare at an equal query budget and additionally measure how welfare changes when a new model joins the population. Our mediator needs only a fresh $\delta_i$ estimate in that case, whereas the advisor needs retraining.

Why not just pick the best of N sampled joint trajectories? Best-of-N assumes we can replay the game and choose an outcome after the fact. That is unavailable in live interaction among independent agents. Even in single-agent settings it trailed guided steering, scoring 0.562 versus 0.625 on WebShop in Agentic Monte Carlo. We report it only as an offline upper reference on simulated replays.

Proposed Experiments

We use TextArena (TextArena) to reproduce the three-player Chicken, Stag Hunt, and IPD settings and the two-player Bertrand setting of the prior mediation paper. We add the four-to-eight-player networked anti-coordination games. Models are Granite-4.1-30B, Llama-3.3-70B, and DeepSeek-R1-Distill-Qwen-7B, run in both homogeneous and mixed populations. Metrics are normalized welfare, per-recommendation compliance rate, each agent's realized gain from obeying, and a backfire score: the welfare change for the intrinsically cooperative Llama-3.3-70B relative to no intervention.

Three checks decide the proposal.

First, compliance must rise with incentive slack in every model. A flat curve falsifies the mechanism.

Second, in Chicken, the incentive-compatible mediator must achieve welfare significantly above never intervening and above the re-implemented PPO controller. The private-but-not-incentive-compatible ablation must not.

Third, in Stag Hunt, where the optimal recommendation is simply the efficient pure equilibrium, the mediator should match the PPO controller's gains for Granite without degrading Llama. Our mechanism predicts no backfire because recommending an equilibrium that agents already play has zero cost.

In heterogeneous populations, we additionally test whether per-model margins $\delta_i$ outperform a single shared margin. That comparison is the cleanest measure of what black-box adaptation contributes beyond the game-theoretic computation.