Mechanistic interpretability traces one thought inside Stockfish 19's neural net

CatAstro_Piyush · x · 2026-12-05

JackYuan35 applies mechanistic interpretability to Stockfish 19, the strongest classical chess engine. An attribution graph computed from the real network shows how an uncastled-king position (Ke1, pawns f2/g2/h2 vs Qh4+Bc5) activates 2 of 32 hidden neurons — "king in the centre, under fire" and "enemy pieces at my king" — producing a -0.80 eval. Resetting those neurons (plus two broader ones) to castled values removes the learned danger; built-in piece tables add the remaining -0.24. The author calls it vibe-researching a chess engine.

Original post →

More from Research

Research channel →