Iterative Inference in a Chess-Playing Neural Network

Elias Sandmann, Sebastian Lapuschkin, Wojciech Samek
8/29/2025
cs.LGcs.AI

No official code found. Best implementation: hartigel/leela-logit-lens (2 stars, last commit 2025-12-06).

Abstract

Do neural networks build their representations through smooth, gradual refinement, or via more complex computational processes? We investigate this by extending the logit lens to analyze the policy network of Leela Chess Zero, a superhuman chess engine. Although playing strength and puzzle-solving ability improve consistently across layers, capability progression occurs in distinct computational phases with move preferences undergoing continuous reevaluation--move rankings remain poorly correlated with final outputs until late, and correct puzzle solutions found in middle layers are sometimes overridden. This late-layer reversal is accompanied by concept preference analyses showing final layers prioritize safety over aggression, suggesting a mechanism by which heuristic priors can override tactical solutions.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Iterative Inference in a Chess-Playing Neural Network"

21Shell, PythonAug 21, 202510 months ago

Similar Papers

Cite this paper

@article{sandmann2025iterative,
  title  = {Iterative Inference in a Chess-Playing Neural Network},
  author = {Elias Sandmann and Sebastian Lapuschkin and Wojciech Samek},
  year   = {2025},
  eprint = {2508.21380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.21380v2}
}

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/2508.21380.svg)](https://codeofpaper.com/paper/2508.21380)

Discussion