arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.10236cs.SEcs.AIcs.CL
收藏

三思而后行:大型语言模型不确定性测量的探索性研究

Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Models

The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学);The University of Sydney(悉尼大学);New York University(纽约大学)

Yuheng Huang, Jiayang Song, Zhijie Wang, Shengming Zhao, Huaming Chen, Felix Juefei-Xu, Lei Ma

AI总结:

本文通过在四类NLP任务及两个代码生成数据集上评估十二种不确定性估计方法与四个LLM,验证不确定性可揭示错误、非事实性输出及缺陷程序。

摘要:

大型语言模型(LLM)近期的性能飞跃为众多工业应用和领域带来了新机遇。然而,LLM产生的错误输出,例如错误预测、错误信息和幻觉,也引发了人们对LLM可信度的严重担忧,尤其是在对安全、保障和可靠性敏感的场景中,这可能会阻碍其在现实世界中的采用。尽管不确定性估计已展现出解释通用机器学习(ML)模型所产生预测风险的潜力,但对于它是否以及在多大程度上能够帮助探索LLM的能力并抵消其不良行为,人们仍知之甚少。为弥合这一差距,本文从不确定性的视角启动了一项关于LLM风险评估的探索性研究。具体而言,我们在四个重要的自然语言处理(NLP)任务上,对十二种不确定性估计方法和四个LLM进行实验,以研究不确定性估计技术在多大程度上能够帮助刻画LLM的预测风险。研究结果验证了不确定性估计在揭示LLM不确定或非事实性预测方面的有效性。除通用NLP任务外,我们还在两个数据集上针对四个LLM的代码生成开展了大量实验。我们发现,不确定性估计有可能发现LLM生成的有缺陷程序。本研究的洞见为未来可靠LLM的设计与开发提供了启示,并推动进一步研究以增强LLM的可信度。

英文摘要:

The recent performance leap of Large Language Models (LLMs) opens up new opportunities across numerous industrial applications and domains. However, erroneous generations, such as false predictions, misinformation, and hallucination made by LLMs, have also raised severe concerns for the trustworthiness of LLMs', especially in safety-, security- and reliability-sensitive scenarios, potentially hindering real-world adoptions. While uncertainty estimation has shown its potential for interpreting the prediction risks made by general machine learning (ML) models, little is known about whether and to what extent it can help explore an LLM's capabilities and counteract its undesired behavior. To bridge the gap, in this paper, we initiate an exploratory study on the risk assessment of LLMs from the lens of uncertainty. In particular, we experiment with twelve uncertainty estimation methods and four LLMs on four prominent natural language processing (NLP) tasks to investigate to what extent uncertainty estimation techniques could help characterize the prediction risks of LLMs. Our findings validate the effectiveness of uncertainty estimation for revealing LLMs' uncertain/non-factual predictions. In addition to general NLP tasks, we extensively conduct experiments with four LLMs for code generation on two datasets. We find that uncertainty estimation can potentially uncover buggy programs generated by LLMs. Insights from our study shed light on future design and development for reliable LLMs, facilitating further research toward enhancing the trustworthiness of LLMs.

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

↑