Skip to main content
QUICK REVIEW

[Paper Review] FLAME: Factuality-Aware Alignment for Large Language Models

Sheng-Chieh Lin, Luyu Gao|arXiv (Cornell University)|May 2, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes FLAME (Factuality-Aware Alignment for Large Language Models), a method that improves factual consistency in LLMs by identifying fact-based instructions and applying factuality-aware supervised fine-tuning (SFT) and direct preference optimization (DPO). By using the model's own knowledge for SFT data and creating factuality-focused preference pairs in DPO, FLAME boosts factual accuracy by 5.6 FActScore points without sacrificing instruction-following capability.

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.

Motivation & Objective

  • To investigate why standard alignment procedures (SFT and RL) increase hallucination in LLMs.
  • To identify that fine-tuning on unfamiliar or novel knowledge in human-annotated responses promotes hallucination during SFT.
  • To analyze how standard reward functions in RL favor longer, more detailed responses, increasing hallucination.
  • To develop a method that improves factual consistency without compromising instruction-following ability.
  • To design a factuality-aware alignment framework that selectively enhances factual generation for fact-based instructions.

Proposed method

  • Identify fact-based instructions requiring factual responses using a classification head.
  • For fact-based instructions, generate SFT training data using the LLM’s own knowledge instead of human-annotated responses to avoid introducing unknown facts.
  • Construct additional preference pairs focused on factuality for fact-based instructions during DPO training.
  • Combine standard instruction-following preference pairs with factuality-focused pairs in a single DPO optimization loop.
  • Use a factuality reward model that prioritizes correctness over length or detail, especially for rare or unknown entities.
  • Apply the method end-to-end on Llama-2 and Llama-3 models using Alpaca Eval and Biography benchmarks.

Experimental results

Research questions

  • RQ1Why does standard SFT with human-annotated responses increase hallucination in LLMs?
  • RQ2How do standard RL reward functions contribute to increased hallucination in LLMs?
  • RQ3Can fine-tuning on the model’s own generations improve factual consistency?
  • RQ4Does factuality-aware alignment preserve instruction-following performance while reducing hallucinations?
  • RQ5What is the impact of distinguishing fact-based from non-fact-based instructions in alignment?

Key findings

  • FLAME improves factual generation by 5.6 FActScore points over standard SFT + DPO on the Biography benchmark.
  • The factuality-aware DPO component reduces hallucination without decreasing response length for fact-based instructions.
  • Models trained with FLAME generate fewer erroneous facts, especially for rare entity biographies, while maintaining helpfulness.
  • Ablation studies confirm that identifying fact-based instructions is critical for effective factuality alignment.
  • The method reduces over-generation of false claims in low-knowledge scenarios, such as rare entity biographies, by favoring concise, accurate responses.
  • The approach maintains a 51.2% win rate on Alpaca Eval, indicating no degradation in instruction-following capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.