ShopGym: An Integrated Framework for Realistic Simulation and Scalable Benchmarking of E-Commerce Web Agents

Chinmay Savadikar, Mingyu Zhao, Yuanzheng Zhu, Han Li, Shuang Xie, Alberto Castelo, Tianfu Wu, Lingyun WangNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Evaluating e-commerce web agents is stuck between a rock and a hard place: live websites are realistic but constantly changing, while hand-built sandboxes are stable but narrow and artificial. ShopGym solves this by automatically converting live storefronts into self-contained, anonymized sandbox shops (ShopArena) and generating grounded, multi-step shopping tasks on top of them (ShopGuru). The result is a scalable pipeline—costing around $60 per shop—that preserves the structural complexity and agent failure modes of real websites while remaining completely reproducible.

What Problem Does This Paper Address?

If you want to test whether an AI web agent can actually shop online, you have two traditional options, and both are flawed:

  1. Live websites: They offer total realism, but they are non-stationary. Product catalogs shift, layouts get redesigned, and live A/B tests serve different pages to different requests. If an agent fails today, you can’t be sure whether it’s a model bug or a website update.
  2. Hand-built sandboxes: Environments like WebShop or WebArena give you complete experimental control and repeatability, but building them by hand is expensive. As a result, they only cover a narrow slice of real-world layouts, catalogs, and interaction patterns.

The authors argue this isn't just a data problem—it's a methodological bottleneck. The field lacks a scalable way to build evaluation environments that are simultaneously realistic, diverse, controllable, and reproducible.

Methods

ShopGym splits the problem into two complementary frameworks: ShopArena (building the stores) and ShopGuru (building the tasks).

Figure 1: ShopGym comprises two components. ShopArena provides a simulation environment populated with synthetic sandbox shops, along with a scalable pipeline that generates new sandbox shops from one or more live seed storefronts through specification synthesis followed by data and code generation. ShopGuru then consumes the resulting catalog, collections, pages, and shop statistics to generate both short-horizon tasks covering primitive skills and long-horizon shopping journeys that combine these skills.

ShopArena: From Live Storefronts to Sandboxes

Doing storefront exploration and code generation in one giant LLM pass leads to context bloat and broken code. Instead, ShopArena separates them with an intermediate, human-readable design specification ($M$):

  • Exploration: A planner agent and browser-automation agents (using Playwright) browse one or more live seed storefronts, capturing layout, navigation, filter attributes, and catalog statistics. They write an anonymized specification $M$—ignoring brand names, product names, and URLs at write time. Multiple seed stores can even be merged into one composite specification.
  • Generation: Using only $M$, a catalog generator synthesizes products, descriptions, and images. Then, ShopArena builds the storefront codebase in a fixed sequence of feature-scoped steps (homepage, collections, product pages, cart, search/filtering, policies). To avoid long-context degradation, each step runs an execution–verification loop: a fresh coding agent (AGENTexec) edits the disk workspace, and rule-based plus multimodal verifiers inspect the rendered site and write feedback for the next iteration.

ShopGuru: Grounded Task Generation

Once a sandbox shop is running, ShopGuru generates benchmark tasks grounded in its actual catalog, filters, and pages:

  • Short-Horizon Tasks: Deterministic generators create primitive skill tasks across three categories: Product Discovery (exact search, substitute search), Filter-Selection (browsing and filtering collections using verified per-collection options), and Information-Seeking (shipping and returns policy lookups).
  • Long-Horizon Journeys: An LLM authors realistic, multi-step shopping journeys (e.g., filter → sort → inspect → check policy → add to cart) using few-shot click-stream patterns. A validator-driven polish loop catches hallucinations (like asking for a "Color" filter on a gift card) and forces the LLM to regenerate flagged tasks.

Datasets

The authors validate ShopGym using 224 generated tasks across six sandbox shops:

  • Three fully synthetic sandbox shops spanning clothing, cookware, and electronics hardware.
  • Three "twin" shops built using real product data (with mock brand/contact info) to directly compare against their live storefront counterparts.

They also compare structural metrics against 7 real shops and test pipeline scalability by generating 7 additional synthetic shops.

Key Insights and Ideas

  • Externalizing state beats long context: Spawning a fresh coding agent at every iteration of the generation loop—reading the current codebase and latest verifier feedback directly from disk—prevents the "lost in the middle" degradation common in long-horizon LLM coding.
  • Twins are behaviorally aligned, not identical: On matched tasks, GPT-5 achieves nearly identical overall success on real storefronts (72.7%) and their synthetic twins (72.4%), with matching failure modes ($r = 0.960$). Yet 26.8% of matched runs still differ in outcome—proving the twins test the same underlying skills at comparable difficulty without being brittle replicas.
  • Lightweight for RL: At ~600 MB per deployment (compared to ~60 GB for WebArena), these sandboxes are light enough to support parallel reinforcement learning rollouts (192 rollouts in ~25 minutes).

Key Results

  • Structural Validity: Synthetic shops closely match real storefronts in accessibility tree depth (8.0 vs. 7.7), interactive fill/click/choice elements, and state-transition node counts (24 vs. 22). They have fewer transition edges (188 vs. 314) simply because external links and marketing pages are intentionally excluded.
  • Task Difficulty: The generated long-horizon tasks remain challenging for frontier models. Under the BrowserGym harness on synthetic shops, GPT-5-mini achieves 47.9%, Gemini 3 Flash hits 59.0%, and GPT-5 reaches 62.5%.
  • Scalability & Cost: Generating a full shop with Pi + GPT-5.5 takes 2.6–3.8 hours and costs $58–61 (or $8.47 using the open-weight GLM-5.2). Human inspection time drops from 60 minutes to ~10 minutes per shop as recurring defects become reusable verifier checks.

Limitations and Future Work

  • Cleaner than the real world: Filtering and policy-lookup tasks are slightly easier on twin shops than on live storefronts, largely because the generated DOMs are cleaner and policy pages are shorter.
  • Small structural sample: The structural comparison is unpaired and relatively small (7 real vs. 3 synthetic shops), though per-shop diversity metrics across 10 shops show strong variation.
  • Complement, not replacement: The authors note that ShopGym does not completely replace live-web evaluation, but rather provides a practical, reproducible middle ground for standardized benchmarking and agent training.

Summary updated

BibTeX
@inproceedings{savadikar2026shopgym,
  author = {Chinmay Savadikar and Mingyu Zhao and Yuanzheng Zhu and Han Li and Shuang Xie and Alberto Castelo and Tianfu Wu and Lingyun Wang},
  title = {{ShopGym: An Integrated Framework for Realistic Simulation and Scalable Benchmarking of E-Commerce Web Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=T78ZNu4RMq},
}
Figure