Skip to main content
QUICK REVIEW

[论文解读] Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?

Zorik Gekhman, Gal Yona|arXiv (Cornell University)|May 9, 2024
Big Data and Digital EconomyComputer Science被引用 11
一句话总结

本文表明,对大型语言模型进行含新知识的微调会减慢对该知识的学习,一旦学习完成,又会增加对既有知识的幻觉/错误推断;早停或过滤未知示例可以降低这一风险。

ABSTRACT

When large language models are aligned via supervised fine-tuning, they may encounter new factual information that was not acquired through pre-training. It is often conjectured that this can teach the model the behavior of hallucinating factually incorrect responses, as the model is trained to generate facts that are not grounded in its pre-existing knowledge. In this work, we study the impact of such exposure to new knowledge on the capability of the fine-tuned model to utilize its pre-existing knowledge. To this end, we design a controlled setup, focused on closed-book QA, where we vary the proportion of the fine-tuning examples that introduce new knowledge. We demonstrate that large language models struggle to acquire new factual knowledge through fine-tuning, as fine-tuning examples that introduce new knowledge are learned significantly slower than those consistent with the model's knowledge. However, we also find that as the examples with new knowledge are eventually learned, they linearly increase the model's tendency to hallucinate. Taken together, our results highlight the risk in introducing new factual knowledge through fine-tuning, and support the view that large language models mostly acquire factual knowledge through pre-training, whereas fine-tuning teaches them to use it more efficiently.

研究动机与目标

  • 激发理解:用新的事实知识进行微调如何影响LLM在预训练之外的行为。
  • 提出 SliCK,一种四类知识分类法,用于在微调期间对模型知识进行归类。
  • 实证研究在微调中未知(新)知识比例的变化如何影响性能和幻觉。
  • 研究训练动态以及不同已知类别在实现稳健知识利用中的相对价值。

提出的方法

  • 将 P_Correct 定义为来自模型样本的连续度量,用以对知识进行分类。
  • 使用从 EntityQuestions 提取的 12 个关系和 7 个 OOD 关系进行评估,创建不同 Unknown 与 Known 示例比例的 D 变体。
  • 在 D 的基础上对 PaLM 2-M 基模型进行微调,并通过上下文提示和温度采样测量精确匹配性能。
  • 在开发集上使用早停以研究过拟合效应,并与完全收敛进行比较。
  • 基于贪心输出与采样输出,将每个 (q,a) 注释为 SliCK 类别:Unknown、HighlyKnown、MaybeKnown、WeaklyKnown。
Figure 1: Train and development accuracies as a function of the fine-tuning duration, when fine-tuning on $50\%$ $\mathtt{Known}$ and $50\%$ $\mathtt{Unknown}$ examples. $\mathtt{Unknown}$ examples are fitted substantially slower than $\mathtt{Known}$ . The best development performance is obtained w
Figure 1: Train and development accuracies as a function of the fine-tuning duration, when fine-tuning on $50\%$ $\mathtt{Known}$ and $50\%$ $\mathtt{Unknown}$ examples. $\mathtt{Unknown}$ examples are fitted substantially slower than $\mathtt{Known}$ . The best development performance is obtained w

实验结果

研究问题

  • RQ1在微调中接触新知识是否会增加模型对既有知识进行幻觉性推断的倾向?
  • RQ2在微调中,不同已知事实类别(HighlyKnown、MaybeKnown、WeaklyKnown)如何影响对既有知识的利用以及测试性能?
  • RQ3过滤 Unknown 例子或早停是否能降低微调引入的幻觉风险?
  • RQ4观察到的效应是否可推广到微调集合以外的分布外关系?

主要发现

  • 在微调中更高比例的 Unknown 会在各个设置下导致性能下降。
  • Unknown 示例的学习速度远慢于 Known 示例,且随着更长的训练,负面影响放大。
  • 随着 Unknown 示例被学习,模型对既有知识的幻觉倾向线性增加。
  • 过滤 Unknown 示例或早停可在不牺牲性能的前提下降低幻觉风险。
  • MaybeKnown 微调示例在总体上带来最佳改进,平衡知识利用与对既有知识的保留。
  • 这些效应也转移到分布外关系,显示出类似的 Unknown-to-hallucination 动态。
(a)
(a)

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。