arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04370cs.CLcs.AIcs.LG
收藏

通过黑盒访问的大语言模型置信度估计

Large Language Model Confidence Estimation via Black-Box Access

IBM Research Yorktown Heights(IBM研究院纽约高地分部);IBM Research(IBM研究院);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);Microsoft New York(微软纽约分公司)

Tejaswini Pedapati, Amit Dhurandhar, Soumya Ghosh, Soham Dan, Prasanna Sattigeri

AI总结:

本文提出一种基于黑盒访问和可解释逻辑回归的简单框架,通过设计新颖特征估计大语言模型响应置信度,在多个问答与摘要基准上超越基线,并发现置信度模型可跨 LLM 零样本泛化。

摘要:

估计模型响应中的不确定性或置信度,对于评估不仅是对响应的信任,而且是对整个模型的信任都具有重要意义。在本文中,我们探讨了在仅具备黑盒或查询访问权限的情况下,估计大语言模型(LLMs)响应置信度的问题。我们提出了一个简单且可扩展的框架,在该框架中,我们设计了新颖的特征,并在这些特征上训练一个(可解释的)模型(即逻辑回归)来估计置信度。我们通过实验证明,我们的简单框架能够有效估计 Flan-ul2、Llama-13b、Mistral-7b 和 GPT-4 在四个基准问答任务上的置信度,以及 Pegasus-large 和 BART-large 在两个基准摘要任务上的置信度,并且在某些情况下其性能超过基线达 10% 以上(以 AUROC 衡量)。此外,我们的可解释方法提供了对能够预测置信度的特征的洞察,从而带来一个有趣且有用的发现:我们为某个 LLM 构建的置信度模型在给定数据集上能够零样本泛化到其他 LLM。

英文摘要:

Estimating uncertainty or confidence in the responses of a model can be significant in evaluating trust not only in the responses, but also in the model as a whole. In this paper, we explore the problem of estimating confidence for responses of large language models (LLMs) with simply black-box or query access to them. We propose a simple and extensible framework where, we engineer novel features and train a (interpretable) model (viz. logistic regression) on these features to estimate the confidence. We empirically demonstrate that our simple framework is effective in estimating confidence of Flan-ul2, Llama-13b, Mistral-7b and GPT-4 on four benchmark Q\&A tasks as well as of Pegasus-large and BART-large on two benchmark summarization tasks with it surpassing baselines by even over $10\%$ (on AUROC) in some cases. Additionally, our interpretable approach provides insight into features that are predictive of confidence, leading to the interesting and useful discovery that our confidence models built for one LLM generalize zero-shot across others on a given dataset.

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

↑