How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-Training
这篇论文通过分析知识电路的演变,揭示了大型语言模型(LLMs)获取新知识的机制,为改进持续预训练策略提供了理论基础。
更新于 2025-02-18。作者:Yixin Ou、Yunzhi Yao、Ningyu Zhang、Hui Jin、Jiacheng Sun、Shumin Deng、Zhenguo Li、Huajun Chen。
中文摘要
尽管在知识密集型任务中表现出色,大型语言模型(LLMs)在理解如何内化新知识方面存在一个关键差距,特别是如何将获取的知识结构性地嵌入到它们的神经计算中。我们通过知识电路进化的视角来解决这个问题,确定了促进知识存储和处理的计算子图。我们通过对持续预训练过程中电路进化的系统性分析,揭示了几个关键发现:(1)新知识的获取受其与现有知识的相关性影响;(2)知识电路的进化表现出从形成到优化的明显相位变化;(3)知识电路的进化遵循从深到浅的模式。这些见解不仅推进了我们对于LLMs中新知识获取机制的理论理解,还提供了改进持续预训练策略以提升模型性能的潜在影响。代码和数据将在https://github.com/zjunlp/DynamicKnowledgeCircuits上提供。
英文摘要
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.
解读
一句话总结
这篇论文通过分析知识电路的演变,揭示了大型语言模型(LLMs)获取新知识的机制,为改进持续预训练策略提供了理论基础。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:尽管LLMs在知识密集型任务中表现出色,但它们在如何内部化新知识,特别是在如何结构化嵌入获取的知识方面存在关键差距。
- 现有方案不足:现有方法通常将知识块视为孤立组件,并往往专注于识别存储特定知识的特定块。
- 研究目标:通过分析持续预训练期间知识电路的演变,揭示LLMs获取新知识的机制。
问题2:论文的核心创新点是什么?
- 技术创新:提出知识电路的概念,分析LLMs中知识存储和表达的合作。
- 方法改进:通过持续预训练分析知识电路的演变,揭示知识获取的动态过程。
- 优势:提供对LLMs新知识获取机制的理论理解,并为改进持续预训练策略提供依据。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在合成数据上对GPT-2、Llama和Phi等模型进行持续预训练,并使用EAP-IG方法发现知识电路。
- 性能提升:通过Hit@10指标评估知识电路的性能,发现相关新知识的性能曲线始终高于完全新知识的曲线。
- 对比结果:与基线方法相比,知识电路在持续预训练期间表现出持续的知识获取能力。
问题4:这个研究的实际应用价值是什么?
- 应用场景:改进持续预训练策略,增强LLMs在知识密集型任务中的性能。
- 实施建议:利用数据课程,组织数据以模仿原始语料库的结构和分布,从而提高模型整合新信息的能力。
- 局限与展望:研究局限于解码器-only Transformer LMs,未来可扩展到其他模型架构和训练技术。
来源
机器可读索引:llms.txt