arXiv:2412.11803cs.CL2024-12ACL被引 11

用不确定性估计提升大模型答对已知问题、拒答未知问题的能力

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

  • 通过置信度和语义熵量化知识边界,构建可注入提示的不确定性特征
  • 在域内与跨域任务中,显著提升模型对已知问题的自信回答和对未知问题的拒绝能力
  • 适用于需要高可靠性问答的场景,如医疗、法律等专业领域

尽管具备强大能力,大型语言模型(LLMs)在表达其掌握的事实知识时仍常出错,尤其在知识边界模糊的情况下。为改善这一问题,我们提出UAlign框架,利用不确定性估计来表征知识边界,并将这些表征作为输入特征显式融入提示,以引导模型对齐事实知识。首先,通过计算置信度分数和语义熵,构建包含知识边界信息的问答数据集;随后,训练一个融合不确定性估计的奖励模型,并采用近端策略优化(PPO)算法进行事实对齐。实验表明,通过在对齐过程中引入不确定性表示,UAlign显著提升了模型在域内与跨域任务中对已知问题的自信回答能力及对未知问题的拒绝能力,相比多种提示与训练基线展现出更强的可靠性与泛化性。

原文摘要 · Abstract (English)

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.

大模型对齐事实性不确定性估计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。