arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.07199cs.AIcs.LG
收藏

Agent Q:面向自主AI智能体的高级推理与学习

Agent Q: Advanced Reasoning and Learning for Autonomous AI Agents

The AGI Company (MultiOn)(AGI公司(MultiOn));Stanford University(斯坦福大学)

Pranav Putta, Edmund Mills, Naman Garg, Sumeet Motwani, Chelsea Finn, Divyansh Garg, Rafael Rafailov

AI总结:

针对大语言模型在交互环境多步推理中表现不佳的问题,提出融合引导式MCTS、自我批判与离策略DPO迭代微调的Agent Q框架,在模拟电商和真实预订场景中大幅提升智能体决策成功率。

摘要:

大语言模型(LLM)在需要复杂推理的自然语言任务中展现出了卓越能力,但将其应用于交互环境下的智能体式多步推理仍是一项艰巨挑战。传统基于静态数据集的监督预训练,不足以赋予智能体在网页导航等动态场景中执行复杂决策所需的自主能力。此前通过在经过筛选的专家演示数据上进行监督微调来弥补这一差距的尝试,往往存在误差累积和探索数据有限的问题,最终得到的策略效果欠佳。为克服这些挑战,我们提出了一个框架,该框架将引导式蒙特卡洛树搜索(MCTS)与自我批判机制相结合,并采用离策略版本的直接偏好优化(DPO)算法,基于智能体交互数据进行迭代微调。我们的方法使LLM智能体能够从成功和失败的轨迹中有效学习,从而提升其在复杂多步推理任务中的泛化能力。我们在WebShop环境(一个模拟电商平台)中验证了所提方法:该方法的表现始终优于行为克隆和强化微调基线,在具备在线搜索能力时,其表现超过了人类平均水平。在真实预订场景中,经过一天的数据收集,我们的方法将Llama-3 70B模型的零样本成功率从18.6%提升至81.7%(相对提升340%),搭配在线搜索后成功率进一步提升至95.4%。我们认为这一成果标志着自主智能体能力的重大飞跃,为实现更复杂、更可靠的真实场景决策铺平了道路。

英文摘要:

Large Language Models (LLMs) have shown remarkable capabilities in natural language tasks requiring complex reasoning, yet their application in agentic, multi-step reasoning within interactive environments remains a difficult challenge. Traditional supervised pre-training on static datasets falls short in enabling autonomous agent capabilities needed to perform complex decision-making in dynamic settings like web navigation. Previous attempts to bridge this ga-through supervised fine-tuning on curated expert demonstrations-often suffer from compounding errors and limited exploration data, resulting in sub-optimal policy outcomes. To overcome these challenges, we propose a framework that combines guided Monte Carlo Tree Search (MCTS) search with a self-critique mechanism and iterative fine-tuning on agent interactions using an off-policy variant of the Direct Preference Optimization (DPO) algorithm. Our method allows LLM agents to learn effectively from both successful and unsuccessful trajectories, thereby improving their generalization in complex, multi-step reasoning tasks. We validate our approach in the WebShop environment-a simulated e-commerce platform where it consistently outperforms behavior cloning and reinforced fine-tuning baseline, and beats average human performance when equipped with the capability to do online search. In real-world booking scenarios, our methodology boosts Llama-3 70B model's zero-shot performance from 18.6% to 81.7% success rate (a 340% relative increase) after a single day of data collection and further to 95.4% with online search. We believe this represents a substantial leap forward in the capabilities of autonomous agents, paving the way for more sophisticated and reliable decision-making in real-world settings.

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

↑