TL;DR
Large Language Models (LLMs) often hallucinate because they prioritize their internal "memory" over provided context, especially when the two conflict. This paper introduces Copy-Paste, a generation paradigm that encourages models to directly quote contextual fragments, and CopyPasteLLM, a model that achieves state-of-the-art contextual faithfulness using 50x less training data than existing baselines.
The Challenge of Knowledge Conflicts in RAG
Retrieval-Augmented Generation (RAG) is the standard method for grounding LLMs in external facts. However, LLMs frequently suffer from knowledge conflicts: if a retrieved document presents a counterfactual or updated fact that contradicts the model's pre-trained weights, the model often ignores the context, leading to hallucinations.
The authors identify a crucial trend on the RAGTruth benchmark: there is an inverse correlation between how much a model "copies" from the context and how often it hallucinates. Most current RAG research focuses on abstractive generation (paraphrasing), but this secondary processing is exactly where hallucinations creep in. The challenge is to make models "trust" the context enough to use it directly without losing fluency.
Methods: The Copy-Paste Framework
The researchers propose a two-stage framework to internalize "contextual trust" and mitigate hallucinations.
1. Copy-Paste Prompting
To generate high-copying training data, the authors developed three distinct prompting strategies:
- CP-Order (Hard Constraint): A strict regime that extracts relevant sentences directly from the context and reorders them to form an answer.
- CP-Link (Hard Constraint): Similar to CP-Order, but allows the model to generate short transition phrases (discourse glue) to link the extracted sentences and maintain flow.
- CP-Refine (Soft Constraint): A "writer-reviewer" loop where the model iteratively improves its response to maximize a specific "copying score" while maintaining relevance and faithfulness.
2. CopyPasteLLM via Preference Training
Using the high-copying responses generated in the first stage as "preferred" examples, the authors trained a model using Direct Preference Optimization (DPO).
A key innovation in this pipeline is Answer Stamping, where the correct answer is appended to the reasoning trace to force the model to commit to a faithful conclusion. To understand the model's internal mechanics, the authors also introduce Context-Parameter Copying Capturing (CPCC), an interpretability algorithm that probes the model's internal states at each token to determine its reliance on external context versus internal parametric knowledge.
Key Insights
- Lexical Anchoring as a Safety Rail: Direct quoting acts as a "semantic anchor." By forcing the model to use exact tokens from the context, the transformer's induction heads are mechanically guided to stay on track, suppressing pathways that lead to internal knowledge leaks.
- Suppression vs. Enhancement: CPCC analysis reveals that CopyPasteLLM doesn't necessarily "learn more" about the context. Instead, it learns to recalibrate its confidence, effectively suppressing its internal biases when external context is present.
- Extreme Data Efficiency: While typical fine-tuning for faithfulness requires tens of thousands of samples, CopyPasteLLM achieved its best results with just 365 training samples (1/50th of baseline data). This suggests that "faithfulness" is a behavioral mode that can be unlocked rather than a massive body of knowledge requiring extensive memorization.
Evaluation and Results
The approach was evaluated across diverse benchmarks including RAGTruth, FaithEval (counterfactuals), PubMedQA (biomedical), and ConFiQA (multi-hop reasoning).
- Massive Accuracy Gains: On the FaithEval counterfactual subset, CopyPasteLLM improved accuracy by 12.2% to 24.5% over the strongest baselines.
- Outperforming Giants: Based on 7B/8B architectures, CopyPasteLLM achieved a peak accuracy of 92.8% on FaithEval, remarkably outperforming the reported performance of GPT-4o (47.5%) on the same challenging subset.
- Maintained Fluency: Despite the strict "copy-paste" constraints, the model maintained high fluency scores, proving that quoting does not inherently result in robotic or disjointed text.
Limitations and Future Work
While highly effective, the framework assumes the provided context actually contains the answer. If the context is incomplete, the drive to "copy-paste" might lead to awkward or forced results. Future work should incorporate uncertainty quantification, allowing the model to abstain when context is insufficient. Additionally, the authors propose extending this paradigm to multimodal tasks, such as vision-language models in medical imaging, where models might favor common patterns over specific visual evidence.
Summary updated