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

通过监督微调向大型语言模型注入新知识

Injecting New Knowledge into Large Language Models via Supervised Fine-Tuning

Microsoft(微软公司)

Nick Mecklenburg, Yiyou Lin, Xiaoxiao Li, Daniel Holstein, Leonardo Nunes, Sara Malvar, Bruno Silva, Ranveer Chandra, Vijay Aski, Pavan Kumar Reddy Yannam, Tolga Aktas, Todd Hendry

AI总结:

本文研究通过监督微调向LLM注入新知识,比较基于token和基于事实的数据集扩展策略,并提出新数据集生成流程,在GPT-4上显著提升领域外体育赛事问答的事实准确性。

摘要:

近年来,大型语言模型(LLMs)在生成类人文本方面表现出色,已被证明是各种应用中的宝贵资产。然而,如何调整这些模型以纳入新的、领域外的知识仍然是一个挑战,尤其是对于模型知识截止日期之后发生的事实和事件。本文研究了监督微调(SFT)作为LLMs知识注入方法的有效性,特别聚焦于近期体育赛事领域。我们比较了不同的数据集生成策略——基于token的扩展和基于事实的扩展——以创建帮助模型学习新信息的训练数据。我们在GPT-4上的实验表明,虽然基于token的扩展可以提升问答准确率,但可能无法提供对新知识的均匀覆盖。另一方面,基于事实的扩展提供了一种更系统化的方法,以确保对所有事实的均匀覆盖。我们提出了一种新颖的数据集生成流程,通过SFT实现更有效的知识吸收,并且我们的结果显示,在与领域外知识相关的问答任务中性能有显著提升。本研究有助于理解LLMs的领域适应问题,并凸显了SFT在增强LLMs在特定知识领域中回答事实性方面的潜力。

英文摘要:

In recent years, Large Language Models (LLMs) have shown remarkable performance in generating human-like text, proving to be a valuable asset across various applications. However, adapting these models to incorporate new, out-of-domain knowledge remains a challenge, particularly for facts and events that occur after the model's knowledge cutoff date. This paper investigates the effectiveness of Supervised Fine-Tuning (SFT) as a method for knowledge injection in LLMs, specifically focusing on the domain of recent sporting events. We compare different dataset generation strategies -- token-based and fact-based scaling -- to create training data that helps the model learn new information. Our experiments on GPT-4 demonstrate that while token-based scaling can lead to improvements in Q&A accuracy, it may not provide uniform coverage of new knowledge. Fact-based scaling, on the other hand, offers a more systematic approach to ensure even coverage across all facts. We present a novel dataset generation process that leads to more effective knowledge ingestion through SFT, and our results show considerable performance improvements in Q&A tasks related to out-of-domain knowledge. This study contributes to the understanding of domain adaptation for LLMs and highlights the potential of SFT in enhancing the factuality of LLM responses in specific knowledge domains.

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

↑