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

通过语义嵌入改进大语言模型的不确定性量化

Improving Uncertainty Quantification in Large Language Models via Semantic Embeddings

Australian National University(澳大利亚国立大学);Data61, CSIRO(澳大利亚联邦科学与工业研究组织Data61)

Yashvir S. Grewal, Edwin V. Bonilla, Thang D. Bui

AI总结:

针对大语言模型现有语义不确定性量化方法易高估不确定性的问题,提出基于语义嵌入的估计方法及摊销版本,在降低计算开销的同时实现更准确细致的量化。

摘要:

准确量化大语言模型(LLM)的不确定性对其可靠部署至关重要,尤其是在高风险应用中。当前衡量LLM语义不确定性的最优方法依赖于多个生成响应之间严格的双向蕴含标准,同时也依赖于序列似然。这些方法虽然有效,但由于对措辞的微小差异、额外的正确信息以及序列中不重要的词语较为敏感,往往会高估不确定性。我们提出了一种新方法,利用语义嵌入实现更平滑、更鲁棒的LLM语义不确定性估计。通过在不依赖序列似然的情况下捕捉语义相似性,我们的方法从本质上减少了答案中无关词语带来的偏差。此外,我们通过在联合概率模型中将语义显式建模为潜变量,引入了我们方法的摊销版本。这使得只需一次前向传播就能在嵌入空间中进行不确定性估计,与现有的多遍方法相比,显著降低了计算开销。在多个问答数据集和前沿LLM上的实验表明,我们基于嵌入的方法比传统方法能提供更准确、更细致的不确定性量化。

英文摘要:

Accurately quantifying uncertainty in large language models (LLMs) is crucial for their reliable deployment, especially in high-stakes applications. Current state-of-the-art methods for measuring semantic uncertainty in LLMs rely on strict bidirectional entailment criteria between multiple generated responses and also depend on sequence likelihoods. While effective, these approaches often overestimate uncertainty due to their sensitivity to minor wording differences, additional correct information, and non-important words in the sequence. We propose a novel approach that leverages semantic embeddings to achieve smoother and more robust estimation of semantic uncertainty in LLMs. By capturing semantic similarities without depending on sequence likelihoods, our method inherently reduces any biases introduced by irrelevant words in the answers. Furthermore, we introduce an amortised version of our approach by explicitly modelling semantics as latent variables in a joint probabilistic model. This allows for uncertainty estimation in the embedding space with a single forward pass, significantly reducing computational overhead compared to existing multi-pass methods. Experiments across multiple question-answering datasets and frontier LLMs demonstrate that our embedding-based methods provide more accurate and nuanced uncertainty quantification than traditional approaches.

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

↑