arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02509cs.CLcs.AI
收藏

SPUQ:面向大语言模型的基于扰动的不确定性量化

SPUQ: Perturbation-Based Uncertainty Quantification for Large Language Models

Intuit AI Research(Intuit人工智能研究院)

Xiang Gao, Jiaxin Zhang, Lalla Mouatadid, Kamalika Das

AI总结:

针对LLM高置信错误预测及认知不确定性研究不足的问题,提出SPUQ扰动采样与聚合方法,显著改善不确定性校准,ECE平均降低50%。

摘要:

近年来,大语言模型(LLM)凭借出色的文本生成能力而日益普及。然而,一个紧迫挑战是它们倾向于以高置信度作出错误预测,这凸显了在LLM中进行不确定性量化(UQ)的关键需求。以往工作主要关注处理偶然不确定性,而包括认知不确定性在内的完整不确定性谱系仍未得到充分研究。受这一空白驱动,我们提出一种新颖的UQ方法——sampling with perturbation for UQ(SPUQ,用于不确定性量化的扰动采样),旨在同时处理偶然不确定性和认知不确定性。该方法包括为LLM输入生成一组扰动、对每个扰动采样输出,并引入一个聚合模块,该模块将采样不确定性方法推广到文本生成任务。通过在多个数据集上的大量实验,我们研究了不同的扰动与聚合技术。结果表明,模型不确定性校准得到显著改善,期望校准误差(ECE)平均降低50%。研究结果表明,我们提出的UQ方法为提升LLM的可靠性和可信性迈出了有前景的一步。

英文摘要:

In recent years, large language models (LLMs) have become increasingly prevalent, offering remarkable text generation capabilities. However, a pressing challenge is their tendency to make confidently wrong predictions, highlighting the critical need for uncertainty quantification (UQ) in LLMs. While previous works have mainly focused on addressing aleatoric uncertainty, the full spectrum of uncertainties, including epistemic, remains inadequately explored. Motivated by this gap, we introduce a novel UQ method, sampling with perturbation for UQ (SPUQ), designed to tackle both aleatoric and epistemic uncertainties. The method entails generating a set of perturbations for LLM inputs, sampling outputs for each perturbation, and incorporating an aggregation module that generalizes the sampling uncertainty approach for text generation tasks. Through extensive experiments on various datasets, we investigated different perturbation and aggregation techniques. Our findings show a substantial improvement in model uncertainty calibration, with a reduction in Expected Calibration Error (ECE) by 50\% on average. Our findings suggest that our proposed UQ method offers promising steps toward enhancing the reliability and trustworthiness of LLMs.

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

↑