Disentangling MLP Neuron Weights in Vocabulary Space
Organizations: Blavatnik School of Computer Science and AI, Tel Aviv University
Abstract
Interpreting the information encoded in language model weights remains a fundamental challenge in mechanistic interpretability. In this work, we introduce ROTATE (Rotation-Optimized Token Alignment in weighT spacE), a data-free method requiring no forward passes that disentangles MLP neurons directly in weight space. Our approach relies on a key statistical observation: neurons that encode coherent, monosemantic concepts exhibit high kurtosis when projected onto the model's vocabulary. By optimizing rotations of neuron weights to maximize their vocabulary-space kurtosis, our method recovers sparse, interpretable directions which we name vocabulary channels. Experiments on Llama-3.1-8B-Instruct and Gemma-2-2B-it demonstrate that ROTATE consistently recovers vocabulary channels that are faithful to the neuron's behavior; ablating individual channels selectively disables corresponding input activations or the promotion of specific concepts. Moreover, aggregating channel-level descriptions yields comprehensive neuron descriptions that outperform optimized activation-based baselines by 2-3x in head-to-head comparisons. By providing a data-free decomposition of neuron weights, ROTATE offers a scalable, fine-grained building block for interpreting language models.
Figures & tables
| Faithfulness | Completeness | |||||||
|---|---|---|---|---|---|---|---|---|
| Llama-3.1 | Gemma-2 | Llama-3.1 | Gemma-2 | |||||
| Method | ||||||||
| ROTATE (Ours) | 0.71 | 0.58 | 0.46 | 0.47 | 0.55 | 0.49 | 0.55 | 0.60 |
| SAE-Neuronpedia | 0.45 | 0.41 | 0.33 | 0.35 | 0.44 | 0.41 | 0.42 | 0.49 |
| SAE-TopK | 0.49 | 0.46 | 0.34 | 0.37 | 0.40 | 0.40 | 0.36 | 0.42 |
| Random | 0.25 | 0.20 | 0.17 | 0.24 | 0.20 | 0.20 | 0.20 | 0.20 |
| Model | Layer | Self (%) | Cross (%) |
|---|---|---|---|
| Gemma-2 | 4 | ||
| -2b-it | 18 | ||
| Llama-3.1 | 18 | ||
| -8B | 22 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Gemma-2-2b-it | Llama-3.1-8B-Instruct | |||
|---|---|---|---|---|
| Layer | Faithfulness | Completeness | Faithfulness | Completeness |
| 2 | 46.9 | 40.7 | – | – |
| 4 | 45.7 | 55.7 | 49.7 | 41.3 |
| 8 | 45.2 | 43.5 | 49.3 | 35.8 |
| 18 | 46.1 | 59.7 | 70.9 | 55.1 |
| 22 | – | – | 57.5 | 49.3 |
| Best | Best | Explained Norm | Final Orthogonality | Harmonic Mean | |
|---|---|---|---|---|---|
| 0.3 | 4.0 | 0.72 | 0.78 | 0.749 | |
| 0.5 | 6.0 | 0.63 | 0.87 | 0.731 | |
| 0.1 | 4.0 | 0.86 | 0.54 | 0.663 |
| ch 2: “negative, Negative” ( ) |
| Detects contexts involving negation/polarity. |
| ch 1: “negative, positive” ( ) |
| Polarity concept signal (93% of top examples). |
| Aligns with input |
| Predicted: True: |
| Model | Neuron | MLP type | Ch | Top tokens | Description |
|---|---|---|---|---|---|
| Gemma-2 -2b-it | (18, 6528) | 0 | ride, Ride, riding, rides, ridden | Direct riding vocab. | |
| 47 | platform, Platform, platforms | Platform | |||
| 38 | school, School | Dampens school ctx. | |||
| 0 | ride, riding, rides, bike, horseback | Riding / locomotion | |||
| 16 | donkey, donkeys, horse, horses, mule | Animals / mounts | |||
| 22 | gl, Gl, GL | gl- subtoken |
| Variant | channels | channels |
|---|---|---|
| All gate, all in | all | all |
| Positive-skew gate, all in | positive-skew only | all |
| All gate, positive-skew in | all | positive-skew only |
| All gate, negative-skew in | all | negative-skew only |
| Method | Polarity | Variant | Win rate |
|---|---|---|---|
| ROTATE | positive | all_gate_split_positive | 78.3% |
| all_gate_all_in | 35.0% | ||
| positive_gate_all_in | 31.7% | ||
| ROTATE | negative | all_gate_split_negative | 57.5% |
| all_gate_all_in | 37.5% | ||
| MaxAct+VocabProj | positive | v2 | 67.5% |
| Layer, Neuron | Activating example | ROTATE description | Baseline description | Win/Loss |
|---|---|---|---|---|
| L22, N6946 | /// Get the host name associated with the entry. template <class Allocator> std :: basic_string, std::char_traits<char>, Allocator> host_name( const Allocator& alloc Pile top [100-500] | This neuron activates on contexts related to sleep, rest, and altered states of consciousness (dreaming, falling asleep), alongside concepts of returning or restarting, often involving function words ( to, of, you ) and morphological elements. Additionally, it responds to notions of bursting/failure, central locations/functions, and suspension/hanging, and code snippets related to filtering operations on arrays . | This neuron activates on words related to sleep, sleeping, snoring, and waking up, as well as general personal pronouns and common function words like “to”, “or”, and “of”, possibly reflecting awareness of narrative context involving sleep. [ MaxAct+VocabProj ] | Win |
| L22, N1939 | "thumbnail", "file", "fanart", "streamdetails" ], " player id": 1 ], "id": "VideoGetItem" Check this out} Pile top [0-100] | This neuron activates in contexts blending organizational systems, financial elements, and technical details, particularly those involving data processing and structured information. This includes: pipelines and routing of data, archives and architecture, financial assets and payments, macro/micro scale comparisons, lists/catalogs, letters/alphabets, notes/records, and measurements of volume. It is also sensitive to names and identifiers, particularly those containing the letter sequence ’ee’ | This neuron activates on code snippets, particularly related to the VLC media player library (libVLC) or JSON- RPC calls for media players (like XBMC), often involving player control methods. It also activates on articles, ’the’ and ’to’ [ MaxAct+VocabProj ] | Loss |
| L12, N496 | We just cruised on her to the Panama Canal last week! The Maitre’De in * the* Posh Dining Room Goran Gorigjewski is awesome!! Pile top [0-100] | This neuron activates positively in contexts involving the definite article ’the’ alongside varied semantic themes including: workplace interactions; self-reference; code overrides; strength/resilience; sending/transmission; philosophical concepts/proper nouns; authentication (’login’); geographical locations/cardinal directions; physical actions; and potentially female names. This suggests an emphasis on contextually defined entities within narrative or technical contexts | proper nouns; context indicating inquiry or explanation [MaxAct++] | Win |
| L18, N2241 | The English prose poem is a verse form that is usually unrhymed and written in the… FineWeb top [0-100] | This neuron strongly activates on code snippets, configurations, and technical documentation, often featuring specific numerical identifiers, compound words, and elements related to authorship or provenance. It also demonstrates sensitivity to partial words and specific syllables (’an’, ’on’, ’ol’, ’ug’, ’ac’) and common suffixes. Addition-related terms, Slavic language fragments, and spoiler/coupon contexts can also trigger activation. | references to poetic forms , styles, or innovation [MaxAct++] | Loss |
LLM Interpretability
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
See all 778 papers