Imitate TheWorld: A Search Engine Simulation Platform

Yongqing Gao, Guangda Huzhang, Weijie Shen, Yawen Liu, Wen-Ji Zhou, Qing Da, Dan Shen, Yang YuarXiv 2021

Abstract

Recent E-commerce applications benefit from the growth of deep learning techniques. However, many works attempt to maximize business objectives by closely matching offline labels following the supervised learning paradigm. This results in models that obtain high offline performance in terms of Area Under Curve (AUC) and Normalized Discounted Cumulative Gain (NDCG), but cannot consistently increase revenue metrics such as purchase volume. To address these issues, we built AESim, a simulated search engine that provides feedback via a well-trained discriminator for generated pages, acting as a dynamic dataset. Unlike previous simulation platforms that lose connection with the real world, AESim depends on real data from AliExpress Search. We utilize adversarial learning to generate virtual users and Generative Adversarial Imitation Learning (GAIL) to capture user behavior patterns. Our experiments demonstrate that AESim reflects online performance more accurately than classic ranking metrics, serving as an effective surrogate for evaluating models without the risks of live deployment.

Introduction: The Offline-Online Gap

In industrial E-commerce search, a persistent challenge is the offline-online inconsistency. Data scientists often develop Learning-to-Rank (LTR) models that achieve record-breaking scores in traditional metrics like AUC or NDCG. However, when deployed to a live environment, these models frequently fail to translate into actual business growth, such as increased purchase volume or revenue.

Testing every new model via live A/B testing is expensive, slow, and potentially detrimental to the user experience. While simulators exist, they often suffer from being too simplistic or losing their grounding in real-world data distributions. AESim was designed to bridge this gap by creating a high-fidelity "surrogate" environment that is realistic enough to evaluate models before they ever interact with a real customer.

Methodology: Replicating the Industrial Pipeline

AESim replicates the standard three-stage industrial search pipeline used by platforms like AliExpress. This process involves filtering down a massive item database into a small, ranked list for the user.

The standard industrial search pipeline replicated in AESim, narrowing down billions of items to a final display set.

As shown in Figure 1, the pipeline consists of:

  1. Retrieval: Identifying approximately 1,000 relevant items from a pool of billions ($10^9$).
  2. Ranking: Scoring and narrowing those items down to the top 50 ($10^2$ scale).
  3. Re-ranking: Determining the final ordering of the top 10 items for display.

The AESim Architecture

The core innovation of AESim lies in its ability to simulate human interaction dynamically. The system architecture integrates real-world data with advanced generative models to ensure fidelity.

The comprehensive AESim architecture, integrating real-world data sources with adversarial simulation modules.
  • Virtual User Module (WGAN-GP): To generate realistic search queries and user profiles, AESim employs a Wasserstein Generative Adversarial Network with Gradient Penalty. This ensures that the "fake" users have feature distributions—both discrete and dense—that are statistically indistinguishable from real AliExpress shoppers.
  • Feedback Module (GAIL): Rather than relying on hard-coded rules for clicks, the system uses Generative Adversarial Imitation Learning (GAIL). By observing millions of real user trajectories, the feedback module learns to "imitate" how a user decides to click or purchase an item based on its position and specific attributes.
  • Dynamic Dataset: Unlike static datasets with fixed labels, AESim generates feedback on-the-fly. If a new ranking model changes the order of items, the GAIL-based feedback module reacts dynamically, providing a more honest assessment of the model's impact on user behavior.

Key Insights and Results

Metrics Aren't Everything

A primary insight from our research is that models can "overfit" to offline metrics. For example, the Deep Listwise Context Model (DLCM) achieved the highest GAUC in offline tests but performed the worst in both AESim and real-world online tests. This highlights the danger of relying solely on static metrics for model selection.

Visual and Statistical Fidelity

Using TSNE plots and feature distribution analysis, we confirmed that our virtual users and queries are virtually indistinguishable from real ones. This grounding in real-world data from AliExpress Search—including millions of active items and labeled logs—is what allows AESim to maintain its predictive power.

Predictive Power in A/B Testing

In head-to-head comparisons, AESim’s evaluation of various ranking methods (Point-wise, Pair-wise, ListMLE, and DLCM) closely matched the performance trends observed in 10 days of live A/B testing involving millions of users. AESim correctly identified the Point-wise model as the most stable and effective for the specific AliExpress task, despite it being a theoretically "simpler" approach than more complex listwise methods.

Conclusion and Future Work

AESim serves as a powerful "rough judgment" tool, allowing researchers to filter out ineffective models before they reach production. While currently focused on evaluating single models, future work will explore joint learning—optimizing the retriever, ranker, and re-ranker simultaneously within the simulation. We also aim to extend this framework to other E-commerce scenarios with diverse behavioral patterns, further refining the ability to "imitate the world."

Summary updated

BibTeX
@misc{gao2021imitate,
  author = {Yongqing Gao and Guangda Huzhang and Weijie Shen and Yawen Liu and Wen-Ji Zhou and Qing Da and Dan Shen and Yang Yu},
  title = {{Imitate TheWorld: A Search Engine Simulation Platform}},
  year = {2021},
  eprint = {2107.07693},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.07693},
}
Figure