TL;DR
Large Language Models (LLMs) often "hallucinate" by letting their internal pre-trained knowledge override the specific context they are given. SCOPE (Self-supervised COntext Preference) is a new framework that automatically generates unfaithful text samples and uses preference-based training to teach models to prioritize grounded, faithful generation over "leaked" internal knowledge.
What Problem Does This Paper Address?
When we use LLMs for tasks like summarization or converting data tables to text, we need them to be faithful. This means the output should only contain information present in the input context.
However, LLMs suffer from "knowledge leakage." Because they were trained on massive amounts of internet text, they have strong statistical biases. For example, if a medical table says a patient was given "antibiotics," a model might specify "amoxicillin" because it's a common pattern in its training data. While factually plausible in the real world, this is unfaithful to the specific source document.
Existing solutions often rely on expensive human annotations or external tools (like NER or QA models) that don't scale well. The authors of this paper sought a self-supervised way to force LLMs to ignore their internal "gut feelings" and stick strictly to the provided data.
Methods
The authors introduce SCOPE, a two-stage framework that leverages Direct Preference Optimization (DPO) without needing human-labeled preference pairs.
- Initial Fine-Tuning: The model is first fine-tuned (SFT) on a subset of the target data to establish a baseline for the task.
- Noisy Data Generation: This is the "secret sauce." To create a "dispreferred" (unfaithful) sample, the authors use a novel decoding method. At each token step, they flip a coin (parameterized by $\alpha$).
- Most of the time, they sample from the fine-tuned model (which sees the context).
- Occasionally, they sample from the base pre-trained model, which is not given the context.
- This forces the model to leak its internal knowledge into an otherwise fluent sentence, creating a realistic hallucination.
- Preference Tuning: The model is then trained using a preference loss. It is shown the original reference text (the "preferred" label) and the noisy, hallucinated version (the "dispreferred" label). The model learns to maximize the likelihood of the grounded text while penalizing the unfaithful patterns.
Datasets
The researchers evaluated SCOPE across six diverse datasets spanning two major tasks:
- Data-to-Text:
- ToTTo: Wikipedia tables to sentences.
- WebNLG 2020: Knowledge graphs to text.
- E2E: Restaurant attributes to descriptions.
- FeTaQA: Table-based question answering.
- Summarization:
- XSum: Highly abstractive BBC news summaries.
- SAMSum: Messenger conversation summaries.
- PubMed: Medical scientific article conclusions.
Key Insights and Ideas
- The "Goldilocks" Zone of Noise: The parameter $\alpha$ (the probability of using the context-free model) is critical. If $\alpha$ is too low, the negative sample is too similar to the truth, and the model learns nothing. If it's too high, the negative sample is gibberish. The authors found a "sweet spot" (typically between 0.4 and 0.6) where the hallucinations are realistic enough to provide a strong learning signal.
- Faithfulness vs. Fluency: Traditional metrics like BLEU or ROUGE often fail to catch unfaithfulness because a hallucinated sentence can be very fluent and use many of the right words. SCOPE specifically targets the grounding of the information rather than just the surface-level similarity to a reference.
- Self-Correction via Contrast: By explicitly showing the model what a "leak" looks like (the noisy sample) versus what "staying on script" looks like (the reference), the model develops a better internal mechanism for context-grounding.
Key Results
SCOPE consistently outperformed standard fine-tuning and several state-of-the-art baselines (like CLIFF and CAD) across almost all metrics.
- Automatic Metrics: On the ToTTo dataset, SCOPE improved the NLI Score (a measure of logical entailment) by up to 5.5 points and the PARENT score (a data-to-text faithfulness metric) by 8.2 points over standard fine-tuning, depending on the base model used.
- LLM Evaluation: Using GPT-4 as a judge, SCOPE-generated text had a significantly higher win rate. In the XSum summarization task, SCOPE achieved a 61% win rate against standard fine-tuning.
- Human Evaluation: Human judges preferred SCOPE's outputs twice as often as the baseline on the ToTTo dataset, specifically citing its ability to avoid adding unsupported information.
Limitations and Future Work
- Model Scale: The study primarily focused on 7B and 13B parameter models (Llama-2 and Mistral) due to hardware constraints. It remains to be seen if the same "leakage" dynamics apply to much larger models (e.g., 70B+).
- Metric Trade-offs: In some cases, SCOPE led to a slight decrease in BLEU/ROUGE scores. The authors argue this is actually a positive sign, as it indicates the model is deviating from "fluent but ungrounded" patterns found in some reference datasets.
- Task Complexity: While effective on structured data and news, future work could explore even more complex reasoning tasks where the boundary between "internal knowledge" and "contextual inference" is blurrier.
Summary updated