用事实正确性标签优化大模型,显著减少幻觉。
Reducing Hallucinations in LLMs via Factuality-Aware Preference Learning
- 在DPO基础上加入事实性标签,修正错误偏好对。
- 在Qwen3-8B上使幻觉率降低5倍,事实性提升50%。
- 无需额外奖励模型,适合所有开源大模型使用。
偏好对齐方法如RLHF和直接偏好优化(DPO)虽能提升指令遵循能力,但可能因奖励流畅性和自信度而加剧幻觉。本文提出F-DPO(事实性感知的直接偏好优化),仅使用二值事实性标签进行改进:(i) 对偏好对进行标签翻转,确保优选回应的事实性不低于次选;(ii) 引入事实性感知边界,强化事实差异明显的样本,当两者事实性相同时退化为标准DPO。通过在DPO对中添加二值事实性标注及合成幻觉样本构建事实性感知偏好数据。在7个开源大模型(1B-14B)上,F-DPO一致提升事实性并降低幻觉率。以Qwen3-8B为例,幻觉率从0.424降至0.084(降低5倍),事实性得分从5.26升至7.90(提升50%)。在分布外评测集TruthfulQA上,Qwen2.5-14B的MC1准确率提升17%(0.500→0.585),MC2准确率提升49%(0.357→0.531)。F-DPO无需辅助奖励模型、词级别标注或多阶段训练。
原文摘要 · Abstract (English)
Preference alignment methods such as RLHF and Direct Preference Optimization (DPO) improve instruction following, but they can also reinforce hallucinations when preference judgments reward fluency and confidence over factual correctness. We introduce F-DPO (Factuality-aware Direct Preference Optimization), a simple extension of DPO that uses only binary factuality labels. F-DPO (i) applies a label-flipping transformation that corrects misordered preference pairs so the chosen response is never less factual than the rejected one, and (ii) adds a factuality-aware margin that emphasizes pairs with clear correctness differences, while reducing to standard DPO when both responses share the same factuality. We construct factuality-aware preference data by augmenting DPO pairs with binary factuality indicators and synthetic hallucinated variants. Across seven open-weight LLMs (1B-14B), F-DPO consistently improves factuality and reduces hallucination rates relative to both base models and standard DPO. On Qwen3-8B, F-DPO reduces hallucination rates by 5x(from 0.424 to 0.084) while improving factuality scores by 50% (from 5.26 to 7.90). F-DPO also generalizes to out-of-distribution benchmarks: on TruthfulQA, Qwen2.5-14B achieves +17% MC1 accuracy (0.500 to 0.585) and +49% MC2 accuracy (0.357 to 0.531). F-DPO requires no auxiliary reward model, token-level annotations, or multi-stage training.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。