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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Xue, Boyang, Mi, Fei, Zhu, Qi, Wang, Hongru, Wang, Rui, Wang, Sheng, Yu, Erxin, Hu, Xuming, Wong, Kam-Fai
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913854052630528
author Xue, Boyang
Mi, Fei
Zhu, Qi
Wang, Hongru
Wang, Rui
Wang, Sheng
Yu, Erxin
Hu, Xuming
Wong, Kam-Fai
author_facet Xue, Boyang
Mi, Fei
Zhu, Qi
Wang, Hongru
Wang, Rui
Wang, Sheng
Yu, Erxin
Hu, Xuming
Wong, Kam-Fai
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_11803
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models
Xue, Boyang
Mi, Fei
Zhu, Qi
Wang, Hongru
Wang, Rui
Wang, Sheng
Yu, Erxin
Hu, Xuming
Wong, Kam-Fai
Computation and Language
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.
title UAlign: Leveraging Uncertainty Estimations for Factuality Alignment on Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2412.11803