Validation Set Evaluation can be Wrong: An Evaluator-Generator Approach for Maximizing Online Performance of Ranking in E-commerce

Guangda Huzhang, Zhen-Jia Pang, Yongqing Gao, Wen-Ji Zhou, Qing Da, Anxiang Zeng, Yang Yu

Abstract

Learning-to-rank (LTR) is a cornerstone of modern E-commerce, yet traditional models often suffer from a significant "offline-online inconsistency." Models that excel on static offline metrics like AUC or NDCG frequently underperform in live environments because they fail to account for item context—the way surrounding items influence a user's decision. This paper introduces EG-Rerank+, an evaluator-generator framework that models the ranking process as a reinforcement learning problem within a learned virtual environment. By using an adversarial discriminator to maintain realism, the framework ensures that generated rankings are both high-performing and reliable. Deployed on AliExpress Search, EG-Rerank+ achieved a significant improvement (>2%) in Conversion Rate (CR) over highly tuned industrial baselines.

The Problem: The Context Gap in Offline Evaluation

In E-commerce, ranking systems are traditionally trained on historical logs to predict clicks or purchases. These models are evaluated offline using static datasets. However, practitioners often find that a model's success on offline metrics does not translate to online performance.

The primary reason for this gap is the decoy effect and other context-dependent behaviors. A user's decision to purchase an item is not made in a vacuum; it is heavily influenced by the items displayed alongside it. For instance, placing a slightly inferior, higher-priced item next to a target item can make the target appear more attractive, increasing its purchase probability.

Illustration of the decoy effect: placing a less attractive item (c*) can make item (c) more appealing to users compared to a balanced list.

Static offline datasets cannot capture these dynamics because they only reflect the specific permutations shown to users in the past. When a new model proposes a different ordering, the historical ground truth becomes an unreliable proxy for user behavior.

The EG-Rerank+ Framework

To bridge this gap, the authors propose EG-Rerank+, a framework that moves beyond static metrics toward a dynamic, learned evaluation system. The architecture consists of three core components:

  1. The Evaluator: A deep neural network (utilizing LSTMs) trained to act as a virtual user. It evaluates an entire list of items and predicts the overall purchase probability, capturing the sequential context and mutual influence between items.
  2. The Generator: A reinforcement learning (RL) agent trained via Proximal Policy Optimization (PPO). Its goal is to generate item sequences that maximize the reward (purchase probability) provided by the Evaluator.
  3. The Discriminator: RL agents are prone to "reward hacking"—finding unrealistic list permutations that exploit the Evaluator's blind spots. The Discriminator uses adversarial learning to ensure the Generator produces lists that resemble real-world historical data, acting as a guardrail for generalization.
The EG-Rerank+ architecture: A Generator creates ordered lists, which are then assessed by a Discriminator for realism and an Evaluator for performance.

Key Results and Online Impact

The framework was tested both in a controlled simulation and in live production on AliExpress Search.

  • Simulation Findings: The authors demonstrated that models optimized for standard metrics like GAUC often performed poorly on the "True Score" (actual expected purchases). EG-Rerank+ achieved a True Score of 6.97, significantly higher than classic methods like RankNet (5.54), despite having a lower offline GAUC. This confirms that optimizing for traditional metrics can be actively misleading.
  • Online A/B Testing: In large-scale tests on AliExpress, EG-Rerank+ delivered a +2.22% improvement in Conversion Rate (CR) compared to a fine-tuned industrial RankNet model. This lift was achieved with negligible impact on system latency (approx. 2ms increase), making it highly suitable for production environments.

Conclusion

The success of EG-Rerank+ proves that dynamic, context-aware evaluators are far more effective than static datasets for optimizing E-commerce rankings. By treating the ranking task as a generative process guided by a virtual user and constrained by a discriminator, platforms can overcome the limitations of offline-online inconsistency and drive meaningful gains in real-world performance.

Summary updated

Abstract

Learning-to-rank (LTR) has become a key technology in E-commerce applications. Most existing LTR approaches follow a supervised learning paradigm from offline labeled data collected from the online system. However, it has been noticed that previous LTR models can have a good validation performance over offline validation data but have a poor online performance, and vice versa, which implies a possible large inconsistency between the offline and online evaluation. We investigate and confirm in this paper that such inconsistency exists and can have a significant impact on AliExpress Search. Reasons for the inconsistency include the ignorance of item context during the learning, and the offline data set is insufficient for learning the context. Therefore, this paper proposes an evaluator-generator framework for LTR with item context. The framework consists of an evaluator that generalizes to evaluate recommendations involving the context, and a generator that maximizes the evaluator score by reinforcement learning, and a discriminator that ensures the generalization of the evaluator. Extensive experiments in simulation environments and AliExpress Search online system show that, firstly, the classic data-based metrics on the offline dataset can show significant inconsistency with online performance, and can even be misleading. Secondly, the proposed evaluator score is significantly more consistent with the online performance than common ranking metrics. Finally, as the consequence, our method achieves a significant improvement (\textgreater$2\%$) in terms of Conversion Rate (CR) over the industrial-level fine-tuned model in online A/B tests.
BibTeX
@misc{huzhang2020validation,
  author = {Guangda Huzhang and Zhen-Jia Pang and Yongqing Gao and Wen-Ji Zhou and Qing Da and Anxiang Zeng and Yang Yu},
  title = {{Validation Set Evaluation can be Wrong: An Evaluator-Generator Approach for Maximizing Online Performance of Ranking in E-commerce}},
  year = {2020},
  eprint = {2003.11941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11941},
}
Figure