Introduction
Traditional e-commerce search engines have long relied on a Multi-stage Cascading Architecture (MCA). This conventional pipeline progressively filters millions of items through distinct phases: Recall (candidate generation), Pre-ranking, and Ranking. While this approach has been the industry standard, it suffers from two fundamental flaws. First, fragmented compute means that a significant portion of server resources is wasted on data transfer and storing intermediate results between stages, rather than on actual model computation. Second, objective collision occurs because each stage optimizes for different goals. Recall prioritizes broad coverage using lightweight models, whereas Ranking focuses on precise user preferences using complex features. This misalignment often results in "early discard," where highly relevant items are filtered out by simple recall models before sophisticated ranking models can evaluate them.
To overcome these limitations, researchers have introduced OneSearch, the first industrially deployed end-to-end generative framework for e-commerce search. By treating search as a sequence-to-sequence task—generating item IDs directly from user queries—OneSearch replaces the fragmented "recall-then-rank" pipeline with a single, unified generative model.
The OneSearch Architecture
Applying Generative Retrieval (GR) to e-commerce is notoriously difficult due to noisy seller descriptions, strict relevance constraints, and the challenge of inferring intent from short queries. OneSearch addresses these hurdles through three core innovations:
1. Keyword-Enhanced Hierarchical Quantization Encoding (KHQE)
Instead of assigning random identifiers to products, OneSearch utilizes "Semantic IDs" (SIDs). It employs a hybrid quantization approach: RQ-Kmeans captures the broad category hierarchy, while Optimized Product Quantization (OPQ) captures fine-grained, distinctive attributes like color or brand. To prevent the model from being distracted by noisy promotional text in product titles, "core keywords" are injected into the encoding process. This ensures that even highly similar products (e.g., the same shoe in different sizes) maintain unique, meaningful identifiers.
2. Multi-View User Behavior Sequence (Mu-Seq)
To deliver highly personalized results, OneSearch constructs behavior-driven user IDs. The framework explicitly feeds short-term sequences (such as recent clicks) into the model while utilizing a "Q-Former" to compress long-term historical behavior into an implicit representation. This allows the generative model to reason over a comprehensive view of user intent.
3. Preference-Aware Reward System (PARS)
The model is trained using a three-stage Supervised Fine-Tuning (SFT) process to align the SIDs with textual descriptions and user profiles. Following SFT, OneSearch applies a list-wise Direct Preference Optimization (DPO) approach. This is guided by an adaptive reward model that weights different user actions appropriately (e.g., assigning a higher reward to a purchase than a click), capturing fine-grained user preferences.
Evaluation and Key Results
OneSearch was rigorously evaluated using a massive proprietary dataset from Kuaishou’s mall search platform, comprising approximately 1 billion Page Views (PVs) collected between May and August 2025. It was benchmarked against Kuaishou's production OnlineMCA, a state-of-the-art multi-stage system utilizing thousands of features.
The deployment of OneSearch yielded remarkable improvements across both business metrics and system efficiency:
- Significant Business Lift: In online A/B testing, OneSearch achieved statistically significant gains of +1.67% in item Click-Through Rate (CTR), +2.40% in buyer volume, and +3.22% in order volume.
- Hardware Efficiency and Cost Reduction: A single, large generative model proved vastly more efficient on modern hardware than a series of fragmented models. OneSearch improved Model FLOPs Utilization (MFU) from 3.26% to 27.32%—an 8.4x increase. Furthermore, eliminating the overhead of multi-stage communication resulted in a massive 75.40% reduction in operational expenditure (OPEX).
- Solving the "Seesaw" Effect: Traditional systems often see ranking precision drop when recall is improved. By optimizing the entire query-to-item path simultaneously, OneSearch effectively balances these competing metrics.
- Superior Cold-Start Performance: Surprisingly, the generative nature of OneSearch generalized better than feature-heavy ranking models on unseen data, outperforming the traditional system on "cold" items (+3.31% CTR) and new users (+2.50% CTR).
Limitations and Future Directions
While OneSearch represents a paradigm shift in e-commerce search, the authors note a few areas for ongoing development:
- Inventory Stability: E-commerce catalogs are highly dynamic. While the generated SIDs are relatively robust, massive inventory shifts (such as during major shopping festivals) require careful management of the SID pool.
- Real-Time Encoding: Currently, item SIDs are pre-calculated offline. Transitioning to online, real-time encoding will be necessary to handle newly listed items instantly.
- Multi-Modality: Future iterations of OneSearch aim to incorporate image and video features directly into the generative framework, further enhancing the model's ability to reason about visual product attributes.
Summary updated