Rethinking ANN-based Retrieval: Multifaceted Learnable Index for Large-scale Recommendation System

Jiang Zhang, Yubo Wang, Wei Chang, Lu Han, Xingying Cheng, Feng Zhang, Min Li, Songhao Jiang, Wei Zheng, Harry Tran, Zhen Wang, Lei Chen, Yueming Wang, Benyu Zhang, Xiangjun Fan, Bi Xue, Qifan WangarXiv 2026

TL;DR

The MultiFaceted Learnable Index (MFLI) framework completely reimagines recommendation system retrieval by jointly training item embeddings and discrete indices, eliminating the need for traditional Approximate Nearest Neighbor (ANN) search at serving time. By replacing heavy vector searches with direct $O(1)$ index lookups, MFLI boosts online serving capacity (QPS) by 60%, significantly reduces popularity bias, and improves cold-start content delivery.

What Problem Does This Paper Address?

Industrial recommendation systems operate at a staggering scale, often selecting a handful of relevant items from candidate pools containing billions of options. To do this efficiently, standard architectures rely on a two-stage pipeline: first, they learn continuous item embeddings; second, they build an Approximate Nearest Neighbor (ANN) index offline (such as inverted file indexes or graph-based structures) to map similar items together.

However, this traditional approach suffers from two major bottlenecks:

  1. Index Staleness: Because indexing is a heavy offline process performed periodically, the index quickly falls out of sync with continuously updated online models. This severely hurts the discovery of newly created ("fresh") or cold-start items.
  2. High Serving Cost: Running online ANN searches for every single user request requires substantial computation and memory overhead, making it difficult to parallelize efficiently on modern GPU accelerators.

The authors tackle this gap by asking: Can we learn the indexing structure directly during model training and bypass ANN search entirely at serving time?

Figure 1: Traditional ANN-based retrieval contains three stages: item embedding learning, offline item indexing, and online ANN search at serving time. In contrast, LI-based re- trieval jointly learns item embeddings and indices during training, and performs fast index lookup during serving.

Methods

The authors introduce MultiFaceted Learnable Index (MFLI), a framework that unifies item representation learning and indexing into a single end-to-end training paradigm.

Key components include:

  • Multi-Faceted Residual Quantization (MF-RQ): Instead of forcing an item into a single index, MFLI maps items to multiple discrete sub-codebooks in parallel. This allows the model to capture different "facets" of item relationships (e.g., user engagement vs. semantic topic relevance) simultaneously.
  • Joint Training: Item embeddings and hierarchical codebooks are co-optimized using a combined multifaceted loss and a quantized multifaceted loss via Sampled SoftMax, ensuring that discrete index boundaries natively align with the continuous embedding space.
  • Index Rebalancing (Split-and-Merge): Real-world item distributions follow a power law, which can lead to massive, inefficient clusters. MFLI introduces an automated split-and-merge procedure during serving preparation: oversized indices are split using parallelized $k$-means clustering, while undersized indices are pruned and merged.
  • Real-time Delta Updates: To handle rapid inventory changes, MFLI uses a dual-stream pipeline. A main stream periodically generates a globally consistent full snapshot of the index, while a fast stream computes indices for fresh items in real time, making them retrievable within minutes.
  • Direct Lookup Serving: At serving time, ANN search is completely eliminated. The system performs a direct $O(1)$ lookup to find the multifaceted indices of a user's historical "trigger" items, fetches the candidates from the snapshots, and applies a fast per-index reranking.
Figure 2: Overview of MFLI framework. During training phase, it learns a multifaceted embedding for each item, and conducts residual quantization on candidate item embeddings by facet in parallel. The codebook and item embeddings are jointly trained via a multifacted loss and a quantized multifaceted loss. The serving part consists of four modules: 1) index lookup, which looks up the multifaceted indices of query item ids; 2) index selection module that selects top 𝐾indices; 3) item lookup, which fetches all items in each selected index; 4) per-index rerank, which selects top 𝑁items for each selected index.

Datasets

MFLI was evaluated using large-scale, production data from a commercial platform serving billions of users. The candidate pool consisted of approximately 200 million items. The dataset was split into two consecutive time windows: Period $P_1$ for training and Period $P_2$ for evaluation. Models were benchmarked across four core recommendation tasks: Video View Complete (VVC), Like, Long Watch Time (LWT), and Cold Content Delivery (CCD).

Key Insights and Ideas

  • End-to-End Alignment Prevents Mismatch: Traditional indexing imposes an arbitrary geometric structure on top of pre-trained embeddings. Jointly learning the index ensures that cluster boundaries natively respect the model's latent space, maximizing retrieval quality.
  • Multi-Faceted Quantization Preserves Intent Diversity: Standard single-index vector quantization restricts representational capacity. By quantizing across multiple independent heads, MFLI captures distinct user intents simultaneously without blowing up downstream serving costs.
  • Dynamic Rebalancing is Essential for Scale: Without the split-and-merge mechanism, a few highly popular items would create "mega-clusters" that bottleneck the system, destroying the computational benefits of index-based lookup.

Key Results

  • Offline Performance: MFLI outperformed state-of-the-art baselines (including NeuCF, MoL, and HSTU), improving VVC recall by up to 11.76% and Cold Content Delivery (CCD) by a massive 57.29%. Semantic relevance (topic match rate) saw gains of up to 126.32%.
  • Online Production Gains: In live A/B testing, MFLI improved GPU server throughput (QPS) by 60% compared to multi-head ANN baselines.
  • Debiasing and Freshness: MFLI effectively redistributed traffic to the long tail, increasing exposure to low-popularity items by 279% and boosting "ultra-fresh" content discovery (items less than 6 hours old) by 221%.
Index size and item distribution across buckets

Limitations and Future Work

The authors note a slight trade-off between engagement-oriented retrieval and strict semantic alignment when tuning top-$k$ index selection. Additionally, managing the synchronization between the real-time delta stream and the periodic full snapshot requires careful engineering to prevent index inconsistencies. Future directions include exploring adaptive facet allocation and extending learnable indexing concepts to generative retrieval architectures.

Summary updated

BibTeX
@misc{zhang2026rethinking,
  author = {Jiang Zhang and Yubo Wang and Wei Chang and Lu Han and Xingying Cheng and Feng Zhang and Min Li and Songhao Jiang and Wei Zheng and Harry Tran and Zhen Wang and Lei Chen and Yueming Wang and Benyu Zhang and Xiangjun Fan and Bi Xue and Qifan Wang},
  title = {{Rethinking ANN-based Retrieval: Multifaceted Learnable Index for Large-scale Recommendation System}},
  year = {2026},
  eprint = {2602.16124},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.16124},
}
Figure