arXiv:2611.12088cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12088

Zero-Search Reinforcement Learning for Slay the Spire 2 with Failure-Driven Restarts

Xiangqin Chen, Zhengxuan Xie

Abstract

Slay the Spire 2 (STS2) is a deck-building roguelike in which a winning run at the highest difficulty takes several hundred decisions, and most losses happen in late boss fights that a learner seldom reaches. We train agents that choose every action with one forward pass of a 6.6M-parameter entity transformer, without lookahead. Training and evaluation run the game's own compiled assembly (v0.107.1) in a headless .NET host. The host replays a run exactly from its seed and actions, so training episodes can restart from states the learner has visited, and a failure-driven curriculum allocates these restarts in proportion to where complete runs are lost. On 12,800 held-out games at Ascension 10 (A10), the released policies win 8.05% averaged over the five characters (Ironclad 15.6%, Regent 12.5%), and AlphaSpire's released networks used without search win 0.55% on a common panel. Longer A10 training raised Ironclad from 12.4% to 15.6% and Defect from 3.0% to 8.1% on these games. At Ascension 0 the released policies win 80.2%, level with the 80.3% that the tree-search agent Spire Mentor reports, while Mentor leads by 5 to 8 points from A4 upward. Run in our host on the same 2,000 A10 games, Mentor's search wins 8.8% against 8.2% for our policies, which need 21–27 ms per decision on one CPU core. GPT-6 Astra at maximum reasoning won none of 11 A10 games through our text interface. In a controlled study of 18 training runs from six random initializations, failure-driven allocation exceeds uniform restart allocation on each of three Regent initializations, by 3.6 percentage points on average, while the Silent effect is small and changes sign. Code, trained policies, an in-game mod and the records behind every table are at https://github.com/HalfVulpes/sts2ai.

1 Introduction

A run of Slay the Spire 2 crosses three acts of procedurally generated maps. Each floor brings a combat, event, shop, treasure or rest site, and the player builds a deck, collects relics and potions, and chooses a route along the way. Ascension levels add cumulative modifiers, and the highest level in the current version, Ascension 10 (A10), ends the run with two consecutive boss fights. A deck assembled poorly in act one can make the final fights unwinnable, so combat skill alone does not secure a win. The decisions that settle a run are also rare in the training data. In an early development measurement at Ascension 0, the act-3 boss accounted for 7% of an Ironclad policy's decisions and 59% of its losses.

Current STS2 agents reach their strongest results with large computation at decision time. Spire Mentor combines a learned run-level policy with thousands of tree-search simulations in every combat decision [8]. We ask how far a learned policy goes when it chooses each action with a single network evaluation, and which training changes help at the late bottleneck. A policy of this kind runs inside the game on a CPU, and with the simulator included it plays a winning A10 game in about 30 seconds on two CPU cores.

Our approach rests on the game's own code. A headless host loads the installed game assembly and exposes every in-game choice as a decision, and it reproduces a run exactly from its seed and the sequence of chosen actions. This determinism lets a worker save the action prefix that led to an intermediate state and later restart a training episode from it. We use this to give the learner practice where it fails. A failure map tracks where complete runs from the ordinary start are lost, and restart episodes are allocated across twelve situations (act start and the three kinds of combat in each act) in proportion to that map.

This paper makes four contributions.

  1. A training and evaluation platform that runs the STS2 v0.107.1 assembly headlessly, with a structured observation encoder shared by the trainer and an in-game mod, exact replay of runs, and an evaluation protocol on the game's canonical seed strings (Section 3).

  2. Zero-search policies for all five characters, evaluated on 12,800 held-out A10 games and at four lower difficulties, with the code, the policies and a playable mod released (Sections 4 and 6).

  3. A comparison of zero-search policies with Monte Carlo tree search and language models on the same game version, including Spire Mentor run in our host on identical seeds and GPT-6 Astra through a headless text interface (Section 7).

  4. A controlled 18-run study of failure-driven restart allocation from independent random initializations, which finds a consistent gain for one character and none for the other (Section 8).