arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.14057cs.CL
收藏

语言模型中的共现并非事实关联

Co-occurrence is not Factual Association in Language Models

Department of Electronics Engineering(电子工程系);Tsinghua University(清华大学);Department of Electronics Engineering, College of AI(人工智能学院电子工程系);Beijing National Research Center for Information Science and Technology(北京信息科学国家研究中心);Center for Big Data and Clinical Research, Institute for Precision Medicine(精准医学研究院大数据与临床研究中心)

Xiao Zhang, Miao Li, Ji Wu

AI总结:

本研究揭示语言模型因偏向学习共现统计而非事实关联导致新事实知识学习效果差的问题,明确两类知识的层级表征差异,提出隐式关联训练与主动遗忘共现两种策略,有效提升微调所学知识的推理泛化能力。

摘要:

预训练语言模型能够编码大量知识并将其用于各类推理任务,但在通过有限文本演示进行微调时,仍难以有效学习全新的事实性知识。本研究表明,这一缺陷的成因在于语言模型存在偏向学习词汇共现统计规律而非真实事实关联的问题。我们明确了语言模型中两种知识表征形式的差异:以共现统计形式存在的知识编码在Transformer模型的中间层,难以泛化到简单问答之外的推理场景;而真实的事实关联编码在模型低层,可灵活应用于各类推理任务。基于上述观察,我们提出两种提升语言模型事实关联学习效果的策略。研究表明,在具有隐式而非显式事实关联的文本上训练,能够迫使模型学习事实关联而非共现统计规律,显著提升新学知识的泛化能力。我们还提出一种简单的训练方法,用于主动遗忘已学习的共现统计规律,该方法能在普通叙事文本训练时,疏通并强化事实关联的学习过程。在合成语料和真实语料上,两种提出的策略均提升了微调阶段所学知识向间接问答、多跳问答等推理场景的泛化能力。

英文摘要:

Pretrained language models can encode a large amount of knowledge and utilize it for various reasoning tasks, yet they can still struggle to learn novel factual knowledge effectively from finetuning on limited textual demonstrations. In this work, we show that the reason for this deficiency is that language models are biased to learn word co-occurrence statistics instead of true factual associations. We identify the differences between two forms of knowledge representation in language models: knowledge in the form of co-occurrence statistics is encoded in the middle layers of the transformer model and does not generalize well to reasoning scenarios beyond simple question answering, while true factual associations are encoded in the lower layers and can be freely utilized in various reasoning tasks. Based on these observations, we propose two strategies to improve the learning of factual associations in language models. We show that training on text with implicit rather than explicit factual associations can force the model to learn factual associations instead of co-occurrence statistics, significantly improving the generalization of newly learned knowledge. We also propose a simple training method to actively forget the learned co-occurrence statistics, which unblocks and enhances the learning of factual associations when training on plain narrative text. On both synthetic and real-world corpora, the two proposed strategies improve the generalization of the knowledge learned during finetuning to reasoning scenarios such as indirect and multi-hop question answering.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑