TL;DR
This paper introduces AutoWebGLM, a novel large language model (LLM)-based agent designed for autonomous web navigation. By combining an HTML simplification technique, a hybrid human-AI data construction method, and a multi-stage training process (curriculum learning, reinforcement learning, and rejection sampling finetuning), AutoWebGLM achieves performance comparable to or exceeding GPT-4 on complex web tasks, even with a smaller model size.
What Problem Does This Paper Address?
The dream of intelligent agents that can autonomously navigate the web and perform tasks for us has been hampered by several key challenges. Existing LLM-based web agents struggle with:
- HTML Complexity: The intricate and often verbose nature of HTML makes it difficult for LLMs to extract relevant information and understand webpage structure.
- Action Versatility: The web offers a vast and dynamic set of actions (clicking, typing, scrolling, etc.) that agents need to master across diverse websites.
- Task Difficulty: Open-domain web tasks are inherently complex, requiring reasoning, planning, and adaptation to unfamiliar environments.
These limitations mean that current agents often fall short of satisfying real-world web navigation needs.
Methods
AutoWebGLM tackles these challenges with a multi-pronged approach:
- HTML Simplification: To combat HTML complexity, the authors developed an algorithm that distills webpages into a concise, vital-information-preserving representation. This makes it easier for the LLM to process and understand the page content.
- Hybrid Human-AI Data Construction: Recognizing the difficulty of creating large, high-quality web navigation datasets, they employed a method that combines human annotation with LLM assistance. This approach addresses challenges like data scarcity, privacy concerns, and the need for objective annotations.
- Multi-Stage Training: AutoWebGLM is trained in three stages:
- Curriculum Learning (SFT): The model first learns to understand webpage structures and perform basic operations, mimicking how humans learn from simple to complex tasks.
- Reinforcement Learning (DPO + SFT): The agent then learns from its own mistakes through self-sampling and contrastive data, using a combination of Direct Preference Optimization (DPO) and Supervised Fine-Tuning (SFT) to improve its reasoning and action execution.
- Rejection Sampling Finetuning (RFT): Finally, the model is finetuned in specific web environments (like MiniWob++ and WebArena) through self-play, enhancing its proficiency and adaptability.
Datasets
- Training Data: The system leverages a combination of existing datasets and newly constructed data:
- Mind2Web
- MiniWob++
- AutoWebBench: A newly introduced bilingual (English and Chinese) benchmark for real-world web navigation tasks. It's divided into in-domain and out-of-domain splits to assess generalizability.
- Evaluation Data: The paper evaluates AutoWebGLM on AutoWebBench, Mind2Web, and MiniWoB++.
Key Insights and Ideas
- HTML Simplification is Crucial: The paper highlights that raw HTML is too noisy for LLMs. A well-designed simplification process is key to enabling effective web understanding.
- Hybrid Data Construction is Efficient: For complex domains like web navigation, a purely manual or purely automated approach to data creation is insufficient. Combining human expertise with LLM capabilities offers a practical solution.
- Curriculum Learning Mimics Human Learning: Starting with simpler tasks and gradually increasing complexity helps the LLM build a robust foundation for web navigation.
- Reinforcement Learning for Self-Correction: Allowing the agent to learn from its errors (via DPO) is vital for overcoming the limitations of imitation learning and improving robustness.
- Domain-Specific Finetuning (RFT) Boosts Performance: Tailoring the agent to specific web environments through RFT significantly enhances its performance in those domains.
Key Results
- AutoWebGLM Outperforms GPT-4: On the AutoWebBench benchmark, AutoWebGLM (6B parameters) achieves a Step Success Rate (SSR) of 64.8% (English) and 61.8% (Chinese), surpassing GPT-4's 36.7% and 36.3% respectively.
- Strong Performance on Other Benchmarks: AutoWebGLM also shows competitive results on Mind2Web and MiniWoB++, often outperforming larger models like GPT-3.5-Turbo and LLaMA2-70B.
- Efficiency: Despite its strong performance, AutoWebGLM is based on ChatGLM3-6B, a relatively smaller model (6 billion parameters), making it more practical for deployment compared to models like WebAgent which relies on a 540B parameter model.
- Error Analysis: The paper identifies common error types: hallucinations (44%), poor graphical recognition (28%), misinterpretation of task context (20%), and pop-up interruptions (8%).
Limitations and Future Work
- Limitations:
- The system still encounters errors like hallucinations and poor graphical recognition.
- It struggles with advanced web applications such as maps, animations, and video browsing, suggesting limitations in handling multimodal inputs.
- Dealing with unstable internet connections and unique website logic can decrease efficiency and success rates.
- Future Work:
- Multimodal Input: Integrating webpage screenshots alongside HTML to improve understanding of visual elements and complex applications.
- Reasoning and Self-Check: Developing more advanced reasoning strategies and self-checking mechanisms to improve robustness and decision-making, especially on unfamiliar websites.
- Mobile Application: Adapting the agent for mobile platforms, which presents unique challenges and opportunities due to screen size and system restrictions.
Summary updated