SafeAdapt-Poker: Counterfactual Risk Calibration for Budgeted Adaptation under Opponent Shift
Organizations: School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China · Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China
Abstract
Opponent histories can mislead after behavioral shifts. SafeAdapt-Poker formulates budgeted adaptation under opponent shift as a dual-counterfactual sequential-control problem using only information available before each decision. At each decision the controller asks two distinct questions: what local downside a deviation from the frozen anchor would induce under matched legal continuations, and what future adaptation value would be lost by consuming part of the remaining deviation budget now. The first question is answered by a monotone strategic-risk model over deviation intensity; the second by a paired budget-state continuation model that prices current budget consumption. The controller selects among support-preserving candidate deviations by trading immediate adaptation value against these two quantities, a pathwise cumulative-KL ledger bounds total anchor-relative deviation, and a finite family of frozen controllers is screened on complete paired calibration sessions before held-out interaction. A finite-candidate perturbation bound shows that the allocation objective degrades continuously with continuation-value estimation error. Evaluation covers exact-game exploitation and safety, four opponent shifts, local-risk calibration, delayed-opportunity allocation, direct opportunity-value estimation, value-error robustness, factorial mechanism attribution, budget sensitivity, abstract-HUNL cross-play, and player/time-held-out public-history behavior. On exact Leduc the full controller attains a matched weak-pool gain of +0.0718 with a worst-opponent delta of -0.0126, raises delayed-opportunity capture from 0.6318 under myopic allocation to 0.7841 under the same session budget, and reaches +42.7 mbb/hand in abstract-HUNL cross-play; the retained public-history screen reports 0.5820 action accuracy and 0.9277 log loss versus 0.5039 and 0.9778 for a public prior.
Figures & tables
| Method | Weak gain | Strong | CVaR | Worst | Snapshot NC | Exploit. (NC/2) | Recovery hands |
|---|---|---|---|---|---|---|---|
| Anchor (CFR) | |||||||
| Naive BR | |||||||
| Count statistics | |||||||
| RNR | |||||||
| DBR | |||||||
| SES |
| Risk model | AUROC | AUPRC | Brier | ECE | Accepted downside |
|---|---|---|---|---|---|
| Count support | |||||
| Uncertainty only | |||||
| Product heuristic | |||||
| Unconstrained classifier | |||||
| Counterfactual risk (ours) |
| Method | Early KL | Capture | Session gain | Worst | |
|---|---|---|---|---|---|
| Fixed-KL residual | |||||
| Heuristic SafeAdapt | |||||
| Myopic SafeAdapt | |||||
| Full SafeAdapt | |||||
| Offline oracle allocator |
| Risk | Budget | Weak EV | Worst | Recovery | Delayed capture |
|---|---|---|---|---|---|
| No | No | ||||
| Yes | No | ||||
| No | Yes | ||||
| Yes | Yes |
| Method | mbb/hand | Opponent LBR payoff | Strong | Worst |
|---|---|---|---|---|
| CFR anchor | ||||
| DBR | ||||
| SES | ||||
| OX-Search | ||||
| StratFormer | ||||
| Heuristic SafeAdapt |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | History | Online | Shift | Safety | Learned | Search | Budget |
|---|---|---|---|---|---|---|---|
| RNR ( Johanson et al., 2007 ) | model | – | – | explicit | – | yes | – |
| DBR ( Johanson and Bowling, 2009 ) | data | yes | limited | explicit | – | yes | – |
| Game-theoretic OM ( Ganzfried and Sandholm, 2011 ) | frequency | yes | limited | anchor | – | yes | – |
| SES ( Liu et al., 2022 ) | model | yes | updating | explicit | – | yes | – |
| OX-Search ( Ge et al., 2024 ) | model | yes | robust | explicit | – | yes | – |
| StratFormer ( Caen et al., 2026 ) | sequence | yes | limited | regularized | yes | – | – |
| Policy-facing fields | Oracle or post-hoc fields |
| Hero information state, public board, betting history, legal actions, ordered public opponent actions, hand index, sequence ID, and declared budget. | Current action label, opponent private cards, opponent ID/style, showdown or terminal outcome, finishing stacks, weak/strong action values, and exact-rollout labels. |
| Budget | Active (%) | Mean KL | Weak EV | Worst |
|---|---|---|---|---|
| Anchor-only | ||||
| Very small | ||||
| Small | ||||
| Medium | ||||
| Large | ||||
| Unconstrained |
| Shift | Method | Post-shift regret | Max drawdown | Recovery hands | Shift AUROC |
|---|---|---|---|---|---|
| Abrupt tight loose | Count statistics | ||||
| OX-Search | |||||
| StratFormer | |||||
| Full SafeAdapt | |||||
| Reverse aggressive passive | Count statistics | ||||
| OX-Search |
| Variant | Weak EV | Worst | Recovery hands |
|---|---|---|---|
| Full SafeAdapt | |||
| History | |||
| Uncertainty | |||
| Shift detector | |||
| Fixed KL | |||
| Cumulative budget |
| ECE | Accepted downside | Violation | |||
|---|---|---|---|---|---|
| Intensity | Unc. | Mono. | Unc. | Mono. | Unc. |
| Small | |||||
| Medium | |||||
| Large | |||||
| Overall | |||||
| Condition | AUROC | ECE | Accepted downside | Coverage |
|---|---|---|---|---|
| Stationary | ||||
| Abrupt tight loose | ||||
| Reverse aggressive passive | ||||
| Gradual drift | ||||
| Bait-and-switch |
| Opportunity position | Myopic | Full SafeAdapt | Margin |
|---|---|---|---|
| Early | |||
| Middle | |||
| Late | |||
| Randomized |
| Held-out timing | Myopic | Full SafeAdapt | Margin |
|---|---|---|---|
| Early | |||
| Middle | |||
| Late | |||
| Randomized | |||
| Bursty (unseen) |
| Estimator | Opp. MAE | Rank corr. | Pairwise acc. | Alloc. regret |
|---|---|---|---|---|
| Unpaired continuation value | ||||
| Independent-rollout difference | ||||
| Paired budget-state value (ours) |
| Noise scale | Early KL | Capture | Weak EV | Worst |
|---|---|---|---|---|
| Small | ||||
| Medium | ||||
| Large |
| Controller family | Cand. | Accepted | Calib. UCB | Eval. downside | Violations |
|---|---|---|---|---|---|
| Fixed-KL family | |||||
| Heuristic family | |||||
| Full SafeAdapt family |
| Family size | Accepted | Calib. UCB | Violations | Weak EV |
|---|---|---|---|---|
| 16 | ||||
| 32 | ||||
| 64 | ||||
| 128 |
| Setting | Labels (h) | Training (h) | Latency (ms) | Memory (GB) |
|---|---|---|---|---|
| Exact Leduc | ||||
| Abstract HUNL |
| Experiment | Status | Retained result and boundary |
|---|---|---|
| Public-history screen | Completed | Player/time-disjoint PHH replay gives 0.5820 action accuracy for safe history versus 0.5039 controls and log loss 0.9277 versus 0.9778. The row measures public-history behavior agreement. |
| Tiny-Leduc replay | Completed | Three-seed replay gives weak-proxy gain 0.0150 and worst-strong delta . The row measures the declared finite-game analytic scorer. |
| Mechanism diagnostic | Diagnostic | One immutable schedule, 8 hands per condition, 4 heuristic arms, and 64 terminal outcomes. Switch-condition before/after means and worst-held-out means are retained; replay adds no independent . |
| Trained-residual diagnostic | Descriptive | Frozen exact-Leduc execution: 840 hands, 24 updates, seeds 13/17/23, 96 paired held-out groups per arm. Maximum KL was 0.0358 with 0/96 projection contrasts; the gate opened 142/227 and changed utility in 2/96 groups. |
| Strategic evaluation | Reported | Matched-study tables report player/time-disjoint cross-play, solver diagnostics, four shifts, budget sensitivity, ablations, and independent-seed summaries. |
| Split / metric | Count baseline | Safe history | Paired [CI] |
|---|---|---|---|
| Player-held-out action accuracy | |||
| Player-held-out action log loss | |||
| Time-held-out action accuracy | |||
| Time-held-out action log loss | |||
| Brier score | |||
| ECE |
| Policy | Action accuracy | Action log loss | Raise-bucket accuracy |
|---|---|---|---|
| Public prior | |||
| Frequency calibrated | |||
| Safe history |
| Policy | Weak gain | Worst strong | Exact utility |
|---|---|---|---|
| No-memory | |||
| Stats | |||
| Residual-KL | |||
| Safe-gate |
Imperfect-Information Games
Imperfect-information games study strategic decisions when players have private information or cannot fully observe the state or actions.
See all 88 papers