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

面向语言智能体强化学习的熵正则化令牌级策略优化

Entropy-Regularized Token-Level Policy Optimization for Language Agent Reinforcement

Shanghai Jiao Tong University(上海交通大学);Xi’an Jiaotong University(西安交通大学);University College London(伦敦大学学院)

Muning Wen, Junwei Liao, Cheng Deng, Jun Wang, Weinan Zhang, Ying Wen

AI总结:

本文提出熵正则化令牌级策略优化(ETPO),通过逐令牌软贝尔曼更新将动作级Q函数分解为令牌级,以线性时间复杂度实现稳定训练,并提升语言智能体在交互式决策任务中的表现。

摘要:

大型语言模型(LLMs)在交互式决策任务中作为智能体已展现出潜力。传统方法通常依赖精心设计的提示、高质量示例或额外的奖励模型,用于上下文学习、监督微调或RLHF。强化学习(RL)为LLMs提供了一种动态替代方案,通过直接与任务特定环境交互来摆脱这些依赖。然而,它面临重大障碍:1)由于需要探索指数级庞大的动作空间而导致的不稳定性;2)基于动作级奖励信号分配令牌级信用所面临的挑战,导致最大化奖励与准确建模语料数据之间的不一致。针对这些挑战,我们提出了熵正则化令牌级策略优化(ETPO),这是一种专为在令牌级别优化LLMs而设计的熵增强RL方法。ETPO的核心是我们新颖的逐令牌软贝尔曼更新,旨在使RL过程与语言建模原则相协调。该方法将Q函数更新从粗粒度的动作级视角分解为更细粒度的令牌级视角,并提供了优化一致性的理论证明。至关重要的是,这种分解在动作探索中实现了线性时间复杂度。我们在一个模拟环境中评估了ETPO的有效性,该环境将数据科学代码生成建模为一系列多步骤交互任务;结果凸显了ETPO作为一种稳健方法在提升语言智能体交互式决策能力方面的潜力。关于我们进行令牌级分解的动机及其在PPO方法中应用的更详细初步工作,请参阅arXiv:2405.15821。

英文摘要:

Large Language Models (LLMs) have shown promise as intelligent agents in interactive decision-making tasks. Traditional approaches often depend on meticulously designed prompts, high-quality examples, or additional reward models for in-context learning, supervised fine-tuning, or RLHF. Reinforcement learning (RL) presents a dynamic alternative for LLMs to overcome these dependencies by engaging directly with task-specific environments. Nonetheless, it faces significant hurdles: 1) instability stemming from the exponentially vast action space requiring exploration; 2) challenges in assigning token-level credit based on action-level reward signals, resulting in discord between maximizing rewards and accurately modeling corpus data. In response to these challenges, we introduce Entropy-Regularized Token-level Policy Optimization (ETPO), an entropy-augmented RL method tailored for optimizing LLMs at the token level. At the heart of ETPO is our novel per-token soft Bellman update, designed to harmonize the RL process with the principles of language modeling. This methodology decomposes the Q-function update from a coarse action-level view to a more granular token-level perspective, backed by theoretical proof of optimization consistency. Crucially, this decomposition renders linear time complexity in action exploration. We assess the effectiveness of ETPO within a simulated environment that models data science code generation as a series of multi-step interactive tasks; results underline ETPO's potential as a robust method for refining the interactive decision-making capabilities of language agents. For a more detailed preliminary work describing our motivation for token-level decomposition and applying it in PPO methods, please refer to arXiv:2405.15821.

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

↑