Introduction
In the high-stakes environment of e-commerce, search engines must balance extreme speed with high recall. The first stage of the search pipeline—retrieval—is responsible for narrowing down millions of products to a relevant subset. While traditional sparse retrieval methods like BM25 are efficient, they often fail to bridge the semantic gap between user queries and product descriptions. Conversely, dense retrieval methods offer semantic depth but come with significant storage and interpretability costs.
This paper introduces PROSPER (PROduct search leveraging LLMs as SParsE Retrievers), a framework that utilizes Large Language Models (LLMs) to perform learned sparse retrieval. By addressing the inherent training instabilities and "hallucinations" associated with LLMs in high-dimensional spaces, PROSPER achieves state-of-the-art recall while maintaining the benefits of sparse indexing.
The Challenge: Hallucination and Training Instability
Transitioning from BERT-based sparse retrievers (like SPLADE) to modern LLMs introduces two primary difficulties. First, LLMs tend to suffer from Lexical Expansion Hallucination. Because e-commerce queries are short, LLMs may generate irrelevant synonyms while neglecting critical literal terms like brand names or model numbers.
Second, the massive vocabularies of LLMs (often exceeding 150,000 tokens) create an ultra-high-dimensional space that is difficult to optimize. Training a sparse representation from scratch in this environment often leads to unstable early-stage convergence.
The PROSPER Framework
To overcome these hurdles, PROSPER, built on the Qwen2.5-1.5B backbone, implements three core architectural innovations:
- Literal Residual Network (LRN): This mechanism acts as an anchor. It explicitly boosts the weights of the original "literal" terms in the query or item description. By ensuring that the model does not lose sight of the user's explicit intent (e.g., a specific brand), the LRN allows the LLM to safely expand into semantic synonyms without sacrificing precision.
- Lexical Focusing Window (LFW): To stabilize training, PROSPER employs a coarse-to-fine sparsification strategy. Initially, a hard
TopKmask forces the model to focus on the most critical tokens. As training progresses, this constraint is relaxed in favor of softer FLOPS regularization, allowing for more nuanced fine-tuning. - Asymmetric Normalization: Recognizing that queries and items serve different roles, PROSPER applies $L_2$ normalization only to query representations. This allows item representations to maintain a broader semantic coverage, which is essential for matching the diverse ways users might search for the same product.
Key Insights and Results
The research highlights that scaling laws behave differently in sparse retrieval; increasing the model size from 1.5B to 7B parameters provided negligible gains, suggesting that smaller LLMs are highly effective for this task.
Offline Evaluation: On the Multi-CPR E-commerce dataset, PROSPER outperformed BM25 by 10.2% and SPLADE by 4.3% in Hit@1000 recall. Its performance rivaled top-tier dense retrievers while remaining computationally efficient.
Online Impact: PROSPER was deployed on Taobao, serving approximately 1% of live traffic. The deployment resulted in a 0.64% increase in Total Guided Gross Merchandise Volume (TG-GMV) and a 0.22% improvement in Conversion Rate (CVR). These figures represent significant absolute revenue growth at the scale of one of the world's largest e-commerce platforms.
Conclusion
PROSPER demonstrates that LLMs can be successfully adapted for first-stage sparse retrieval by using targeted architectural constraints like the LRN and LFW. By combining the semantic power of LLMs with the efficiency of sparse indices, PROSPER provides a scalable, interpretable, and high-performance solution for modern product search. Future work will explore the use of Chain-of-Thought reasoning to further refine term expansion and reduce noise in the retrieval index.
Summary updated