arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2408.09172cs.AIcs.CL
收藏

释放大语言模型不确定性的潜力以实现主动上下文示例选择

Unlocking the Power of LLM Uncertainty for Active In-Context Example Selection

Peking University(北京大学)

Hsiu-Yuan Huang, Zichen Wu, Yutong Yang, Junzhao Zhang, Yunfang Wu

AI总结:

针对大语言模型输出不确定性难辨别的问题,提出基于输出不一致性的Unc-TTP范式分类不确定性,验证了其选出的不确定性示例信息量更高,且该策略优于现有方法,可提升上下文学习效果。

摘要:

大语言模型(LLM)已在广泛的下游任务中展现出卓越性能。然而,用户难以辨别LLM的响应是确定性生成的,还是为迎合用户期望而编造的。本文提出了不确定性三重测试范式(Uncertainty Tripartite Testing Paradigm, Unc-TTP),这是一种利用输出不一致性对LLM不确定性进行分类的新方法。具体而言,Unc-TTP在不同的标签注入干扰下进行三轮采样,枚举所有可能的结果,并将输出不一致程度作为LLM内在不确定性的指标。为验证这种由不一致性定义的不确定性的有效性,我们从主动学习(Active Learning)中汲取灵感,对比了主动选择的上下文示例的信息量。实验表明,通过Unc-TTP选出的不确定性示例比确定性示例信息量更高。此外,Unc-TTP引导的基于不确定性的主动示例选择策略优于现有方法,凸显了其在LLM不确定性分类和增强上下文学习方面的有效性。这项工作不仅强调了基于不一致性的不确定性分类在开源和闭源LLM中的潜力,还提出了一种利用不确定性提升LLM在实际任务中性能的实用方法。

英文摘要:

Large Language Models (LLMs) have shown remarkable performance across a wide range of downstream tasks. However, it is challenging for users to discern whether the responses of LLM are generated with certainty or are fabricated to meet user expectations. In this paper, we introduce Uncertainty Tripartite Testing Paradigm (Unc-TTP), a novel method for classifying LLM uncertainty by leveraging output inconsistency. Specifically, Unc-TTP performs three rounds of sampling under varying label injection interference, enumerating all possible outcomes, and uses the degree of output inconsistency as the indicator of the LLM's intrinsic uncertainty. To validate the effectiveness of this inconsistency-defined uncertainty, we draw inspiration from Active Learning, comparing the informativeness of actively selected in-context examples. Our experiments show that uncertainty examples selected via Unc-TTP are more informative than certainty examples. Furthermore, the Unc-TTP-guided uncertainty-based active example selection strategy outperforms existing methods, highlighting its effectiveness in classifying LLM uncertainty and enhancing in-context learning. This work not only underscores the potential of inconsistency-based uncertainty classification for both open- and closed-source LLMs but also presents a practical approach for leveraging uncertainty to improve LLM performance in real-world tasks.

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

↑