AgentTrek: Agent Trajectory Synthesis via Guiding Replay with Web Tutorials

February 21, 2025 Β· View on GitHub

πŸ“‘ Paper Β Β  | Β Β  🌐 Project Page Β Β  | Β Β  πŸ’Ύ AgentTrek Browser-use Trajectories Β Β  | Β Β  πŸ’Ύ AgentTrek-1.0-32B Β Β 

intruduction

AgentTrek is a cost-efficient and scalable framework that synthesizes high-quality agent trajectories by guiding replay with web tutorials. These collected trajectories significantly enhance agent performance.

Key Features & Contributions

  • πŸ”„ Scalable Data Synthesis Pipeline: Cost-efficient and scalable pipeline to synthesize high-quality agent trajectories.
  • πŸ“Š Comprehensive Dataset: Largest-scale dataset of browseruse agent trajectories with multimodal grounding and reasoning.
  • πŸ€– Capable Brouwseruse Agent: Fully autonomous browseruse agent capable for performing general tasks.

BrowserGym LeaderBoard 🌐 Browsergym LeaderBoard

AgentWebArenaWorkArena-L1WorkArena-L2WorkArena-L3MiniWoB
Claude-3.5-Sonnet36.2056.4039.100.4069.80
GPT-4o31.4045.508.500.0063.80
GPT-o1-mini28.6056.7014.900.0067.80
Llama-3.1-405b24.0043.307.200.0064.60
AgentTrek-32bπŸ’«22.4038.292.980.0060.00
Llama-3.1-70b18.4027.902.100.0057.60
GPT-4o-mini17.4027.001.300.0056.60

Our Browseruse agent demonstrate exceptional performance in real-world online scenarios:

Getting Started

Installation

  1. Clone the repository:
git clone git@github.com:xlang-ai/AgentTrek.git
cd agenttrek
  1. Create and activate a conda environment:
conda create -n agenttrek python=3.10
conda activate agenttrek
  1. Install PyTorch and dependencies:
pip install -e .

Data Preparation

Training

Model Checkpoints

  • AgentTrek-7B: cookingπŸ§‘β€πŸ³
  • AgentTrek-32B: model
  • AgentTrek-72B: cookingπŸ§‘β€πŸ³

Evaluation

MiniWob++ Evaluation

  1. Configure your evaluation settings:

    • Open scripts/run_webarena.sh
    • Set the OPENAI_API_KEY variable to your own openai api key
    • Set the AGENTLAB_EXP_ROOT variable to specify the path for the results
    • Set the MINIWOB_URL variable to your Miniwob URL
    • Set the OPENAI_BASE_URL variable to specify your model base url
  2. Start inference:

bash scripts/run_miniwob.sh

WebArena Evaluation

  1. Configure your evaluation settings:

    • Open scripts/run_webarena.sh
    • Set the OPENAI_API_KEY variable to your own OpenAI API key
    • Set the AGENTLAB_EXP_ROOT variable to specify the path for the results
    • Set the following URL variables for the relevant platforms:
      • BASE_URL: Specify the base URL for your WebArena instance
      • WA_SHOPPING: URL for the Shopping benchmark
      • WA_SHOPPING_ADMIN: URL for the Shopping Admin benchmark
      • WA_REDDIT: URL for the Reddit benchmark
      • WA_GITLAB: URL for the GitLab benchmark
      • WA_WIKIPEDIA: URL for the Wikipedia benchmark
      • WA_MAP: URL for the Map benchmark
      • WA_HOMEPAGE: URL for the Homepage benchmark
    • Set the OPENAI_BASE_URL variable to specify your model base URL
  2. Start inference:

bash scripts/run_webarena.sh