alphaFeedback

WorksComputer Science

Teaching AI Agent to Play Poker Strategically Through Preference Optimization

AI contributions
Not recorded for this paper
View details

Abstract

A poker agent can make a legal move and still make a strategically poor one. We ask whether compact AI agents can exhibit strategic behavior under hidden information and whether preference optimization can improve beyond static and zero-shot policies. We first evaluate a static baseline and three frozen language models: SmallThinker, Qwen3, and Gemma-3 whose performance varies substantially between exact-game and six-player evaluation. We therefore propose Strategic Preference Optimization with KL-anchored Equilibrium (SPOKE), combining teacher-relative value penalties, policy anchoring, risk constraints, and structured rationale supervision, and compare it with SFT, DPO, GRPO, and GSPO. Across three runs of a SmallThinker-4B-A0.6B policy, SPOKE achieves the lowest mean exploitability in Kuhn (0.213) and Leduc (1.081) and the highest six-max top-1 agreement (0.775), while maintaining teacher KL comparable to SFT (0.522 vs 0.523). These results provide preliminary evidence that strategic preference optimization can improve strategic quality while preserving teacher-consistent behavior.

Introduction

Legal poker actions can still be strategically poor, making poker a useful testbed for strategic decision-making under hidden information. CFR provides approximate equilibrium strategies in finite two-player zero-sum games [1], while systems such as Pluribus [2] motivate evaluation in more complex multiplayer settings.

We first compare a static policy with three frozen compact language models: SmallThinker, Qwen3, and Gemma-3. SmallThinker performs best among them in exact games, yet remains weak on six-max agreement.

We therefore compare Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO) [4], Group Relative Policy Optimization (GRPO) [5], and Group Sequence Policy Optimization (GSPO) [6], and propose Strategic Preference Optimization with KL-anchored Equilibrium (SPOKE). SPOKE combines teacher-relative value penalties, KL anchoring, risk constraints, and structured rationale supervision to improve strategic quality without sacrificing teacher-consistent behavior.

SPOKE overview

Figure 1. SPOKE overview: teaching a poker agent to act legally and strategically.

Proposed Method

Each record contains the player’s information state ss, legal action-size menu A(s)A(s), teacher distribution πT\pi_T, optional action values QTQ_T, risk features, and rationale tags tt. Prompts exclude opponents’ hidden cards. Canonical action strings receive model likelihood scores, normalized over A(s)A(s) to form πθ\pi_\theta; a separate output predicts structured tags (see Figure 2).

Proposed SPOKE pipeline

Figure 2. Proposed SPOKE pipeline. Teacher values are used only where validated; six-max action labels provide behavioral supervision. Legal-action filtering is shared by all methods.

We operationalize the objective as follows. Let [x]+=max⁡(x,0)[x]_+ = \max(x,0) and VT=Ea∼πTQT(s,a)V_T = \mathbb{E}_{a\sim\pi_T} Q_T(s,a). Define

Rs+=Ea∼πθ[VT−QT(s,a)]+,Δs+=[VT−Ea∼πθQT(s,a)]+.(1)R_s^+ = \mathbb{E}_{a\sim\pi_\theta}[V_T-Q_T(s,a)]_+, \qquad \Delta_s^+ = [V_T-\mathbb{E}_{a\sim\pi_\theta}Q_T(s,a)]_+. \tag*{(1)}

The first penalty discourages individual below-reference actions; the second penalizes an average value shortfall. These are teacher-relative proxies, not cumulative CFR regret. With msm_s indicating validated value targets, we optimize the policy using

L=Es[ms(λrRs++λvΔs+)+λkDKL(πT∥πθ)+λb[Ea∼πθc(s,a)−Bs]++λtℓtag].(2)\mathcal{L} = \mathbb{E}_s\left[m_s(\lambda_r R_s^+ + \lambda_v \Delta_s^+) + \lambda_k D_{\mathrm{KL}}(\pi_T \mathbin\Vert\pi_\theta) + \lambda_b\left[\mathbb{E}_{a\sim\pi_\theta}c(s,a)-B_s\right]_+ + \lambda_t \ell_{\mathrm{tag}}\right]. \tag*{(2)}

Here cc is a risk cost, BsB_s its budget, and ℓtag\ell_{\mathrm{tag}} is binary cross-entropy over rationale tags. KL anchoring discourages collapse of the teacher’s mixed policy. We use value-based terms only where validated (ms=1m_s = 1 for Kuhn/Leduc and ms=0m_s = 0 for six-max), with hyperparameters selected on the development split.

After restricting the policy to legal actions, RangeDial applies a bounded preference shift

πθ,d(a∣s)∝πθ(a∣s)exp⁡(αd b(a)),d∈[−1,1],(3)\pi_{\theta,d}(a \mid s) \propto\pi_\theta(a \mid s)\exp(\alpha d\,b(a)), \quad d \in[-1,1], \tag*{(3)}

where bb is 1 for raise, 0 for check/call, and −1 for fold; α≥0\alpha\ge0 sets the strength. Increasing dd favors raising without adding illegal actions.

Experimental Setups

Data and evaluation. The record set holds 5,183 decisions after merging 670 repeated six-max spots (4,883 spots from 5,553 observations), with teacher exploitability 0.001486 in Kuhn (10,000 CFR iterations) and 0.010877 in limit Leduc (2,000 iterations). Splits precede prompt augmentation and group information sets and public histories to prevent leakage: train/dev/test are 6/3/3 (Kuhn), 189/45/54 (Leduc) and 3,449/705/729 (six-max). Full chance enumeration and best responses support exact profile value, NashConv, and exploitability on the declared small games (over all information sets).

Six-max evaluation uses 100-big-blind preflop decisions with label-smoothed, Pluribus-derived behavioral actions. The primary behavioral endpoint is held-out top-1 agreement; teacher KL is secondary. Legality is checked separately.

Models and controls. The static baseline samples uniformly from legal actions in Kuhn and Leduc and uses a fixed preflop action chart in six-max. Frozen SmallThinker-4B-A0.6B [3], Qwen3-0.6B [7], and Gemma-3-1B-IT [8] were each evaluated once on the same held-out sets, task prompt, and legal menu.

MethodModelKuhn↓Leduc↓KL↓top-1↑
staticuniform / chart0.4582.3741.1040.643
zero-shotSmallThinker-4B-A0.6B0.3261.7671.8650.159
zero-shotQwen3-0.6B0.7504.1981.0490.556
zero-shotGemma-3-1B-IT0.8336.9994.8340.214
SFTSmallThinker-4B-A0.6B0.2762.2100.5230.754
DPOSmallThinker-4B-A0.6B0.7583.6665.4800.174
GRPOSmallThinker-4B-A0.6B0.2961.2392.3570.717
GSPOSmallThinker-4B-A0.6B0.5011.3312.3540.717
SPOKESmallThinker-4B-A0.6B0.2131.0810.5220.775

caption: Zero-shot controls vs. optimization methods (SmallThinker-4B-A0.6B). Three-run means: frozen controls are single runs. Bold: best per metric.

:::

Action probabilities use first-token scores for fold/call/raise; these serve as zero-shot controls.

We then train SFT, DPO [4], GRPO [5], GSPO [6], and SPOKE as a SmallThinker-4B-A0.6B policy over 4,096 hashed prompt features, where DPO, GRPO, and GSPO are single-step versions of those objectives, and evaluate them under the same protocol with three runs (seeds 13/42/73).

Sensitivity analyses. KL-weight and RangeDial sweeps use the same three runs. SFT receives identical tag supervision. Component-removal ablations have no measured results, so the contribution of each SPOKE term cannot be isolated.

Preliminary Diagnostics and Limitations

tbl:1 shows that zero-shot capability does not transfer uniformly across evaluation settings. SmallThinker improves over the static baseline in Kuhn (0.326 vs. 0.458) and Leduc (1.767 vs. 2.374), yet reaches only 0.159 six-max top-1 agreement. Qwen3 and Gemma-3 exhibit different failure modes, indicating that no frozen model performs consistently well across both strategic and behavioral endpoints.

The optimization objectives reveal a similar trade-off. SFT achieves strong six-max agreement (0.754) and low teacher KL (0.523), while GRPO and GSPO improve Leduc exploitability to 1.239 and 1.331 but increase KL to 2.357 and 2.354. DPO performs poorly under this protocol.

SPOKE provides the strongest combined result, best on all four metrics. Variation across three runs remains small, although the sample size is insufficient to establish statistical superiority.

Sensitivity analysis shows that KL weighting controls the trade-off between behavioral agreement and teacher divergence while Leduc exploitability remains relatively stable. RangeDial further changes aggression without introducing illegal actions.

Conclusion

Frozen compact language models demonstrated inconsistent performance in six-max evaluations and exact-game evaluations. We proposed SPOKE, integrating teacher-relative value penalties, KL anchoring, risk constraints, and structured rationale supervision. Across three runs of a SmallThinker-4B-A0.6B policy, SPOKE achieved the lowest mean exploitability in Kuhn (0.213) and Leduc (1.081), and the highest six-max top-1 agreement (0.775), while maintaining teacher KL comparable to SFT. These findings provide preliminary evidence that strategic performance and teacher-consistent behavior can be jointly improved. However, the limited number of runs, the absence of component ablations, and the evaluation of behavioral-only at six-maximums warrant further validation.

Acknowledgments

This research has received funding support from the NSRF via the Research and Innovation Acceleration Agency for Competitiveness and Area Development (RCAD) (Program Management Unit for Frontier Brainpower and Future Industries) [grant number B13T690002-1].

References

References

  1. [1]M. Zinkevich, M. Johanson, M. Bowling, and C. Piccione, “Regret minimization in games with incomplete information,” in NeurIPS, 2007.DOI
  2. [2]N. Brown and T. Sandholm, “Superhuman AI for multiplayer poker,” Science, vol. 365, no. 6456, pp. 885–890, 2019.DOI
  3. [3]Y. Song et al., “SmallThinker: A family of efficient large language models natively trained for local deployment,” arXiv:2507.20984, 2025.arxiv.org/abs/2507.20984
  4. [4]R. Rafailov et al., “Direct preference optimization: Your language model is secretly a reward model,” in NeurIPS, 2023.arxiv.org/abs/2305.18290
  5. [5]Z. Shao et al., “DeepSeekMath: Pushing the limits of mathematical reasoning in open language models,” arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  6. [6]C. Zheng et al., “Group sequence policy optimization,” arXiv:2507.18071, 2025.arxiv.org/abs/2507.18071
  7. [7]Qwen Team, “Qwen-3-0.6B model card,” Hugging Face, 2026.
  8. [8]Google, “Gemma-3-1B-IT model card,” Hugging Face, 2026.DOI

Paper details

vlnc:W_hew66e3h
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents