atlas

Research map / Architectures and efficiency / Attention and transformers

Evidence of Learned Look-Ahead in a Chess-Playing Neural Network

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that Leela Chess Zero's policy network internally represents future optimal moves via activation patching, attention-head analysis, and bilinear probes, giving evidence of learned look-ahead.

Problem

Whether neural networks learn look-ahead or search algorithms "in the wild" rather than only collections of simple heuristics, studied in the policy network of a chess engine.

Approach

Exploits Leela's transformer structure (one token per chessboard square) to localize future-move information via activation patching on automatically generated corruptions, identify attention heads that move information backward and forward in time, and train a bilinear probe that reads the optimal move two turns ahead.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Predict the third-move target square from Leela activations using a bilinear probeLeela T82-768x15x24h · Filtered Lichess puzzles, test splitaccuracy: (15 ± 2)% -> (92 ± 1)%Helped
Patch corrupted-state activations at the third-move target square in layer 10 (ablation)Leela T82-768x15x24h · Filtered Lichess puzzlesmean log-odds reduction: $1.88 \pm 0.04$Hurt
Patch the largest-effect other square in layer 10 (ablation)Leela T82-768x15x24h · Filtered Lichess puzzlesmean maximum log-odds reduction: $0.55 \pm 0.01$Hurt
Zero the L12H12 attention entry from the third-move target to the first-move target (ablation)Leela T82-768x15x24h · Filtered Lichess puzzleslog-odds reduction: more than 1.5 in more than 10% of puzzlesHurt
Zero all 4095 other L12H12 attention entries at once instead of the third-to-first target entry (ablation)Leela T82-768x15x24h · Filtered Lichess puzzleslog-odds reductionNo clear effect
Zero attention entries out of the third-move target in matching piece-movement heads (ablation)Leela T82-768x15x24h · Puzzles with principal variation longer than 3 movestop-move log-odds reduction: at least 1.5 in 60% of puzzlesHurt
Ablate piece-movement heads for other piece types instead of the third-move piece type (ablation)Leela T82-768x15x24h · Puzzles with principal variation longer than 3 movesmodel performanceNo clear effect
Ablate information flow on a random square instead of the third-move target (ablation)Leela T82-768x15x24h · Puzzles with principal variation longer than 3 movesmodel performanceNo clear effect
Finetune Leela to behave the same with or without past board-state history, then omit historyLeela T82-768x15x24h · Puzzle solving and games against the original modelplaying strengthNo clear effect
Use different past-board histories (zeros, repeated current state, or synthesized history) (ablation)Original Leela T82-768x15x24h · Board-state inputspolicy outputMixed

Surprising findings

Limitations

Experimental setup

Datasets: Lichess puzzles dataset (900k, filtered to 22.5k)

Benchmarks: filtered Lichess puzzles (22.5k)

Metrics: change in log odds of best move under activation patching probe accuracy for predicting third-move target square log odds reduction from attention ablation

Baselines: Little Demon 2 randomly initialized Leela probe baseline ruoss2024grandmasterlevel network

Builds on: AlphaZero activation patching Leela Chess Zero

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy