OneRetrieval: Unifying Multi-Branch E-commerce Retrieval with an Editable Generative Model

Xuxin Zhang, Ben Chen, Yue Lv, Siyuan Wang, Yupeng Li, Yufei Ma, Zihan Liang, Tong Zhao, Ying Yang, Huangyu Dai, Lingtao Mao, Zhipeng Qian, Xinyu Sun, Chenyi Lei, Wenwu Ou, Kun GaiarXiv 2026

TL;DR

OneRetrieval collapses the complex, multi-branch retrieval pipelines of modern e-commerce search into a single generative model. Crucially, it solves the "editability paradox" by introducing Keyword-Aligned Encoding, allowing operations teams to instantly inject new trending terms or brands without retraining the model. Deployed at scale on Kuaishou, it matches deep-recall baselines while significantly boosting online click-through rates and order volumes.

What Problem Does This Paper Address?

Traditional e-commerce search relies on a messy multi-branch architecture: an inverted index for exact keyword matching, dense vectors for semantic meaning, and collaborative filtering for user behavior. Merging these branches requires hand-tuned heuristics and lacks joint optimization.

Generative Retrieval (GR)—where a model directly generates an item identifier (ID) from a query—promises to unify this into a single network. However, GR models have a fatal flaw in production: they lack real-time editability. If a new viral brand or marketing slogan pops up, an inverted index can be updated in hours via a simple dictionary change. Traditional GR models, which rely on fixed, quantized embeddings or free-form text generation, require a full model retrain to learn new terms. This paper addresses this "editability paradox," creating a generative retriever that is both highly performant and instantly editable.

Methods

The authors present OneRetrieval, powered by Keyword-Aligned Encoding (KAE). Instead of mapping items to abstract mathematical codes (like vector quantization), KAE constructs a Semantic ID (SID) out of interpretable attribute words (e.g., brand, material, function).

Overview of the OneRetrieval framework, illustrating Keyword-Aligned Encoding, the 4-stage fine-tuning pipeline, and the real-time intervention bypass.

Key components include:

  • Information-Theoretic Merging: They compress 18 fine-grained product attributes into 6 optimized codebook groups (ECOM6) to balance inference cost and semantic density.
  • Four-Block Codebook Layout: Each codebook contains empty, cluster, solo (frequent head words), and crucially, reserved slots. These reserved slots are left unbound during training. Post-deployment, operations can map a new trending word to a reserved slot in the dictionary, and the model automatically routes it correctly via a trained "identity routing" mechanism.
The four-block codebook layout featuring reserved slots for real-time intervention.
  • Four-Stage Fine-Tuning: A structured pipeline that sequentially handles attribute alignment (Stage 0), content alignment (Stage 1), collaborative co-occurrence (Stage 2), and personalized retrieval (Stage 3).

Datasets

The model was evaluated on a massive industrial benchmark from Kuaishou, consisting of 31 consecutive days of search logs:

  • Training Set: 5 million randomly sampled user request logs (comprising over 7.6 million unique queries and 20.1 million items).
  • Test Set: Roughly 30,000 click and 30,000 order samples.
  • Attributes: A production vocabulary containing 1.08 million typed attribute words.

Key Insights and Ideas

  • The Editability Paradox: The traditional inverted index persists in production not because it retrieves well (it actually converts below the platform average), but because it is easily editable. OneRetrieval proves you don't have to sacrifice this operational necessity for deep learning performance.
  • Ditching Hierarchical IDs: Unlike many GR papers that use hierarchical tree-structured IDs, OneRetrieval uses a flat, globally shared codebook. The authors found that hierarchical conditioning fragments the training data and causes early decoding errors to catastrophically propagate.
  • Decoupled Training Objectives: By separating the training of retrieval quality (Stage 1) and editability/routing (Stages 2 and 3), the model avoids trading off one capability for the other.

Key Results

  • Deep Recall Parity: At a list depth of 350 items (HR@350), OneRetrieval matches the strongest generative baseline (0.5482 on orders, 0.6055 on clicks) while outperforming standard dense retrievers by over 11 points.
  • High Intervention Success: OneRetrieval achieves an Intervention Activation Rate (IAR@350) of 0.5530—meaning it successfully surfaces newly injected terms at about 75% the efficiency of a traditional inverted index, whereas standard closed-codebook GR models score near zero.
  • Production Gains: In live production A/B tests serving millions of users daily, replacing the inverted index alone yielded a +0.710% increase in order volume. Replacing nearly the entire multi-branch retrieval stage maintained conversion rates while boosting Item CTR by +0.821%, with the largest gains concentrated in intent-rich categories like apparel and footwear.
Relative online CTR gains across the top 20 industries.

Limitations and Future Work

  • Multimodal Expansion: The current SID alphabet relies entirely on textual attributes. The authors note that incorporating multimodal signals (like image features) is necessary to better capture visually distinctive or long-tail items.
  • Head Query Optimization: Future iterations will explore reinforcement learning over conversion signals to better handle highly competitive head queries where behavioral data dominates.
  • Automated Trend Discovery: Currently, slot binding requires manual operational intervention; the authors aim to automate this by learning to activate reserved slots directly from real-time traffic spikes.

Summary updated

BibTeX
@misc{zhang2026oneretrieval,
  author = {Xuxin Zhang and Ben Chen and Yue Lv and Siyuan Wang and Yupeng Li and Yufei Ma and Zihan Liang and Tong Zhao and Ying Yang and Huangyu Dai and Lingtao Mao and Zhipeng Qian and Xinyu Sun and Chenyi Lei and Wenwu Ou and Kun Gai},
  title = {{OneRetrieval: Unifying Multi-Branch E-commerce Retrieval with an Editable Generative Model}},
  year = {2026},
  eprint = {2606.13533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.13533},
}
Figure