arXiv:2502.14427cs.CL2025-02NAACL被引 22

用词级密度方法提升大模型回答可信度的不确定性评估

Token-Level Density-Based Uncertainty Quantification Methods for Eliciting Truthfulness of Large Language Models

  • 基于多层嵌入计算词元马氏距离,结合线性回归生成置信度分数
  • 在11个数据集上显著优于现有方法,序列与断言级任务均表现优异
  • 对域外数据泛化能力强,适合各类大模型应用

不确定性量化(UQ)是激发大语言模型(LLM)生成可信回答的重要方法。当前文本生成中的主流方法为信息论与一致性方法,而基于密度的方法虽在编码器模型的分类任务中表现良好,却在生成式LLM中效果不佳。本文将马氏距离(MD)这一经典分类任务中的UQ技术适配至文本生成场景,提出一种新的监督式UQ方法。该方法从LLM多个层次提取词元嵌入,计算每个词元的MD得分,并利用这些特征训练线性回归模型以生成稳健的不确定性评分。在11个数据集上的大量实验表明,该方法显著优于现有方法,在序列级选择性生成和断言级事实核查任务中均提供准确且计算高效的不确定性评分。同时,该方法在域外数据上表现出强泛化能力,适用于广泛的LLM应用场景。

原文摘要 · Abstract (English)

Uncertainty quantification (UQ) is a prominent approach for eliciting truthful answers from large language models (LLMs). To date, information-based and consistency-based UQ have been the dominant UQ methods for text generation via LLMs. Density-based methods, despite being very effective for UQ in text classification with encoder-based models, have not been very successful with generative LLMs. In this work, we adapt Mahalanobis Distance (MD) - a well-established UQ technique in classification tasks - for text generation and introduce a new supervised UQ method. Our method extracts token embeddings from multiple layers of LLMs, computes MD scores for each token, and uses linear regression trained on these features to provide robust uncertainty scores. Through extensive experiments on eleven datasets, we demonstrate that our approach substantially improves over existing UQ methods, providing accurate and computationally efficient uncertainty scores for both sequence-level selective generation and claim-level fact-checking tasks. Our method also exhibits strong generalization to out-of-domain data, making it suitable for a wide range of LLM-based applications.

不确定性量化大模型可信度词元级分析

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