Abstract
Dense retrieval, as the core component of e-commerce search engines, maps user queries and items into a unified semantic space through pre-trained embedding models to enable large-scale real-time semantic retrieval. Despite the rapid advancement of LLMs gradually replacing traditional BERT architectures for embedding, their training paradigms still adhere to BERT-like supervised fine-tuning and hard negative mining strategies. This approach relies on complex offline hard negative sample construction pipelines, which constrain model iteration efficiency and hinder the evolutionary potential of semantic representation capabilities. Besides, existing multi-task learning frameworks face the seesaw effect when simultaneously optimizing semantic relevance and non-relevance objectives. In this paper, we propose Retrieval-GRPO, a multi-objective reinforcement learning-based dense retrieval framework designed to address these challenges. The method eliminates offline hard negative sample construction by dynamically retrieving Top-K candidate products for each query during training, while introducing a relevance LLM as a reward model to generate real-time feedback. Specifically, the retrieval model dynamically optimizes embedding representations through reinforcement learning, with reward signals combining LLM-generated relevance scores, product quality scores, and multi-way exclusivity metrics to achieve multi-objective user preference alignment and real-time error correction. This mechanism not only removes dependency on hard negatives but also mitigates the seesaw effect through collaborative multi-objective optimization, significantly enhancing the model's semantic generalization capability for complex long-tail queries. Extensive offline and online experiments validate the effectiveness of Retrieval-GRPO, which has been deployed on China's largest e-commerce platform.
Introduction
In modern e-commerce, dense retrieval is the standard for matching user intent with relevant products. By embedding queries and items into a high-dimensional vector space, systems can perform efficient semantic matching. However, traditional training paradigms face two major hurdles. First, the Hard Negative Bottleneck: effective training requires "hard negatives"—items that are semantically similar to the query but irrelevant. These are typically mined offline in a static, time-consuming process, meaning the model often trains on outdated negatives. Second, the Seesaw Effect: optimizing for multiple objectives like relevance, product quality, and exclusivity often leads to performance trade-offs where improving one metric degrades another.
The Retrieval-GRPO Framework
To overcome these limitations, we introduce Retrieval-GRPO, a framework that shifts dense retrieval training from static data pipelines to dynamic reinforcement learning.
The framework operates in two stages:
- Supervised Fine-Tuning (SFT): The model is initialized with standard query-item pairs to establish basic discriminative capabilities.
- Retrieval-GRPO Tuning: During this phase, the model dynamically retrieves Top-K candidate items for each query. This "on-policy" retrieval allows the model to receive immediate feedback on its current errors.
Multi-Objective Reward Function
The retrieved items are evaluated by a composite reward function:
- Relevance Reward: Provided by TaoSR1, a 42B-parameter Mixture-of-Experts (MoE) LLM acting as a teacher to score how well the item matches the query.
- Quality Reward: Derived from historical transaction data and user satisfaction metrics.
- Exclusivity Reward: Penalizes items that are already easily found by traditional keyword-based search, encouraging the dense retriever to surface unique, semantically relevant items.
Optimization is performed using Group Relative Policy Optimization (GRPO), which calculates rewards relative to a group of samples, avoiding the need for a separate, complex value model and ensuring computational efficiency.
Experimental Results and Insights
The framework was evaluated using massive datasets from Taobao's search logs, including specialized sets for long-tail and complex queries (e.g., negations and substitutes).
Key findings include:
- Offline Performance: Retrieval-GRPO achieved a 4-point improvement in Goodrate@100 across challenging query slices compared to state-of-the-art baselines.
- Long-Tail Generalization: The model showed significant gains (e.g., +4.62 points in the "Alternative" category), demonstrating a deep understanding of user intent beyond simple keyword matching.
- Online Impact: Live A/B testing on Taobao resulted in a +29.88% GSB (Good/Same/Bad) improvement over the previous production baseline, directly translating to higher conversion rates.
Conclusion
Retrieval-GRPO successfully mitigates the "seesaw effect" and removes the dependency on static hard negative mining by leveraging dynamic reinforcement learning and LLM-based rewards. While the framework requires an initial SFT stage and significant infrastructure for the 42B-parameter teacher model, its ability to perform real-time error correction and multi-objective optimization represents a major advancement for large-scale e-commerce search. Future work will focus on diversifying reward signals and further optimizing training efficiency.
Summary updated