OneSearch-V2: The Latent Reasoning Enhanced Self-distillation Generative Search Framework
Organizations: Kuaishou Technology, Beijing, China
Abstract
Generative Retrieval (GR) has emerged as a promising paradigm for modern search systems. Compared to multi-stage cascaded architecture, it offers advantages such as end-to-end joint optimization and high computational efficiency. OneSearch, as a representative industrial-scale deployed generative search framework, has brought significant commercial and operational benefits. However, its inadequate understanding of complex queries, inefficient exploitation of latent user intents, and overfitting to narrow historical preferences have limited its further performance improvement. To address these challenges, we propose OneSearch-V2, a latent reasoning enhanced self-distillation generative search framework. It contains three key innovations: (1) a thought-augmented complex query understanding module, which enables deep query understanding and overcomes the shallow semantic matching limitations of direct inference; (2) a reasoning-internalized self-distillation training pipeline, which uncovers users' potential yet precise e-commerce intentions beyond log-fitting through implicit in-context learning; (3) a behavior preference alignment optimization system, which mitigates reward hacking arising from the single conversion metric, and addresses personal preference via direct user feedback. Extensive offline evaluations demonstrate OneSearch-V2's strong query recognition and user profiling capabilities. Online A/B tests further validate its business effectiveness, yielding +3.98% item CTR, +2.07% buyer volume, and +2.11% order volume. Manual evaluation further confirms gains in search experience quality, with +1.37% in page good rate and +1.65% in query-item relevance. More importantly, OneSearch-V2 effectively mitigates common search system issues such as information bubbles and long-tail sparsity, without incurring additional inference costs or serving latency.
Figures & tables
| Type | Model ∗ | Size | CUR | ICR | Recall | MRR |
|---|---|---|---|---|---|---|
| uni- | bge-base | 109M | 4.54% | 96.88% | 0.2445 | 0.1013 |
| qwen3 | 0.6B | 5.11% | 97.56% | 0.2468 | 0.1025 | |
| multi- | uniecs | 200M | 4.54% | 94.62% | 0.2368 | 0.1007 |
| bge-vl | 149M | 4.23% | 94.46% | 0.2364 | 0.1009 | |
| qwen3-vl | 2B | 4.86% | 95.27% | 0.2389 | 0.1012 | |
| CLIP | 188M | 4.03% | 94.16% | 0.2358 | 0.1003 |
| Procedure | SFT Stage 1 | SFT Stage 2 | SFT Stage 3 | RL Stage |
|---|---|---|---|---|
| Objective | Semantic alignment | \langle\text{qi}\rangle\ co\text{-}occurrence | User personalization | Preference Alignment |
| Component | \begin{array}[]{c}\text{query/item}\leftrightarrow\text{SID}\\ \text{query/item}\mapsto\text{category}\\ \text{SID}\mapsto\text{category}\\ \text{{CoT}}\ \text{{tasks}}\end{array} | \begin{array}[]{c}\text{query}\leftrightarrow\text{item}\\ \text{SID_{q}}\leftrightarrow\text{SID_{i}}\\ \end{array} | \begin{bmatrix}uid\ \&\ q\\ {SID}_{q}\ \&\ Seq_{q}\\ \text{Seq_{short}}\ \&\ \text{Seq_{long}^{emb} }\\ \text{keywords}\ \text{({RAG})}\end{bmatrix}\mapsto{SID}_{q} | \begin{bmatrix}\text{user \& query}\\ \text{seq. feat.}\\ \text{item_{clk/order}}\\ \text{item_{rollout}}\end{bmatrix}\mapsto\text{Rank Score} |
| Model | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@n | MRR@n | HR@n | MRR@n | |
| baseline | 0.2046 | 0.0985 | 0.2231 | 0.0728 |
| + CoT tasks | 0.2094 | 0.1008 | 0.2266 | 0.0731 |
| + direct CoT | 0.0898 | 0.0189 | 0.1013 | 0.0146 |
| + RAG | 0.2139 | 0.1011 | 0.2327 | 0.0743 |
| Model | Head | Tail | ||
|---|---|---|---|---|
| HR@n | MRR@n | HR@n | MRR@n | |
| baseline | 0.2362 | 0.0817 | 0.1952 | 0.0733 |
| + CoT tasks | 0.2419 | 0.0829 | 0.1963 | 0.0734 |
| + direct CoT | 0.1116 | 0.0180 | 0.0809 | 0.0120 |
| + RAG | 0.2438 | 0.0845 | 0.1973 | 0.0779 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| OneSearch | 0.2046 | 0.0985 | 0.2231 | 0.0728 |
| + CoT tasks | 0.2094 | 0.1008 | 0.2266 | 0.0731 |
| + self-distill | 0.2163 | 0.1017 | 0.2398 | 0.0757 |
| + rdrop | 0.2168 | 0.1045 | 0.2398 | 0.0760 |
| + FGM | 0.2180 | 0.1047 | 0.2422 | 0.0766 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Baseline | 0.2046 | 0.0985 | 0.2231 | 0.0728 |
| + R-Drop | 0.2124 | 0.1020 | 0.2292 | 0.0733 |
| + FGM | 0.2109 | 0.1011 | 0.2279 | 0.0732 |
| + Focal Loss | 0.2074 | 0.1010 | 0.2237 | 0.0723 |
| Self-Distill | 0.2163 | 0.1017 | 0.2398 | 0.0757 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Base (S) † | 0.2094 | 0.1008 | 0.2266 | 0.0731 |
| Base (T) ‡ | 0.2139 | 0.1011 | 0.2327 | 0.0743 |
| Self-Distill (T) | 0.2155 | 0.1015 | 0.2397 | 0.0756 |
| Self-Distill (S) | 0.2163 | 0.1017 | 0.2398 | 0.0757 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Baseline | 0.2094 | 0.1008 | 0.2266 | 0.0731 |
| (i) Special-token | 0.2092 | 0.0999 | 0.2335 | 0.0739 |
| (ii) Latent + CODI | 0.2105 | 0.0985 | 0.2269 | 0.0714 |
| (iii) EMA-mode | 0.2097 | 0.1009 | 0.2317 | 0.0746 |
| (iv) Joint-mode | 0.2156 | 0.1016 | 0.2348 | 0.0748 |
| Method | Item CTR | PV CTR | PV CVR | Buyer | Order |
|---|---|---|---|---|---|
| OneSearch-V2_RAG | +0.52% | +0.77% | +0.63% | +1.04% | +1.07% |
| OneSearch-V2_Reason | +2.59% | +1.42% | +2.21% | +1.50% | +1.57% |
| OneSearch-V2 | +3.98% | +1.17% | +2.90% | +2.07% | +2.11% |
| Metric | Page Good Rate | Item Quality | Q-I Relevance |
|---|---|---|---|
| V2_Reason | +1.12% | +0.28% | +1.01% |
| V2_Full | +1.37% | +0.55% | +1.65% |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Baseline | 0.2094 | 0.1008 | 0.2266 | 0.0731 |
| Self-Distill (KL) | 0.2163 | 0.1017 | 0.2398 | 0.0757 |
| CODI | 0.2105 | 0.0985 | 0.2269 | 0.0714 |
| CODI + Proj | 0.2092 | 0.0998 | 0.2270 | 0.0717 |
| CODI + Proj + SD | 0.2084 | 0.1002 | 0.2230 | 0.0720 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Baseline | 0.2088 | 0.0993 | 0.2270 | 0.0733 |
| + self-distill | 0.2128 | 0.1011 | 0.2325 | 0.0734 |
| + R-Drop | 0.2168 | 0.1012 | 0.2380 | 0.0755 |
| + FGM | 0.2195 | 0.1030 | 0.2430 | 0.0775 |
| + focal loss | 0.2230 | 0.1050 | 0.2520 | 0.0802 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Baseline | 0.2195 | 0.1012 | 0.2503 | 0.0769 |
| + self-distill | 0.2266 | 0.1060 | 0.2568 | 0.0794 |
| + R-Drop | 0.2275 | 0.1070 | 0.2625 | 0.0800 |
| + FGM | 0.2295 | 0.1082 | 0.2629 | 0.0809 |
| + focal loss | 0.2310 | 0.1089 | 0.2632 | 0.0815 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Base (S) † | 0.2088 | 0.0993 | 0.2270 | 0.0733 |
| Base (T) ‡ | 0.2115 | 0.1098 | 0.2298 | 0.0732 |
| Self-Distill (T) | 0.2098 | 0.1002 | 0.2306 | 0.0729 |
| Self-Distill (S) | 0.2128 | 0.1011 | 0.2325 | 0.0734 |
| Method | Order (7229) | Click (30k) | ||
|---|---|---|---|---|
| HR@10 | MRR@10 | HR@10 | MRR@10 | |
| Base (S) † | 0.2195 | 0.1012 | 0.2503 | 0.0769 |
| Base (T) ‡ | 0.2232 | 0.1035 | 0.2550 | 0.0785 |
| Self-Distill (T) | 0.2241 | 0.1042 | 0.2533 | 0.0780 |
| Self-Distill (S) | 0.2266 | 0.1060 | 0.2568 | 0.0794 |
| Step 1 — Query Analysis |
| System Instruction: You are an AI search assistant for a Chinese e-commerce search platform. Analyze the user’s search query across the following four dimensions. |
| Task Prompt: Analyze the query along four dimensions : 1. Intent Underdtanding — Identify the user’s single primary intent. • Product Search : most common (e.g. dress, smartphone). • Functional Need : platform features (e.g. track parcel). • Note : If intent product search, skip remaining steps. 2. Category Identification — Identify one or more product categories. • Top-level categories : women’s wear, mobile & electronics, home goods, bags, accessories, men’s wear, personal care, snacks, skincare, sports & outdoors, cosmetics, underwear, home apparel, women’s shoes, toys, gaming peripherals, fresh produce, instant food, home appliances, etc. • Sub-categories : e.g., women’s wear includes T-shirts, skirts, sweatshirts, sweaters, and clothing for middle-aged and elderly women. • Multiple categories : some queries may correspond to multiple categories, e.g. “women’s windbreaker” women’s wear and sports & outdoors. • Note : Provide as comprehensive and detailed a range of product categories as possible. 3. Attribute Recognition — Extract attributes explicitly stated in the query without any expansion. • Common attributes : entity, model, brand, audience, color, material, style, season, scene, function, price, etc. • Note : The search system must return products that match the query, so strictly retain the attributes that are relevant in the query. 4. Topic Recommendation — Suggest candidate topics satisfying the query, like categories or specific products. • Note : need meet its categories, and attribute constraints. Do not over-recommend. • Good cases : “plaid skirt” plaid wrap skirt, plaid A-line skirt. ‘La Mer dupe” Estée Lauder serum, SK-II, Lancôme cream. “knitwear, no turtleneck” V-neck knitwear, crew-neck knitwear. “winter fruits” strawberry, red pomelo, orange. • Bad cases : “bicycle accessories” bicycle (wrong category). “knitwear, no turtleneck” turtleneck knitwear (violates constraint). “iPhone 17” iPhone 16 (wrong model). Keep analysis 300 words. Please analysis query: {} |
| Step 2 — Keyword Extraction |
| System Instruction: You are an AI search assistant for a Chinese e-commerce search platform. Based on the user’s search query and the LLM analysis result, extract keywords that are closely related to the query. |
| Task Prompt: Rules for the extraction: 1. Source Constraints: • Extract only under “Product Search” intent; otherwise output Not extractable and stop. • Extract only from the Topic Recommendation section. • If empty, fall back to keywords from Attribute Recognition and Category Identification . 2. Extraction Criteria: • Remove off-query items (e.g. query “Hisense TV” exclude “TCL TV”). • Keep specific attributes (e.g. “ plaid skirt”). • Remove marketing terms (e.g. “bestseller”, “good quality”). • Merge synonymous attributes (e.g. “woolens” merged into “wool sweater”). • Preserve model details (e.g. “iPhone 15 Pro Max”). 3. Output Format: • Comma-separated; at most 8 keywords ; Each keyword can have a maximum of 10 Chinese characters. • by popularity (descending). • Each keyword must be independently retrievable. Please extract keywords from the analysis results based on the query: Query: {} Analysis Result: {} |
| Step 3 — Preference Calibration |