English

CAST: Game Solvers as Turn-Level Teachers for LLM Agents

Computation and Language 2026-07-28 v1 Artificial Intelligence

Abstract

Training large language models (LLMs) to act in long-horizon games is a promising step toward generalist decision-making, yet reinforcement learning with verifiable rewards (RLVR) relies on sparse final rewards that reveal little about which decisions determine success. Denser process signals could supply this missing turn-level credit, but existing sources are hard to keep both cheap and accurate. We observe that changes in a game solver's state value reveal whether an action advances the state toward success. Building on this insight, we propose CAST (Credit Assignment from Solver Teachers), which converts these value changes into solver advantages and injects them into RLVR as turn-level signals. We further show that, under a soft-optimal solver assumption, maximizing the solver advantage is equivalent to on-policy distillation from the solver, requiring only scalar values rather than teacher logits. Across Sokoban, Minesweeper, and Rush Hour, CAST outperforms all trained baselines on every game under both in-domain and unseen-difficulty evaluation and achieves the highest average zero-shot performance on ALFWorld and WebShop. Our code is available at https://github.com/Wloner0809/CAST.

Cite

@article{arxiv.2607.25308,
  title  = {CAST: Game Solvers as Turn-Level Teachers for LLM Agents},
  author = {Yu Wang and Yi-Kai Zhang and Wentao Shi and Ziang Ye and Yuchun Miao and Yueqing Sun and Qi Gu and Xunliang Cai and Lan-Zhe Guo and Han-Jia Ye and Fuli Feng},
  journal= {arXiv preprint arXiv:2607.25308},
  year   = {2026}
}