Reproduce “Chess as a Testbed for Language Model State Tracking” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Shubham Toshniwal, Sam Wiseman, Karen Livescu, Kevin Gimpel
Researchers from TTIC and Duke University established chess as a testbed to evaluate how accurately language models track the world state from move sequences, revealing that full attention is crucial for this capability and that explicitly annotating piece types (RAP) significantly boosts state-tracking performance, especially with limited data.
Key insights
- Transformer language models can learn to track piece locations and predict legal moves with high accuracy by processing only move sequences, demonstrating a strong capacity for state tracking.
- Full attention to the entire game history is critical for effective board state tracking, as models with limited or approximate attention (e.g., LSTMs, Reformer) show significant performance degradation.
- Injecting explicit state information via Randomly Annotated Piece type (RAP) during training improves perplexity, boosts state-tracking accuracy, and makes models more robust to distribution shifts, particularly beneficial in low-data scenarios.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.