mlsanityData to 14 Oct 2026

Out-of-distribution Tests Reveal Compositionality in Chess Transformers

arXiv 2510.20783 ↗First posted 23 Oct 2025cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Chess is a canonical example of a task that requires rigorous reasoning and long-term planning. Modern decision Transformers - trained similarly to LLMs - are able to learn competent gameplay, but it is unclear to what extent they truly capture the rules of chess. To investigate this, we train a 270M parameter chess Transformer and test it on out-of-distribution scenarios, designed to reveal failures of systematic generalization. Our analysis shows that Transformers exhibit compositional generalization, as evidenced by strong rule extrapolation: they adhere to fundamental syntactic rules of the game by consistently choosing valid moves even in situations very different from the training data. Moreover, they also generate high-quality moves for OOD puzzles. In a more challenging test, we evaluate the models on variants including Chess960 (Fischer Random Chess) - a variant of chess where starting positions of pieces are randomized. We found that while the model exhibits basic strategy adaptation, they are inferior to symbolic AI algorithms that perform explicit search, but gap is smaller when playing against users on Lichess. Moreover, the training dynamics revealed that the model initially learns to move only its own pieces, suggesting an emergent compositional understanding of the game.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 22 of its 36 references that are in the map. First posted on arXiv 23 Oct 2025.

Builds on

22 of 36 references.

References · 22

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 734
  4. 2025The Illusion of Thinking: Understanding the Strengths and Limitations of Reasoning Models via the Lens of Problem Complexitycited by 302
  5. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  6. 2021Thinking Like Transformerscited by 184
  7. 2021Chess as a Testbed for Language Model State Trackingcited by 72
  8. 2024Amortized Planning with Large-Scale Transformers: A Case Study on Chesscited by 49
  9. 2020The Chess Transformer: Mastering Play using Generative Language Modelscited by 37
  10. 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 22
  11. 2024On Provable Length and Compositional Generalizationcited by 22
  12. 2024Position: Understanding LLMs Requires More Than Statistical Generalizationcited by 21
10 more
  1. 2025Frontier LLMs Still Struggle with Simple Reasoning Taskscited by 21
  2. 2024Transcendence: Generative Models Can Outperform The Experts That Train Themcited by 20
  3. 2025Complete Chess Games Enable LLM Become A Chess Mastercited by 16
  4. 2025Reasoning Beyond Limits: Advances and Open Problems for LLMscited by 16
  5. 2025Accelerating Large Language Model Reasoning via Speculative Searchcited by 16
  6. 2024Mastering Chess with a Transformer Modelcited by 15
  7. 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
  8. 2024Rule Extrapolation in Language Models: A Study of Compositional Generalization on OOD Promptscited by 2
  9. 2025A Taxonomy of Transcendencecited by 2
  10. 2023Machine Learning Algorithms to Predict Chess960 Result and Develop Opening Themescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025LLM CHESS: Benchmarking Reasoning and Instruction-Following in LLMs through Chess
  2. 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models
  3. 2026Tracing the Thought of a Grandmaster-level Chess-Playing Transformer
  4. 2025ChessArena: A Chess Testbed for Evaluating Strategic Reasoning Capabilities of Large Language Models
  5. 2026Towards the Automatic Synthesis of Interpretable Chess Tactics
  6. 2025Xiangqi-R1: Enhancing Spatial Strategic Reasoning in LLMs for Chinese Chess via Reinforcement Learning
  7. 2026What Counts as Strategic Reasoning? A Systematic Mapping of Chess Research on Humans, Engines, and Language Models
  8. 2025Can Large Language Models Develop Strategic Reasoning? Post-training Insights from Learning Chess