通过 Actor-Critic 增强大型语言模型的决策能力
Enhancing Decision-Making of Large Language Models via Actor-Critic
AI总结:
本文提出 LAC 框架,通过基于正负结果 token logits、未来轨迹 rollout 与推理的 Q 值评估及无梯度策略改进,增强 LLM 的长期决策能力。
摘要:
大型语言模型(LLM)已在自然语言处理任务中取得显著进展,但在需要长期推理并与高层目标保持一致的复杂决策场景中仍面临挑战。现有方法要么依赖短期自回归动作生成,要么在准确模拟 rollout 和评估结果方面存在局限,从而导致次优决策。本文提出一种新颖的、基于 LLM 的 Actor-Critic 框架,称为 LAC,它以有原则且可扩展的方式,利用长期动作评估有效改进 LLM 策略。我们的方法解决两个关键挑战:(1)通过与正/负结果相关的 token logits 计算 Q 值,并借助未来轨迹 rollout 和推理加以增强,从而提取稳健的动作评估;(2)通过无梯度机制实现高效的策略改进。在多种环境中的实验——包括高层决策(ALFWorld)、低层动作空间(BabyAI-Text)和大型动作空间(WebShop)——证明了该框架相对于最先进方法的通用性和优越性。值得注意的是,我们的方法使用 7B/8B 参数的 LLM 即取得具有竞争力的性能,在复杂任务中甚至优于采用 GPT-4 的基线方法。这些结果凸显了将结构化策略优化与 LLM 内在知识相结合,以提升多步环境中决策能力的潜力。
英文摘要:
Large Language Models (LLMs) have achieved remarkable advancements in natural language processing tasks, yet they encounter challenges in complex decision-making scenarios that require long-term reasoning and alignment with high-level objectives. Existing methods either rely on short-term auto-regressive action generation or face limitations in accurately simulating rollouts and assessing outcomes, leading to sub-optimal decisions. This paper introduces a novel LLM-based Actor-Critic framework, termed LAC, that effectively improves LLM policies with long-term action evaluations in a principled and scalable way. Our approach addresses two key challenges: (1) extracting robust action evaluations by computing Q-values via token logits associated with positive/negative outcomes, enhanced by future trajectory rollouts and reasoning; and (2) enabling efficient policy improvement through a gradient-free mechanism. Experiments across diverse environments -- including high-level decision-making (ALFWorld), low-level action spaces (BabyAI-Text), and large action spaces (WebShop) -- demonstrate the framework's generality and superiority over state-of-the-art methods. Notably, our approach achieves competitive performance using 7B/8B parameter LLMs, even outperforming baseline methods employing GPT-4 in complex tasks. These results underscore the potential of integrating structured policy optimization with LLMs' intrinsic knowledge to advance decision-making capabilities in multi-step environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。