Abstract
Language models are prone to hallucination - generating text that is factually incorrect. Finetuning models on high-quality factual information can potentially reduce hallucination, but concerns remain; obtaining factual gold data can be expensive and training on correct but unfamiliar data may potentially lead to even more downstream hallucination. What data should practitioners finetune on to mitigate hallucinations in language models? In this work, we study the relationship between the factuality of finetuning data and the prevalence of hallucinations in long-form generation tasks. Counterintuitively, we find that finetuning on factual gold data is not as helpful as finetuning on model-generated data that models believe to be factual. Next, we evaluate filtering strategies applied on both factual gold data and model-generated data, and find that finetuning on model-generated data that is filtered by models' own internal judgments often leads to better overall factuality compared to other configurations: training on gold data filtered by models' judgments, training on gold data alone, or training on model-generated data that is supported by gold data. These factuality improvements transfer across three domains we study, suggesting that a models' own beliefs can provide a powerful signal for factuality.
Introduction
Language models (LMs) are notorious for "hallucinating" — generating plausible-sounding but factually incorrect text. The standard industry fix is to finetune these models on high-quality, human-verified "gold" data. However, recent research suggests a catch: if the finetuning data contains facts that are completely unfamiliar to the model (i.e., not well-represented in its pre-training data), the model may actually learn to hallucinate more by trying to mimic a level of knowledge it doesn't possess. This paper investigates what specific data sources and filtering strategies actually lead to the most factual downstream performance in long-form generation.
Methodology
The authors systematically manipulated two variables in the finetuning pipeline:
- Knowledge Source: They compared training on human-authored Gold Documents ($D_{gold}$) versus Model-Generated Documents ($D_{gen}$).
- Filtering Strategy: They compared an External Fact Verifier (using an entailment model to check claims against gold documents) versus Internal Knowledge Probes.
The "Internal Knowledge Probe" is the novel core of their Epistemic Training approach. Instead of checking a claim against an external database, they train a simple logistic regression classifier on the model's own hidden states to predict whether the model "believes" a claim is true. The final pipeline involves atomizing long-form text into individual claims, filtering them based on internal probe confidence, and reconstructing them into coherent training samples.
The study evaluates performance across three distinct long-form generation domains: Bios (biographies), Plots (book/movie summaries), and Medical (definitions).
Results and Analysis
The core finding is that familiarity trumps absolute truth. Training on model-generated data (which is inherently limited to what the model "knows") consistently outperformed training on 100% factual gold data. Internal probes proved to be better filters than external fact-checkers; even if a claim is technically true, if the model's internal states don't "believe" it, training on it is counterproductive.
Key empirical results include:
- Significant Factuality Gains: Epistemic Training (Generated + Internal Filter) improved factuality by 12–30 percentage points compared to training on gold data alone.
- Consistency Across Models: On the Bios dataset, Mistral-7B's factuality jumped from 29.6% to 76.6%, significantly beating the 54.9% from gold data. Similar trends were observed for Llama-2-7B and Gemma-7B.
- Generalization: Models trained to be factual in one domain (e.g., Biographies) showed improved factuality in others (e.g., Medical), suggesting the model learns a general "epistemic stance" — a better calibration of when to speak and when to stay silent.
Discussion and Limitations
While Epistemic Training significantly boosts factuality, it comes with a precision-recall trade-off. Models tend to produce shorter, more concise responses and have higher "abstention rates" (refusing to answer when unsure). Furthermore, this method is a calibration tool, not a knowledge-expansion tool; it cannot teach a model facts it doesn't already possess. Future work should explore ways to add new knowledge without triggering hallucinations and finding better ways to control the trade-off between being factual and being informative.
Summary updated