Identifying Query-Relevant Neurons in Large Language Models for Long-Form Texts
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) possess vast amounts of knowledge within their parameters, prompting research into methods for locating and editing this knowledge. Previous work has largely focused on locating entity-related (often single-token) facts in smaller models. However, several key questions remain unanswered: (1) How can we effectively locate query-relevant neurons in decoder-only LLMs, such as Llama and Mistral? (2) How can we address the challenge of long-form (or free-form) text generation? (3) Are there localized knowledge regions in LLMs? In this study, we introduce Query-Relevant Neuron Cluster Attribution (QRNCA), a novel architecture-agnostic framework capable of identifying query-relevant neurons in LLMs. QRNCA allows for the examination of long-form answers beyond triplet facts by employing the proxy task of multi-choice question answering. To evaluate the effectiveness of our detected neurons, we build two multi-choice QA datasets spanning diverse domains and languages. Empirical evaluations demonstrate that our method outperforms baseline methods significantly. Further, analysis of neuron distributions reveals the presence of visible localized regions, particularly within different domains. Finally, we show potential applications of our detected neurons in knowledge editing and neuron-based prediction.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 26 of its 46 references that are in the map. First posted on arXiv 16 Jun 2024.
Builds on
26 of 46 references.
References · 26
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 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
- 2022Mass-Editing Memory in a Transformercited by 976
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2016Language Modeling with Gated Convolutional Networkscited by 688
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
14 more
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2021Multilingual LAMA: Investigating Knowledge in Multilingual Pretrained Language Modelscited by 132
- 2018What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Modelscited by 124
- 2020X-FACTR: Multilingual Factual Knowledge Retrieval from Pretrained Language Modelscited by 117
- 2024Universal Neurons in GPT2 Language Modelscited by 100
- 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
- 2019Evaluating Commonsense in Pre-trained Language Modelscited by 95
- 2021An Interpretability Illusion for BERTcited by 94
- 2023Neurons in Large Language Models: Dead, N-gram, Positionalcited by 88
- 2021Can Language Models be Biomedical Knowledge Bases?cited by 83
- 2023Journey to the Center of the Knowledge Neurons: Discoveries of Language-Independent Knowledge Neurons and Degenerate Knowledge Neuronscited by 56
- 2024Learnable Privacy Neurons Localization in Language Modelscited by 26
- 2023Measuring and Modifying Factual Knowledge in Large Language Modelscited by 16
- 2023KLoB: a Benchmark for Assessing Knowledge Locating Methods in Language Modelscited by 8
Built on by
Citing papers per year: 2024: 1; 2025: 7; 2026: 4.
12 papers.
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Query-Level Uncertainty in Large Language Modelscited by 12
- 2026DNA: Uncovering Universal Latent Forgery Knowledgecited by 10
- 2025Where Culture Fades: Revealing the Cultural Gap in Text-to-Image Generationcited by 8
- 2025Representation Consistency for Accurate and Coherent LLM Answer Aggregationcited by 5
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarioscited by 3
- 2025Latent Debate: A Surrogate Framework for Interpreting LLM Thinkingcited by 2
- 2025A Semantic-based Optimization Approach for Repairing LLMs: Case Study on Code Generationcited by 1
- 2025Neuron-Level Analysis of Cultural Understanding in Large Language Modelscited by 1
- 2026Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrievalcited by 1
- 2026Identifying Good and Bad Neurons for Task-Level Controllable LLMscited by 0
- 2026Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrieval7 Apr 2026
- 2026DNA: Uncovering Universal Latent Forgery Knowledge30 Jan 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2026Identifying Good and Bad Neurons for Task-Level Controllable LLMs8 Jan 2026
- 2025Latent Debate: A Surrogate Framework for Interpreting LLM Thinking1 Dec 2025
- 2025Where Culture Fades: Revealing the Cultural Gap in Text-to-Image Generation21 Nov 2025
- 2025Neuron-Level Analysis of Cultural Understanding in Large Language Models9 Oct 2025
- 2025AgentCoMa: A Compositional Benchmark Mixing Commonsense and Mathematical Reasoning in Real-World Scenarios27 Aug 2025
- 2025Representation Consistency for Accurate and Coherent LLM Answer Aggregation18 Jun 2025
- 2025Query-Level Uncertainty in Large Language Models11 Jun 2025
- 2025A Semantic-based Optimization Approach for Repairing LLMs: Case Study on Code Generation17 Mar 2025
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspective22 Jul 2024