Agentic Pattern Libraryby Vikas Goyal
Patterns / Math models / Game theory for debate and critics
No. M13 Multi-model Emerging Coordination Verification

Game theory for debate and critics

A critic's best response: challenge when \(\Pr(\text{wrong}\mid\text{evidence})\) clears a threshold set by its payoffs

Takeaway

With a judge that is right % of the time, a critic that objects to everything makes your system exactly 90% accurate, however good the first answer was. Tuned to object only when its evidence is strong enough, it reaches 91.9%.

Change the blue number. Every figure on this page updates with it.

Why care

Critic, reviewer and debate agents only help if they challenge the right answers.

A common multi-agent design pairs a proposer with a critic: the critic reviews the answer, raises objections, and a judge (tests, a stronger model, or a person) settles each dispute. How you instruct the critic is an incentive design problem. Told to "find any issue", it challenges everything, and the system becomes only as good as the judge. Told to "be constructive" or rewarded for agreement, it waves everything through, and the critic adds nothing. Game theory says where between those extremes a rational critic should sit, and how to set its incentives so that what's best for the critic is also best for the system.

The intuition

Think of a code reviewer and a CI pipeline. Every comment the reviewer raises gets checked by CI. If the reviewer is praised for every comment and never blamed for a wrong one, they comment on everything, and the final result is whatever CI decides, including CI's mistakes on code that was fine. If every rejected comment costs them reputation, they stop commenting, and bugs sail through.

No critic: the proposer alone
80.0%
Critic challenges everything
90.0%
Critic challenges when its evidence warrants
91.9%
Critic challenges everything, weaker judge (75%)
75.0%

Proposer right 80% of the time; critic's suspicion score separates right from wrong answers with AUC 0.80; judge right 90% of the time unless stated.

The last row is the trap: with an unreliable judge, an over-eager critic makes the system worse than no critic at all, because the judge overturns good answers almost as often as it fixes bad ones.

The math

The proposer's answer is right with probability \(p\). The critic sees evidence and forms a belief \(\pi = \Pr(\text{wrong}\mid\text{evidence})\). If it challenges, the judge rules correctly with probability \(j\). The critic gains \(R\) when its challenge is upheld and loses \(C\) when it is rejected; accepting earns 0. Challenging pays off on average when

$$\pi\big(jR - (1-j)C\big) + (1-\pi)\big((1-j)R - jC\big) > 0 \quad\Longleftrightarrow\quad \pi > \tau = \frac{jC - (1-j)R}{(2j-1)(R+C)}$$

The system's accuracy, given how often the critic challenges right answers (\(q_r\)) and wrong ones (\(q_w\)), is

$$\text{accuracy} = p\,\big(1 - q_r(1-j)\big) + (1-p)\,q_w\,j$$
\(p\)
proposer accuracy before any review
\(j\)
judge accuracy on a disputed answer (above 0.5)
\(R,\ C\)
critic's reward for an upheld challenge and penalty for a rejected one; only \(C/R\) matters
\(\tau\)
the critic's challenge threshold on its belief that the answer is wrong
\(q_r,\ q_w\)
share of right and of wrong answers the critic challenges
  • Two extremes: never challenging gives accuracy \(p\). Challenging everything gives exactly \(j\): the judge decides every case.
  • The system-optimal rule challenges when \(\pi > 1-j\): when the answer is more likely wrong than the judge is likely to err.
  • Aligned incentives: the critic's selfish threshold \(\tau\) equals \(1-j\) exactly when \(\dfrac{C}{R} = \dfrac{2j(1-j)}{j - (1-j)(2j-1)}\): about 0.22 for a 90% judge, 0.6 for a 75% judge. Weaker judges call for more caution.

Where each of these comes from is worked through in Derivations at the end of the page.

Interactive calculator

Set the proposer, the critic's evidence and the judge, then the critic's penalty-to-reward ratio. The critic always plays its best response to the incentives you give it.

Left: "flag anything". Right: "only flag if certain", or "be agreeable".
–
System accuracy
–
Answers challenged
–
Wrong answers fixed
–
Right answers wrongly overturned
–
Critic challenges when it believes the answer is wrong with probability above
–
Best ratio for this judge
With a critic playing its best response No critic (\(p\)) and challenge-everything (\(j\))

Worked example: a reviewer for database migrations

A coding agent writes database migration scripts; 80% are correct on the first try. A reviewer agent reads each one, and its suspicion separates broken scripts from good ones with an AUC of 0.80. Disputes go to a judge. The team compared two judges: running the test suite against a staging copy (right 90% of the time), and a second LLM reading the dispute (right 75% of the time). They tried four reviewer instructions, each of which makes the reviewer behave as if it had a different penalty-to-reward ratio:

Reviewer instructionBehaves like C/RTests as judge (90%)LLM as judge (75%)
No reviewer–80.0%80.0%
"Flag anything that might be wrong"≈ 0.0590.0%75.0%
"Flag it if it's more likely broken than the judge is to get it wrong"0.22 / 0.691.9%85.5%
"Only flag if you are certain"≈ 281.7%80.4%
"Be constructive and supportive"≈ 1080.0%80.0%

The "flag anything" reviewer looked productive, raising objections on every script, but with the LLM judge it made the pipeline worse than having no reviewer: the judge overturned one good script in four. The aligned instruction told the reviewer how reliable the judge is and asked it to flag only when its doubt exceeded the judge's error rate. With tests as judge that meant challenging about 60% of scripts; with the LLM judge, about 29%. Either way it beat both extremes, and the gap was largest exactly where the judge was weakest.

Assumptions and where it breaks

  • LLM critics don't literally maximize payoffs. Instructions shift their behavior in the direction the model predicts, not precisely. Measure the challenge rate and its hit rate on labeled cases, and adjust the instruction until the critic's behavior matches the target threshold.
  • The critic's beliefs may be miscalibrated. A critic that believes it is right 90% of the time when it is right 60% of the time will over-challenge. Calibrate its suspicion against labeled outcomes.
  • Upheld challenges are assumed to fix the answer. In practice a fix can introduce new errors. Treat the repaired answer as another proposer output with its own accuracy.
  • One round only. Multi-round debate lets the proposer defend and the critic refine, which can help when judging a single disputed step is easier than judging a whole answer. It also raises cost and can reward persuasive rather than correct arguments.
  • Judging has a cost. Challenging 60% of answers means the judge runs on 60% of traffic. If judging is expensive, add that cost to \(C\).

How to apply it

  1. Measure the judge first. Its accuracy on disputed cases sets everything else. A judge below about 80% makes most critics risky.
  2. Tell the critic how reliable the judge is. Ask it to object only when the answer is more likely wrong than the judge is likely to err.
  3. Track two numbers per critic: the share of answers it challenges and the share of its challenges that are upheld. A high challenge rate with a low uphold rate means it is over-eager.
  4. Never reward the critic for agreement, or penalize it for every rejected challenge without weighing upheld ones. Either collapses it to an extreme.
  5. Re-tune when the judge changes. A stronger judge justifies a more aggressive critic; a weaker one demands more restraint.

How to explain it to a stakeholder

"A reviewer who objects to everything just hands every decision to whoever settles the disputes. A reviewer who never objects adds nothing. We tell ours how reliable the referee is, and ask it to object only when it's more likely right than the referee is likely to be wrong."

For coding agents

A machine-readable summary and a reference implementation. The same spec is embedded in this page as <script type="application/json" id="model-spec">, and the whole series is listed in models.json.

Model spec (YAML)
id: game-theory-debate
number: M13
name: Incentives for critic and debate agents
family: multi-model
answers: "How should a critic agent be incentivized so its challenges improve the system?"
formula:
  critic_threshold: "tau = (j*C - (1-j)*R) / ((2j - 1) * (R + C))"
  system_optimal_threshold: "challenge when P(wrong | evidence) > 1 - j"
  aligned_ratio: "C/R = 2j(1-j) / (j - (1-j)(2j-1))"
  accuracy: "p*(1 - q_r*(1-j)) + (1-p)*q_w*j"
  extremes: "never challenge -> p; always challenge -> j"
inputs:
  p: {type: float, meaning: proposer accuracy}
  j: {type: float, meaning: judge accuracy on disputes, > 0.5}
  auc: {type: float, meaning: how well the critic's suspicion separates wrong from right}
  ratio: {type: float, meaning: critic penalty for rejected challenge / reward for upheld one}
assumptions:
  - critic acts on calibrated beliefs
  - upheld challenges fix the answer; rejected ones leave it
  - one round of challenge and judgment
use_when:
  - instructing reviewer, critic or debate agents
  - deciding whether a critic helps given the judge available
related_patterns: [debate, reflection, llm-as-judge, pr-review-gate]
Reference implementation (Python, SciPy)
import math
from scipy.stats import norm

def critic_outcome(p, auc, j, ratio):
    """Accuracy when a critic with binormal evidence plays its best response to C/R = ratio."""
    mu = math.sqrt(2) * norm.ppf(auc)          # separation of suspicion scores
    tau = (j * ratio - (1 - j)) / ((2 * j - 1) * (1 + ratio))
    if tau <= 0:
        q_w = q_r = 1.0                          # challenge everything
    elif tau >= 1:
        q_w = q_r = 0.0                          # never challenge
    else:
        # P(wrong | x) > tau  <=>  x > x_star, with wrong ~ N(mu,1), right ~ N(0,1)
        log_odds = math.log(tau / (1 - tau)) - math.log((1 - p) / p)
        x_star = (log_odds + mu * mu / 2) / mu
        q_w, q_r = 1 - norm.cdf(x_star - mu), 1 - norm.cdf(x_star)
    accuracy = p * (1 - q_r * (1 - j)) + (1 - p) * q_w * j
    return accuracy, p * q_r + (1 - p) * q_w

def aligned_ratio(j):
    return 2 * j * (1 - j) / (j - (1 - j) * (2 * j - 1))

if __name__ == "__main__":
    for j in (0.90, 0.75):
        r = aligned_ratio(j)
        print(j, round(r, 2), [round(v, 3) for v in critic_outcome(0.8, 0.8, j, r)])
    # 0.9 0.22 [0.919, 0.607] | 0.75 0.6 [0.855, 0.289]

Derivations

For the math-curious: where each result in The math comes from. Nothing above depends on reading this.

The critic's best response

If the answer is wrong (probability \(\pi\)), a challenge is upheld with probability \(j\) (gain \(R\)) and rejected otherwise (lose \(C\)). If the answer is right, the judge rejects the challenge with probability \(j\) (lose \(C\)) and wrongly upholds it otherwise (gain \(R\)). Accepting pays 0. So challenging is better when \(\pi(jR-(1-j)C) + (1-\pi)((1-j)R - jC) > 0\). The left side is linear in \(\pi\) with slope \((2j-1)(R+C) > 0\) when \(j > \tfrac12\), so the critic challenges exactly when \(\pi\) exceeds \(\tau\). A negative \(\tau\) means it challenges everything; \(\tau \ge 1\) means it never does.

Why challenging everything gives exactly \(j\)

If every answer is challenged, \(q_r = q_w = 1\). A right answer survives only if the judge rejects the challenge: probability \(j\). A wrong answer is fixed only if the judge upholds it: also \(j\). Accuracy is \(pj + (1-p)j = j\), whatever \(p\) was. The proposer's quality no longer matters; the judge's does.

The system-optimal rule and the aligned ratio

Challenging an answer the critic believes is wrong with probability \(\pi\) changes expected accuracy by \(\pi j - (1-\pi)(1-j)\): it gains when a wrong answer is fixed and loses when a right one is overturned. That is positive exactly when \(\pi > 1-j\). To make the critic's own threshold match, set \(\tau = 1-j\) and solve for \(\rho = C/R\):

$$\frac{j\rho - (1-j)}{(2j-1)(1+\rho)} = 1-j \;\Longrightarrow\; \rho = \frac{2j(1-j)}{j-(1-j)(2j-1)}.$$

At \(j = 0.9\), \(\rho = 0.18/0.82 \approx 0.22\). As \(j \to 1\), \(\rho \to 0\): with a perfect judge, the critic should challenge anything that might be wrong. This is mechanism design in miniature: choosing payoffs so that self-interested play produces the outcome the designer wants.

From evidence to challenge rates

Model the critic's suspicion score as \(N(\mu,1)\) on wrong answers and \(N(0,1)\) on right ones, with \(\mu = \sqrt2\,\Phi^{-1}(\text{AUC})\). By Bayes' rule, the log-odds that an answer is wrong given score \(x\) are \(\ln\frac{1-p}{p} + \mu x - \mu^2/2\), which increase with \(x\). So "\(\pi > \tau\)" is the same as "\(x > x^*\)" for a cut-off \(x^*\), and the challenge rates are \(q_w = 1-\Phi(x^*-\mu)\) and \(q_r = 1-\Phi(x^*)\).

Debate as a zero-sum game

In AI safety via debate, two agents argue opposite answers and a judge picks the winner. It is zero-sum: one debater's gain is the other's loss. The argument for honesty is that, in equilibrium, a debater defending a false claim can be forced to commit to a specific false step, and if judging one pointed-out step is reliable (\(j\) high on single steps), the honest debater wins. The critic model on this page is the one-round version of that game, and its main lesson carries over: everything rests on how reliably the judge can settle the narrowest disputed point.

References

  1. Irving, G., Christiano, P. and Amodei, D. (2018). AI safety via debate. Debate as a zero-sum game judged by a weaker agent.
  2. Du, Y. et al. (2023). Improving Factuality and Reasoning in Language Models through Multiagent Debate. Empirical gains from multi-agent debate.
  3. Khan, A. et al. (2024). Debating with More Persuasive LLMs Leads to More Truthful Answers. Judge accuracy when weaker judges oversee stronger debaters.