用自然语言生成的批评者训练大模型代理,提升长程任务学习效率与稳定性。
Natural Language Actor-Critic: Scalable Off-Policy Learning in Language Space
- 用生成自然语言的评论替代传统数值评分,提供更丰富的改进反馈。
- 在推理、网页浏览和工具使用任务中表现优于现有方法,训练更稳定。
- 支持离线策略训练,无需随机探索,适合复杂开放动作空间场景。
大型语言模型(LLM)代理在涉及工具使用、网页浏览和对话等复杂任务中日益重要。缺乏专家示范时,现有方法依赖基于轨迹奖励的策略梯度,但在长程稀疏奖励任务中易受噪声影响,导致训练不稳定且样本效率低。同时,自然语言空间中的探索难以有效推进策略改进。本文提出自然语言演员-评论家(NLAC),一种新型演员-评论家算法:其评论家模块以自然语言形式生成对行为的解释性批评,而非输出标量值。该机制利用大模型在语义理解上的优势,为策略提供更具可操作性的优化信号,尤其适用于动作空间大且开放的任务。此外,该方法可实现无策略梯度的离线策略训练,显著提升数据效率与训练稳定性。在混合了推理、网页浏览、工具使用及对话的任务上验证,NLAC展现出超越现有方法的性能,为大模型代理提供了更可扩展、更稳定的训练范式。
原文摘要 · Abstract (English)
Large language model (LLM) agents -- LLMs that dynamically interact with an environment over long horizons -- have become an increasingly important area of research, enabling automation in complex tasks involving tool-use, web browsing, and dialogue with people. In the absence of expert demonstrations, training LLM agents has relied on policy gradient methods that optimize LLM policies with respect to an (often sparse) reward function. However, in long-horizon tasks with sparse rewards, learning from trajectory-level rewards can be noisy, leading to training that is unstable and has high sample complexity. Furthermore, policy improvement hinges on discovering better actions through exploration, which can be difficult when actions lie in natural language space. In this paper, we propose Natural Language Actor-Critic (NLAC), a novel actor-critic algorithm that trains LLM policies using a generative LLM critic that produces natural language rather than scalar values. This approach leverages the inherent strengths of LLMs to provide a richer and more actionable training signal; particularly, in tasks with large, open-ended action spaces, natural language explanations for why an action is suboptimal can be immensely useful for LLM policies to reason how to improve their actions, without relying on random exploration. Furthermore, our approach can be trained off-policy without policy gradients, offering a more data-efficient and stable alternative to existing on-policy methods. We present results on a mixture of reasoning, web browsing, and tool-use with dialogue tasks, demonstrating that NLAC shows promise in outperforming existing training approaches and offers a more scalable and stable training paradigm for LLM agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。