Skip to main content
QUICK REVIEW

[Paper Review] Agent Q: Advanced Reasoning and Learning for Autonomous AI Agents

Pranav Putta, Edmund Mills|arXiv (Cornell University)|Aug 13, 2024
Multi-Agent Systems and NegotiationComputer Science5 citations
TL;DR

Agent Q combines guided Monte Carlo Tree Search, AI self-critique, and offline Direct Preference Optimization to train LLM-based web agents, achieving strong multi-step reasoning and improved zero-shot and online-search performance in WebShop and real-world booking tasks.

ABSTRACT

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.

Motivation & Objective

  • Improve autonomous web-agent decision-making in long-horizon tasks beyond imitation learning.
  • Leverage guided MCTS to collect informative trajectories for training.
  • Use AI self-critique to provide intermediate rewards and guide search.
  • Fine-tune agents offline with an off-policy variant of Direct Preference Optimization (DPO) to learn from both successful and failed trajectories.
  • Demonstrate gains on the WebShop benchmark and real-world booking scenarios.

Proposed method

  • Formulate the problem as a POMDP for web navigation with DOM-based observations and composite actions.
  • Use Monte Carlo Tree Search (MCTS) over web-pages with a base LLM as proposal distribution and AI-based self-critique to score actions at each node.
  • Incorporate a four-phase MCTS: selection, expansion, simulation (rollout), backpropagation, using UCB1 to balance exploration and exploitation.
  • Roll out trajectories with the current policy and backpropagate final rewards (success/failure) to update Q-values.
  • Construct node-level preferences from trajectories and optimize with an off-policy variant of Direct Preference Optimization (DPO), using a replay buffer instead of a separate reference model.
  • Evaluate on WebShop and real-world booking tasks using LLaMa-3-70B as the base model; show zero-shot improvements and online-search gains.

Experimental results

Research questions

  • RQ1Can guided MCTS with AI self-critique improve exploration and policy quality for autonomous web agents?
  • RQ2Does offline DPO fine-tuning on MCTS-derived trajectories yield better generalization than behavior cloning or reinforcement-tuning baselines?
  • RQ3How does Agent Q perform in simulated web environments (WebShop) and real-world booking tasks, with and without online search?
  • RQ4What is the impact of using a compact history representation for long-horizon web interactions on learning efficiency and performance?

Key findings

  • Agent Q+MCTS significantly improves WebShop success over the base model and beats average human performance when online search is available.
  • In real-world booking scenarios, zero-shot success rises from 18.6% to 81.7% after one day of data collection, with further gains to 95.4% when equipped with online search.
  • Offline DPO fine-tuning using trajectory preferences from MCTS traces yields notable improvements over behavior cloning and simple reinforcement-fine-tuning baselines (e.g., 40.6% in WebShop baseline with DPO vs 31.3% RFT).
  • AI feedback and self-critique at node-level during MCTS guide exploration and improve final agent success rates, addressing sparse reward signals in long-horizon tasks.
  • The approach demonstrates that combining search, self-critique, and offline preference-based learning can substantially advance autonomous web agents beyond imitation-based methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.