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

大语言模型必须被教会知道它们不知道什么

Large Language Models Must Be Taught to Know What They Don't Know

New York University(纽约大学);Abacus AI;Cambridge University(剑桥大学);Columbia University(哥伦比亚大学)

Sanyam Kapoor, Nate Gruver, Manley Roberts, Katherine Collins, Arka Pal, Umang Bhatt, Adrian Weller, Samuel Dooley, Micah Goldblum, Andrew Gordon Wilson

AI总结:

本文证明仅靠提示不足以校准大语言模型的不确定性,提出用少量分级样本微调模型特征即可高效获得可靠且可泛化的不确定性估计,并验证其可跨模型通用及辅助人机协作。

摘要:

在高风险应用中使用大语言模型(LLMs)时,我们需要知道何时可以信任它们的预测。一些研究认为,对高性能LLMs进行提示就足以产生校准良好的不确定性,而另一些研究则引入了可能成本过高的采样方法。在这项工作中,我们首先论证仅靠提示本身不足以实现良好的校准,然后表明在一个由正确和错误答案组成的小型数据集上进行微调,可以创建具有良好泛化能力和较小计算开销的不确定性估计。我们表明,一千个分级示例就足以超越基线方法,并且当使用LoRA时,通过模型的特征进行训练对于获得良好性能是必要的,并且对于大型开源模型而言是可行的。我们还研究了实现可靠LLM不确定性估计的机制,发现许多模型可以用作通用不确定性估计器,不仅适用于它们自身的不确定性,也适用于其他模型的不确定性。最后,我们通过一项用户研究证明,不确定性估计可以在人机协作环境中为人类使用LLMs提供信息。

英文摘要:

When using large language models (LLMs) in high-stakes applications, we need to know when we can trust their predictions. Some works argue that prompting high-performance LLMs is sufficient to produce calibrated uncertainties, while others introduce sampling methods that can be prohibitively expensive. In this work, we first argue that prompting on its own is insufficient to achieve good calibration and then show that fine-tuning on a small dataset of correct and incorrect answers can create an uncertainty estimate with good generalization and small computational overhead. We show that a thousand graded examples are sufficient to outperform baseline methods and that training through the features of a model is necessary for good performance and tractable for large open-source models when using LoRA. We also investigate the mechanisms that enable reliable LLM uncertainty estimation, finding that many models can be used as general-purpose uncertainty estimators, applicable not just to their own uncertainties but also the uncertainty of other models. Lastly, we show that uncertainty estimates inform human use of LLMs in human-AI collaborative settings through a user study.

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

↑