NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

UniDex: Rethinking Search Inverted Indexing with Unified Semantic Modeling

Zan Li, Jiahui Chen, Yuan Chai, Xiaoze Jiang, Xiaohua Qi, Zhiheng Qin, Runbin Zhou, Shun Zuo, Guangchao Hao, Kefeng Wang, Jingshan Lv, Yupeng Huang, Xiao Liang, Han LiarXiv 2025 · OpenReview

Abstract

Inverted indexing has traditionally been a cornerstone of modern search systems, leveraging exact term matches to determine relevance between queries and documents. However, this term-based approach often emphasizes surface-level token overlap, limiting the system's generalization capabilities and retrieval effectiveness. To address these challenges, we propose UniDex, a novel model-based method that employs unified semantic modeling to revolutionize inverted indexing. UniDex replaces complex manual designs with a streamlined architecture, enhancing semantic generalization while reducing maintenance overhead. Our approach involves two key components: UniTouch, which maps queries and documents into semantic IDs for improved retrieval, and UniRank, which employs semantic matching to rank results effectively. Through large-scale industrial datasets and real-world online traffic assessments, we demonstrate that UniDex significantly improves retrieval capabilities, marking a paradigm shift from term-based to model-based indexing. Our deployment within Kuaishou's short-video search systems further validates UniDex's practical effectiveness, serving hundreds of millions of active users efficiently.

1. Introduction

For decades, industrial search engines have relied on the inverted indexing paradigm, which maps specific lexical terms to document lists. While computationally efficient, this approach is fundamentally limited by the "vocabulary mismatch" problem: it requires exact lexical overlap to establish relevance. To mitigate this, modern systems often incorporate complex, manually engineered pipelines for synonym expansion, stopword handling, and normalization. These systems are inherently brittle, requiring constant manual tuning and high maintenance overhead.

Comparison of conventional term-based inverted indexing versus the proposed UniDex semantic modeling approach.

UniDex represents a paradigm shift from manually designed term analysis to unified semantic modeling. By mapping queries and documents into discrete "Semantic IDs" (SIDs), UniDex combines the retrieval efficiency of traditional inverted indexes with the deep semantic understanding of neural models. This allows the system to retrieve relevant content even when there is no direct keyword overlap, such as matching a query for "photo editing" with a document titled "image retouching guide."

2. Methodology

The UniDex framework introduces a two-stage pipeline that mirrors the traditional "Touch" (retrieval) and "Rank" (scoring) architecture but replaces heuristic components with neural models.

2.1 UniTouch: Semantic Retrieval

UniTouch serves as the retrieval engine. Instead of indexing literal words, it indexes SIDs generated through a BERT-based dual-tower encoder.

  • Semantic Aspects: Queries and documents are represented as multiple semantic aspects to capture polysemy (e.g., distinguishing between "Apple" the fruit and "Apple" the tech company).
  • Quantization: Continuous embeddings are converted into discrete SIDs using Finite Scalar Quantization (FSQ). This enables the use of standard inverted index structures where the "keys" are semantic concepts rather than literal tokens.
  • Max-Max Matching: To ensure high recall, a document is retrieved if any of its semantic aspects match any of the query's aspects.

2.2 UniRank: Model-based Scoring

Following retrieval, UniRank performs fine-grained scoring on the candidate pool. It utilizes a late-interaction mechanism, similar to ColBERT, to compute token-level interactions between query and document embeddings. This ensures high precision for top-ranked results by modeling the nuanced relationship between the search intent and the content.

The detailed architecture of UniDex, showcasing the UniTouch retrieval module and the UniRank scoring module.

3. Experimental Evaluation

UniDex was evaluated using massive, real-world industrial datasets from the Kuaishou App. The training set comprised approximately 120 million user search sessions, covering over 3 billion query-video pairs. Evaluation was conducted on a test set of 50,000 sessions against a candidate pool of 10 million videos, focusing on both system preference (Ranking Subset) and actual user behavior (Click Subset).

4. Results and Discussion

4.1 Performance Gains

Offline evaluations showed that UniDex significantly outperformed state-of-the-art sparse retrieval methods like SPLADE, achieving an 8.65% improvement in Recall@300 and a 7.25% increase in MRR@10. Notably, UniDex nearly matched the performance of computationally expensive "Dense Retrieval" models while maintaining the efficiency required for large-scale production.

4.2 Online Impact and Efficiency

In a large-scale online A/B test at Kuaishou, UniDex led to a 0.185% increase in Click-Through Rate (CTR) and a 0.287% increase in Video Playback Duration (VPD). Beyond accuracy, the deployment demonstrated remarkable engineering efficiency, saving 20,550 CPU cores and 37TB of memory, while reducing system latency by 25% compared to the previous production baseline.

4.3 Long-Tail Generalization

One of the most significant insights was UniDex's effectiveness on "long-tail" (rare) queries. Traditional term-matching often fails on rare queries due to a lack of manual rules or data. UniDex's semantic modeling allows it to infer relevance based on broader conceptual patterns, providing a substantial boost in retrieval quality for niche search intents.

5. Conclusion

UniDex demonstrates that search systems can move beyond the limitations of lexical term matching without sacrificing efficiency. By discretizing semantic embeddings into SIDs, UniDex provides a scalable, model-driven alternative to traditional inverted indexing. While a small performance gap remains compared to the most resource-intensive dense retrieval models, UniDex's massive gains in efficiency and its ability to simplify complex search stacks make it a highly practical solution for modern industrial search engines.

Summary updated

BibTeX
@misc{li2025unidex,
  author = {Zan Li and Jiahui Chen and Yuan Chai and Xiaoze Jiang and Xiaohua Qi and Zhiheng Qin and Runbin Zhou and Shun Zuo and Guangchao Hao and Kefeng Wang and Jingshan Lv and Yupeng Huang and Xiao Liang and Han Li},
  title = {{UniDex: Rethinking Search Inverted Indexing with Unified Semantic Modeling}},
  year = {2025},
  eprint = {2509.24632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24632},
}
Figure