Tracing the Thought of a Grandmaster-level Chess-Playing Transformer

Rui Lin, Zhenyu Jin, Guancheng Zhou, Xuyang Ge, Wentao Shu, Jiaxing Wu, Junxuan Wang, Zhengfu He, Junping Zhang, Xipeng QiuarXiv 2026

TL;DR

This paper introduces the first comprehensive framework to decode the internal decision-making of a grandmaster-level chess transformer (Leela Chess Zero) by sparsely decomposing both its MLP and attention modules. By tracing "reasoning pathways" via causal feature interventions, the authors expose how the network evaluates complex tactics, operates via highly parallelized computation, and occasionally suffers from strategic blind spots.

What Problem Does This Paper Address?

While Transformer-based models like Leela Chess Zero (LC0) achieve superhuman performance in chess without even using a search tree, their internal mechanics remain a black box. This opacity stems largely from superposition—a phenomenon where a neural network crams more independent concepts into its internal representations than it has dimensions, causing individual neurons and attention heads to look completely uninterpretable.

Prior interpretability research has mostly focused on isolating localized concepts or specific attention heads. This paper addresses the lack of a global, full-model, circuit-level technique capable of tracking end-to-end tactical reasoning across an entire transformer network.

Methods

The authors introduce a sparse decomposition framework that replaces standard network sublayers with interpretable, monosemantic "replacement layers" to capture the primary computation process of LC0 (specifically the BT4 architecture):

  1. Transcoders for MLPs: Instead of looking at static activations, Transcoders linearly decompose the multi-layer perceptron (MLP) layer computations using a sparse encoder-decoder setup with a Top-K activation function.
  2. Lorsa for Attention: Low-Rank Sparse Attention (Lorsa) disentangles attention heads in superposition into linear rank-1 output-value (OV) heads, mapping out exactly which squares are attending to what.
Figure 1. An overview of our approach for interpreting LC0. We use Transcoders and Lorsas as replacement layers to sparsely decompose the model’s MLP and attention module, identifying interpretable reasoning pathways through feature-steering interven- tions. By analyzing sparse feature activations along these pathways, we reveal an interpretable computational process underlying the model’s decision-making for any input position.

Using these replacement layers, the authors construct Reasoning Pathways by applying Feature Steering (causal interventions where they artificially scale or ablate specific feature directions in the residual stream). By measuring the downstream feature-to-feature and feature-to-output effects, they map out directed graphs showing how the model progresses from raw board inputs to a final move policy.

Datasets

  • Training & Analysis: The Transcoders and Lorsas were trained on a massive sample of 800 million tokens (where 1 token = 1 board square) and analyzed using 100 million tokens extracted from the open-source lichess_standard_rated dataset.
  • Evaluation: To test LC0 BT4's playing strength and validate their findings, the authors curated five subsets of Lichess puzzles ranging from tactical depth "mate-in-1" to "mate-in-5" (totaling over 85,000 positions).

Key Insights and Ideas

  • Parallel Reasoning Regimes: Quantitative metrics reveal that LC0 evaluates different candidate moves using largely disjoint sets of significant features. The network runs distinct, parallel reasoning pathways for competing moves rather than relying on a single, shared internal representation.
  • Layer-wise Spatial Convergence: As information flows deeper through the network's 15 layers, decision-critical features progressively shed global context and converge physically onto the move's specific source and target squares. This perfectly mirrors the inductive bias of LC0's attention-based policy head.
  • Cross-Layer Superposition: Crucial tactical concepts (such as a bishop's long-range diagonal control) are not localized to one layer. They are redundantly distributed across multiple layers (e.g., layers 1, 7, and 8). Ablating just one layer's feature barely impacts the output, but causally steering the entire group collapses the model's capability.
  • Diagnosing "Defensive Fixation": The framework successfully uncovered a computational pathology. In certain ambiguous positions, the model over-evaluates its own defensive dependencies (e.g., feeling secure due to a protective pawn structure), which biases it toward risk-averse strategies and makes it blind to immediate, forced-win opportunities.

Key Results

  • High Faithfulness: The sparse replacement layers accurately reconstructed the original model's outputs, maintaining an $L_2$ norm error ratio below 0.3 and an Explained Variance (EV) above 0.6 across all layers.
  • Superior Interpretability: Human grandmaster-level and intermediate player evaluations rated the Transcoder (4.15/5) and Lorsa (3.73/5) features significantly higher in activation consistency compared to raw MLP neurons (2.05/5).
  • Low Path Overlap: The Jaccard similarity (Path Overlap) between the top-2 candidate moves was consistently below 15%. In highly confident positions, it dropped to a mere 1.63%, confirming feature exclusivity.
  • Move-Square Contribution Ratio (MCR): The MCR—which measures how much feature influence is concentrated on the actual move squares—approached nearly 1.0 by the final layer, confirming the progressive aggregation of move-specific information.

Limitations and Future Work

  • Architecture Constraints: The study was strictly confined to a single model architecture (LC0 BT4). The generalizability of these exact reasoning pathways across different transformer topologies remains unverified.
  • The Auto-Interpretation Bottleneck: Automatically generating reliable semantic descriptions for millions of sparse features using Large Language Models (LLMs) remains highly challenging due to the complex, spatial nature of chess.
  • Feature Splitting and Absorption: The rule-based validation system suffered from low recall on certain rare tactical patterns, indicating that the model represents directions with finer-grained distinctions ("feature splitting") than human-defined chess rules capture.

Summary updated

BibTeX
@misc{lin2026tracing,
  author = {Rui Lin and Zhenyu Jin and Guancheng Zhou and Xuyang Ge and Wentao Shu and Jiaxing Wu and Junxuan Wang and Zhengfu He and Junping Zhang and Xipeng Qiu},
  title = {{Tracing the Thought of a Grandmaster-level Chess-Playing Transformer}},
  year = {2026},
  eprint = {2604.10158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.10158},
}
Figure