Knowledge Localization: Mission Not Accomplished? Enter Query Localization!

Yuheng Chen, Pengfei Cao, Yubo Chen, Kang Liu, Jun Zhao
5/1/2024

No official code found. Best implementation: heng840/KnowledgeLocalization (4 stars, last commit 2025-02-26).

Abstract

Large language models (LLMs) store extensive factual knowledge, but the mechanisms behind how they store and express this knowledge remain unclear. The Knowledge Neuron (KN) thesis is a prominent theory for explaining these mechanisms. This theory is based on the Knowledge Localization (KL) assumption, which suggests that a fact can be localized to a few knowledge storage units, namely knowledge neurons. However, this assumption has two limitations: first, it may be too rigid regarding knowledge storage, and second, it neglects the role of the attention module in knowledge expression. In this paper, we first re-examine the KL assumption and demonstrate that its limitations do indeed exist. To address these, we then present two new findings, each targeting one of the limitations: one focusing on knowledge storage and the other on knowledge expression. We summarize these findings as \textbf{Query Localization} (QL) assumption and argue that the KL assumption can be viewed as a simplification of the QL assumption. Based on QL assumption, we further propose the Consistency-Aware KN modification method, which improves the performance of knowledge modification, further validating our new assumption. We conduct 39 sets of experiments, along with additional visualization experiments, to rigorously confirm our conclusions. Code is available at https://github.com/heng840/KnowledgeLocalization.

View on arXivView PDF

Code Implementations(1)

ICLR2025 Spotlight Code: Knowledge Localization: Mission Not Accomplished? Enter Query Localization!

41Shell, PythonFeb 26, 20251 years ago

Cite this paper

@article{chen2024knowledge,
  title  = {Knowledge Localization: Mission Not Accomplished? Enter Query Localization!},
  author = {Yuheng Chen and Pengfei Cao and Yubo Chen and Kang Liu and Jun Zhao},
  year   = {2024},
  eprint = {2405.14117},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.14117},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.14117.svg)](https://codeofpaper.com/paper/2405.14117)

Discussion