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

论不确定性在大语言模型决策中的重要性

On the Importance of Uncertainty in Decision-Making with Large Language Models

Politecnico di Milano(米兰理工大学);Spotify

Nicolò Felicioni, Lucas Maystre, Sina Ghiassian, Kamil Ciosek

AI总结:

该研究针对文本上下文老虎机决策场景,提出将多种不确定性估计技术融入大语言模型的汤普森采样策略,实验证明其效果优于贪心基线,凸显了不确定性在LLM决策中的关键作用。

摘要:

我们研究了不确定性在以自然语言为输入的决策问题中的作用。对于此类任务,使用大语言模型(Large Language Models,LLM)作为智能体已成为常态。然而,近期的方法均未在决策任务过程中引入额外阶段来估计智能体对外部世界的不确定性。我们聚焦于一种以自然语言为输入的基础决策框架——上下文老虎机(contextual bandits),其上下文信息由文本构成。作为无不确定性估计方法的代表,我们采用带有贪心策略的LLM老虎机,该策略会选择与最大预测奖励对应的动作。我们将这一基线与主动利用不确定性估计的LLM老虎机进行对比,后者通过将不确定性融入汤普森采样(Thompson Sampling)策略来实现。我们采用了多种不确定性估计技术,例如拉普拉斯近似(Laplace Approximation)、Dropout(随机失活)以及Epinets(外延网络)。我们在真实世界数据上通过实验证明,贪心策略的表现逊于汤普森采样策略。这些发现表明,尽管不确定性在LLM相关文献中被忽视,但它在基于LLM的老虎机任务中发挥着基础性作用。

英文摘要:

We investigate the role of uncertainty in decision-making problems with natural language as input. For such tasks, using Large Language Models as agents has become the norm. However, none of the recent approaches employ any additional phase for estimating the uncertainty the agent has about the world during the decision-making task. We focus on a fundamental decision-making framework with natural language as input, which is the one of contextual bandits, where the context information consists of text. As a representative of the approaches with no uncertainty estimation, we consider an LLM bandit with a greedy policy, which picks the action corresponding to the largest predicted reward. We compare this baseline to LLM bandits that make active use of uncertainty estimation by integrating the uncertainty in a Thompson Sampling policy. We employ different techniques for uncertainty estimation, such as Laplace Approximation, Dropout, and Epinets. We empirically show on real-world data that the greedy policy performs worse than the Thompson Sampling policies. These findings suggest that, while overlooked in the LLM literature, uncertainty plays a fundamental role in bandit tasks with LLMs.

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

↑