How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Training

Yixin Ou, Yunzhi Yao, Ningyu Zhang, Hui Jin, Jiacheng Sun +3 more
2/16/2025
cs.LGcs.AIcs.CL

Official code: zjunlp/DynamicKnowledgeCircuits (50 stars, MIT, last commit 2025-07-18).

Abstract

Despite exceptional capabilities in knowledge-intensive tasks, Large Language Models (LLMs) face a critical gap in understanding how they internalize new knowledge, particularly how to structurally embed acquired knowledge in their neural computations. We address this issue through the lens of knowledge circuit evolution, identifying computational subgraphs that facilitate knowledge storage and processing. Our systematic analysis of circuit evolution throughout continual pre-training reveals several key findings: (1) the acquisition of new knowledge is influenced by its relevance to pre-existing knowledge; (2) the evolution of knowledge circuits exhibits a distinct phase shift from formation to optimization; (3) the evolution of knowledge circuits follows a deep-to-shallow pattern. These insights not only advance our theoretical understanding of the mechanisms of new knowledge acquisition in LLMs, but also provide potential implications for improving continual pre-training strategies to enhance model performance. Code and data will be available at https://github.com/zjunlp/DynamicKnowledgeCircuits.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2025] How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Training

501Shell, PythonDec 10, 20241 years agoMIT
artificial-intelligencecontinual-learningcontinue-pretraininginterpretabilityknowledge-circuit+6 more

Similar Papers

Cite this paper

@article{ou2025llms,
  title  = {How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Training},
  author = {Yixin Ou and Yunzhi Yao and Ningyu Zhang and Hui Jin and Jiacheng Sun and Shumin Deng and Zhenguo Li and Huajun Chen},
  year   = {2025},
  eprint = {2502.11196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11196v2}
}

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

Discussion