ICML 2026poster0 citations

Out-of-Distribution Evaluation of Rule-Based and Strategic Reasoning in Chess Transformers

Anna Mészáros, Patrik Reizinger, Ferenc Huszár

Abstract

Modern decision transformers, trained similarly to LLMs, can achieve strong in-distribution performance in complex sequential domains like chess, but it remains unclear to what extent they reason systematically about rules and strategy. We study the reasoning capabilities of a 270M-parameter chess transformer trained via behavior cloning on standard chess. To investigate its abilities, we construct out-of-distribution test sets ---including board states and variants never seen during training---designed to reveal failures of systematic generalization. Our analysis shows that the model exhibits robust rule-based reasoning, consistently generating legal moves in novel configurations, but its strategic reasoning is more limited. The model generates high-quality moves on curated OOD puzzles and shows basic strategy adaptation in full games. It underperforms symbolic AI algorithms that rely on explicit search, although the performance gap is smaller when playing against human users on Lichess. Moreover, the training dynamics reveals distinct phases in how the model learns to respect the fundamental constraints, suggesting an emergent compositional understanding of the game.

LLMTransformerTheoryRobustnessBenchmark
BibTeX
@inproceedings{
meszaros2026outofdistribution,
title={Out-of-Distribution Evaluation of Rule-Based and Strategic Reasoning in Chess Transformers},
author={Anna M{\'e}sz{\'a}ros and Patrik Reizinger and Ferenc Husz{\'a}r},
booktitle={Forty-third International Conference on Machine Learning},
year={2026},
url={https://openreview.net/forum?id=JFGUsQ68rG}
}