Skip to main content
QUICK REVIEW

[论文解读] FLAME: Factuality-Aware Alignment for Large Language Models

Sheng-Chieh Lin, Luyu Gao|arXiv (Cornell University)|May 2, 2024
Topic ModelingComputer Science被引用 3
一句话总结

本文提出 FLAME(事实感知对齐方法,Factuality-Aware Alignment for Large Language Models),一种通过识别基于事实的指令并应用事实感知监督微调(SFT)与直接偏好优化(DPO)来提升大语言模型事实一致性的方法。通过利用模型自身知识生成 SFT 数据,并在 DPO 中构建聚焦事实性的偏好对,FLAME 在不损失指令遵循能力的前提下,将事实准确性提升了 5.6 个 FActScore 点。

ABSTRACT

Alignment is a standard procedure to fine-tune pre-trained large language models (LLMs) to follow natural language instructions and serve as helpful AI assistants. We have observed, however, that the conventional alignment process fails to enhance the factual accuracy of LLMs, and often leads to the generation of more false facts (i.e. hallucination). In this paper, we study how to make the LLM alignment process more factual, by first identifying factors that lead to hallucination in both alignment steps:\ supervised fine-tuning (SFT) and reinforcement learning (RL). In particular, we find that training the LLM on new knowledge or unfamiliar texts can encourage hallucination. This makes SFT less factual as it trains on human labeled data that may be novel to the LLM. Furthermore, reward functions used in standard RL can also encourage hallucination, because it guides the LLM to provide more helpful responses on a diverse set of instructions, often preferring longer and more detailed responses. Based on these observations, we propose factuality-aware alignment, comprised of factuality-aware SFT and factuality-aware RL through direct preference optimization. Experiments show that our proposed factuality-aware alignment guides LLMs to output more factual responses while maintaining instruction-following capability.

研究动机与目标

  • 探究为何标准对齐方法(SFT 与强化学习)会增加大语言模型中的幻觉现象。
  • 识别出在人类标注回复中对不熟悉或新知识进行微调会引发 SFT 阶段的幻觉。
  • 分析标准强化学习奖励函数为何倾向于生成更长、更详细的回复,从而加剧幻觉。
  • 开发一种在不损害指令遵循能力的前提下提升事实一致性的方法。
  • 设计一种事实感知对齐框架,针对基于事实的指令选择性增强事实生成能力。

提出的方法

  • 使用分类头识别需要事实性回复的基于事实的指令。
  • 对于基于事实的指令,使用大语言模型自身知识生成 SFT 训练数据,而非依赖人类标注回复,以避免引入未知事实。
  • 在 DPO 训练期间,为基于事实的指令构建额外的聚焦事实性的偏好对。
  • 在单一 DPO 优化循环中,将标准指令遵循偏好对与事实性聚焦偏好对相结合。
  • 使用优先关注正确性而非长度或细节的事实性奖励模型,尤其针对罕见或未知实体。
  • 在 Llama-2 与 Llama-3 模型上端到端应用该方法,使用 Alpaca Eval 与 Biography 基准进行评估。

实验结果

研究问题

  • RQ1为何使用人类标注回复的标准 SFT 会增加大语言模型中的幻觉?
  • RQ2标准强化学习奖励函数如何导致大语言模型中幻觉现象加剧?
  • RQ3在模型自身生成结果上进行微调能否提升事实一致性?
  • RQ4事实感知对齐是否能在减少幻觉的同时保持指令遵循性能?
  • RQ5在对齐过程中区分基于事实与非基于事实指令的影响是什么?

主要发现

  • 在 Biography 基准上,FLAME 相较于标准 SFT + DPO 方法,事实生成能力提升 5.6 个 FActScore 点。
  • 事实感知 DPO 组件在不减少基于事实指令回复长度的前提下,有效降低了幻觉现象。
  • 使用 FLAME 训练的模型生成的错误事实更少,尤其在罕见实体传记任务中表现更优,同时保持了良好的帮助性。
  • 消融实验表明,识别基于事实的指令对实现有效事实对齐至关重要。
  • 该方法通过偏好简洁准确回复,显著减少了低知识场景(如罕见实体传记)下的虚假主张过度生成。
  • 该方法在 Alpaca Eval 上保持 51.2% 的胜率,表明指令遵循能力未出现退化。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。