Online search teams can measure purchases by trying ranking changes on live visitors, but reinforcement learning may require many attempts that would expose shoppers to untested choices. Researchers at Nanjing University and Alibaba put a simulator between the experimental policy and the store. Jing-Cheng Shi and colleagues described it in a 2018 preprint and a 2019 AAAI paper. Their objective was commodity search on Taobao. The simulator was fitted to historical interaction data, and it let the team train candidate policies before putting those candidates on live traffic. [1][2]
The design had separate components for creating virtual customers and modeling how they reacted. The first generated customer features with a distribution intended to resemble the real population. The second learned shopping behavior from sequences of interactions. The team then trained a search policy in the simulated environment. It used a constraint to discourage large actions that took advantage of inaccuracies in the simulator. [2]
The authors said that their collection procedure produced about 400 million historical records from a live test bucket. That is a record count. It does not imply that 400 million distinct people participated. They checked whether the simulator reproduced the relative behavior of several groups and how their purchase-page metric varied over time. In later experiments they compared an offline-trained reinforcement-learning policy with two supervised baselines in separate 24-hour live tests. [2]
The paper reports values of 0.101 for the reinforcement-learning policy and 0.096 and 0.098 for the two supervised policies on the ratio of page views in which a purchase occurred. The authors also examined turnover and volume. These are comparisons reported by the study team over a short window. They do not establish a sitewide rollout, long-term customer effects or a general gain for any search engine that adopts reinforcement learning. [2]
Historical logs show how people reacted to the actions a previous policy actually took. They do not reveal how those same people would react to every ranking the new policy might choose. A simulator fills in those missing responses with a learned model. The same feature makes it vulnerable to an optimizing policy discovering an implausibly favorable response in parts of the simulated environment that the training data describe poorly. [2]
The paper documents this problem directly. A policy without the action penalty obtained a purchase-page ratio of 0.3 in simulation, which the authors considered implausible for the real system. Constraining the action lowered the simulated score to 0.115; the constrained policy did better in the live comparison with the unconstrained policy. The result shows why a higher simulated reward can be a warning rather than evidence of a better candidate. [2]
Analysis & application
Start with a small set of outcomes that the real product already measures. Compare their distributions by customer segment, action and time period. Hold out data from later periods, and inspect which actions the policy uses when it improves unusually fast. Define limits on those actions before running a small live comparison. Preserve a stable baseline and record the cases in which simulation and live measurements disagree. [2]
Treat the scope of the evaluation as part of the result. A short experiment can test purchase behavior during the run. Longer retention, selection diversity and effects on sellers need their own measures and observation windows. These are additional evaluation questions, even if a team can build a simulator for the same storefront. [2][3]
Later researchers used Virtual-Taobao as a comparison point when building KuaiSim. They reconstructed a version on the separate KuaiRand dataset for a benchmark. That independent work documents reuse of the simulator design and illustrates how alternative models can be compared with a fixed learning algorithm. It does not independently rerun Taobao’s original live experiment. Together the two studies support a narrower lesson: a simulator can make repeated development tests practical, while the results still depend on the dataset, the simulated task and the checks made on live traffic. [2][3]
FOLLOW THE EVIDENCE
The sources
- Virtual-Taobao: Virtualizing Real-world Online Retail Environment for Reinforcement Learning Jing-Cheng Shi and colleagues, arXiv · arxiv.org ·
- Virtual-Taobao: Virtualizing Real-World Online Retail Environment for Reinforcement Learning Proceedings of AAAI, Shi and colleagues · cdn.aaai.org ·
- KuaiSim: A Comprehensive Simulator for Recommender Systems Kesen Zhao, Shuchang Liu and colleagues, arXiv · arxiv.org ·