Unveiling Factual Recall Behaviors of Large Language Models through Knowledge Neurons

Yifei Wang, Yuheng Chen, Wanting Wen, Yu Sheng, Linjing Li +1 more
8/6/2024
cs.CLcs.AI

No official code found. Best implementation: wangyifei0047/TFRKN (2 stars, last commit 2024-09-24).

Abstract

In this paper, we investigate whether Large Language Models (LLMs) actively recall or retrieve their internal repositories of factual knowledge when faced with reasoning tasks. Through an analysis of LLMs' internal factual recall at each reasoning step via Knowledge Neurons, we reveal that LLMs fail to harness the critical factual associations under certain circumstances. Instead, they tend to opt for alternative, shortcut-like pathways to answer reasoning questions. By manually manipulating the recall process of parametric knowledge in LLMs, we demonstrate that enhancing this recall process directly improves reasoning performance whereas suppressing it leads to notable degradation. Furthermore, we assess the effect of Chain-of-Thought (CoT) prompting, a powerful technique for addressing complex reasoning tasks. Our findings indicate that CoT can intensify the recall of factual knowledge by encouraging LLMs to engage in orderly and reliable reasoning. Furthermore, we explored how contextual conflicts affect the retrieval of facts during the reasoning process to gain a comprehensive understanding of the factual recall behaviors of LLMs. Code and data will be available soon.

View on arXivView PDF

Code Implementations(1)

wangyifei0047/TFRKNCommunity100%

This is the Two-hop Factual Reasoning for Knowledge Neurons (TFRKN) dataset from the paper Unveiling Factual Recall Behaviors of Large Language Models through Knowledge Neurons(EMNLP2024).

20Sep 24, 20242 years ago

Similar Papers

Cite this paper

@article{wang2024unveiling,
  title  = {Unveiling Factual Recall Behaviors of Large Language Models through Knowledge Neurons},
  author = {Yifei Wang and Yuheng Chen and Wanting Wen and Yu Sheng and Linjing Li and Daniel Dajun Zeng},
  year   = {2024},
  eprint = {2408.03247},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.03247v3}
}

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/2408.03247.svg)](https://codeofpaper.com/paper/2408.03247)

Discussion