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

Yu Wang, Yi-Kai Zhang, Wentao Shi, Ziang Ye, Yuchun Miao +6 more
7/28/2026
cs.CLcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026cast,
  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},
  year   = {2026},
  eprint = {2607.25308},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.25308v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.25308.svg)](https://codeofpaper.com/paper/2607.25308)

Discussion