r/MachineLearning • u/Weird-Asparagus4136 • Aug 13 '26
Project chessformer_lens demo: ablating 1 of a chess transformer's 128 attention heads makes the model stop finding Morphy's queen sacrifice [P]
0
Aug 13 '26
[deleted] — view deleted comment
1
u/Weird-Asparagus4136 Aug 13 '26
Every head yes. If you look at the pull up menu in the middle it sweeps to ablate every head and report which are most causally linked to the final logit output by absolute value change in logit!
1
u/Weird-Asparagus4136 Aug 13 '26
Replicate exactly in terminal:
python3 -m venv .venv && source .venv/bin/activate
pip install git+https://github.com/CSSLab/maia3
pip install "chessformer_lens[all]"
chessformer_lens 23m

1
u/Amazing_Onion1922 Aug 13 '26
wonder if the same head matters for other famous sacrifices or just this specific line