AlphaDefect: Expert-Level AI for Slay the Spire 2
Organizations: AgroParisTech, Université Paris-Saclay · The Chinese University of Hong Kong
Abstract
Slay the Spire 2 (STS2) is a single-player deck-building game that requires long-term planning under heavy randomness. We present AlphaDefect, an expert-level AI system for STS2: for each character, one network trained with proximal policy optimization (PPO) makes every decision of a run, in combat and outside it. At the highest difficulty, Ascension 10, on two versions of the game current in November 2026 and on test seeds not played in training, AlphaDefect wins 62-77% of runs across six characters with greedy play and 68-80% with test-time search, after 1.3 to 6.7 billion decisions of training per character; runs uploaded by human players of all levels are won 11-20% of the time at the same difficulty. The networks read the game as entity records that identify each card, relic and enemy through a learned embedding and attributes from the game data, together with consequences of public information computed by the engine. Ablations show how much the agent depends on this encoding: without these identities, the network did not win a single run, and without the computed consequences it won 8.3 points fewer. To our knowledge, AlphaDefect is the strongest publicly reported STS2 agent as of November 2026.
Figures & tables
| Defect | Regent | Silent | Fool | Ironclad | Necrobinder | |
| Game versions | v0.107.1, v0.111.0 | v0.111.0 | v0.111.0 | v0.113.0, v0.113.1 | v0.113.1 | v0.113.1 |
| Observation format | 19 | 20 | 23 | 27 | 28 | 28 |
| Optimizer | Adam | Adam | Adam, Muon | Adam, Muon a | Adam, Muon | Adam, Muon |
| Learning rate ( ) | 5.5 | 20 | 10, 15 | 15, 7.5 | 3.75, 7.5 | 7.5, 15 |
| Act-1 boss reward | 0.5 | 0.5 | 0.1 | 0.1 | 0.1 | 0.5 |
| Progress rewards | at a win c | in the run | in the run | in the run | in the run | in the run |
| Component | Evidence | Result |
|---|---|---|
| Entity identities removed at the input | paired, 1,000 seeds (Ironclad, continued from 0.60 billion decisions) | no run won, against 57.3% for the control at 0.74 billion decisions (Section 3.3 ) |
| Engine-computed consequences removed | as above | points at 0.74 billion decisions ( ), at 0.68 ( ) |
| Combat practice removed | as above | points at 0.74 billion decisions ( ), at 0.68 ( ) |
| Test-time search | paired, 1,000–3,000 seeds | to points (Table 3 ); to on fresh seeds (Table 4 ) |
| Ensemble distillation | paired, 1,000–3,500 seeds | Defect: a student with the architecture of its starting checkpoint points over it ( on the seeds not used to choose it); the evaluated student, which also dropped one attention component, over its own starting checkpoint on fresh seeds ( ) and on the seeds of Table 3 ; Regent: the evaluated student against the EMA network it started from on fresh seeds ( ) and on the seeds of Table 3 ( ), although its teacher ensemble was over a single checkpoint on the seeds used to choose it; Silent: ensembles no better than its EMA network |
| Weight averaging (EMA) | paired, 500–1,000 seeds | Regent over a single checkpoint ( ); Silent over the raw weights of the same version at one checkpoint ( ) and at an earlier one; Ironclad ( ); Defect at its plateau ( ) |
| Character | Network | Training | Seeds | Greedy | Search | |
| v0.111.0; rollout search in the two Act-3 boss fights | ||||||
| Defect | distilled | 6.7 | 1,500 | 76.7 (74.5–78.8) | 80.3 (78.2–82.3) | (2.1–5.1) |
| Regent | distilled | 2.1 | 1,000 † | 74.1 (71.3–76.7) | 77.2 (74.5–79.7) | (1.2–5.0) |
| Silent | EMA | 1.3 | 1,000 † | 71.3 (68.4–74.0) | 74.0 (71.2–76.6) | (1.1–4.3) |
| v0.113.1; information-set tree search in all boss and elite fights | ||||||
| Fool | EMA | 1.3 | 3,000 † | 62.2 (60.5–63.9) | 68.0 (66.3–69.6) a | (4.1–7.5) |
| Character | Greedy | Search | In Table 3 | |
| v0.111.0; rollout search in the two Act-3 boss fights | ||||
| Defect | 77.8 (75.1–80.3) | – | – | 76.7 / 80.3 |
| Regent | 74.9 (72.1–77.5) | 80.5 (77.9–82.8) | (3.7–7.6) | 74.1 / 77.2 |
| Silent | 71.2 (68.3–73.9) | 73.6 (70.8–76.2) | (1.0–3.8) | 71.3 / 74.0 |
| v0.113.1; information-set tree search in all boss and elite fights | ||||
| Fool | 62.5 (59.5–65.4) | 66.7 (63.7–69.6) | (1.3–7.1) | 62.2 / 68.0 |
| Raw weights | EMA weights | ||||
|---|---|---|---|---|---|
| Branch | 0.68 | 0.74 | Difference | Act 3 | 0.68 / 0.74 |
| Control | 47.9 | 57.3 | – | 85.4 | 55.7 / 57.6 |
| No entity identities | 0.0 | 0.0 | ( to ) | 31.0 | 0.0 / 0.0 |
| No engine-computed consequences | 43.0 | 49.0 | ( to ) | 82.1 | 20.4 / 38.2 a |
| No combat practice | 50.8 | 58.1 | ( to ) | 86.3 | 54.8 / 60.5 |
| Character | Network | Search | Period (2026) | Runs | Wins | Expected | Win rate |
| v0.111.0 | |||||||
| Defect | distilled | none (greedy) | Nov 5–6 | 131 | 100 | 100.5 | 76.3 (68.4–82.8) |
| Defect | distilled | Act-3 bosses | Nov 6–8 | 173 | 138 | 139.0 | 79.8 (73.2–85.1) |
| Regent | distilled | Act-3 bosses | Nov 9–11 | 151 | 117 | 116.6 | 77.5 (70.2–83.4) |
| Silent | EMA a | Act-3 bosses | Nov 11–12 | 96 | 78 | 69.0 | 81.3 (72.3–87.8) |
| v0.113.1 | |||||||
| Character | Losses | Act-3 bosses | second | Act-1 boss | Act-1 elites | Act-2 boss |
|---|---|---|---|---|---|---|
| Defect | 222 | 68 | 51 | 5 | 7 | 8 |
| Regent | 251 | 63 | 45 | 7 | 7 | 11 |
| Silent | 288 | 52 | 38 | 13 | 9 | 7 |
| Fool | 375 | 54 | 39 | 15 | 4 | 12 |
| Ironclad | 335 | 67 | 55 | 8 | 5 | 9 |
| Necrobinder | 369 | 47 | 34 | 10 | 11 | 13 |
| Players winning 80% | ||||
|---|---|---|---|---|
| Character | Players | 10 runs | 20 runs | AlphaDefect |
| Defect | 438 | 7 of 207 (3.4%) | 3 of 124 (2.4%) | 76.7 / 80.3 |
| Regent | 412 | 7 of 185 (3.8%) | 4 of 112 (3.6%) | 74.1 / 77.2 |
| Silent | 511 | 9 of 260 (3.5%) | 8 of 156 (5.1%) | 71.3 / 74.0 |
| Ironclad | 525 | 5 of 281 (1.8%) | 3 of 159 (1.9%) | 67.9 / 73.1 ∗ |
| Necrobinder | 430 | 4 of 205 (2.0%) | 1 of 116 (0.9%) | 63.1 / 67.6 ∗ |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Defect | Regent | Silent | Fool | Ironclad | Necrobinder | |
| Policy optimization | ||||||
| ; GAE ; non-combat | 1; 0.95; 0.95 | |||||
| PPO clipping parameter; epochs per update | 0.2; 2 | |||||
| Target KL (stop after an epoch above 1.5 times it) | 0.02 | 0.03 | ||||
| Value-loss coefficient | 0.5 | |||||
| Entropy coefficient, combat / non-combat | 0.01 / 0.05 | |||||
| Screens | Skipped | Shop buys | Removals | Upgrade | Potions | ||
|---|---|---|---|---|---|---|---|
| Defect | 19.1 | 4, 12, 14 | 0.70 (80) | 3.8 | 1.1 | 46 | 8.3, 1.5 |
| Regent | 18.3 | 12, 26, 28 | 0.54 (80) | 2.8 | 1.1 | 45 | 8.4, 2.3 |
| Silent | 15.2 | 12, 19, 18 | 0.52 (86) | 3.2 | 1.5 | 60 | 7.9, 1.5 |
| Fool | 16.4 | 12, 30, 29 | 0.76 (79) | 3.4 | 1.5 | 44 | 8.6, 1.5 |
| Ironclad | 16.4 | 10, 30, 30 | 0.47 (80) | 2.6 | 1.3 | 63 | 9.2, 1.5 |
| Necrobinder | 16.2 | 11, 25, 26 | 0.67 (53) | 3.4 | 1.4 | 62 | 7.9, 1.4 |
| Picked more often | Picked less often | |
|---|---|---|
| Defect | FTL 76/25; Go for the Eyes 74/25; Thunder 76/28 | Trash to Treasure 9/39; Darkness 1/28; Genetic Algorithm 1/26 |
| Regent | Spectrum Shift 84/32; Make It So 81/31; Manifest Authority 90/40 | Decisions, Decisions 4/39; Sword Sage 0/31; Royal Gamble 2/29 |
| Silent | Coolheaded 91/27; Leap 86/22; Bubble Bubble 77/25 | Blade of Ink 11/50; Expose 4/42; Knife Trap 0/38 |
| Fool | Motif 92/37; Ki Rest 82/33; Ki Whip 73/31 | Quiver 0/39; Yah! 1/35; Rapid Shot 2/30 |
| Ironclad | Stone Armor 85/19; Aggression 72/26; Uppercut 83/41 | Dark Embrace 1/41; Bloodletting 21/54; Second Wind 3/35 |
| Necrobinder | Shroud 87/19; Sleight of Flesh 83/30; Countdown 73/21 | Lethality 18/46; Capture Spirit 4/30; Delay 28/52 |
| Relics | Always | Never | Always chosen, e.g. | Never chosen, e.g. | |
|---|---|---|---|---|---|
| Defect | 103 | 6 | 28 | Toasty Mittens, Pael’s Blood, Alchemical Coffer | Kaleidoscope, Hefty Tablet, Pael’s Eye |
| Regent | 103 | 7 | 26 | Big Mushroom, Small Capsule, Lava Rock | Fragrant Mushroom, Touch of Orobas, Tri-Boomerang |
| Silent | 103 | 5 | 30 | Sai, Seal of Gold, Nutritious Oyster | Hefty Tablet, Leafy Poultice, Dowsing Rod |
| Fool | 101 | 8 | 32 | Archaic Tooth, Music Box, Pael’s Blood | Wuppy, Hefty Tablet, Scroll Boxes |
| Ironclad | 103 | 5 | 25 | Big Mushroom, Large Capsule, Toasty Mittens | Fragrant Mushroom, Wuppy, Winged Boots |
| Necrobinder | 102 | 8 | 28 | Big Mushroom, Touch of Orobas, Fiddle | Wuppy, Hefty Tablet, Fragrant Mushroom |
| Character | Game | Network | Test seeds |
|---|---|---|---|
| Defect | v0.111.0 | distilled (student e) | W1, entries 6,901–8,400 |
| Regent | v0.111.0 | distilled (student e8) | W1, first 1,000 |
| Silent | v0.111.0 | EMA, update 26,428 | W1, first 1,000 |
| Fool | v0.113.1 | EMA, update 24,181 | P2-future, first 3,000 |
| Ironclad | v0.113.1 | EMA, update 24,782 | R1, all 1,000 |
| Necrobinder | v0.113.1 | raw, update 25,875 | RV1, first 1,000 |
| AlphaDefect | Independent agent | ||
| Silent | 4.18 million | 18.2 million | |
| Parameters (millions) | 19.4 | 4.18 | 18.2 |
| in the Transformer layers | 4.7 | 2.65 | 15.0 |
| in ID embedding tables | 10.5 | 0.69 | 1.04 |
| Transformer layers width | |||
| Game version in training | v0.111.0 | v0.113.1 | v0.113.1 |
| Routine evaluation, 384 seeds | W1, first 1,000 seeds | ||||
|---|---|---|---|---|---|
| Update | Decisions (billions) | sts2-sim | game | sts2-sim | game |
| 5,000 | 0.16 | 0.5 (2) | 0.5 (2) | 0.6 (6) | 0.5 (5) |
| 10,000 | 0.33 | 13.3 (51) | 14.1 (54) | 15.0 (150) | 14.7 (147) |
| 15,000 | 0.49 | 29.2 (112) | 29.2 (112) | 28.2 (282) | 28.4 (284) |
| 20,000 | 0.70 | 54.7 (210) | 53.1 (204) | 53.3 (533) | 51.7 (517) |
| 25,000 | 1.14 | 67.2 (258) | 66.9 (257) | 68.7 (687) | 66.7 (667) |
Game-Playing Agents
Game-playing agents use search, learning, and reasoning to choose actions in games with strategic, uncertain, or changing environments.
See all 234 papers