arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.09684cs.CL
收藏

Inv-Entropy:语言模型中不确定性量化的全概率框架

Inv-Entropy: A Fully Probabilistic Framework for Uncertainty Quantification in Language Models

University of Michigan(密歇根大学);University of Minnesota(明尼苏达大学);Northwestern University(西北大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Haoyi Song, Ruihan Ji, Naichen Shi, Fan Lai, Raed Al Kontar

AI总结:

本文提出全概率框架Inv-Entropy,通过逆向模型和双随机游走量化LLM不确定性,并引入遗传算法扰动GAAP及TSU评估指标,实验表明其优于现有语义UQ方法。

摘要:

大型语言模型(LLMs)已经变革了自然语言处理,但其可靠部署需要有效的不确定性量化(UQ)。现有的UQ方法通常是启发式的,缺乏概率解释。本文首先为扰动在LLM的UQ中的作用提供了理论论证。随后,我们引入双随机游走视角,将输入-输出对建模为两条马尔可夫链,其转移概率由语义相似度定义。在此基础上,我们提出一个基于逆向模型的全概率框架,通过系统扰动评估以给定输出为条件的输入空间多样性,从而量化不确定性。在该框架内,我们定义了一种新的不确定性度量Inv-Entropy。该框架的一个关键优势是其灵活性:它支持对不确定性度量、嵌入、扰动策略和相似度度量的多种定义。我们还提出了GAAP,一种基于遗传算法的扰动算法,可增强采样输入的多样性。此外,我们引入了一种新的评估指标——不确定性温度敏感性(TSU),它直接评估不确定性,而不依赖正确性作为代理。大量实验表明,Inv-Entropy优于现有的语义UQ方法。复现结果的代码可在https://github.com/UMDataScienceLab/Uncertainty-Quantification-for-LLMs找到。

英文摘要:

Large language models (LLMs) have transformed natural language processing, but their reliable deployment requires effective uncertainty quantification (UQ). Existing UQ methods are often heuristic and lack a probabilistic interpretation. This paper begins by providing a theoretical justification for the role of perturbations in UQ for LLMs. We then introduce a dual random walk perspective, modeling input-output pairs as two Markov chains with transition probabilities defined by semantic similarity. Building on this, we propose a fully probabilistic framework based on an inverse model, which quantifies uncertainty by evaluating the diversity of the input space conditioned on a given output through systematic perturbations. Within this framework, we define a new uncertainty measure, Inv-Entropy. A key strength of our framework is its flexibility: it supports various definitions of uncertainty measures, embeddings, perturbation strategies, and similarity metrics. We also propose GAAP, a perturbation algorithm based on genetic algorithms, which enhances the diversity of sampled inputs. In addition, we introduce a new evaluation metric, Temperature Sensitivity of Uncertainty (TSU), which directly assesses uncertainty without relying on correctness as a proxy. Extensive experiments demonstrate that Inv-Entropy outperforms existing semantic UQ methods. The code to reproduce the results can be found at https://github.com/UMDataScienceLab/Uncertainty-Quantification-for-LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑