Context-dependent agent evaluation with orthogonal equilibrium learning
Organizations: Munich Center for Machine Learning, Germany · Peking University
Abstract
Many applications require to evaluate agents under contextual information (e.g., a prompt, task, or user group). We study how to perform such context-dependent agent evaluation from offline feedback. Existing score-based models for this purpose (e.g., Bradley-Terry) impose a transitive preference ordering, which fails to reflect collective preferences when human judgements are heterogeneous. Inspired by social choice theory, we frame evaluation as a contextual game between two players, each selecting a distribution over agents as the strategy to receive greater collective preference than the other. Then, the support of the Nash equilibrium defines a context-specific set of winners. However, learning context-specific equilibria from offline logs is difficult because each context reveals human feedback on only a subset of agents, and, hence, a naive plug-in estimator can therefore be biased. To address these challenges, we propose NashEval, a general framework for robust contextual equilibrium learning. NashEval first constructs debiased estimates of the contextual payoff matrix that characterizes the game. NashEval then learns the context-to-equilibrium mapping with a tailored orthogonal loss, which avoids the need to solve a separate game for each context. We show theoretically that errors in estimating the nuisance functions underlying the payoff matrix affect the risk of the learned equilibrium (i.e., exploitability) only through higher-order terms. Across various experiments, NashEval improves robustness of equilibrium learning and consistently identifies the set of top-performing agents across contexts.
Figures & tables
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Stratification | Subgroups | Mean TV | Max TV | Distinct winners |
| Single attribute | ||||
| Language | 5 | 0.612 | 0.866 | 3 |
| Code | 2 | 0.900 | 0.900 | 2 |
| Instruction following | 2 | 0.000 | 0.000 | 1 |
| Mathematics | 2 | 0.500 | 0.500 | 1 |
| Two attributes | ||||
| Modality | Raw response | Ordered partition | Zero verdicts |
|---|---|---|---|
| Pairwise duel | a declared tie | ||
| Full ranking | none arise | ||
| Weak ranking | revealed indifference | ||
| Top- ( ) | censoring: the order inside and inside its complement is never asked | ||
| Best–worst | best , worst | censoring within the middle block | |
| Cardinal scores | equal scores |
| Parameter | Value | Meaning |
|---|---|---|
| Agents, context dimensions, and performance criteria. | ||
| Independent training and test contexts. | ||
| Fourier features and field length scale. | ||
| Uniform contexts for field standardization. | ||
| Shared quality, specialization, and criterion variation amplitudes. | ||
| Offsets of the three specialization profiles. |
| Provider | Agent | Input | Output |
| OpenAI | o3-2025-04-16 | 2.00 | 8.00 |
| o4-mini-2025-04-16 | 1.10 | 4.40 | |
| gpt-4.1-2025-04-14 | 2.00 | 8.00 | |
| Anthropic | claude-opus-4-20250514 | 15.00 | 75.00 |
| claude-sonnet-4-20250514 | 3.00 | 15.00 | |
| gemini-2.5-pro | 1.25 | 10.00 |
| Subset | Prompts | Test | Domain | Feedback modality | Ord. | Judged |
|---|---|---|---|---|---|---|
| MMLU-Pro | 3,000 | 50 | knowledge | Binary (correct/incorrect) | 13.1% | 75.5% |
| HLE | 2,158 | 50 | knowledge | Binary (correct/incorrect) | 17.1% | 3.0% |
| LiveCodeBench | 1,055 | 50 | programming | Binary (pass/fail) | 19.5% | 60.4% |
| ArenaHard | 750 | 100 | chat / IF | Ternary (win/tie/loss) | 48.7% | 42.6% |
| SimpleQA | 500 | 50 | knowledge | Ternary (correct/incorrect/not attempted) | 30.1% | 19.5% |
| SWE-bench | 500 | 50 | programming | Binary (pass/fail) | 24.9% | 10.8% |
| Provider | Agent | Input | Output |
|---|---|---|---|
| OpenAI | gpt-5 (medium) | 1.25 | 10.00 |
| gpt-5-chat | 1.25 | 10.00 | |
| Anthropic | claude-sonnet-4 | 3.00 | 15.00 |
| gemini-2.5-pro | 1.25 | 10.00 | |
| gemini-2.5-flash | 0.30 | 2.50 | |
| Alibaba | qwen3-235b-a22b-thinking-2507 | 0.23 | 2.30 |
| Hyperparameter | Symbol | Search space |
|---|---|---|
| Learning rate | ||
| Maximum leaves per tree | ||
| Maximum tree depth | {7, 10} | |
| Minimum observations per leaf | ||
| penalty on leaf values | ||
| Feature fraction per tree |
| Hyperparameter | Symbol | Search space |
|---|---|---|
| Learning rate | ||
| Maximum leaves per tree | ||
| Maximum tree depth | {10, 15} | |
| Minimum observations per leaf | ||
| penalty on leaf values | ||
| Feature fraction per tree |
| Hyperparameter | Search space or fixed setting |
|---|---|
| Hidden-layer widths | |
| Learning rate | |
| Weight decay | |
| Batch size | |
| Maximum training epochs | |
| Early-stopping patience | epochs |
Agent Evaluation
Agent evaluation measures how reliably AI systems act, use tools, and complete tasks across interactive environments.
See all 144 papers