arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.15996cs.CLcs.AI
收藏

大语言模型中带引导的文档记忆机制

Memorizing Documents with Guidance in Large Language Models

KAIST AI(韩国科学技术院人工智能学院);INEEJI

Bumjin Park, Jaesik Choi

AI总结:

本研究提出逐文档记忆架构与文档引导损失,在训练中追踪大语言模型的文档记忆,实验验证其可为不同文档分配独立记忆条目,并提升生成时文档相关内容的召回率。

摘要:

训练数据在AI模型中起着核心作用。大语言模型(LLMs)使用海量文档训练,其参数中存储着文档相关内容。近期已有多项研究通过分析参数,识别出LLM中对应特定内容的位置。不同于这类事后解释方法,我们提出了另一种思路:设计逐文档记忆架构,在训练过程中追踪文档记忆。该架构将文档表示映射到记忆条目,在LLM的前向传播过程中对记忆进行软掩码。此外,我们提出文档引导损失,提升带有对应文档记忆的文本生成概率,同时降低带有其他文档记忆的文本生成概率。在Wikitext-103-v1数据集上使用Pythia-1B模型的实验结果表明,所提方法为不同文档分配了不同的记忆条目,且训练得到的逐文档记忆在生成任务中对文档相关内容有很高的召回率。

英文摘要:

Training data plays a pivotal role in AI models. Large language models (LLMs) are trained with massive amounts of documents, and their parameters hold document-related contents. Recently, several studies identified content-specific locations in LLMs by examining the parameters. Instead of the post hoc interpretation, we propose another approach. We propose document-wise memory architecture to track document memories in training. The proposed architecture maps document representations to memory entries, which softly mask memories in the forward process of LLMs. Additionally, we propose document guidance loss, which increases the likelihood of text with document memories and reduces the likelihood of the text with the memories of other documents. Experimental results on Wikitext-103-v1 with Pythia-1B show that the proposed methods provide different memory entries for documents and high recall of document-related content in generation with trained document-wise memories.

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

↑