Skip to main content
QUICK REVIEW

[Paper 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 Science11 citations
TL;DR

The paper shows that fine-tuning LLMs with new knowledge slows learning of that knowledge and, once learned, increases hallucinations about pre-existing knowledge; early stopping or filtering unknown examples can mitigate this risk.

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.

Motivation & Objective

  • Motivate understanding of how fine-tuning with new factual knowledge impacts LLM behavior beyond pre-training.
  • Propose SliCK, a four-category knowledge taxonomy to categorize model knowledge during fine-tuning.
  • Empirically study how varying the proportion of Unknown (new) knowledge in fine-tuning affects performance and hallucinations.
  • Investigate training dynamics and the relative value of different Known categories for robust knowledge utilization.

Proposed method

  • Define P_Correct as a continuous measure from model samples to categorize knowledge.
  • Create D variants with varying percentages of Unknown vs Known examples drawn from EntityQuestions using 12 relations and 7 OOD relations for evaluation.
  • Fine-tune PaLM 2-M base on D and measure exact-match performance with in-context prompts and temperature sampling.
  • Use early stopping on development set to study overfitting effects and compare with full convergence.
  • Annotate each (q,a) with SliCK categories: Unknown, HighlyKnown, MaybeKnown, WeaklyKnown based on greedy vs sampled outputs.
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

Experimental results

Research questions

  • RQ1Does exposure to new knowledge in fine-tuning increase the model’s tendency to hallucinate about its pre-existing knowledge?
  • RQ2How do different categories of known facts (HighlyKnown, MaybeKnown, WeaklyKnown) in fine-tuning impact utilization of pre-existing knowledge and test performance?
  • RQ3Can filtering Unknown examples or early stopping mitigate the risk of hallucinations introduced by fine-tuning?
  • RQ4Do the observed effects generalize to out-of-distribution relations beyond the fine-tuned set?

Key findings

  • Higher Unknown proportions in fine-tuning lead to degraded performance across settings.
  • Unknown examples are learned much slower than Known ones, and their negative impact amplifies with longer training.
  • As Unknown examples are learned, the model’s tendency to hallucinate about pre-existing knowledge increases linearly.
  • Filtering Unknown examples or early stopping can reduce hallucination risk without sacrificing performance.
  • MaybeKnown fine-tuning examples yield the best overall improvement, balancing knowledge utilization and preservation of pre-existing knowledge.
  • The effects transfer to out-of-distribution relations, showing similarUnknown-to-hallucination dynamics.
(a)
(a)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.