Download the ECIR 2027 supplementary material. It contains Sections AβE covering cross-domain complexity distribution, evaluation, baselines, implementation, and error cases. Query-complexity evolution plots and their analysis are presented in the ECIR manuscript's main text.
- ECIR 2027 supplementary material
- Abstract
- Features
- Project Structure
- Installation
- Quick Start
- Data Format
- Shopping Query Evolution
- Fine-grained and Holistic Evaluation
- Evaluation Metrics
- Results
- API Configuration
Web agents for online shopping have shown great promise in automating user interactions across e-commerce platforms. Benchmarks for assessing such agents do not reflect the complexity of real-world shopping scenarios, as they often consist of overly simple queries with deterministic paths, such as "Find iPhone 15." Real shopping scenarios are inherently more layered, involving multi-dimensional product attributes, search filters, and user-specific sorting preferences.
To address this gap, we introduce DeepShop, a benchmark designed to evaluate web agents in complex and realistic online shopping environments. DeepShop comprises three key components:
- Query diversity evolution: Starting from real user queries, we generate diverse queries across five popular online shopping domains.
- Query complexity evolution: We further evolve these queries to increase complexity, considering product attributes, search filters, and sorting preferences, and classify them into three levels: easy, medium, and hard, based on the number of evolutions.
- Fine-grained and holistic evaluation: We propose an automated evaluation framework that assesses agent performance in terms of fine-grained aspects (product attributes, search filters, and sorting preferences) and reports the overall success rate through holistic evaluation.
We conduct a systematic evaluation of retrieval-augmented generation (RAG) methods, web agents, and deep research systems. Results show that RAG struggles with complex queries due to its lack of web interaction, while other methods face significant challenges with filters and sorting preferences, leading to low overall success rates. We also perform cross-category, complexity-based evaluations and error analyses to support the advancement of deep research shopping agents.
- π Multi-domain Coverage: Supports 5 popular shopping categories (Books, Electronics, Home, Fashion, Sports)
- π Query Evolution Pipeline: Two-stage evolution process for realistic and complex shopping scenarios
- π Fine-grained Evaluation: Automated assessment across product attributes, filters, and sorting preferences
- π― Difficulty Levels: Queries classified into easy, medium, and hard based on complexity
- π€ Agent Benchmarking: Comprehensive evaluation framework for web agents and RAG systems
- π Holistic Assessment: Overall success rate evaluation with detailed error analysis
DeepShop-main/
βββ assets/ # Project images and diagrams
β βββ evolution.jpg # Query evolution pipeline diagram
β βββ framework.jpg # Overall framework diagram
βββ data/ # Dataset files
β βββ deepshop_evol_600_subquery.jsonl # Subquery breakdown data
β βββ deepshop_evol_600.jsonl # Main evolved dataset
β βββ deepshop_example.jsonl # Example queries
β βββ deepshop_filter_150.jsonl # Filtered dataset
β βββ shopping_seed.jsonl # Seed queries
βββ results/ # Evaluation results and examples
β βββ example/ # Sample evaluation results
β βββ taskAmazon--100/ # Individual task results
β βββ taskAmazon--104/
β βββ ... # More task directories
βββ scripts/ # Execution scripts
β βββ run_data_evolution.sh # Data evolution pipeline
β βββ run_evaluation.sh # Evaluation pipeline
βββ src/ # Source code
β βββ data_process/ # Data processing modules
β β βββ break_subquery.py # Subquery decomposition
β β βββ complex_evolution.py # Complexity evolution
β β βββ diverse_evolution.py # Diversity evolution
β β βββ filter_data.py # Data filtering
β β βββ openai_access.py # OpenAI API integration
β β βββ query_evolution.py # Main evolution pipeline
β βββ evaluation/ # Evaluation modules
β βββ auto_eval_attribute.py # Attribute evaluation
β βββ auto_eval_filter.py # Filter evaluation
β βββ auto_eval_sort.py # Sorting evaluation
β βββ strict_rule_eval_overall.py # Overall evaluation
βββ requirements.txt # Python dependencies
βββ README.md # This file
- Python 3.8 or higher
- OpenAI API key (for query evolution and evaluation)
-
Clone the repository:
git clone <repository-url> cd DeepShop-main
-
Install dependencies:
pip install -r requirements.txt
-
Configure API credentials: Create a
.envfile in the project root with your OpenAI API configuration:# .env file OPENAI_API_KEY=your_api_key_here OPENAI_BASE_URL=your_base_url_here # Optional, for custom endpoints
Generate diverse and complex shopping queries:
sh ./scripts/run_data_evolution.shThis will execute:
- Query evolution across domains
- Subquery decomposition
- Data filtering and processing
Evaluate agent performance on the generated queries:
sh ./scripts/run_evaluation.shThis will execute:
- Attribute-based evaluation
- Filter-based evaluation
- Sorting preference evaluation
- Overall success rate calculation
Each query in the dataset follows this JSON structure:
{
"web_name": "Amazon",
"id": "Amazon--14",
"ques": "Find the new surge protector on Amazon with 6 to 8 outlets under 25 dollars with customer reviews above 4+ stars.",
"web": "https://www.amazon.com/?language=en_US¤cy=USD",
"attribute": "New surge protector with 6 to 8 outlets under 25 dollars",
"filter": "Surge protector with customer reviews above 4+ stars",
"sort": "None",
"category": "Electronics",
"difficulty": "easy"
}- web_name: Target e-commerce platform
- id: Unique query identifier
- ques: Full query text
- web: Target website URL
- attribute: Product attribute requirements
- filter: Search filter requirements
- sort: Sorting preference requirements
- category: Product category
- difficulty: Query difficulty level (easy/medium/hard)
The query evolution pipeline in DeepShop is designed to simulate realistic and increasingly complex online shopping behaviors through a two-stage process: query diversity evolution and query complexity evolution.
- Starts with 50 real-world seed queries from existing benchmarks (Mind2Web-Live and WebVoyager)
- Expands using GPT-4o to cover five popular product categories: Books, Electronics, Home, Fashion, and Sports
- Each seed query is rewritten to target a different domain, creating a balanced and representative dataset
Each diversified query is progressively enhanced across three dimensions:
- Product attributes (e.g., brand, color, size)
- Search filters (e.g., rating thresholds, shipping policies)
- Sorting preferences (e.g., lowest price, highest rating)
Enhancements are applied iteratively in five rounds, with one dimension randomly selected in each iteration, resulting in queries of varying difficulty levels.
sh ./scripts/run_data_evolution.shThe evaluation pipeline comprehensively assesses web agents' ability to handle complex online shopping tasks through a two-stage protocol:
Each query is decomposed into three subcomponents:
- Product attributes
- Search filters
- Sorting preferences
Using GPT-4o, each agent's result is automatically assessed against these subqueries by comparing the agent's final outputs and screenshots with the specified requirements, with binary labels ("Success" or "Not Success") assigned for each subgoal.
The system checks whether all applicable subcomponents are satisfied. A query is marked as successful only if the agent correctly fulfills all explicitly stated requirements; omitted components are treated as automatically satisfied.
sh ./scripts/run_evaluation.shNote: We have provided examples in the results/example/ folder to make it easier to run the evaluation.
- Attribute Success Rate: Percentage of correctly identified product attributes
- Filter Success Rate: Percentage of correctly applied search filters
- Sort Success Rate: Percentage of correctly implemented sorting preferences
- Overall Success Rate: Percentage of queries where all requirements are met
- Category-wise Performance: Success rates across different product categories
- Difficulty-wise Performance: Success rates across easy/medium/hard queries
- Performance comparison across Books, Electronics, Home, Fashion, and Sports
- Domain-specific challenges and capabilities assessment
The evaluation results are stored in the results/ directory, organized by task ID. Each task directory contains:
agent.log: Detailed execution loginteract_messages.json: Agent interaction messagesscreenshot*.png: Screenshots of agent actions- Evaluation metrics and scores
Sample results are available in results/example/ showing:
- Task execution flow
- Screenshot sequences
- Evaluation outputs
- Performance metrics
-
Get API Key: Obtain your OpenAI API key from OpenAI Platform
-
Environment Variables: Set up your
.envfile:OPENAI_API_KEY=sk-your-api-key-here OPENAI_BASE_URL=https://api.openai.com/v1 # Optional
If using custom API endpoints (e.g., Azure OpenAI), configure the base URL in your .env file:
OPENAI_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deploymentThis project is licensed under the MIT License.
- Built upon existing benchmarks: Mind2Web-Live and WebVoyager
- Powered by OpenAI GPT-4o for query evolution and evaluation
- Community contributions and feedback
Note: This benchmark is designed for research purposes. Please ensure compliance with e-commerce platforms' terms of service when using web agents for evaluation.

