On Relation-Specific Neurons in Large Language Models
Not on the map. Why?
Abstract (arXiv)
In large language models (LLMs), certain neurons can store distinct pieces of knowledge learned during pretraining. While factual knowledge typically appears as a combination of relations and entities, it remains unclear whether some neurons focus on a relation itself -- independent of any entity. We hypothesize such neurons detect a relation in the input text and guide generation involving such a relation. To investigate this, we study the LLama-2 family on a chosen set of relations, with a textitstatistics-based method. Our experiments demonstrate the existence of relation-specific neurons. We measure the effect of selectively deactivating candidate neurons specific to relation r on the LLM's ability to handle (1) facts involving relation r and (2) facts involving a different relation r' neq r. With respect to their capacity for encoding relation information, we give evidence for the following three properties of relation-specific neurons. (i) Neuron cumulativity. Multiple neurons jointly contribute to processing facts involving relation r, with no single neuron fully encoding a fact in r on its own. (ii) Neuron versatility. Neurons can be shared across multiple closely related as well as less related relations. In addition, some relation neurons transfer across languages. (iii) Neuron interference. Deactivating neurons specific to one relation can improve LLMs' factual recall performance for facts of other relations. We make our code and data publicly available at https://github.com/cisnlp/relation-specific-neurons.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 32 of its 57 references that are in the map. First posted on arXiv 24 Feb 2025.
Builds on
32 of 57 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2022Mass-Editing Memory in a Transformercited by 976
- 2019How Can We Know What Language Models Know?cited by 953
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
20 more
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2020Compositional Explanations of Neuronscited by 172
- 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 145
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 145
- 2023What's In My Big Data?cited by 129
- 2018What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Modelscited by 124
- 2018Identifying and Controlling Important Neurons in Neural Machine Translationcited by 110
- 2024Universal Neurons in GPT2 Language Modelscited by 100
- 2024AtP*: An efficient and scalable method for localizing LLM behaviour to componentscited by 100
- 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
- 2023Language Models Implement Simple Word2Vec-style Vector Arithmeticcited by 97
- 2024On the Multilingual Ability of Decoder-based Pre-trained Language Models: Finding and Controlling Language-Specific Neuronscited by 83
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2021Neuron-level Interpretation of Deep NLP Models: A Surveycited by 81
- 2021On the Pitfalls of Analyzing Individual Neurons in Language Modelscited by 61
- 2024Sharing Matters: Analysing Neurons Across Languages and Tasks in LLMscited by 33
- 2024Multilingual Knowledge Editing with Language-Agnostic Factual Neuronscited by 18
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2024Unveiling Factual Recall Behaviors of Large Language Models through Knowledge Neuronscited by 15
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2026Neuron-Level Interventions for Gendered and Gender-Neutral Generation in Language Modelscited by 2
- 2026CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptationcited by 0
- 2026Super Weights in LLMs and the Failure of Selective Trainingcited by 0
- 2026Super Weights in LLMs and the Failure of Selective Training9 Jul 2026
- 2026Neuron-Level Interventions for Gendered and Gender-Neutral Generation in Language Models29 May 2026
- 2026CoDA: Towards Effective Cross-domain Knowledge Transfer via CoT-guided Domain Adaptation21 Apr 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026