arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.01887cs.LGcs.AIcs.CL
收藏

超越数值奖励:使用 LLM 智能体的上下文对决赌博机

Beyond Numeric Rewards: In-Context Dueling Bandits with LLM Agents

The Chinese University of Hong Kong Shenzhen(香港中文大学(深圳));California Institute of Technology(加州理工学院)

Fanzeng Xia, Hao Liu, Yisong Yue, Tongxin Li

AI总结:

研究开箱即用 LLM 在 Dueling Bandits 上下文强化学习中的零样本决策能力,并提出融合经典 DB 算法的 LEAD 框架以降低强遗憾、增强鲁棒性与可信性。

摘要:

上下文强化学习(In-Context Reinforcement Learning, ICRL)是基础模型时代解决强化学习(Reinforcement Learning, RL)问题的前沿范式。尽管 transformer 已经通过面向特定任务的训练展示出 ICRL 能力,但大型语言模型(Large Language Models, LLMs)开箱即用的潜力仍基本未被探索。本文研究 LLM 是否能够跨领域泛化,在对决赌博机(Dueling Bandits, DB)问题下执行 ICRL;DB 是一种无状态、基于偏好的 RL 设置。我们发现,表现最好的 LLM 在相对决策方面表现出显著的零样本能力:它们通过迅速将最优臂纳入对决,在所有 DB 环境实例中实现较低的短期弱遗憾。然而,在强遗憾方面,LLM 与经典 DB 算法之间仍存在最优性差距。即使被明确提示去收敛并持续利用,LLM 也难以做到这一点,而且它们对提示变化很敏感。为弥合这一差距,我们提出一种智能体流框架:带增强算法对决的 LLM(LLM with Enhanced Algorithmic Dueling, LEAD),它通过细粒度的自适应交互,将现成的 DB 算法支持与 LLM 智能体集成起来。我们证明,LEAD 在弱遗憾和强遗憾两方面都继承了经典 DB 算法的理论保证。我们验证了其有效性与鲁棒性,即使在含噪声和对抗性提示下也是如此。此类智能体框架的设计为如何增强泛化到上下文决策任务中的通用 LLM 的可信性提供了启示。

英文摘要:

In-Context Reinforcement Learning (ICRL) is a frontier paradigm to solve Reinforcement Learning (RL) problems in the foundation model era. While ICRL capabilities have been demonstrated in transformers through task-specific training, the potential of Large Language Models (LLMs) out-of-the-box remains largely unexplored. This paper investigates whether LLMs can generalize cross-domain to perform ICRL under the problem of Dueling Bandits (DB), a stateless preference-based RL setting. We find that the top-performing LLMs exhibit a notable zero-shot capacity for relative decision-making, which translates to low short-term weak regret across all DB environment instances by quickly including the best arm in duels. However, an optimality gap still exists between LLMs and classic DB algorithms in terms of strong regret. LLMs struggle to converge and consistently exploit even when explicitly prompted to do so, and are sensitive to prompt variations. To bridge this gap, we propose an agentic flow framework: LLM with Enhanced Algorithmic Dueling (LEAD), which integrates off-the-shelf DB algorithm support with LLM agents through fine-grained adaptive interplay. We show that LEAD has theoretical guarantees inherited from classic DB algorithms on both weak and strong regret. We validate its efficacy and robustness even with noisy and adversarial prompts. The design of such an agentic framework sheds light on how to enhance the trustworthiness of general-purpose LLMs generalized to in-context decision-making tasks.

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

↑