arXiv:2611.00530cs.IROct 2026

Manuscript Offprint

arXiv:2611.00530

WeSearch: A Unified Model-Centric Retrieval Framework for WeChat Search

Kepu Zhang, Yuzhe Cai, Yue Shu, Dawei Chen, Jinhai Zhu, Yuan Xu, Zehua Dai, Tongke Ni, Ziyao Chen, Chen Fu, Jie Shao, Chao Wang, Xiangmin Wang, Ruifeng Zhao, Rongchun Yao, Jie Yin, Weixin Qiu, Nan Song, Junyang Li, Fan Li, Quanchao Hui, Yulong Ou, Qiang Chen, Hao Cao, Sen Yang

Abstract

We present WeSearch, a unified, model-centric retrieval framework for large-scale, continuously evolving content search. Prevailing methods assign documents fixed hierarchical Semantic IDs, implicitly assuming each document follows a single coherent semantic path—an assumption that often breaks down for multi-topic documents. WeSearch instead retrieves query-relevant clusters and then ranks atomic documents within the resulting query-specific candidate space, decoupling candidate pruning from fine-grained relevance modeling. Combined with relevance-aware training, compact document representations, and incremental index updates, this design enables weekly—or daily when needed—model refreshes. Deployed as the primary semantic retrieval path in WeChat Search alongside a lexical syntax tree, WeSearch shows consistent one-week A/B gains on corpora from hundreds of millions to billions of documents, and a one-month full-traffic A/B test confirms stable improvements of +0.68% CTR and +2.27% per-user article clicks, together with a 41% reduction in retrieval resource cost and a 19 ms reduction in graphic-text retrieval latency. WeSearch is now fully deployed in WeChat Search, serving 100% of production traffic.

Date: November 3, 2026

Figure

(a) Existing Retrieval System

(b) Proposed Retrieval System

Figure 1 Comparison between the existing retrieval system and the proposed retrieval system. (a) The existing system combines multiple lexical and dense retrieval sources. (b) The proposed system uses model-centric retrieval as the primary semantic retrieval path and retains one syntax tree as a complementary lexical retrieval source.

1 Introduction

Large-scale content search must retrieve relevant documents from collections containing hundreds of millions or even billions of items, while meeting strict requirements on latency, resource consumption, and freshness. Modern industrial search systems, such as WeChat Search, typically combine inverted-index retrieval [35] with dense vector retrieval [8]. Inverted retrieval is efficient and interpretable, but its coverage is constrained by lexical matching, query rewriting, and intersection strategies. Dense retrieval provides stronger semantic matching, yet its candidates may still be removed by downstream filtering, quota limits, or ranking stages. Maintaining multiple retrieval paths can improve coverage, but may also introduce duplicated computation, communication overhead, and fragmented optimization objectives.

Generative retrieval has emerged as an alternative paradigm for information retrieval, motivated in part by advances in large language models (LLMs) [17, 34]. Existing approaches generally either treat each document as an independent output symbol [30], resulting in a large output space, or assign documents fixed hierarchical Semantic IDs and decode them level by level [1, 2]. Although hierarchical Semantic IDs reduce the output space, they assume that each document can be represented by a single coherent semantic path. This assumption can be problematic for content-oriented collections, where articles and graphic-text posts may span multiple entities, topics, and user intents. Moreover, an error at an early decoding level can exclude the target document from subsequent retrieval stages.

We present WeSearch, a model-centric, cluster-constrained retrieval framework for large-scale and continuously evolving content search. WeSearch uses clusters to reduce the query-specific candidate space, rather than as fixed hierarchical identifiers for documents. Given a query, it retrieves relevant clusters through vector similarity search, gathers their associated documents, and then performs fine-grained matching and ranking over the resulting atomic-document candidates. Unlike prior generative retrieval methods that bind each document to a single hierarchical semantic ID and decode it token by token—where an error at an early prefix permanently prunes all good documents under the correct branch—WeSearch retrieves a set of relevant clusters and takes the union of their member documents as candidates, keeping the candidate pool as large and inclusive as possible. This design combines the efficiency of cluster-based candidate reduction with document-level relevance modeling, without requiring each document to follow a single fixed semantic path.

To support retrieval at industrial scale, WeSearch combines multi-source relevance supervision and hard-negative mining with OPQ-based document representations [6], asymmetric distance computation, and distributed scoring optimizations. A rolling-mounting mechanism allows fresh documents to be added to the existing cluster space without rebuilding the entire index, while periodic rolling training helps the model adapt to evolving query-document relevance. In the previous production pipeline, the retrieval embedding model was typically updated monthly, limiting how quickly the retrieval space could adapt to new content, emerging topics, and changes in user behavior. WeSearch supports coordinated model refreshes on a weekly cadence, with updates as frequent as daily when needed, enabling the system to incorporate model improvements and evolving relevance patterns more promptly.

We also redesign the online retrieval architecture around WeSearch. As shown in Figure 1, WeSearch serves as the primary semantic retrieval path, complemented by a single syntax tree for lexical matching. Candidates from the two paths are merged and deduplicated before being passed to downstream ranking. This design consolidates semantic retrieval into a unified model-based path while retaining a lightweight lexical source for exact matching.

We evaluate WeSearch in the WeChat Search system across three corpus configurations: a Base corpus containing hundreds of millions of documents, an Expanded corpus containing billions of documents, and the Expanded corpus augmented with a Fresh corpus of tens of millions of newly arriving documents. Controlled offline experiments on the Base corpus examine cluster granularity, hierarchical Semantic-ID-based retrieval, and document quantization, and show that hierarchical Semantic-ID-based retrieval is less suitable for heterogeneous content documents, while OPQ-based representations consistently outperform compact low-dimensional dense representations. We further validate training-data mining, structured document features, and teacher-assessed result quality at large scale.

Online, one-week A/B tests across all three corpus configurations yield statistically significant improvements over the corresponding production baselines. On the Expanded corpus with Fresh corpus configuration, a subsequent one-month full-traffic A/B test shows stable gains of +0.68% in CTR and +0.71% in average dwell time on the search result page, together with a +2.27% increase in per-user article clicks. In the same deployment, WeSearch reduces overall retrieval resource cost by 41% and graphic-text retrieval latency by 19 ms. Based on this combined evidence of quality improvement and efficiency gains, WeSearch has been fully deployed in WeChat Search and currently serves 100% of production traffic.

Our main contributions are as follows:

  • We propose WeSearch, which uses clusters solely to reduce the query-specific candidate space and performs fine-grained relevance modeling directly over atomic documents, avoiding the single-path assumption imposed by fixed hierarchical Semantic IDs and thus better accommodating multi-topic documents.

  • WeSearch demonstrates the practical deployment of a model-centric retrieval framework as the primary retrieval path for content-oriented search at billion-document scale. Its system design combines rolling training, OPQ-based document representations with ADC-accelerated scoring, and incremental document mounting to support regular model and index updates.

  • We conduct controlled offline experiments, one-week online A/B tests across three corpus configurations ranging from hundreds of millions to billions of documents, a one-month full-traffic online A/B test, and pairwise human evaluation. The results consistently demonstrate retrieval-quality improvements, positive online gains, and reduced retrieval resource cost and latency, and WeSearch has been fully deployed in production WeChat Search.

References (34)