Flash Interpretability: Decoding Specialised Feature Neurons in Large Language Models with the LM-Head

Large Language Models (LLMs) typically have billions of parameters and are thus often difficult to interpret in their operation. In this work, we demonstrate that it is possible to decode neuron weights directly into token probabilities through the final projection layer of the model (the LM-head). This is illustrated in Llama 3.1 8B where we use the LM-head to find examples of specialised feature neurons such as a "dog" neuron and a "California" neuron, and we validate this by clamping these neurons to affect the probability of the concept in the output. We evaluate this method on both the pre-trained and Instruct models, finding that over 75% of neurons in the up-projection layers in the instruct model have the same top associated token compared to the pretrained model. Finally, we demonstrate that clamping the "dog" neuron leads the instruct model to always discuss dogs when asked about its favourite animal. Through our method, it is possible to map the top features of the entirety of Llama 3.1 8B's up-projection neurons in less than 10 seconds, with minimal compute.

Paper

References (13)

07A mathematical framework for transformer circuits2021 · Transformer Circuits Thread
092024. Targeted Angular Reversal of Weights (TARS) for Knowledge Removal in Large Language ModelsarXiv
102024. GPT-4 Technical ReportOpenAI
112023. Towards monosemantic-ity: Decomposing language models with dictionary learningTransformer Circuits Thread
122024. Scaling Monosemantic-ity: Extracting Interpretable Features from Claude 3 SonnetTransformer Circuits Thread

Scroll for more · 1 remaining

Similar papers

© 2026 NYSGPT2525 LLC