WebFactory: Automated Compression of Foundational Language Intelligence into Grounded Web Agents
Organizations: Fudan University · IMean AI · The Chinese University of Hong Kong · Tsinghua University
Abstract
Current paradigms for training GUI agents are fundamentally limited by a reliance on either unsafe, non-reproducible live web interactions or costly, scarce human-crafted data and environments. We argue this focus on data volume overlooks a more critical factor: the efficiency of compressing a large language model's (LLM) latent knowledge into actionable agent behavior. We introduce WebFactory, a novel, fully automated closed-loop reinforcement learning pipeline for GUI agents, systematically compressing LLM-encoded internet intelligence into efficient, grounded actions. Our pipeline features a process of scalable environment synthesis, knowledge-aware task generation, LLM-powered trajectory collection, decomposed reward RL training, and systematic agent evaluation. Remarkably, our agent demonstrates exceptional data efficiency and generalization. Trained on synthetic data from only 10 websites within WebFactory, it achieves performance comparable to GUI agents trained on the same amount of human-annotated data from a much larger set of environments. This superior performance is consistent across our internal offline and online transfer benchmarks, where our agent also significantly outperforms the base foundation model. We further provide critical insights into the "embodiment potential" of different LLM foundations, offering a new axis for model evaluation. This work presents a scalable and cost-effective paradigm for transforming passive internet knowledge into active, grounded intelligence, marking a critical step towards general-purpose interactive agents.
Figures & tables
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Platform | Category | Design & Complexity Constraints | Representative Instruction |
|---|---|---|---|
| Amazon | A: Precise Search | Req: Precise keyword matching; navigate to detail page to verify specs. UI: Search bar, Click. | “Search for ‘Sony WH-1000XM5 headphones’, click on the black version, and tell me the current price.” |
| B: Constraint Filtering | Req: Apply multiple compound filters (price, brand, Prime) before clicking result. UI: Sidebar filters. | “Find a ‘Gaming Monitor’ under $300 from ‘ASUS’ with ‘144Hz’ refresh rate. Add the first result to the cart.” | |
| C: Cart Flow | Req: State changes; multi-page navigation. UI: Add-to-cart, verify cart. | “Add a ‘Logitech MX Master 3S’ to your cart, then go to the cart and change the quantity to 2.” | |
| Airbnb | A: Date/Loc Search | Req: Complex calendar interaction; location input. UI: Date-picker, search field. | “Search for a stay in ‘Kyoto, Japan’ for ‘2 adults’ from ‘September 10’ to ‘September 15’.” |
| B: Amenity Filtering | Req: Open modal window; scroll to find/check specific boxes. UI: Modal popups, checkboxes. | “Find a home in ‘Paris’ that has ‘Wifi’, ‘Kitchen’, and ‘Washing Machine’. Open the detail page of the highest-rated listing.” | |
| C: Detail Extraction | Req: Parse unstructured long-text descriptions. UI: Text parsing, scrolling. | “Go to the first listing for ‘Cabin in Lake Tahoe’ and verify if ‘Pets are allowed’ in the house rules.” |
Web Agents
Web agents use language and vision models to navigate websites, gather information, and complete tasks through interactive interfaces.
See all 174 papers