Self-Alignment for Factuality: Mitigating Hallucinations in LLMs via Self-Evaluation
Xiaoying Zhang, Baolin Peng, Ye Tian, Jingyan Zhou, Lifeng Jin, Linfeng Song, Haitao Mi, Helen Meng
TL;DR
This work introduces Self-Alignment for Factuality, a framework that uses an LLM's own self-evaluation (Self-Eval) to generate internal factuality signals, augmented by SK-Tuning to improve confidence estimation and calibration, and fine-tuned with Direct Preference Optimization (DPO). By generating candidate responses, evaluating their factuality with internal knowledge, and training on self-annotated preference data, the approach significantly reduces hallucinations on knowledge-intensive tasks. Across TruthfulQA and BioGEN benchmarks, the method yields substantial gains in factual accuracy for Llama-family models, outperforming representation-editing and consistency-based baselines. The results demonstrate the value of enabling LLMs to self-assess and refine their knowledge conveyance, with implications for deploying factually reliable systems in high-stakes domains and potential integration with decoding-based strategies and larger models.
Abstract
Despite showing increasingly human-like abilities, large language models (LLMs) often struggle with factual inaccuracies, i.e. "hallucinations", even when they hold relevant knowledge. To address these hallucinations, current approaches typically necessitate high-quality human factuality annotations. In this work, we explore Self-Alignment for Factuality, where we leverage the self-evaluation capability of an LLM to provide training signals that steer the model towards factuality. Specifically, we incorporate Self-Eval, a self-evaluation component, to prompt an LLM to validate the factuality of its own generated responses solely based on its internal knowledge. Additionally, we design Self-Knowledge Tuning (SK-Tuning) to augment the LLM's self-evaluation ability by improving the model's confidence estimation and calibration. We then utilize these self-annotated responses to fine-tune the model via Direct Preference Optimization algorithm. We show that the proposed self-alignment approach substantially enhances factual accuracy over Llama family models across three key knowledge-intensive tasks on TruthfulQA and BioGEN.
