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

大语言模型能否在上下文中进行探索?

Can large language models explore in-context?

Microsoft Research(微软研究院);Carnegie Mellon University(卡内基梅隆大学)

Akshay Krishnamurthy, Keegan Harris, Dylan J. Foster, Cyril Zhang, Aleksandrs Slivkins

AI总结:

本研究探究现有大语言模型的原生上下文探索能力,通过多臂老虎机实验发现仅带外部总结历史和思维链的GPT-4能稳定探索,指出复杂场景下需算法干预赋能LLM决策智能体。

摘要:

我们探究了当代大语言模型(Large Language Models,LLMs)具备探索能力的程度,探索是强化学习与决策领域的一项核心能力。我们聚焦于现有LLMs的原生性能,不施加任何训练干预。我们将LLMs作为智能体部署在简单的多臂老虎机环境中,将环境描述与交互历史完全通过上下文(即LLM的提示词内)提供。我们对GPT-3.5、GPT-4和Llama2开展实验,采用多种提示词设计,结果发现:若没有实质性干预,这些模型无法稳定地进行探索:i)在我们所有实验中,仅有一种配置产生了令人满意的探索行为:搭配思维链推理、且以充分统计量形式呈现外部总结的交互历史的GPT-4;ii)其余所有配置均未产生稳定的探索行为,包括采用思维链推理但未对历史进行总结的配置。尽管这些结果可被解读为积极信号,但它们表明外部总结——在更复杂的场景中可能无法实现——对于从LLM智能体获得理想行为至关重要。我们得出结论:要在复杂场景中赋能基于LLM的决策智能体,可能需要非平凡的算法干预,例如微调或数据集整理。

英文摘要:

We investigate the extent to which contemporary Large Language Models (LLMs) can engage in exploration, a core capability in reinforcement learning and decision making. We focus on native performance of existing LLMs, without training interventions. We deploy LLMs as agents in simple multi-armed bandit environments, specifying the environment description and interaction history entirely in-context, i.e., within the LLM prompt. We experiment with GPT-3.5, GPT-4, and Llama2, using a variety of prompt designs, and find that the models do not robustly engage in exploration without substantial interventions: i) Across all of our experiments, only one configuration resulted in satisfactory exploratory behavior: GPT-4 with chain-of-thought reasoning and an externally summarized interaction history, presented as sufficient statistics; ii) All other configurations did not result in robust exploratory behavior, including those with chain-of-thought reasoning but unsummarized history. Although these findings can be interpreted positively, they suggest that external summarization -- which may not be possible in more complex settings -- is important for obtaining desirable behavior from LLM agents. We conclude that non-trivial algorithmic interventions, such as fine-tuning or dataset curation, may be required to empower LLM-based decision making agents in complex settings.

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

↑