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

微调还是检索?大语言模型中的知识注入方式对比

Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs

Microsoft(微软)

Oded Ovadia, Menachem Brief, Moshik Mishaeli, Oren Elisha

AI总结:

本研究对比无监督微调和RAG两种LLM知识注入方法,发现RAG在新旧知识的知识密集型任务上表现均更优,且无监督微调难学新事实,多事实变体训练可缓解该问题。

摘要:

大语言模型(LLM)在预训练权重中封装了大量事实性信息,这一点可通过其回答不同领域各类问题的能力得到印证。但这类知识存在固有局限性,高度依赖训练数据的特征。因此,利用外部数据集为LLM注入新信息,或优化其处理已知信息的能力,是一项重大挑战。本研究对比了两种常用方法:无监督微调与检索增强生成(RAG)。我们在多个主题的各类知识密集型任务上评估了这两种方法。研究结果表明,尽管无监督微调能带来一定提升,但无论是针对训练期间见过的已有知识,还是全新知识,RAG的表现始终更优。此外,我们发现LLM难以通过无监督微调学习新的事实性信息,而在训练中向其呈现同一事实的多种变体可缓解这一问题。

英文摘要:

Large language models (LLMs) encapsulate a vast amount of factual information within their pre-trained weights, as evidenced by their ability to answer diverse questions across different domains. However, this knowledge is inherently limited, relying heavily on the characteristics of the training data. Consequently, using external datasets to incorporate new information or refine the capabilities of LLMs on previously seen information poses a significant challenge. In this study, we compare two common approaches: unsupervised fine-tuning and retrieval-augmented generation (RAG). We evaluate both approaches on a variety of knowledge-intensive tasks across different topics. Our findings reveal that while unsupervised fine-tuning offers some improvement, RAG consistently outperforms it, both for existing knowledge encountered during training and entirely new knowledge. Moreover, we find that LLMs struggle to learn new factual information through unsupervised fine-tuning, and that exposing them to numerous variations of the same fact during training could alleviate this problem.

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

↑