Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dual-Tower Synergy for Consistent Indexing

Updated 16 December 2025
  • The paper introduces a dual-view indexing mechanism that aligns query and item embeddings, boosting coarse candidate selection and overall retrieval performance.
  • It details a methodology where K-means clustering in query space and residual quantization in item space eliminate cross-tower spatial distortions.
  • Empirical results show significant improvements in recall and ranking metrics on benchmarks like MS-MARCO and real-world e-commerce data.

Consistent Indexing with Dual-Tower Synergy Module (CI) is a framework developed to address limitations in large-scale dense retrieval systems, specifically those stemming from representational misalignment in dual-tower architectures. In conventional dense retrieval, dual-tower models separately encode queries and items into distinct embedding spaces. When such representations are merged within a single retrieval index, the resulting spatial mismatch can degrade matching accuracy, retrieval stability, and negatively impact performance on long-tail queries. The CI module introduces a dual-view indexing scheme that preserves semantic consistency between retrieval stages, integrates tightly with standard hierarchical indexing architectures (e.g., IVF-PQ), and supports billion-scale deployment without additional storage or online computational overhead (Wang et al., 15 Dec 2025).

1. Motivation and Problem Setting

Dense retrieval systems, which have become dominant in large-scale information retrieval due to their efficiency and accuracy, usually employ a coarse-to-fine hierarchical architecture. The prevalent dual-tower structure comprises two separate encoders: fqf_q for queries and fif_i for items, producing embeddings in potentially misaligned spaces. During index construction and retrieval, this asymmetry engenders two primary issues:

  • Space misalignment: Query and item embeddings are not guaranteed to share geometric consistency, distorting nearest neighbor retrieval.
  • Index inconsistency: Clustering, residual quantization, and candidate selection may operate across heterogeneous embedding spaces, degrading both recall and ranking metrics.

These alignment issues become increasingly consequential in generative recommendation systems utilizing semantic identifiers, where conflicting geometry between training and inference reduces the capacity and generalization of downstream models (Wang et al., 15 Dec 2025).

2. Dual-View Indexing Strategy

To resolve representational inconsistencies, CI transforms the dual-tower pipeline into a two-view indexing mechanism. Offline, each item II in corpus D\mathcal{D} is processed as follows:

  • Query-tower encoding: eIq=fq(I)e_I^q = f_q(I), providing a structural vector in the query embedding space.
  • Item-tower encoding: eIi=fi(I)e_I^i = f_i(I), yielding a representation vector with potentially enriched, item-specific semantics.

K-means clustering is performed on {eIq:I∈D}\{e_I^q : I \in \mathcal{D}\} to determine KK centroids {c1,…,cK}\{c_1, \dots, c_K\} in the query space. Every item II is assigned to the nearest centroid fif_i0 in this space:

fif_i1

Residual vectors, representing item-specific detail, are then computed in the item space:

fif_i2

The index (e.g., IVF-PQ) maintains centroids in the query space and per-item product-quantized codes on the item-space residuals. This strictly segregates the structural (query-space) and residual (item-space) aspects of indexing, ensuring that the coarse candidate selection is always aligned with query geometry, while the fine stage leverages item-specific expressivity (Wang et al., 15 Dec 2025).

3. Formalization and Search Procedure

The CI search protocol is defined as follows:

  • Embeddings: fif_i3, fif_i4
  • Similarity metric: fif_i5
  • Clustering: Centroids fif_i6 to fif_i7 derived from query-tower item representations.
  • Residuals: fif_i8
  • Indexing: ANN structures are built with fif_i9 as coarse centroids and per-item quantized codes encoding II0.

At query time:

  1. A query II1 is embedded via II2.
  2. The II3 closest centroids II4 to II5 are selected.
  3. Items indexed under these centroids have their residuals decoded (typically via PQ).
  4. Each candidate item II6 is scored by:

II7

This aligns the initial candidate selection tightly with the learned query geometry, eliminating cross-tower distortions, while the fine-grained step exploits the rich representation of II8 (Wang et al., 15 Dec 2025).

4. Theoretical Consistency

CI’s retrieval consistency theorem establishes that, under the condition that II9 and D\mathcal{D}0 are well aligned (D\mathcal{D}1 is small) and D\mathcal{D}2's space is isotropic, the ANN search in D\mathcal{D}3 attains the same coarse candidate coverage as the ideal objective D\mathcal{D}4. The argument proceeds as:

  1. If D\mathcal{D}5 for all D\mathcal{D}6, then D\mathcal{D}7.
  2. For normalized, isotropic embeddings, maximizing D\mathcal{D}8 over D\mathcal{D}9 is equivalent to minimizing eIq=fq(I)e_I^q = f_q(I)0.
  3. Clustering and coarse filtering in eIq=fq(I)e_I^q = f_q(I)1 space produces a quantized, yet consistent, approximation of nearest-neighbor objectives.

A corollary is that using eIq=fq(I)e_I^q = f_q(I)2 for clustering while retaining eIq=fq(I)e_I^q = f_q(I)3 for residual quantization preserves semantic consistency and enables finer discrimination between items, leveraging the greater expressiveness of the item tower (Wang et al., 15 Dec 2025).

5. Implementation Workflow and Pseudocode

The end-to-end CI construction and retrieval process can be summarized as:

Step Offline Index Construction Online Retrieval
Input Trained eIq=fq(I)e_I^q = f_q(I)4, eIq=fq(I)e_I^q = f_q(I)5, corpus eIq=fq(I)e_I^q = f_q(I)6 Query, eIq=fq(I)e_I^q = f_q(I)7
Encoding eIq=fq(I)e_I^q = f_q(I)8, eIq=fq(I)e_I^q = f_q(I)9 eIi=fi(I)e_I^i = f_i(I)0
Clustering K-means on eIi=fi(I)e_I^i = f_i(I)1: eIi=fi(I)e_I^i = f_i(I)2 Select top eIi=fi(I)e_I^i = f_i(I)3 centroids
Assignment/Residual eIi=fi(I)e_I^i = f_i(I)4, eIi=fi(I)e_I^i = f_i(I)5 As in index
Quantization/Indexing PQ-encode eIi=fi(I)e_I^i = f_i(I)6, assign to list eIi=fi(I)e_I^i = f_i(I)7 PQ-decode for candidates
Ranking Build IVF-PQ with centroids + PQ-codes eIi=fi(I)e_I^i = f_i(I)8

No additional loss is introduced during indexing; the method depends on prior alignment of the towers (e.g., via input swapping in the SymmAligner module). The system is compatible with standard IVF-PQ codebooks and does not incur extra online latency (Wang et al., 15 Dec 2025).

6. Empirical Results and Engineering Considerations

In industrial-scale deployments, the CI module operates with cluster counts eIi=fi(I)e_I^i = f_i(I)9, probe numbers {eIq:I∈D}\{e_I^q : I \in \mathcal{D}\}0, and PQ code lengths of 64 bytes per item. Storage overhead is unchanged relative to conventional IVF-PQ, as CI reuses cluster centroids in query space and per-item codebooks on item-space residuals. Offline computation requires one additional forward pass of {eIq:I∈D}\{e_I^q : I \in \mathcal{D}\}1 per document, an acceptable cost given offline indexing. Online latency remains identical, with query complexity {eIq:I∈D}\{e_I^q : I \in \mathcal{D}\}2 where {eIq:I∈D}\{e_I^q : I \in \mathcal{D}\}3 is embedding dimension.

The reported empirical enhancements include:

  • MS-MARCO (nprobe=1): Recall@10 improves from 0.2767 to 0.3268 (approx. 18% relative), MRR@100 from 0.1771 to 0.2157.
  • MS-MARCO (nprobe=64): MRR@100 increases from 0.4353 to 0.4480.
  • Production e-commerce (1M items; 10M interactions): Recall@100 rises by 4% relative, NDCG@100 by 9.3% relative after indexing (Wang et al., 15 Dec 2025).

7. Summary and Significance

Consistent Indexing with Dual-Tower Synergy leverages aligned dual-tower embeddings to construct a two-view hierarchical index, where the coarse clustering and candidate selection are performed strictly in query-tower geometry, eliminating cross-tower spatial inconsistencies. The fine stage retains the full representational richness of the item tower, enabling improved recall and ranking without additional inference latency or storage costs. This approach is provably consistent, lightweight for engineering at billion-item scales, and validated by significant empirical improvements across public and industrial datasets (Wang et al., 15 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Consistent Indexing with Dual-Tower Synergy Module.