Selecting a strategy by testing it against an opponent is common in game-playing AI, red-teaming of language models, and safety evaluations of AI agents. In many of these settings, the opponent adapts to what it observes, so a strategy that keeps winning in practice may already have stopped working by the time it is used. Motivated by these settings, we study a player who tries strategies in practice games against an adaptive opponent, decides when to stop, and then either selects one strategy for the next game or abstains. The goal is to select a strategy that meets a target win probability while rarely selecting one that has already fallen below it. For a single strategy, we propose the Sequential Private Accumulated-excess Rule (SPAR), which accumulates evidence through a capped likelihood ratio and selects the strategy once this evidence reaches a privately drawn uniform threshold. We show that the stopping time must involve such private randomness. The number of games SPAR needs is inversely proportional to the error tolerance, and this rate is optimal even when the opponent happens not to adapt. To select among multiple strategies, we introduce Screen-then-SPAR, which screens candidates in stages before applying SPAR. The procedure adapts to the best strategy's unknown initial margin above the target and achieves the minimax rate up to logarithmic factors. The performance of Screen-then-SPAR is demonstrated through simulations and two real-data studies, one using recorded coding-agent attacks from MonitoringBench and the other using rock-paper-scissors matches between human players and an adaptive bot.
Figures & tables
Figure 1: The stone game of the example. After the opponent’s opening move, the player chooses between two strategies. The labels on the right give the winner when both sides play perfectly after the opponent’s reply. Solid branches are the opponent’s errors, which the player can exploit, and dashed branches are its winning replies.
Figure 2: The problem. (a) Before each practice game, the player chooses which strategy to try, and after each game it decides whether to stop. When it stops, it either selects one strategy, which is then used in the next game, or abstains. A selection is correct if the selected strategy meets the target, that is, if its value is at least q . Abstaining is neither correct nor incorrect. (b) The player does not observe the values Vn=(Vn(1),…,Vn(K)) . In practice game n , strategy An wins with probability Vn−1(An) , and the values then change as the opponent responds to the observation. The selection is judged by Vτ(J) , a value that has generated no practice outcome. In both panels, rounded boxes are the player’s actions and heavy boxes evaluate a selection. The shaded boxes in (b) are the unobserved values.
Figure 3: Value trajectories under Assumption 2.2 . (a) The value may fluctuate above q before the first drop below it. (b) During the same run, it may then reach q but cannot exceed it. (c) Playing a different strategy in games 3 and 4 (shaded) permits Vn(j) to rise above q again.
Figure 4: Execution tree of Screen-then-SPAR ( Algorithm 2 ). Along the bottom path, strategies are screened in order in stages of doubling length ml=2l+1 and decreasing tilt δl . Infeasible screens (step 1(b)) are skipped without playing. As soon as a screen passes, screening ends and SPAR runs once on that candidate over the remaining budget L with cap κL and tilt δl . If no screen passes before the remaining budget falls below one, the procedure abstains.
Figure 5: Correct selections as a percentage of all runs and mean games used as a percentage of the budget. From left to right, the panels show the 200-play decline, the 100-play decline and the drops after wins. Vertical bars show pointwise 95% Wilson intervals. Horizontal bars show the mean plus or minus 1.96 Monte Carlo standard errors.
Source
Records
Tasks
Initial pass (%)
Both pass (%)
Human-in-the-Loop
170
5
86.47
78.24
Opus Only
58
58
94.83
75.86
Recon
159
37
86.79
69.81
Refined
424
77
93.16
88.68
Table 1: Recorded runs and distinct tasks by source. Human-in-the-Loop runs followed plans written by a researcher with model assistance. Opus Only runs came directly from Opus 4.6. Recon runs followed plans from a separate agent that first inspected the task environment. Refined records are edited versions of earlier runs. Initial pass is the percentage of runs that pass GPT-4.1. Both pass is the percentage that pass GPT-4.1 and GPT-5.
Figure 6: Percentage of recommendations that still meet the target after the final monitoring update. Each panel shows one source, with pointwise 95% Monte Carlo intervals. Shading marks targets above the source’s initial pass probability. The private block verifier abstains throughout.
Figure 7: Rock-paper-scissors replays from round 100 of each recorded match. The top row shows correct recommendations as a percentage of all replays. The bottom row shows the mean number of additional rounds used, including screening and verification.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Setting
Verifier
Correct (%)
Incorrect (%)
Abstain (%)
Mean games
200-use decline
SPAR
94.485
0.000
5.515
15,041
Private block
29.135
0.070
70.795
51,692
Likelihood ratio
79.640
0.000
20.360
20,522
Binomial
0.220
94.555
5.225
95,258
100-use decline
SPAR
96.715
0.000
3.285
13,381
Private block
30.140
0.095
69.765
50,713
Appendix
Table 2: Selection rates and mean number of games over all 20,000 runs in each setting. Game counts include screening and verification.
In this paper, we study regret minimization in repeated games with adaptive opponents who can respond based on histories of play. The standard metric of external regret in online learning is known to fail to capture such adaptivity. To account for players' counterfactual reasoning, we introduce {\tt Repeated Policy Regret (RP-Regret)}, a game-theoretic metric that measures the difference between the realized and the best-in-hindsight accumulated utility when all players can respond to the history of play. Compared to existing regret notions in this setting, ours is native to repeated game playing, enabling stronger comparators and opponents with fewer constraints, while maintaining the possibility of finding better equilibria when all players minimize it. We first identify necessary conditions for obtaining {\tt RP-Regret} sublinear in time, on the variation of the player's comparator strategies in the regret definition and on the memories of both the comparator and opponents' strategies. We then study additional conditions and provable algorithms to minimize {\tt RP-Regret}, which is by definition non-convex in the strategy space. To address this challenge, we propose three algorithms: (i) one based on an optimization oracle, as assumed in some prior work in online non-convex learning; (ii) one that minimizes a convex and linearized surrogate of {\tt RP-Regret} at each iteration; (iii) one that directly minimizes {\tt RP-Regret} when opponents change strategies slowly. Furthermore, when all players can run algorithms to minimize the {\tt RP-Regret} (or its linearized variant), certain subgame perfect equilibria of the repeated game can be learned. We also provide experiments showing that minimizing our regret notions can lead to more cooperative solutions with higher utility in games such as Stag-Hunt.
Mingyang Liu, Asuman Ozdaglar, Tiancheng Yu +1
Massachusetts Institute of Technology · OpenAI · University of Maryland, College Park
Learning to adapt strategies through interaction is a key step toward more general and autonomous LLM agents. Existing approaches typically achieve behavioral adaptation by revising skill libraries. However, in multi-agent environments, opponents may simultaneously update their strategies, causing the environment itself to evolve continuously. Applying skill-revision methods designed for static environments in such settings therefore amounts to updating against an obsolete reference. To address this challenge, we introduce OASE (Opponent-Aware Selective Evolution), which identifies and adopts genuinely beneficial skill revisions in dynamic multi-agent environments. Specifically, OASE conducts paired comparisons between a candidate skill and the incumbent under identical conditions anchored by historical snapshots of opponent strategies, and adopts the candidate only when its estimated payoff gain exceeds an acceptance threshold. We evaluate OASE in two decision-making scenarios: first-price auctions and private-cost Cournot competition. Experimental results show that, compared with a Reflexion-style baseline, OASE achieves a lower final equilibrium distance in both environments while accepting substantially fewer skill revisions, thereby suppressing strategy changes that lack sufficient payoff support. OASE therefore replaces blind updating with evidence-anchored selection, allowing agents to adapt stably and efficiently even as opponents continuously evolve.
Zhaofeng Zhang, Linhan Xia, Rui Liu +3
University of Edinburgh · University of Michigan · University of Oklahoma +5
Adversarial games have driven advances from heuristic search to reinforcement learning, yet learning and adapting strategies from limited samples remain challenging. AI agents offer an alternative by turning game experience into revisions of executable policies. Building on heuristic learning (HL), we formalize Adversarial Heuristic Learning (AHL), a paradigm that uses AI agents as learning engines to refine game policies and supporting software while keeping model weights fixed. We introduce AAArena, a benchmark comprising 12 authentic adversarial games and 1,920 archived human programs, with an evaluation protocol modeled on real-world game competitions. Agents interpret rules, choose opponents, analyze replays, and revise game agents to achieve their highest ranking within fixed match and evaluation budgets. We evaluate \val{completedmodels} model and harness configurations: Opus5.5 with Claude Code earns 6 gold medals, while no evaluated configuration tops the remaining 6 human ladders. Performance is generally weaker in games with more complex rule specifications. Further experiments show that opponent selection and dense feedback support policy improvement, and that agents learn from both on-policy replays of their own matches and off-policy replays of other players' matches. These results highlight HL's potential in adversarial games and identify persistent challenges in game understanding, strategy implementation, and long-horizon policy development.
Kaisen Yang, Qingle Liu, Kejin Wang +24
Department of Computer Science and Technology, Tsinghua University