[Paper Review] Teaching Language Models to Hallucinate Less with Synthetic Tasks
This paper proposes SynTra, a method that reduces hallucination in large language models (LLMs) by optimizing the system message via prefix-tuning on a synthetic retrieval task where hallucinations are easily detectable. The approach transfers the optimized system message to real-world abstractive summarization tasks, reducing hallucination by over 7 points on average and up to 16 points on specific tasks, while fine-tuning the full model can worsen hallucination.
Large language models (LLMs) frequently hallucinate on abstractive summarization tasks such as document-based question-answering, meeting summarization, and clinical report generation, even though all necessary information is included in context. However, optimizing LLMs to hallucinate less on these tasks is challenging, as hallucination is hard to efficiently evaluate at each optimization step. In this work, we show that reducing hallucination on a synthetic task can also reduce hallucination on real-world downstream tasks. Our method, SynTra, first designs a synthetic task where hallucinations are easy to elicit and measure. It next optimizes the LLM's system message via prefix-tuning on the synthetic task, and finally transfers the system message to realistic, hard-to-optimize tasks. Across three realistic abstractive summarization tasks, SynTra reduces hallucination for two 13B-parameter LLMs using only a synthetic retrieval task for supervision. We also find that optimizing the system message rather than the model weights can be critical; fine-tuning the entire model on the synthetic task can counterintuitively increase hallucination. Overall, SynTra demonstrates that the extra flexibility of working with synthetic data can help mitigate undesired behaviors in practice.
Motivation & Objective
- To address the challenge of reducing hallucination in LLMs on real-world abstractive summarization tasks, where direct optimization is infeasible due to costly hallucination evaluation.
- To develop a scalable method that enables efficient training against hallucination by using synthetic tasks with tractable hallucination detection.
- To investigate whether optimizing the system message rather than the model weights can lead to better generalization and reduced hallucination on downstream tasks.
- To evaluate whether transferring a system message optimized on synthetic data improves performance on realistic tasks like clinical report generation and meeting summarization.
Proposed method
- Design a synthetic retrieval task where LLMs must retrieve names from a list that start with a given letter, with hallucinations defined as generating names not present in the list.
- Optimize the LLM’s system message via prefix-tuning by appending a continuous postfix to the system prompt, enabling gradient-based optimization of high-level instructions.
- Train the system message to minimize hallucinations on the synthetic task while preserving consistent outputs on reference prompts to avoid spurious learning.
- Transfer the optimized system message to real-world abstractive summarization tasks without further fine-tuning the model weights.
- Use GPT-4 as a hallucination evaluator to measure hallucination rates on real tasks, comparing SynTra to baseline fine-tuning and original models.
- Apply a consistency regularization loss to ensure the model does not learn spurious patterns tied to the synthetic task’s structure.
Experimental results
Research questions
- RQ1Can optimizing a system message on a synthetic task that induces and measures hallucinations reduce hallucination on real-world abstractive summarization tasks?
- RQ2Does optimizing the system message via prefix-tuning transfer better than fine-tuning the full model weights on the synthetic task?
- RQ3Is the synthetic task design effective in eliciting and measuring hallucinations in a way that generalizes to real-world tasks?
- RQ4How does the hallucination rate change across different real-world tasks after applying SynTra, and does it vary by model architecture?
Key findings
- SynTra reduced the hallucination rate by over 7 points on average across three real-world abstractive summarization tasks when applied to Orca, a 13B-parameter LLM.
- On specific tasks, SynTra reduced hallucination by up to 16 points, demonstrating strong performance gains in challenging settings.
- Fine-tuning the entire model on the synthetic task increased hallucination, indicating that full fine-tuning can be counterproductive for reducing hallucination.
- The optimized system message led to outputs that overlapped more with reference summaries and contained fewer ungrounded entities, confirming improved factual consistency.
- Optimizing the system message rather than the model weights proved critical, as it enabled better generalization and reduced hallucination across diverse downstream tasks.
- The method demonstrated consistent improvements across two 13B-parameter LLMs—Vicuna v1.1 and Orca—on search-and-retrieve, meeting summarization, and clinical report generation tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.