arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.01019cs.CLcs.AI
收藏

来源感知训练实现语言模型中的知识归因

Source-Aware Training Enables Knowledge Attribution in Language Models

University of Michigan(密歇根大学);Allen Institute for AI(艾伦人工智能研究所);Carnegie Mellon University(卡内基梅隆大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Muhammad Khalifa, David Wadden, Emma Strubell, Honglak Lee, Lu Wang, Iz Beltagy, Hao Peng

AI总结:

针对大语言模型无法感知知识来源的问题,本研究提出来源感知训练方案,通过知识-来源标识关联与指令微调实现内在来源引用,在合成数据上验证了其在不显著影响困惑度的前提下的可靠归因能力,并指出预训练数据增强的重要性。

摘要:

大语言模型(LLM)在预训练期间学习了大量知识,但它们通常对这些知识的来源一无所知。我们研究了内在来源引用问题,该问题要求LLM引用支撑其生成回复的预训练来源。内在来源引用能够提升LLM的透明度、可解释性与可验证性。为赋予LLM这种能力,我们探索了来源感知训练(source-aware training)——这一方案包含两个步骤:(i)训练LLM将唯一的源文档标识符与每份文档中的知识关联起来,随后(ii)通过指令微调阶段教会LLM在收到提示时引用支撑性的预训练来源。来源感知训练借鉴了现有的预训练/微调框架,对模型架构或实现的改动极小。通过在合成数据上开展实验,我们证明:与标准预训练相比,我们的训练方案能够实现对预训练数据的可靠归因,且不会对模型的困惑度造成显著影响。我们的研究结果还凸显了预训练数据增强在实现归因方面的重要性。代码与数据可在此处获取:https://github.com/mukhal/intrinsic-source-citation

英文摘要:

Large language models (LLMs) learn a vast amount of knowledge during pretraining, but they are often oblivious to the source(s) of such knowledge. We investigate the problem of intrinsic source citation, where LLMs are required to cite the pretraining source supporting a generated response. Intrinsic source citation can enhance LLM transparency, interpretability, and verifiability. To give LLMs such ability, we explore source-aware training -- a recipe that involves (i) training the LLM to associate unique source document identifiers with the knowledge in each document, followed by (ii) an instruction-tuning stage to teach the LLM to cite a supporting pretraining source when prompted. Source-aware training borrows from existing pretraining/fine-tuning frameworks and requires minimal changes to the model architecture or implementation. Through experiments on synthetic data, we demonstrate that our training recipe can enable faithful attribution to the pretraining data without a substantial impact on the model's perplexity compared to standard pretraining. Our findings also highlight the importance of pretraining data augmentation in achieving attribution. Code and data available here: \url{https://github.com/mukhal/intrinsic-source-citation}

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

↑