It’s late, you’re tired, and you just want to find that specific "Old Jaguar water tank" for your project. You type it into a search bar. In a perfect world, the engine understands that "Jaguar" is a car brand, not a jungle cat, and that "water tank" is a specific component.
In the world of e-commerce, this is a high-stakes game called First-Stage Retrieval. You have billions of products and milliseconds to find the top thousand candidates. If you miss the right product here, no fancy "re-ranking" algorithm downstream can ever bring it back.
The paper PROSPER introduces a way to use Large Language Models (LLMs) to make this search smarter without losing the "literal" truth of what you typed.
TL;DR
PROSPER turns LLMs into "sparse retrievers"—search engines that use a traditional word-index but with "AI-powered" weights. It solves the two biggest headaches of LLM-based search: preventing the AI from "hallucinating" synonyms that drown out the actual brand names you typed, and managing the massive vocabulary of modern LLMs to keep things fast and efficient.
What Problem Does This Paper Address?
Search engines generally use two strategies:
- Sparse Retrieval (The Old Reliable): Think of a giant index at the back of a book. It’s fast and easy to understand, but it struggles with "vocabulary mismatch." If you search for "sneakers" and the product is listed as "running shoes," it might miss it.
- Dense Retrieval (The Semantic Wizard): This uses "embeddings" (vectors of numbers) to find meaning. It knows sneakers are shoes, but it’s a "black box," expensive to store, and sometimes forgets that "iPhone 15" is fundamentally different from "iPhone 14."
Researchers want to use LLMs for sparse retrieval because LLMs have incredible world knowledge. However, when you ask an LLM to expand a query like "Old Jaguar water tank," it might get over-excited and add terms like "lion" or "raccoon" (semantic expansion hallucination). This "noise" can drown out the critical literal terms like "Jaguar." Furthermore, LLMs have vocabularies of over 150,000 tokens, making it incredibly difficult to train a model to be "sparse" (i.e., only picking a few important words) from scratch.
Methods
The authors propose the PROSPER framework, which stands for PROduct search using LLMs as SParsE Retrievers. It introduces two clever components:
- Literal Residual Network (LRN): Think of this as a "literal insurance policy." The LLM generates semantic weights for words, but the LRN specifically looks at the words actually present in the query. It calculates a "residual" (extra weight) to boost those original words, ensuring that "Nike" stays the most important term even if the model also thinks of "sports," "running," and "shoes."
- Lexical Focusing Window (LFW): Training a model to pick 20 important words out of 150,000 is like finding a needle in a haystack. LFW acts as "training wheels." During the early stages of training, it forces the model to only look at the top-k most important terms. This speeds up convergence and helps the model learn a clean, sparse representation quickly.
Datasets
The authors didn't just test this in a lab; they went to the real world:
- Multi-CPR E-commerce: A public Chinese dataset for passage retrieval, specifically the e-commerce subset with over 1 million products.
- Real-world E-commerce: A massive proprietary dataset from Alibaba (Taobao/Tmall) consisting of 1.07 million query-item pairs sampled from actual user click logs.
Key Insights and Ideas
- The "Hallucination" of Meaning: Standard LLM-based retrievers often underweight brand names. For a query like "Elysee oil filter," a standard model might focus on "oil" and "filter" but ignore "Elysee," leading to a flood of irrelevant generic filters. PROSPER fixes this by anchoring the model to the literal text.
- Sparsity is a Feature, Not a Bug: By keeping the output "sparse" (mostly zeros in the vector), the system can use traditional inverted indices. This makes it much cheaper to store (1.5 GB vs. 8 GB for dense models) and faster to search.
- Asymmetric Normalization: They found that applying normalization only to the query (and not the product) worked best. This encourages the model to be picky about query terms while allowing product titles to retain all their descriptive attributes.
Key Results
The numbers are impressive, especially for an industrial setting where even a 0.1% gain is huge:
- Offline: On the Multi-CPR dataset, PROSPER improved Hit@1000 (the probability the right item is in the top 1000) by 10.2% over the classic BM25 and 4.3% over the previous state-of-the-art (SPLADE-v2).
- Online: In a large-scale A/B test on a major e-commerce platform, PROSPER led to a 1.60% increase in Net GMV (Gross Merchandise Volume—basically, total sales revenue).
- Efficiency: PROSPER achieved a superior trade-off between effectiveness and computational cost compared to both traditional sparse methods and modern dense encoders.
Limitations and Future Work
While PROSPER is a big step forward, the authors note that using model logits for expansion can still occasionally introduce noisy terms. They suggest two exciting future directions:
- Chain-of-Thought (CoT) Reasoning: Letting the LLM "think" through why a product is relevant before assigning weights.
- Category Filtering: Using the product's category (e.g., "Electronics" vs. "Clothing") to further refine and filter the semantic expansions.
In short, PROSPER proves that you don't have to choose between the "brain" of an LLM and the "memory" of a keyword index. You can have both, and your search for that Jaguar water tank just got a whole lot easier.
Summary updated