TaoSR-SHE: Stepwise Hybrid Examination Reinforcement Learning Framework for E-commerce Search Relevance

Pengkun Jiao, Yiming Jin, Jianhui Yang, Chenhe Dong, Zerui Huang, Shaowei Yao, Xiaojiang Zhou, Dan Ou, Haihong TangarXiv 2025 · DOI

Determining if a product is relevant to a user's query is a multi-billion dollar challenge in e-commerce. Traditionally, this has been handled by discriminative "black-box" models that output a single score. While effective, these models offer no insight into why a product was chosen, making them difficult to debug and prone to errors on complex queries involving negation or specific attributes.

To address this, the SHE (Stepwise Hybrid Examination) framework trains Large Language Models (LLMs) to "think" through decisions step-by-step. By combining a generative reward model with rule-based verification and a novel stepwise reinforcement learning algorithm (SRPO), the system achieves higher accuracy and better interpretability than standard models.

The SHE Framework: Solving Sparse Rewards

Standard Reinforcement Learning (RL) typically suffers from sparse rewards—the model only receives feedback at the very end of its reasoning chain. If a model reaches the right answer for the wrong reasons, or fails a complex task due to a single logical slip, standard RL struggles to provide fine-grained correction.

SHE tackles this by providing feedback at every stage of the reasoning process, breaking it into five distinct steps: Query Interpretation, Item Interpretation, Category Relevance, Attribute Relevance, and Final Judgment.

The Generative Stepwise Reward Model training pipeline, incorporating human examination and difficulty/diverse sampling.

Stepwise Hybrid Reward and SRPO

  1. Hybrid Supervision: For open-ended steps (like interpreting a query), SHE uses a Generative Stepwise Reward Model (a separate LLM trained to judge reasoning quality). For structured steps (like category matching), it employs rule-based verification against ground-truth data.
  2. SRPO (Stepwise Reward Policy Optimization): This is the core algorithmic contribution. Unlike standard GRPO (Group Relative Policy Optimization), which assigns a single reward to an entire sequence, SRPO calculates a step-level advantage. This allows the model to receive specific "credit" or "blame" for individual steps in its thought process, preventing "reward hacking" where a model learns correct labels through flawed logic.

Data-Centric Strategies

The researchers utilized data from Taobao’s online search logs, applying several strategies to ensure high-quality training:

  • Offline Rejection Sampling: Filtering out "uninformative" examples where the model is already consistently right or wrong, focusing compute on "hard" cases.
  • Diverse & Difficulty Sampling: Ensuring the training data is balanced across different product categories and difficulty levels.
  • Curriculum Learning: Training the model in stages, starting with easier, balanced data before moving to more challenging, "hard-mined" samples.
The sampling process used to transform unbalanced raw search data into a balanced training set.

Key Results and Online Impact

The framework was tested against a manually annotated "in-the-wild" set of 21,616 pairs focused on difficult categories like negation and knowledge-based queries.

  • Offline Performance: SHE (using SRPO) outperformed SFT, DPO, and standard GRPO. On the test set, it achieved a Macro F1 of 66.03 and an Accuracy of 79.18%, significantly higher than the SFT baseline (63.9 F1 / 76.41% Accuracy).
  • Stepwise Accuracy: The Generative Reward Model itself proved highly reliable, with verification accuracies for individual reasoning steps exceeding 90%.
  • Online Impact: In live A/B testing on Taobao, the framework led to a +1.48% increase in Gross Merchandise Value (GMV) and a +1.26% increase in orders, proving that better reasoning translates to real-world business value.

Insights and Future Directions

A critical finding was that "perfect" relevance doesn't always equal more sales. Initially, improved relevance judgments led to a slight dip in sales because the model prioritized highly relevant items that had historically low conversion rates. The team adjusted the upstream pipeline to balance relevance with business metrics, highlighting the need for better integration of "pure" relevance signals into the broader multi-objective ranking ecosystem.

While the implementation of SRPO increases training costs by approximately 1.5x, the gains in interpretability and accuracy suggest that rewarding the process of reasoning is ultimately more effective than just rewarding the result.

Summary updated

BibTeX
@misc{jiao2025taosr,
  author = {Pengkun Jiao and Yiming Jin and Jianhui Yang and Chenhe Dong and Zerui Huang and Shaowei Yao and Xiaojiang Zhou and Dan Ou and Haihong Tang},
  title = {{TaoSR-SHE: Stepwise Hybrid Examination Reinforcement Learning Framework for E-commerce Search Relevance}},
  year = {2025},
  eprint = {2510.07972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.07972},
}
Figure