UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models

Boyang Xue, Fei Mi, Qi Zhu, Hongru Wang, Rui Wang +4 more
12/16/2024
cs.CL

No official code found. Best implementation: AmourWaltz/UAlign (16 stars, last commit 2025-03-25).

Abstract

Despite demonstrating impressive capabilities, Large Language Models (LLMs) still often struggle to accurately express the factual knowledge they possess, especially in cases where the LLMs' knowledge boundaries are ambiguous. To improve LLMs' factual expressions, we propose the UAlign framework, which leverages Uncertainty estimations to represent knowledge boundaries, and then explicitly incorporates these representations as input features into prompts for LLMs to Align with factual knowledge. First, we prepare the dataset on knowledge question-answering (QA) samples by calculating two uncertainty estimations, including confidence score and semantic entropy, to represent the knowledge boundaries for LLMs. Subsequently, using the prepared dataset, we train a reward model that incorporates uncertainty estimations and then employ the Proximal Policy Optimization (PPO) algorithm for factuality alignment on LLMs. Experimental results indicate that, by integrating uncertainty representations in LLM alignment, the proposed UAlign can significantly enhance the LLMs' capacities to confidently answer known questions and refuse unknown questions on both in-domain and out-of-domain tasks, showing reliability improvements and good generalizability over various prompt- and training-based baselines.

View on arXivView PDF

Code Implementations(1)

AmourWaltz/UAlignCommunity100%

Project of ACL 2025 "UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models"

160Python, Jupyter NotebookNov 20, 20241 years ago

Similar Papers

Cite this paper

@article{xue2024ualign,
  title  = {UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models},
  author = {Boyang Xue and Fei Mi and Qi Zhu and Hongru Wang and Rui Wang and Sheng Wang and Erxin Yu and Xuming Hu and Kam-Fai Wong},
  year   = {2024},
  eprint = {2412.11803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11803v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.11803.svg)](https://codeofpaper.com/paper/2412.11803)

Discussion