Introduction
Alignment is the critical process of refining a raw, pre-trained Large Language Model (LLM) to follow instructions and act as a helpful assistant. This typically involves two primary stages: Supervised Fine-Tuning (SFT) on high-quality examples and Reinforcement Learning from Human Feedback (RLHF) to align the model with human preferences. However, recent research identifies a significant "factuality gap" in these standard procedures, where the alignment process inadvertently encourages models to hallucinate. This paper introduces FLAME (Factuality-Aware Alignment), a framework designed to mitigate hallucinations by training models on their internal knowledge and utilizing a dedicated factuality reward model during preference optimization.
The Factuality Gap in Standard Alignment
The authors identify two main drivers behind the decrease in truthfulness during standard alignment:
- The Knowledge Mismatch: During SFT, models are often trained on human-labeled data containing facts the model never encountered during pre-training. This "forces" the model to generate information it does not actually possess, effectively training it to hallucinate.
- The Length Bias: Standard RL reward functions tend to prefer longer, more detailed responses. Because longer responses contain a higher volume of factual claims, they provide more opportunities for the model to include a "false fact," yet they are still rewarded for their verbosity.
The FLAME Framework
FLAME is a two-stage alignment framework designed to prioritize truthfulness while maintaining the model's helpfulness.
1. Factuality-Aware SFT ($SFT^{\Delta}$)
To address the knowledge mismatch, FLAME introduces a specialized SFT stage:
- Classification: The model first determines whether an incoming instruction requires a factual response (e.g., "Give me a history of coffee") or a creative/non-factual one (e.g., "Write a story about a pig on the moon").
- Internal Knowledge Elicitation: For factual prompts, instead of relying on external human-written answers, FLAME uses the model’s own knowledge elicited via few-shot prompting. This ensures the model is fine-tuned only on information it already "knows," preventing the reinforcement of hallucinations.
2. Factuality-Aware DPO ($DPO^{\Delta}$)
In the second stage, the authors utilize Direct Preference Optimization (DPO) with a dual-reward system:
- Instruction Following Reward ($RM^{IF}$): A standard reward model ensures the model remains helpful and follows user instructions.
- Factuality Reward ($RM^{fact}$): A separate reward model uses a retrieval-augmented system to break responses into atomic claims and verify them against Wikipedia.
Preference pairs are selected to ensure the model prefers the more factual response, provided the helpfulness scores are relatively similar.
Experimental Results
The researchers evaluated FLAME using Llama-2 70B across several diverse benchmarks, including Alpaca Eval (helpfulness), Biography (long-form factuality), and TruthfulQA (common misconceptions).
Key results include:
- Factuality Boost: On the Biography task, FLAME achieved a +5.6 point increase in FActScore compared to the standard SFT+DPO baseline.
- Maintaining Helpfulness: Despite the focus on factuality, FLAME maintained a 51.2% win rate on Alpaca Eval, demonstrating that it remains as helpful as models that hallucinate more frequently.
- Truthfulness: On TruthfulQA, FLAME showed marked improvements in BLEU and ROUGE scores, indicating more accurate and reliable answers.
Key Insights
- The "Self-Supervision" Paradox: Counter-intuitively, fine-tuning a model on its own correct generations is more effective for factuality than fine-tuning it on "better" external data that contains facts the model hasn't learned yet.
- Mitigating Length Bias: While standard RLHF models are often incentivized to be verbose, FLAME produces responses that are detailed but slightly more concise when the model is unsure, leading to a higher "fact-per-sentence" ratio.
- Task-Specific Alignment: By separating factual prompts from creative ones at the start of the pipeline, FLAME applies different training pressures where they are most relevant.
Limitations and Future Work
While FLAME significantly improves factuality, the authors note several areas for future research. The study focused primarily on instruction following and factuality; real-world alignment must balance additional skills such as safety, reasoning, and coding. Furthermore, the current binary split (factual vs. non-factual) could be refined into more granular reward modeling. Finally, the computational cost of the retrieval-augmented $RM^{fact}$ remains a challenge for scaling to massive datasets.
Summary updated