LMEnt: A Suite for Analyzing Knowledge in Language Models from Pretraining Data to Representations
LMEnt是一个用于分析语言模型在预训练过程中知识获取的套件,通过提供知识丰富的预训练语料库、基于实体的检索方法和预训练模型,帮助研究者理解语言模型的知识表示和训练动态。
更新于 2025-10-27。作者:Daniela Gottesman、Alon Gilae-Dotan、Ido Cohen、Yoav Gur-Arieh、Marius Mosbach、Ori Yoran、Mor Geva。
中文摘要
语言模型(LMs)越来越推动着需要世界知识的实际应用。然而,模型将数据转化为关于世界的知识表示和信念的内部过程却了解甚少。对这些过程的洞察可能为开发具有更一致、更稳健和更完整知识表示的LMs铺平道路。为了便于研究这些问题,我们推出了LMEnt,这是一套用于分析LMs在预训练期间知识获取的工具。LMEnt引入了以下内容:(1)一个基于维基百科的知识丰富预训练语料库,其中实体提及已完全标注,(2)一种基于实体的检索方法,在预训练数据上的表现优于之前的方案,最高可提升80.4%,(3)12个预训练模型,参数量高达10亿,中间检查点达到4K,在知识基准测试上的性能与流行的开源模型相当。这些资源共同提供了一个可控的环境,用于分析预训练中实体提及与下游性能之间的联系,以及预训练数据中因果干预的影响。我们通过研究检查点之间的知识获取,展示了LMEnt的实用性,发现事实频率是关键,但它并不能完全解释学习趋势。我们将LMEnt发布出来,以支持对LMs中知识的各种研究,包括知识表示、塑性、编辑、归因和学习动态。
英文摘要
Language models (LMs) increasingly drive real-world applications that require world knowledge. However, the internal processes through which models turn data into representations of knowledge and beliefs about the world, are poorly understood. Insights into these processes could pave the way for developing LMs with knowledge representations that are more consistent, robust, and complete. To facilitate studying these questions, we present LMEnt, a suite for analyzing knowledge acquisition in LMs during pretraining. LMEnt introduces: (1) a knowledge-rich pretraining corpus, fully annotated with entity mentions, based on Wikipedia, (2) an entity-based retrieval method over pretraining data that outperforms previous approaches by as much as 80.4%, and (3) 12 pretrained models with up to 1B parameters and 4K intermediate checkpoints, with comparable performance to popular open-sourced models on knowledge benchmarks. Together, these resources provide a controlled environment for analyzing connections between entity mentions in pretraining and downstream performance, and the effects of causal interventions in pretraining data. We show the utility of LMEnt by studying knowledge acquisition across checkpoints, finding that fact frequency is key, but does not fully explain learning trends. We release LMEnt to support studies of knowledge in LMs, including knowledge representations, plasticity, editing, attribution, and learning dynamics.
解读
一句话总结
LMEnt是一个用于分析语言模型在预训练过程中知识获取的套件,通过提供知识丰富的预训练语料库、基于实体的检索方法和预训练模型,帮助研究者理解语言模型的知识表示和训练动态。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:语言模型在预训练过程中如何形成和塑造知识表示是一个基本但未被充分探索的问题。
- 现有方案不足:现有工具难以精确定位预训练数据中特定知识的出现位置,且对语义等价信息的表述变化缺乏鲁棒性。
- 研究目标:开发一个名为LMEnt的套件,以分析语言模型在预训练过程中知识获取的问题,包括实体提及与下游性能之间的联系,以及预训练数据中因果干预的影响。
问题2:论文的核心创新点是什么?
- 技术创新:引入了知识丰富的预训练语料库、基于实体的检索方法和12个预训练模型。
- 方法改进:通过实体提及进行检索,比之前的基于字符串的方法提高了80.4%的性能。
- 优势:提供了对预训练数据中知识位置的透明度,使得研究者能够更精确地分析知识获取过程。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在PopQA和PAQ基准测试中评估了LMEnt模型的知识回忆性能,与基线模型相比,LMEnt模型在大多数实体上检索到更多正确的提及。
- 性能提升:LMEnt在PopQA上达到了与Pythia-1.4B和OLMo-1B相当的性能,而计算量仅为后者的十分之一。
- 对比结果:LMEnt在实体检索方面优于基于字符串的方法,在80%的实体上检索到更多相关的文档块,同时保持>97%的精确度。
问题4:这个研究的实际应用价值是什么?
- 应用场景:知识表示、知识塑性、编辑、归因和学习动态等研究领域。
- 实施建议:将LMEnt套件应用于不同类型的预训练数据,以研究不同数据类型对知识获取的影响。
- 局限与展望:未来可以扩展LMEnt到更大的预训练语料库和不同的模型架构,并进一步研究预训练、中训练和后训练阶段的知识获取动态。
来源
机器可读索引:llms.txt