Locating and Extracting Relational Concepts in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Relational concepts are indeed foundational to the structure of knowledge representation, as they facilitate the association between various entity concepts, allowing us to express and comprehend complex world knowledge. By expressing relational concepts in natural language prompts, people can effortlessly interact with large language models (LLMs) and recall desired factual knowledge. However, the process of knowledge recall lacks interpretability, and representations of relational concepts within LLMs remain unknown to us. In this paper, we identify hidden states that can express entity and relational concepts through causal mediation analysis in fact recall processes. Our finding reveals that at the last token position of the input prompt, there are hidden states that solely express the causal effects of relational concepts. Based on this finding, we assume that these hidden states can be treated as relational representations and we can successfully extract them from LLMs. The experimental results demonstrate high credibility of the relational representations: they can be flexibly transplanted into other fact recall processes, and can also be used as robust entity connectors. Moreover, we also show that the relational representations exhibit significant potential for controllable fact recall through relation rewriting.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 21 of its 31 references that are in the map. First posted on arXiv 19 Jun 2024.
Builds on
21 of 31 references.
References · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 712
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2021Editing Factual Knowledge in Language Modelscited by 553
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
9 more
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2021Fast Model Editing at Scalecited by 498
- 2022Memory-Based Model Editing at Scalecited by 447
- 2023In-Context Learning Creates Task Vectorscited by 312
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 200
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 197
- 2023Inspecting and Editing Knowledge Representations in Language Modelscited by 141
- 2023Editing Common Sense in Transformerscited by 28
- 2022Neural Knowledge Bank for Pretrained Transformerscited by 16
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 2.
3 papers.