基于可编辑外部知识的语言建模
Language Modeling with Editable External Knowledge
AI总结:
针对语言模型需随外界变化快速更新的问题,提出ERASE方法,通过新增文档时增量编辑知识库条目提升更新效果,在两个新基准上较传统检索增强生成实现显著准确率提升。
摘要:
当世界发生变化时,人类撰写的相关文本也会随之改变。我们如何构建能够轻松更新以反映这些变化的语言模型?一种流行的方法是检索增强生成,即把新文档插入知识库,并在下游任务的预测过程中进行检索。此前这类系统的大多数研究都聚焦于通过更优的检索或推理来改善预测阶段的表现。本文提出了ERASE(可编辑检索增强系统),该方法转而在获取新文档时优化模型表现,每次添加文档时都会增量删除或重写知识库中的其他条目。在两个用于评估模型回答新闻文章流或对话流相关问题能力的新基准数据集上,ERASE相较于传统检索增强生成,准确率绝对提升了7-13%(Mixtral-8x7B)和6-10%(Llama-3-8B)。代码和数据可在https://github.com/belindal/ERASE获取。
英文摘要:
When the world changes, so does the text that humans write about it. How do we build language models that can be easily updated to reflect these changes? One popular approach is retrieval-augmented generation, in which new documents are inserted into a knowledge base and retrieved during prediction for downstream tasks. Most prior work on these systems have focused on improving behavior during prediction through better retrieval or reasoning. This paper introduces ERASE, which instead improves model behavior when new documents are acquired, by incrementally deleting or rewriting other entries in the knowledge base each time a document is added. In two new benchmark datasets evaluating models' ability to answer questions about a stream of news articles or conversations, ERASE improves accuracy relative to conventional retrieval-augmented generation by 7-13% (Mixtral-8x7B) and 6-10% (Llama-3-8B) absolute. Code and data are available at https://github.com/belindal/ERASE
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。