← Latest papers
🤖 AI

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

This paper introduces ShopGym, an integrated framework that bridges the gap between realistic and controllable e-commerce agent evaluation by converting live storefronts into reproducible sandbox environments (ShopArena) and synthesizing grounded benchmark tasks (ShopGuru), demonstrating that synthetic shops preserve key structural properties and correlate with agent performance on real-world sites.

Original authors: Chinmay Savadikar, Mingyu Zhao, Yuanzheng Zhu, Han Li, Shuang Xie, Alberto Castelo, Tianfu Wu, Lingyun Wang

Published 2026-05-18
📖 5 min read🧠 Deep dive

Original authors: Chinmay Savadikar, Mingyu Zhao, Yuanzheng Zhu, Han Li, Shuang Xie, Alberto Castelo, Tianfu Wu, Lingyun Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a robot how to shop online. To do this effectively, you need a training ground. The paper "ShopGym" argues that the current training grounds are broken, and it proposes a new, better solution.

Here is the breakdown of the problem and their solution, using simple analogies.

The Problem: The "Live Store" vs. The "Toy Store" Dilemma

Currently, researchers have two bad options for testing shopping robots:

  1. The "Live Store" (Too Chaotic): Imagine trying to teach a robot to shop in a real, bustling supermarket. The problem is that the store changes every day. The shelves get rearranged, the prices change, the layout shifts, and sometimes the store is running a secret test for some customers but not others.

    • The Result: If the robot fails today, you don't know if it's because the robot is bad or because the store changed its layout. You can't repeat the test exactly the same way tomorrow. It's like trying to grade a student's math test while the teacher keeps changing the numbers on the board.
  2. The "Toy Store" (Too Simple): The alternative is a fake store built by hand, like a Lego set. It's very stable; the shelves never move.

    • The Problem: It's too simple. It only has a few types of boxes and a tiny selection of toys. Real shopping involves thousands of products, complex filters, and weird website layouts. A robot that masters the Lego store might still get lost in a real supermarket.

The Core Bottleneck: We need a training ground that feels like a real store (so the robot learns real skills) but acts like a toy store (so we can test it fairly and repeatedly).

The Solution: ShopGym

The authors built ShopGym, a framework that acts like a "Digital Twin Factory." It has two main parts: ShopArena and ShopGuru.

1. ShopArena: The "Digital Twin Factory"

Think of this as a machine that takes a photo of a real, messy store and prints out a perfect, clean, but identical-looking replica.

  • How it works:
    • The Explorer: A team of AI agents visits a real website (the "Seed Shop"). They don't buy anything; they just take notes. They map out the navigation, count the products, and note how the filters work. Crucially, they strip away all the real names (like "Nike" or "Coca-Cola") and replace them with fake names (like "Brand X" or "Drink Y").
    • The Architect: This team writes a "blueprint" (a specification) based on those notes.
    • The Builder: Another team of AI agents reads the blueprint and builds a brand-new, self-contained website from scratch. It looks and behaves exactly like the real store, but it's made of synthetic data.
  • The Magic: Because it's built from a blueprint, you can reset it to zero instantly. You can run the same test 1,000 times, and the store will look exactly the same every time. But because it was built from a real store's structure, it's just as complex as the real thing.

2. ShopGuru: The "Exam Creator"

Once the fake store is built, you need to give the robot a test. ShopGuru is the teacher that writes the exam questions.

  • Short-Horizon Tasks (The Pop Quiz): These are simple, single-step questions like, "Find the red shirt" or "Check the shipping policy." These test basic skills.
  • Long-Horizon Tasks (The Final Project): These are complex stories. For example: "You are a person with three dogs. Find dog food, then find cat litter, then check if you qualify for free shipping, and finally put both in your cart."
  • The Safety Check: ShopGuru doesn't just guess. It checks its own questions against the fake store's database to make sure the answers actually exist. It won't ask the robot to find a "purple toaster" if the store doesn't sell toasters.

How They Tested It

To prove their idea works, they did two things:

  1. Structural Check: They compared the "Digital Twin" stores to the real stores using a graph (like a map of connections). They found the fake stores had the same number of pages, the same depth of menus, and the same complexity as the real ones.
  2. Behavioral Check: They ran top-tier AI robots on both the real stores and the fake "Twin" stores.
    • The Result: The robots performed almost identically on both. If a robot was good at shopping on the real store, it was good on the fake one. If it struggled on the real one, it struggled on the fake one.

The Bottom Line

ShopGym solves the "Realism vs. Control" trade-off.

  • It gives researchers a stable, resettable, and fair environment (like a video game level).
  • But because it is built from real data, it preserves the complexity and difficulty of real-world shopping.

This means we can finally train and test shopping robots in a way that is scientific, reproducible, and actually useful for the real world, without the chaos of live websites changing under our feet.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →