Conceptio › Archive › arXiv CS
arXiv CS open access

UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval

Keyu Chen et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
data-managementdatabasessqlstorage
Hybrid dense-sparse vector retrieval combines semantic signals from dense representations with lexical signals from sparse representations, typically ranking items by a query-dependent weighted sum of dense and sparse vector distances. Existing systems commonly search separate dense and sparse vecto
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval Keyu Chen1 , Xiaoyao Zhong1 , Jiabao Jin1 , Peng Cheng1 , Wangze Ni2 , Jingkuan Song1 , Heng Tao Shen1 1

Tongji University, Shanghai, China; 2 Zhejiang University, Hangzhou, China

arXiv:2611.20758v1 [cs.IR] 16 Nov 2026

2634115@tongji.edu.cn, xiaoyao.zhong@hotmail.com, jiabaojin0723@gmail.com, cspcheng@tongji.edu.cn, niwangze@zju.edu.cn, jingkuan.song@gmail.com, shenhengtao@hotmail.com

Abstract—Hybrid dense-sparse vector retrieval combines semantic signals from dense representations with lexical signals from sparse representations, typically ranking items by a querydependent weighted sum of dense and sparse vector distances. Existing systems commonly search separate dense and sparse vector indexes and rerank the union of their candidates, incurring two retrieval passes and potentially discarding items that rank highly only after the semantic and lexical signals are combined. Constructing a graph-based index directly under a hybrid distance can mitigate this premature candidate loss. However, because varying the hybrid weight alters the underlying neighborhood relationships, a single static graph built at a fixed weight cannot accommodate dynamic query-specific weights. Therefore, we propose a Unified Hybrid Graph (UniGraph), which merges neighbor sets computed at multiple hybrid weights into a single bounded-degree hybrid graph, enabling hybrid vector retrieval with different query-specific weights without index reconstruction. We further develop an adaptive weight-guided search framework that chooses between sparse- and dense-guided entry points according to the query weight, together with a dense-first hybrid distance pruning strategy that avoids unnecessary exact sparse distance computations. Extensive experiments show that UniGraph provides a favorable Recall-QPS tradeoff across different query weights. In the mixed-weight setting, UniGraph delivers 27.6%∼52.3% higher QPS than the fastest baseline across datasets at Recall@100 ≥ 0.95. UniGraph has been deployed at scale in Ant Group’s production environment, where hybrid retrieval with query-dependent weights is in strong demand. Index Terms—hybrid retrieval, graph-based index, ANNS

I. I NTRODUCTION The growing volume of unstructured data and the increasing use of retrieval-driven AI applications have established vector search as a fundamental component of modern information systems. Retrieval-augmented generation (RAG), for example, relies on vector search to retrieve relevant information from external document collections and utilizes the retrieved information to provide large language models with additional context [1], [2]. In vector search, data objects and queries are encoded as high-dimensional vectors, and the objects are ranked according to their distances or similarities to the query. Vector search commonly uses either dense or sparse representations. Dense vectors effectively capture semantic similarity but may not preserve exact lexical information such as rare terms or identifiers [3]. Sparse vectors retain termlevel information and are therefore well suited to exact lexical matching [4], [5]. By combining the complementary semantic

and lexical signals from dense and sparse representations, hybrid retrieval can achieve higher retrieval effectiveness than dense-only or sparse-only retrieval [6]. Hybrid dense-sparse vector retrieval has also seen growing adoption in practical information retrieval systems [7]. In hybrid dense-sparse vector retrieval, each item x in the base dataset is represented by a dense vector xd and a sparse vector xs . Given a query q with its dense representation q d and sparse representation q s , the hybrid distance Dh (q, x; α) is defined as a weighted sum of the dense distance Dd (q d , xd ) and the sparse distance Ds (q s , xs ): Dh (q, x; α) = α · Dd (q d , xd ) + (1 − α) · Ds (q s , xs ),

(1)

where α ∈ [0, 1] controls the trade-off between semantic and lexical matching. This weight is naturally query-dependent. A conceptual question may rely more on dense similarity, while a query containing rare terms or identifiers may require stronger sparse matching. In this work, we consider the setting where α is specified at query time, focusing on efficiently supporting retrieval under the resulting query-specific hybrid distance. A common existing approach to hybrid retrieval is a tworoute pipeline that searches dense and sparse indexes independently, merges their candidate sets, and reranks them under the query-specific hybrid distance [8]–[11]. This design entails an effectiveness–efficiency trade-off: for a requested result size (k), retrieving fewer candidates from each index risks missing some of the final hybrid top-k results, whereas retrieving more candidates increases the costs of both searches and reranking. Alternatively, a graph constructed directly under a certain Dh is tailored to the hybrid query weight used during construction and cannot maintain stable retrieval performance under dynamically varying query weights [12]. Our key observation is that dense and sparse vectors are complementary representations of the same underlying objects. Although they emphasize different aspects of relevance, both are derived from the same content and therefore induce correlated similarity structures: objects with high dense similarity also tend to have high sparse similarity. Figure 1 illustrates this observation. A more direct and efficient design is to use a unified index in which dense and sparse signals are combined during graph construction and traversal. With this observation, we propose the Unified Hybrid Graph (UniGraph), a graph-based index for dense-sparse hybrid retrieval with dynamic query-specific weights. UniGraph con-

Query

a) Dense graph

b) Sparse graph

c) Hybrid graph

lexical neighborhood

hybrid neighborhood

Dense rank Sparse rank Hybrid rank semantic similarity lexical similarity

combined similarity

1

doc2

doc3

doc1

2

doc1

doc1

doc2

3

doc3

doc2

doc3

semantic neighborhood dense-favored top node

sparse-favored top node

hybrid-favored top node

query

Fig. 1. Motivating example for unified dense-sparse hybrid retrieval. The left panel shows that dense, sparse, and hybrid retrieval can produce different top-ranked results for the same query. In this example, doc1 is not ranked first by either dense or sparse retrieval, but becomes the top result under hybrid ranking. The right panel shows three graph neighborhoods built from dense, sparse, and hybrid similarities. Although the three neighborhoods have different highest-ranked nodes, their top-neighbor sets still overlap substantially.

structs a single bounded-degree graph by merging neighborhoods sampled at multiple α values for various dense-sparse trade-offs. The resulting graph retains edges useful across different dense-sparse trade-offs, allowing the same graph to support different query weights without reconstruction. At query time, our search algorithm first obtains a set of entry points according to the query-specific α, aligning graph initialization with the query’s dense-sparse preference. It then traverses the unified graph and ranks results using the queryspecific hybrid distance. To further improve search efficiency, we develop a dense-first hybrid distance pruning strategy during traversal, which computes the dense component first and utilizes sparse vector norms to determine whether exact sparse distance evaluation can be skipped. In summary, this paper makes the following contributions: • We propose UniGraph, a unified graph index for densesparse hybrid retrieval with dynamic query-specific weights. Its α-cover construction merges neighborhoods sampled at multiple dense-sparse trade-off weights into a bounded-degree graph, allowing a single hybrid graph to support different query-specific weights without reconstruction. • We develop an α-adaptive search strategy in UniGraph. It routes each query through a sparse-guided or denseguided execution path according to trade-off value α and applies dense-first hybrid distance pruning to avoid unnecessary exact sparse distance computations. • We conduct extensive experiments on five real-world datasets. At Recall@100 ≥ 0.95, UniGraph delivers 27.6%∼52.3% higher QPS than the fastest baseline on each dataset under mixed weights, and 1.18×∼2.85× QPS of the fastest baseline across the fixed weights. The remainder of this paper is organized as follows: §II defines the hybrid retrieval problem and discusses existing tworoute and graph-based solutions. §III presents the construction and search procedure of UniGraph, including hybrid distance pruning. §IV presents guided entry-point search in UniGraph and α-adaptive execution through sparse-guided and dense-

guided paths. §V reports the experimental setup and results on five datasets. §VI reviews related work. II. P RELIMINARIES A. Problem Definition 1) Nearest Neighbor Search: Definition 1 (k-Nearest Neighbor Search (k-NNS)). Let X = {xi }N i=1 be a finite vector dataset with |X | = N . Given a query vector q, a distance function D(q, xi ), and a result size k, the objective of k-nearest neighbor search (k-NNS) is to retrieve a size-k subset of X whose vectors have the smallest distances to q. The exact result is defined as X RD (q, X , k) = arg min D(q, xi ). (2) S⊆X |S|=k

xi ∈S

Definition 2 (k-Approximate Nearest Neighbor Search (k-ANNS)). Given a finite vector dataset X = {xi }N i=1 , a query vector q, a distance function D(q, xi ), and a result size k, the objective of k-approximate nearest neighbor search (kANNS) is to efficiently retrieve a size-k approximate result bD (q, X , k) that closely matches the exact k-NNS result set R RD (q, X , k) without exhaustively evaluating D(q, xi ) over all bD (q, X , k) is measured by xi ∈ X . The retrieval quality of R its recall against the exact result: Recall@k(q; D) =

bD (q, X , k) ∩ RD (q, X , k) R

. (3) k 2) Dense and Sparse Retrieval: In the dense-sparse retrieval setting, each base item xi ∈ X is represented as a dense-sparse vector pair xi = (xdi , xsi ). A query is written as q = (q d , q s ), where q d and q s represent the dense and sparse vectors of query q, respectively. A dense base vector xd is obtained by encoding an item in the base dataset using a dense encoding model, such as DPR [13], Sentence-BERT [14], or BGE-M3 [15]. Dense retrieval ranks dense base vectors using distance measures such as inner-product distance, cosine distance, or Euclidean

distance. Let Dd (q d , xdi ) denote the dense distance between query vector q d and base vector xdi . The exact dense top-k result Rd (q, X , k) is the size-k subset S ⊆ X that minimizes the total dense distance: X Rd (q, X , k) = arg min Dd (q d , xdi ). (4) S⊆X |S|=k

xi ∈S

A sparse base vector xs has high dimensionality, with most dimensions equal to zero. Nonzero entries correspond to vocabulary terms and preserve lexical information. Sparse base vectors can be produced by term-weighting models such as BM25 [4] or learned sparse encoders such as SPLADE [5], [16]–[18]. Let T (q s ) and T (xsi ) denote the sets of nonzero terms in the sparse query and base vector, respectively, and let qts and xsi,t be their weights for term t. The sparse innerproduct score ss (q s , xsi ) between query vector q s and base vector xsi is defined as X ss (q s , xsi ) = qts xsi,t . (5) t∈T (q s )∩T (xsi )

The exact sparse top-k result Rs (q, X , k) is the size-k subset S ⊆ X that maximizes the total sparse score: X Rs (q, X , k) = arg max ss (q s , xsi ). (6) S⊆X |S|=k

Symbol

Description

X, N xi = (xdi , xsi ) q = (q d , q s ) Dd , Ds , Dh α Rd , Rs , Rh A δ kg

Base dataset and its size Dense-sparse base vector pair Dense-sparse query vector pair Dense, sparse, and hybrid distances Hybrid weight Dense, sparse, and hybrid top-k results Hybrid weights sampled for graph construction Sampling step for hybrid weights Number of neighbors retained per sampled weight Top-kg neighbors of xi under weight α Union of neighbor sets of xi over sampled weights Selection frequency of xj as a neighbor of xi Maximum graph out-degree Outgoing neighbor set of x in UniGraph Candidate and result sets in graph search Number of returned results and final top-k result set Vertices seen during graph search Construction and search beam sizes Hybrid-distance pruning scale

Niα Ui fi (xj ) M NG (x) C, R k, Rk Vseen efc , efs γ

xi ∈S

3) Hybrid Dense-Sparse Retrieval: We use the hybrid distance defined in Eq. (1), with the query-level weight α ∈ [0, 1] controlling the dense-sparse trade-off. Sparse retrieval uses inner-product scores, which we convert to distances as Ds (q s , xsi ) = 1−ss (q s , xsi ) = 1−⟨q s , xsi ⟩. To use a consistent distance formulation for the dense and sparse components, we also adopt inner-product distance for dense retrieval, i.e., Dd (q d , xdi ) = 1−⟨q d , xdi ⟩. In this definition, a smaller α value places greater weight on the sparse distance, whereas a larger α value places greater weight on the dense distance. Definition 3 (Hybrid Dense-Sparse Retrieval). Given a dataset X of base vector pairs, a query vector pair q, a trade-off weight α, and a result size k, the hybrid dense-sparse retrieval problem is to find the top-k base vector pairs in X with the smallest hybrid distances: X Rh (q, X , k; α) = arg min Dh (q, xi ; α). (7) S⊆X |S|=k

TABLE I S UMMARY OF NOTATION .

xi ∈S

At scale, we address this objective as a k-ANNS problem bh (q, X , k; α) denote the returned top-k result under Dh . Let R set; its recall is computed using Eq. (3) against the exact result Rh (q, X , k; α). The challenge studied in this paper is to bh (q, X , k; α) efficiently compute high-recall approximations R for query-level α values without rebuilding the index for each query. Table I summarizes the main symbols used in the paper. B. Existing Solutions Two-route retrieval. A common way to support hybrid retrieval is to run dense and sparse retrieval as two independent

routes [8]–[11]. For a query q, a dense vector index retrieves top candidates ranked by the dense distance Dd , while a sparse vector index retrieves top candidates ranked by the sparse distance Ds . The union is then reranked by computing Dh (q, x; α) for each candidate x to produce the final topk [9], [10]. The two-route design imposes no restrictions on the choice of dense or sparse indexes. The number of candidates retrieved from each index can be adjusted to balance recall and retrieval efficiency. Retrieving more candidates can improve recall but increases search and reranking costs, whereas retrieving fewer candidates reduces these costs but risks missing hybrid top-k results [11]. Fixed-weight hybrid graph. Another approach is to construct a proximity graph using the hybrid distance with a fixed weight α, such as α = 0.5 [12]. Because nearest-neighbor relationships can change with the hybrid weight, a graph constructed at a fixed α may lack connections between items that are close under other query weights. When the query weight differs from the weight used for graph construction, the search may need to explore more vertices to reach the nearest neighbors. This can increase query cost or reduce recall for a fixed search budget. Although this approach can be improved by first performing coarse retrieval with a dense or sparse index and then conducting fine-grained search on the hybrid graph [12], it still fundamentally relies on a graph constructed with a fixed hybrid weight and therefore cannot adapt to querydependent hybrid weights.

Sparse only

NQ α = 0.0 40%

α = 0.5

21%

α = 0.7

9% 15%

α = 1.0

MS MARCO

85%

α = 0.3

15%

15%

0%

15%

15%

20%

39%

24%

35%

24%

60%

20%

16%

10%

50%

27% 27%

27% 27%

27%

75%

100%

0%

50%

Neither

21%

17%

36%

16%

52%

11%

45% 28% 14%

100%

0%

19% 19%

19% 19%

19%

75%

FEVER

81%

73%

25%

Dense only

HotpotQA

73%

85%

25%

Both

16%

31%

20%

31%

17%

17%

81%

25%

50%

24%

47%

22%

50%

24% 24%

24%

100%

0%

14%

26% 43%

24%

75%

DBpedia-Entity

76%

81%

15%

36%

18% 16%

20% 10%

76%

25%

50%

19% 19%

19%

75%

100%

0%

19%

19%

22% 40%

22% 21%

58%

13%

81%

25%

50%

75%

100%

Fig. 2. Source composition of the exact hybrid result set Rh for k = 100. Each bar partitions the items in Rh according to their membership in Rs and Rd : only in Rs , only in Rd , in both sets, or in neither set. The Both segment remains relatively stable across α values because the items it contains rank highly in both dense and sparse retrieval and therefore also tend to rank highly under the hybrid distance.

III. U NIFIED H YBRID G RAPH A. Motivation Dense and sparse vectors are paired representations of the same items in the base dataset. They are partially correlated: not identical, but not independent. This partial correlation creates both the problem and the opportunity. The problem is that two-route retrieval may miss hybrid top-k results when an item does not rank highly in either vector modality. The opportunity is that neighborhoods under nearby α values overlap, allowing a unified graph to reuse edges across multiple hybrid weights. Figure 2 analyzes the source composition of the exact hybrid top-k result sets across five real-world datasets. For k = 100, we classify each item in the exact hybrid result set according to whether it also appears in the exact dense and sparse result sets. At intermediate weights, both dense-only and sparse-only results account for substantial portions of the hybrid top-100, indicating that neither component overwhelmingly dominates the hybrid ranking. This suggests that, for the datasets shown, the dense and sparse distance scales are sufficiently compatible. The Neither portion shows that some hybrid top-k results are absent from both single-modality result sets. On dataset NQ at α = 0.3 and 0.5, this portion reaches 24%. These omissions limit the recall of two-route retrieval. Figure 2 also suggests why a unified graph is feasible. As α increases from 0 to 1, the contribution of the two modalities changes accordingly, while the portion shared by both rankings remains stable. In other words, hybrid neighborhoods are weight-dependent but still related: different weights favor different neighbors, yet part of the neighborhood structure can be reused. A graph constructed at a fixed α value captures only the neighbor relations under that weight. This motivates the α-cover construction of UniGraph, which combines neighbor relations from multiple α values, retaining weight-specific connections while sharing their common structure in a single graph. Why Is Discrete α Sampling Effective? The effectiveness of discrete sampling depends on how the hybrid neighborhood changes with α. For a fixed center base vector pair xi and a candidate neighbor xj , the hybrid distance can be rewritten as  Dh (xi , xj ; α) = Ds (xsi , xsj ) + α Dd (xdi , xdj ) − Ds (xsi , xsj ) . (8)

This equation shows that the hybrid distance between two base vector pairs changes linearly with α. For a fixed center base vector pair xi , each of the remaining N − 1 base vector

pairs defines a linear hybrid distance function of α. When two candidates are compared, their relative order can change only at a crossing of their distance functions. Only crossings within α ∈ [0, 1] can affect the candidate ranking, and the partial correlation between dense and sparse distances further limits the number of such crossings. Many candidate pairs have the same relative order under both the dense and sparse distances. For such pairs, this order is preserved under any convex combination of the two distances. Even among the remaining crossings, those within the selected neighbors or within the unselected candidates change only their internal order. For a per-weight neighbor-set size (kg ), the neighbor set changes only when a candidate crosses the top-kg boundary. Only a relatively small number of pairwise crossings can change the top-kg neighbor set. Between consecutive change points, the neighbor set remains unchanged. Therefore, discrete α sampling can effectively capture neighborhood structures across the continuous weight range. Accordingly, to construct UniGraph, we use a fixed sampling step δ to select a finite set of α values instead of finding all change points explicitly. B. UniGraph Construction Given a sampling step δ, we discretize [0, 1] into A = {0, δ, 2δ, . . . , 1} and compute the top-kg hybrid neighbors of xi for each α ∈ A. We denote this per-α neighbor set by X Dh (xi , xj ; α). (9) Niα = arg min S⊆X \{xi } x ∈S j |S|=kg

The α-cover neighbor set is Ui =

[

Niα .

(10)

α∈A

This set approximates the union of the top-kg neighbor sets induced by all hybrid weights α ∈ [0, 1]. In our experiments, we find that a sampling step of δ = 0.1 is sufficient to capture neighborhood changes, and using a smaller step yields little additional improvement. After collecting the per-α top-kg sets, we perform an αfrequency merge. For each candidate xj , let X fi (xj ) = 1[xj ∈ Niα ] , (11) α∈A

where 1[·] is the indicator function, equal to 1 when its condition holds and 0 otherwise. We represent UniGraph as a

Neighbors under multiple ⍺ weights

Union and Deduplication

For each sampled ⍺, keep top-kg neighbors

⍺

Sparse(Lexical)

x2

x x6

x3

x1

x4

x7

x5

Top-3 neighbors (ranked)

⍺ = 0.9

x2

x x6

……

⍺ = 0.5

x2

x1 x7

……

⍺ = 0.1

⍺ = 0.0

Dense(Semantic)

x3

x1

x4

x7

x

x5

Top-3 neighbors (ranked)

x6

x1

x4

x7

x5

x2

Top-3 neighbors (ranked)

x3

x1

x4

x7

x x6

4 x6(1)

⍺ = 1.0

x2 x3

x3

x x6

x5

Top-3 neighbors (ranked)

Final neighbor lists 1 x4(5) 2 x3(5) 3 x1(2) 5 x7(1)

6 x5(1)

The final neighbors are ranked by their occurrence frequencies

x4 x5

Top-3 neighbors (ranked)

1

x1

1

x4

1

x4

1

x4

1

x4

2

x4

2

x1

2

x3

2

x3

2

x3

3

x3

3

x3

3

x6

3

x7

3

x5

Unified Hybrid Graph (UniGraph) x3 x1

x4 x

x7

x5 x6

Fig. 3. Overview of UniGraph construction for one center base vector pair x. Across sampled α values ranging from the sparse (lexical) endpoint to the dense (semantic) endpoint, the construction retains the top-kg hybrid neighbors of x at each weight; the illustration uses kg = 3. The per-α lists are merged and deduplicated, and the number in parentheses indicates each candidate’s occurrence frequency. Ranking the candidates by this frequency produces a single UniGraph neighborhood that favors neighbors selected across multiple dense-sparse trade-offs.

directed graph G = (V, E), where V = X is the vertex set and E is the edge set. The final outgoing neighbor set of xi in G retains the candidates with the highest frequencies: X NG (xi ) = arg max fi (xj ). (12) S⊆Ui x ∈S |S|=min{M,|Ui |} j

This caps the outgoing degree at M by favoring neighbors that are repeatedly selected across sampled hybrid weights rather than discarding candidates at random. A higher occurrence frequency indicates that the neighbor remains important under more dense-sparse trade-offs. Figure 3 illustrates the αcover construction workflow. Overall, the construction samples multiple hybrid weights, computes the top-kg neighbors at each weight, merges the resulting neighbor sets, and ranks the candidates by occurrence frequency to obtain the final neighbor list used by UniGraph. Algorithm 1 formalizes the complete α-cover construction of UniGraph. It first initializes the vertex and edge sets (Line 1). For each center xi and each sampled α, the algorithm selects the kg other base vector pairs with the smallest hybrid distances to xi , inserts them into Ui , and increments fi (xj ) once for every selected xj (Lines 2–8). Consequently, after all sampled weights have been processed, Ui and fi are exactly the union and occurrence counts in Eqs. (10) and (11). The algorithm then keeps the min{M, |Ui |} candidates with the largest frequencies as NG (xi ) and adds a directed edge (xi , xj ) for each retained neighbor (Lines 9–10). Repeating

Algorithm 1: UniGraph Construction Input: base dataset X , sampled α values A, number of neighbors kept for each α kg , maximum out-degree M. Output: G = (V, E). 1 V ← X; E ← ∅ 2 foreach xi ∈ X do 3 fi (·) ← 0; Ui ← ∅ 4 foreach α ∈ A do X 5 Niα ← arg min Dh (xi , xj ; α) 6 7 8 9

S⊆X \{xi } x ∈S j |S|=kg Ui ← Ui ∪ Niα foreach xj ∈ Niα do

fi (xj ) ← fi (xj ) + 1 X NG (xi ) ← arg max fi (xj ) S⊆Ui x ∈S |S|=min{M,|Ui |} j

10 11 12

E ← E ∪ {(xi , xj ) | xj ∈ NG (xi )} G ← (V, E) return G

these operations for every xi completes E, after which the algorithm returns G = (V, E) (Lines 11–12). In practice, we use dense and sparse indexes as offline candidate generators during UniGraph construction to avoid all-pairs distance computations. For each base vector pair, we independently retrieve candidate neighbors from the dense and

Algorithm 2: UniGraph Search Input: q, G = (V, E), entry-point set Eq , top-k, efs , hybrid weight α, pruning scale γ ∈ [0, 1]. Output: Rk . 1 C ← R ← {(e, Dh (q, e; α)) | e ∈ Eq }; Vseen ← Eq s 2 nq ← ∥q ∥2 3 τ ← max(v,Dv )∈R Dv 4 while C ̸= ∅ do 5 (x, Dx ) ← arg min(v,Dv )∈C Dv ; C ← C \ {(x, Dx )} 6 if |R| = efs and Dx > τ then 7 break 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

foreach y ∈ NG (x) do if y ∈ Vseen then continue Vseen ← Vseen ∪ {y} Dd,y ← Dd (q d , y d ) if |R| = efs then b y ← αDd,y + (1 − α)(1 − γnq ∥y s ∥2 ) D b y ≥ τ then if D continue Ds,y ← Ds (q s , y s ) Dy ← αDd,y + (1 − α)Ds,y if |R| < efs or Dy < τ then C ← C ∪ {(y, Dy )}; R ← R ∪ {(y, Dy )} if |R| > efs then (z, Dz ) ← arg max(v,Dv )∈R Dv ; R ← R \ {(z, Dz )} τ ← max(v,Dv )∈R Dv

23

24

Rk ← arg min S⊆R |S|=k

25

X

Dv

(v,Dv )∈S

return Rk

closest remaining candidate is farther than the worst vertex in R. During traversal, UniGraph directly uses the queryspecific hybrid distance to order candidates, while supporting any query-level hybrid weight α ∈ [0, 1] without requiring graph reconstruction. Hybrid distance evaluation can dominate traversal cost because every visited candidate may require computing both dense and sparse distances. Computing the sparse innerproduct distance is especially costly because it requires matching query terms with irregularly stored nonzero entries. UniGraph search therefore evaluates the dense component first and combines it with sparse vector norms to obtain an estimated hybrid distance. Based on this estimate, it determines whether exact sparse distance computation is necessary. Base vector norms are query-independent and can be precomputed during index construction and stored with the index; the sparse query norm is computed once and reused for all candidates during the query. Once the dense distance is available, computing the pruning estimate requires only a few scalar operations and no sparse vector matching. We next derive a norm-based lower bound, use it to construct a tunable hybrid-distance estimate, and characterize the resulting pruning guarantee and efficiency–recall tradeoff. Norm-Based Lower Bound Let ∥ · ∥2 denote the Euclidean norm. Applying the Cauchy–Schwarz inequality to the sparse inner-product distance defined in § II, and noting that 1 − α ≥ 0, the norm-based sparse estimate and its induced hybrid estimate satisfy Ls (q s , xs ) = 1 − ∥q s ∥2 ∥xs ∥2 ≤ 1 − ⟨q s , xs ⟩ = Ds (q s , xs ), d

d

(13) s

s

Lh (q, x; α) = αDd (q , x ) + (1 − α)Ls (q , x ) sparse indexes, merge their results into a compact candidate pool, and compute the exact dense and sparse distances only for these candidates. The subsequent construction procedure does not depend on the specific dense and sparse indexes used for candidate generation. The dense and sparse indexes are used only to accelerate UniGraph construction. The per-α neighbor selection and frequency merge in Algorithm 1 are then performed over this pool rather than the full dataset; the remaining construction procedure is unchanged.

Thus, after computing the dense distance, UniGraph obtains a valid hybrid-distance lower bound using only the vector norms, without matching the nonzero entries of q s and xs . Scaled Estimate and Pruning Rule The lower bound in Eq. (14) is safe but can be loose. To control pruning strength, we introduce a pruning scale γ ∈ [0, 1] and define the scaled b h as hybrid distance estimate D

C. UniGraph Search

 b h (q, x; α, γ) = αDd (q d , xd ) + (1 − α) 1 − γ∥q s ∥2 ∥xs ∥2 . (15) D

Given a query q, a hybrid weight α, and an entry-point set Eq , we perform greedy beam search over UniGraph. Let efs denote the search beam size. Unguided UniGraph search starts from a single randomly selected entry point (Eq = {e0 }), whereas guided UniGraph search uses multiple query-dependent entry points retrieved from a guide index, as detailed in §IV-A. The traversal maintains a candidate set C ordered by the query-specific hybrid distance and an efs -sized result set R containing the best vertices found so far. At each step, the search selects the closest unexpanded vertex from C, visits its graph neighbors, evaluates promising unseen vertices, and updates C and R. Once |R| = efs , it uses the standard beam-search termination condition: traversal stops when the

≤ Dh (q, x; α).

(14)

b h = Lh + (1 − α)(1 − γ)∥q s ∥2 ∥xs ∥2 , so Equivalently, D γ controls a nonnegative margin above the Cauchy-Schwarz lower bound. Once |R| = efs , let τ be the current worst hybrid distance b h with τ . If D b h ≥ τ , it skips the in R. UniGraph compares D exact sparse distance for x; otherwise, it computes Ds (q s , xs ) and forms the exact hybrid distance. Pruning Guarantee and Tradeoff Lemma III.1 (Safe Dense-First Pruning). Suppose |R| = efs b h (q, x; α, 1) ≥ τ , then Dh (q, x; α) ≥ τ . and γ = 1. If D Hence, the exact-distance beam-search insertion rule would reject x, and its exact sparse distance need not be evaluated.

q

Entry point

Result point

Query

Pruned point

( 𝐷' ) Hybrid distance

Estimated distance

q

Dense-First Pruning

𝛼 = 0.4

"! (z) = 0.5 𝐷

𝐷" (z) = 0.3

𝛼 ≤ 0.5 𝜏 = 0.4

Adaptive Search Path

"! (z) 𝐷! (z) 𝐷

z

q

Sparse Index

e3

Result set

(0.7)

ID

Distance

u

0.1

w

0.3

e1

0.4

z

e1 (3) Prune z

e2 e3

e1 (0.4) (2) Discover u

Guided Entry Points

(1) Discover w

e2 (0.6) Expanding Point

w

q (0.3)

u (0.1)

Threshold 𝜏 = 0.4

v

Fig. 4. A concrete example of UniGraph search for a query with α = 0.4. Because α ≤ 0.5, the α-adaptive policy selects the sparse guide index, which returns e1 , e2 , and e3 as entry points. During UniGraph traversal, expanding e1 discovers w and u and updates the result set, whose current worst distance is τ = 0.4. For brevity, we omit the fixed query and parameter arguments from the distance notation in this example. For candidate z, dense-first pruning b h (z) = 0.5. Since D b h (z) ≥ τ , z is pruned uses Dd (z) = 0.3 to obtain D without exact sparse distance evaluation. Blue values in parentheses denote exact hybrid distances.

b h = Lh . By Proof: When γ = 1, Eq. (15) gives D b Eq. (14), Lh ≤ Dh . Hence, Dh ≥ τ implies Dh ≥ τ . b h larger and For γ < 1, the nonnegative margin makes D may prune more candidates, but the estimate is no longer guaranteed to lower-bound Dh . Smaller γ values therefore reduce exact sparse distance evaluations at the risk of changing the search path and affecting recall, whereas larger values are more conservative. We use γ = 0.3 in the main experiments and isolate its throughput effect in the pruning ablation. b h is compared with the current Figure 4 illustrates how D result-set threshold τ . Algorithm 2 formalizes the complete UniGraph search procedure. It first computes the exact hybrid distance Dh (q, e; α) for each entry e ∈ Eq , inserts the resulting pairs into both C and R, and marks all entries as seen (Line 1). It computes the query sparse norm nq = ∥q s ∥2 once and initializes τ to the largest entry distance in R (Lines 2–3). At each iteration, the algorithm removes from C the unexpanded pair (x, Dx ) with the smallest distance (Lines 4–5); if R is full and Dx > τ , traversal terminates because no remaining candidate can improve the current result set (Lines 6–7). Otherwise, it scans every outgoing neighbor y ∈ NG (x), skips previously seen neighbors, and marks each unseen neighbor immediately so that it is evaluated at most once (Lines 8–11). It first computes the dense component Dd,y (Line 12) and, when R by is full, uses Dd,y , nq , and the stored norm ∥y s ∥2 to obtain D

b y ≥ τ , it skips y without computing the from Eq. (15); if D exact sparse component (Lines 13–16). If R is not yet full or b y < τ , the algorithm computes Ds,y and the exact hybrid D distance Dy = αDd,y + (1 − α)Ds,y (Lines 17–18). The result set R retains at most the efs closest vertices found so far, and τ is the distance of its farthest member (Lines 19–23). If R is not full, (y, Dy ) is pushed directly into both C and R; once R is full, the pair is pushed only when Dy < τ , meaning that y is closer than the current farthest member (Lines 19–20). If this insertion makes |R| > efs , the algorithm removes the farthest pair and updates τ to the largest remaining distance (Lines 21–23). When traversal terminates or C becomes empty, the algorithm selects the k pairs with the smallest distances in R and returns their vertices as Rk (Lines 24–25). IV. G UIDED S EARCH IN U NI G RAPH The guided search framework in UniGraph uses querydependent entry points to initialize traversal of the unified graph. It selects between sparse-guided and dense-guided paths according to the query weight α. We first describe how the two paths obtain their entry points, and then present the α-adaptive routing policy and analyze the benefits of guided initialization. A. Guided Entry-Point Search Guided UniGraph search uses a guide index to obtain querydependent entry points, as illustrated by the concrete example in Figure 4. We use either a sparse index or a dense index as the guide index. The sparse- and dense-guided paths retrieve results under Ds and Dd , respectively. The retrieved results serve as the entry-point set Eq for initializing the traversal in Algorithm 2; thereafter, UniGraph ranks and explores vertices using the query-specific hybrid distance Dh . The framework is independent of the specific guide index implementation. Any dense or sparse index that returns results ranked by the corresponding component distance can serve as the guide index. B. α-Adaptive Execution The guided search framework selects an execution path according to the query-level hybrid weight α: sparse- and dense-dominant queries are routed to the sparse- and denseguided paths, respectively. After routing, the corresponding sparse or dense guide index is queried, and its results form the entry-point set Eq for UniGraph traversal. The two paths use the same UniGraph search procedure, differing only in the selected guide index and the resulting entry points. We express this query-time selection as ( sparse-guided path, α ≤ αt , Path(q, α) = dense-guided path, α > αt , where αt is the routing threshold between sparse-guided and dense-guided execution. In our experiments, the dense and sparse distances have comparable scales. We therefore set αt = 0.5, the balance point at which the two distances receive equal weights in Eq. (1).

TABLE II DATASET STATISTICS . AVG . NNZ REPORTS , IN BASE / QUERY ORDER , THE AVERAGE NUMBER OF NONZERO ENTRIES PER SPARSE VECTOR .

Dataset

Base

Queries

Dense Dim.

Avg. NNZ

NQ HotpotQA MS MARCO FEVER DBpedia-Entity

2.68M 5.23M 8.84M 5.42M 4.64M

1,000 1,000 1,000 1,000 467

1024 1024 1024 1024 1024

66.0/10.7 44.2/17.5 47.7/7.2 66.2/11.5 47.8/7.3

C. Analysis Guided entry points improve search by reducing the number of hybrid graph traversal steps needed to reach the result region. During UniGraph traversal, visiting a candidate may require evaluating the hybrid distance, which combines both dense and sparse distances. In contrast, the sparse and dense guide indexes perform single-route coarse search using only one component distance. Since dense and sparse vectors are correlated, the top-k results under either component distance are often close in UniGraph to highly ranked hybrid results. Guided UniGraph search can therefore be viewed as a coarseto-fine process: it first uses Ds or Dd to approach the result region and then uses the query-specific hybrid distance Dh to refine the search over UniGraph, reducing hybrid distance evaluations and improving search efficiency compared with unguided UniGraph traversal initialized from a random graph entry point. The α-adaptive policy further matches the entry-point strategy to the query’s dense-sparse weighting. For smaller α values, results returned by the sparse guide index are more likely to include or lie near highly ranked hybrid results. For larger α values, results returned by the dense guide index provide analogous guidance for dense-dominant queries. Taken together, guided initialization and α-adaptive routing provide two benefits: they reduce the hybrid distance evaluations needed to reach the result region and improve recall by selecting entry points that match the dense-sparse preference specified by the query. V. E XPERIMENTS A. Experimental Setup We evaluate UniGraph in terms of retrieval effectiveness and efficiency under mixed and fixed query weights, as well as index construction time and storage cost. We further conduct ablation studies on guided entry points, hybrid distance pruning, and multi-weight graph construction. Datasets, query weight settings, and metrics. We use five public retrieval datasets from the BEIR benchmark [19]: NQ [20], HotpotQA [21], MS MARCO [22], FEVER [23], and DBpedia-Entity [24]. NQ covers open-domain question answering, HotpotQA focuses on multi-hop question answering, MS MARCO evaluates web passage retrieval, FEVER evaluates evidence retrieval for fact verification, and DBpediaEntity evaluates entity retrieval over DBpedia articles. Each document and query is encoded by BGE-M3 [15] into a 1024dimensional dense vector and a weighted sparse vector. The

TABLE III F IXED PARAMETER SETTINGS FOR INDEX CONSTRUCTION AND SEARCH .

Method

Parameter Settings

HNSW

Construction: M = 64; construction beam size efc = 200 Search: Candidate count = efs

SINDI

Construction: Document pruning ratio = 0 Search: Query pruning ratio = 0.5

HNSW+SINDI

Construction: HNSW and SINDI settings as specified above Search: Dense candidate count = sparse candidate count; SINDI query pruning ratio = 0.5

Naive Hybrid

Construction: α = 0.5; M = 64; efc = 200

Opt Hybrid

Construction: α = 0.5; M = 64; efc = 200; hybrid neighbor expansion width = 200 Search: dense-stage stopping threshold τd = 0.8; hybrid-stage stopping threshold τh = 1.0; no sparse vector pruning

LADR

Construction: HNSW and SINDI settings as specified above Search: Lexical seed count = 200; SINDI query pruning ratio = 0.5

UniGraph

Construction: A = {0.0, 0.1, . . . , 1.0}; dense/sparse candidate counts = 100/100; HNSW efs = 200; SINDI query pruning ratio = 0.9; kg = 32; M = 64 Search: γ = 0.3; guided-entry count = guide-HNSW efs = UniGraph efs ; SINDI query pruning ratio = 0.5

dense embeddings produced by BGE-M3 are ℓ2 -normalized. Table II summarizes basic statistics for the encoded datasets. For NQ, HotpotQA, MS MARCO, and FEVER, each query set contains 1,000 queries; for DBpedia-Entity, it contains all 467 available queries. We evaluate both mixed-α and fixed-α query weight settings. For each evaluated query–weight combination, we compute the exact hybrid top-k result under Eq. (1) as ground truth. We report Recall@50, Recall@100, and Recall@200 in the mixed-α setting, and Recall@100 in the fixed-α setting. We measure end-to-end query throughput over the complete query set and report it in queries per second (QPS). Baselines. We compare UniGraph with six baselines. Across all evaluated methods, we use HNSW [25] and SINDI [26] as the dense and sparse indexes, respectively. HNSW is a widely used graph-based ANNS index that organizes dense vectors in a hierarchical proximity graph, while SINDI is an efficient inverted-index-based sparse retrieval method without redundant computation. Below, we describe each baseline. We reimplement the Naive Hybrid and Opt Hybrid variants introduced in [12]. These two baselines represent fixed-weight hybrid graph approaches, whereas HNSW+SINDI represents the two-route retrieval approach. •

LADR: LADR [27] uses sparse retrieval results as entry points and, with an adaptive expansion width (c), repeat-

LADR

HNSW

SINDI

HNSW+SINDI

Naive Hybrid

Opt Hybrid

UniGraph(Ours) 10³

10³

QPS

10²

QPS

QPS

QPS

QPS

10³

10²

10²

10² 10² 0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@50 (a) NQ, k=50

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@50 (b) HotpotQA, k=50

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@50 (c) MS MARCO, k=50

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@50 (d) FEVER, k=50

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@50 (e) DBpedia-Entity, k=50

10³

10²

QPS

10²

QPS

QPS

QPS

QPS

10³

10²

10²

10² 0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (f) NQ, k=100

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (g) HotpotQA, k=100

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (h) MS MARCO, k=100

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (i) FEVER, k=100

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (j) DBpedia-Entity, k=100

10²

QPS

10²

QPS

10²

QPS

QPS

QPS

10³

10²

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@200 (k) NQ, k=200

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@200 (l) HotpotQA, k=200

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@200 (m) MS MARCO, k=200

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@200 (n) FEVER, k=200

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@200 (o) DBpedia-Entity, k=200

Fig. 5. Recall@50-QPS (top), Recall@100-QPS (middle), and Recall@200-QPS (bottom) trade-offs in the mixed-α setting. The query weights are uniformly distributed over [0.3, 0.7]. Curves closer to the upper-right corner indicate better performance.

edly expands the neighbors of the current top-c candidates ranked by their dense scores until convergence. We rerank all candidates using the query-specific hybrid distance. • HNSW (dense-only) and SINDI (sparse-only): HNSW and SINDI retrieve candidates according to the dense and sparse distances, respectively. Each baseline then computes the missing distance component for its retrieved candidates and reranks them using the query-specific hybrid distance. • HNSW+SINDI (two-route): This baseline represents the two-route retrieval approach. It independently retrieves candidate sets from HNSW and SINDI for dense and sparse vectors respectively, and reranks the resulting candidates using the query-specific hybrid distance. • Naive Hybrid [12]: The Naive Hybrid variant constructs and searches an HNSW index directly using the hybrid distance with a fixed weight of α = 0.5. • Opt Hybrid [12]: The Opt Hybrid variant starts from a dense HNSW graph, augments it with neighbors selected by the fixed-weight hybrid distance, and performs dense traversal followed by hybrid traversal. Although the original method includes sparse vector pruning, we disable this optimization because our preliminary experiments found that it yielded only marginal end-to-end throughput improvements under the evaluated workloads and did not materially change the Recall-QPS trade-off. UniGraph selects SINDI or HNSW according to the query

weight to obtain entry points, then traverses the unified graph and ranks candidates using the query-specific hybrid distance. UniGraph is compatible with other dense and sparse indexes. Parameter settings. UniGraph uses HNSW and SINDI as dense and sparse candidate generators, respectively, during graph construction. The Naive Hybrid and Opt Hybrid baselines are constructed at the fixed weight α = 0.5, while LADR uses a proximity graph extracted from the dense HNSW index and obtains its lexical seeds from SINDI. For the Recall-QPS curves, the graph search width ranges approximately from k to 10k for HNSW, the two fixed-weight hybrid baselines, and UniGraph. The SINDI candidate count ranges from 10k to 100k. For the two-route baseline, the dense and sparse candidate counts are set equal, as determined by grid search, and the count for each route ranges from k to 5k. For LADR, the adaptive expansion width ranges from 1 to 200. Table III summarizes the settings. Experimental environment. All methods are implemented in C++17 and compiled with GCC/G++ 15.2.0 using CMake 4.2.3. All experiments are conducted on a server running Linux 5.10.134 and equipped with one AMD EPYC 9T24 processor with 96 physical cores and 1.1 TiB of memory. Index construction uses up to 32 physical cores. At search time, all indexes and vector data reside entirely in memory, and all search experiments use a single thread.

QPS

Recall@100 (f) MS MARCO, α=0.3

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (k) DBpedia-Entity, α=0.3

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (g) MS MARCO, α=0.4

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (l) DBpedia-Entity, α=0.4

QPS

QPS

Recall@100 (e) NQ, α=0.7

10³

QPS

10³

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (h) MS MARCO, α=0.5

10²

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (d) NQ, α=0.6

10²

QPS

0.70 0.75 0.80 0.85 0.90 0.95 1.00

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (c) NQ, α=0.5

QPS 10²

UniGraph(Ours)

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

10³

QPS 10²

QPS

Recall@100 (b) NQ, α=0.4

10³

QPS

10³

0.70 0.75 0.80 0.85 0.90 0.95 1.00

10²

Opt Hybrid

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (i) MS MARCO, α=0.6

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (m) DBpedia-Entity, α=0.5

Recall@100 (j) MS MARCO, α=0.7

QPS

Recall@100 (a) NQ, α=0.3

10²

Naive Hybrid

QPS

0.70 0.75 0.80 0.85 0.90 0.95 1.00

HNSW+SINDI

QPS

10²

SINDI

QPS

HNSW

QPS

QPS

LADR

Recall@100 (n) DBpedia-Entity, α=0.6

10²

0.70 0.75 0.80 0.85 0.90 0.95 1.00

Recall@100 (o) DBpedia-Entity, α=0.7

Fig. 6. Fixed-α Recall@100-QPS trade-offs on NQ, MS MARCO, and DBpedia-Entity. The upper-right region is better.

B. Overall Performance

2) Fixed-α Setting. The fixed-α setting evaluates performance when all queries share the same weight. We consider five fixed weights: α ∈ {0.3, 0.4, 0.5, 0.6, 0.7}. Figure 6 reports the Recall@100-QPS trade-offs at each fixed α value. Among the two single-modality baselines, the sparse-only baseline achieves higher QPS at matched recall for smaller α, whereas the dense-only baseline achieves higher QPS for larger α. At Recall@100 ≥ 0.95, UniGraph achieves 1.18×∼2.85× the QPS of the fastest baseline, with a

HNSW+SINDI

Naive Hybrid

41.5

40

GiB

1) Mixed-α Setting. The mixed-α setting tests whether an index remains effective when the relative weighting of dense and sparse signals varies from query to query. For each dataset, the query weights are uniformly distributed over [0.3, 0.7]. We select this interval, because at more extreme weights such as α = 0.1 or 0.9, the hybrid distance is determined primarily by only one modality. Figure 5 compares the Recall-QPS trade-offs of all methods when α varies across queries. At Recall@100 ≥ 0.95, UniGraph achieves 27.6%∼52.3% higher QPS than the fastest baseline across the five datasets. On NQ, UniGraph sustains about 1.7× the QPS of two-route at Recall@100 ≈ 0.88. A more pronounced advantage appears on FEVER, where UniGraph delivers about 3.0× the QPS of Naive Hybrid at Recall@100 ≈ 0.94. UniGraph also retains a clear advantage over LADR on DBpedia-Entity, providing an approximately 2.3× QPS speedup at Recall@100 ≈ 0.95.

LADR

Opt Hybrid

UniGraph(Ours)

50

24.6 25.9

20 13.4 14.0

0

41.4 38.0 37.5

30

10

43.6

11.9 11.7

NQ

22.4 22.2

27.3 28.6

24.6

24.1 23.8

27.3 22.1 23.2

20.0 19.8

22.0

13.4

HotpotQA

MS MARCO

FEVER

DBpedia-Entity

Fig. 7. Index size of HNSW+SINDI, UniGraph, Naive Hybrid, Opt Hybrid, and LADR on all five datasets; lower is better.

geometric-mean speedup of 1.66× over all three datasets and five query weights. On NQ with α = 0.3, UniGraph delivers about 2.5× the QPS of the sparse-only baseline at Recall@100 ≈ 0.95. Compared with the fixed-weight hybrid graph baselines, UniGraph achieves 1.44×∼3.34× the QPS of Naive Hybrid and 1.40×∼2.26× that of Opt Hybrid in their comparable configurations. The advantage persists at α = 0.5, even though this query weight matches the construction weight of both Hybrid indexes. On MS MARCO with α = 0.6, UniGraph also provides about 2.1× the QPS of LADR at Recall@100 ≈ 0.95, consistent with the benefit of traversing the graph under the query-specific hybrid distance rather than dense scores alone. At α = 0.5 on DBpedia-Entity, UniGraph maintains about 1.6× the QPS of two-route at comparable recall. 3) Index Construction and Storage. Table IV compares the

Unguided UniGraph NQ

+10.1%

84.9

HotpotQA 83.6

FEVER

88.5

DBpedia-Entity

+7.4%

87.3

80

85

90

95

100

96.0

96.1

+6.0%

91.1

85

97.2

+6.4%

89.7

DBpedia-Entity

94.7

98.1

+9.7%

87.5

FEVER

97.2

+7.7%

88.3

MS MARCO

95.7 +8.7%

+5.5%

92.6

HotpotQA

96.5

+12.0%

Dense-Guided UniGraph NQ

95.0

+10.2%

86.2

MS MARCO

Sparse-Guided UniGraph

90

97.2

95

Recall (%)

Recall (%)

(a) α=0.3

(b) α=0.7

100

Fig. 8. Recall@100 of unguided and guided UniGraph search at efs = 300. Panel (a) compares unguided and sparse-guided UniGraph search at α = 0.3, while panel (b) compares unguided and dense-guided UniGraph search at α = 0.7.

NQ HotpotQA MS MARCO FEVER DBpedia-Entity

250

243.9 218.1

HNSW+ SINDI

UniGraph

Naive Hybrid

Opt Hybrid

LADR

438 1,181 1,418 1,300 1,052

918 2,497 2,946 2,844 2,215

910 1,592 2,265 2,060 1,450

1,175 3,069 3,155 3,609 2,752

442 1,190 1,428 1,309 1,060

200

QPS

Dataset

Pruning (𝛾 = 0.3)

No pruning

TABLE IV I NDEX CONSTRUCTION TIME IN SECONDS ; LOWER IS BETTER .

150

162.7 145.7 102.7

100 50

construction times of two-route, UniGraph, Naive Hybrid, Opt Hybrid, and LADR, while Figure 7 compares their index sizes across all five datasets. Building the unified graph introduces additional offline construction cost relative to two-route. Nevertheless, UniGraph requires 6.6%∼21.9% less construction time than Opt Hybrid and incurs only 4.5%∼5.3% additional storage over two-route. The reported construction time includes all index components required by each method. For UniGraph, it includes constructing HNSW, SINDI, and the unified graph. The construction cost of HNSW+SINDI is dominated by its HNSW component. In our measurements, SINDI takes only tens of seconds to build, so the construction time of HNSW+SINDI remains close to that of HNSW alone. Naive Hybrid incurs additional cost by evaluating the hybrid distance directly during graph construction. Opt Hybrid further augments a dense HNSW graph with neighbors selected by the hybrid distance, while UniGraph constructs neighborhoods at multiple weights and merges them into a unified graph. These additional hybrid distance evaluations and graph processing steps account for the higher construction costs of the graphbased hybrid methods. Compared with Naive Hybrid, Opt Hybrid, and LADR, UniGraph uses 14.7%∼18.7%, 16.3%∼20.2%, and 4.5%∼5.5% more index space, respectively. The additional space is the cost of maintaining both the multi-weight unified graph and the two guide structures. By sharing the underlying vectors and labels among these structures, UniGraph limits its storage overhead relative to the two-route baseline to about 5% while supporting efficient retrieval under query-dependent hybrid

156.3

NQ

126.2

114.0

HotpotQA

93.8

MS MARCO

102.3

FEVER

DBpedia-Entity

Fig. 9. QPS with and without dense-first hybrid distance pruning under the mixed-α setting at efs = 300.

weights without graph reconstruction. C. Ablation Study We evaluate how guided entry points affect retrieval effectiveness, how hybrid distance pruning affects search efficiency, and whether multi-weight graph construction improves the graph-only Recall-QPS trade-off. 1) Entry-Point Strategy. We compare unguided UniGraph search initialized from a random graph entry point with sparse-guided UniGraph search at α = 0.3 and dense-guided UniGraph search at α = 0.7. All variants use the same hybrid graph, pruning scale γ = 0.3, and search beam size efs = 300. Figure 8 shows that guided entry points substantially improve recall in all comparisons. Unguided UniGraph search obtains 83.6%∼92.6% Recall@100, whereas the sparse- and dense-guided configurations reach 94.7%∼98.1%. At α = 0.3, sparse-guided UniGraph search improves recall by 7.4∼12.0 percentage points, averaging 9.7 points across the datasets. At α = 0.7, dense-guided UniGraph search improves recall by 5.5∼9.7 percentage points, averaging 7.1 points. At both tested weights, using the corresponding sparse or dense guide index to select entry points substantially improves recall over random initialization. 2) Hybrid Distance Pruning. For the hybrid distance pruning ablation, we use the mixed-α setting to compare UniGraph

TABLE V G RAPH - ONLY QPS OF THE FIXED - WEIGHT GRAPH AND U NI G RAPH AT MATCHED R ECALL @100; HIGHER IS BETTER .

Dataset MS MARCO MS MARCO FEVER FEVER DBpedia-Entity DBpedia-Entity

Fixed-weight Recall@100 graph UniGraph

Gain

189.39 68.28 104.85 41.77 139.87 50.55

+25.46% +26.71% +13.07% +16.13% +7.95% +4.48%

0.90 0.95 0.90 0.95 0.90 0.95

150.96 53.88 92.73 35.97 129.57 48.39

search with dense-first hybrid distance pruning (γ = 0.3) and UniGraph search without pruning. To isolate the effect of pruning, both configurations use the same prebuilt UniGraph and select between sparse-guided and dense-guided search using the same α-adaptive routing policy. We set efs = 300. The configuration without pruning disables only the pruning test in Eq. (15); candidate insertion and traversal termination still use the current result set threshold τ , as in standard beam search. As Figure 9 shows, hybrid distance pruning improves QPS on all datasets, with an average improvement of 10.3%. This throughput improvement incurs negligible recall loss: the maximum decrease in Recall@100 is only 0.055 percentage points. These results demonstrate that hybrid distance pruning effectively accelerates UniGraph search with almost no impact on result quality. 3) Multi-Weight Graph Construction. To examine the effect of multi-weight graph construction, we compare UniGraph with a fixed-weight graph, which selects nearest neighbors only at α = 0.5 for graph construction with M = 64. Query weights are uniformly distributed over [0, 1]. To exclude the effects of the query-time optimizations studied above, both methods use graph-only search initialized from the same randomly selected entry point for each query, with dense/sparseguided entry points and hybrid distance pruning disabled. As shown in Table V, UniGraph achieves higher QPS than the fixed-weight graph on all three datasets at both target recall levels. At Recall@100 = 0.90, its QPS improvements range from 7.95% to 25.46%, with a mean improvement of 15.49%. At Recall@100 = 0.95, the improvements range from 4.48% to 26.71%, averaging 15.77%. These results show that, under the graph-only setting, constructing one graph from neighborhoods sampled at multiple weights provides a better high-recall throughput trade-off than constructing the graph at a single fixed weight. VI. R ELATED W ORK Fusion-based dense-sparse retrieval. Fusion-based systems typically retrieve dense and sparse candidates separately and then combine their truncated result lists. Weighted score fusion [10] preserves score magnitudes but requires calibration, whereas reciprocal rank fusion (RRF) [10], [28] avoids

calibration but discards score magnitudes and is sensitive to its rank constant. They both can lose candidates before fusion. Dense and sparse retrieval. Dense vector ANNS methods include locality-sensitive hashing [29], [30], quantization and inverted file methods (e.g, product quantization [31] and IVF-PQ [32]), and graph-based indexes (e.g., HNSW [25], NSG [33], and DiskANN [34]). Empirical evaluations show that graph-based methods offer competitive recall-efficiency trade-offs and often perform particularly well in high-recall regimes [35], [36]. Efficient sparse retrieval is commonly implemented with inverted indexes. Representative approaches accelerate retrieval through pruning or compact index structures. Classical block-max pruning and BMP skip low-potential document blocks [37], [38]; Seismic groups inverted lists into geometrically cohesive blocks [39]; Sinnamon uses compact sketches [40]; and SINDI uses optimized inverted lists for approximate sparse maximum inner-product search [26]. Unified dense-sparse indexing and dynamic-weight hybrid search. A graph-based ANNS method for dense-sparse hybrid vectors [12] aligns the dense and sparse distance distributions and refines an HNSW-style topology under a predetermined hybrid weight. Its fixed-weight topology may not match queries with different weights. Existing query-dependent hybrid methods face limitations in dense-sparse retrieval. IVF-MIPS [41] reuses IVF partitions for query-side reweighting, but lacks cross-weight neighborhood optimization. LADR [27] seeds dense graph exploration with lexical results, but is tailored for dense retrieval. While GPU-based Allan-Poe [42] supports dynamic multi-path weighting without index reconstruction, UniGraph builds a CPU-based bounded-degree graph by merging multi-weight sampled neighborhoods. Other multi-metric approaches and DEG [43] support queryspecific weights via Pareto frontier neighborhoods or multigraph traversals [44]–[48]. However, DEG is restricted to fixed-length Euclidean embeddings; its formulation and analysis do not cover high-dimensional inner-product sparse vectors, making it inapplicable to our dense-sparse hybrid setting without fundamental redesign. VII. C ONCLUSION This paper studies efficient dense-sparse hybrid retrieval with query-specific hybrid weights. We investigate UniGraph, a unified hybrid graph that supports different query weights without index reconstruction. UniGraph uses an α-cover construction to merge neighborhoods sampled at multiple weights. We further study α-adaptive graph search with sparse-guided and dense-guided execution paths. We also study densefirst hybrid distance pruning for reducing exact sparse distance computations. Experiments show that, at Recall@100 ≥ 0.95, UniGraph achieves 27.6%∼52.3% higher QPS than the fastest baseline on each dataset under mixed weights and 1.18×∼2.85× QPS of the fastest baseline across the fixedweight settings.

ACKNOWLEDGMENT The authors disclose the use of OpenAI’s ChatGPT to assist with drafting the experimental code. The experimental design, testing, and correctness validation of all results were performed by the authors. ChatGPT was additionally used for editing and grammar polishing of parts of the manuscript. All AI-assisted content was reviewed and verified by the authors, who take full responsibility for the correctness and originality of this paper. R EFERENCES [1] P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W.-t. Yih, T. Rocktäschel, S. Riedel, and D. Kiela, “Retrieval-augmented generation for knowledge-intensive nlp tasks,” in Advances in Neural Information Processing Systems, vol. 33, 2020, pp. 9459–9474. [2] Y. Gao, Y. Xiong, X. Gao, K. Jia, J. Pan, Y. Bi, Y. Dai, J. Sun, M. Wang, and H. Wang, “Retrieval-augmented generation for large language models: A survey,” arXiv preprint arXiv:2312.10997, 2024. [3] C. Sciavolino, Z. Zhong, J. Lee, and D. Chen, “Simple entity-centric questions challenge dense retrievers,” in Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021, pp. 6138–6148. [4] S. Robertson and H. Zaragoza, “The probabilistic relevance framework: BM25 and beyond,” Foundations and Trends in Information Retrieval, vol. 3, no. 4, pp. 333–389, 2009. [5] T. Formal, B. Piwowarski, and S. Clinchant, “SPLADE: Sparse lexical and expansion model for first stage ranking,” in Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2021, pp. 2288–2292. [6] Y. Luan, J. Eisenstein, K. Toutanova, and M. Collins, “Sparse, dense, and attentional representations for text retrieval,” Transactions of the Association for Computational Linguistics, vol. 9, pp. 329–345, 2021. [7] K. Sawarkar, A. Mangal, and S. R. Solanki, “Blended RAG: Improving RAG (retriever-augmented generation) accuracy with semantic search and hybrid query-based retrievers,” in Proceedings of the 2024 IEEE 7th International Conference on Multimedia Information Processing and Retrieval, 2024, pp. 155–161. [8] S. Kuzi, M. Zhang, C. Li, M. Bendersky, and M. Najork, “Leveraging semantic and lexical matching to improve the recall of document retrieval systems: A hybrid approach,” arXiv preprint arXiv:2010.01195, 2020. [9] S. Wang, S. Zhuang, and G. Zuccon, “BERT-based dense retrievers require interpolation with BM25 for effective passage retrieval,” in Proceedings of the 2021 ACM SIGIR International Conference on Theory of Information Retrieval, 2021, pp. 317–324. [10] S. Bruch, S. Gai, and A. Ingber, “An analysis of fusion functions for hybrid retrieval,” ACM Transactions on Information Systems, vol. 42, no. 1, pp. 20:1–20:35, 2024. [11] Y. Chen, R. Zheng, Q. Chen, S. Xu, Q. Zhang, X. Wu, W. Han, H. Yuan, M. Li, Y. Wang, J. Li, F. Yang, H. Sun, W. Deng, F. Sun, Q. Zhang, and M. Yang, “OneSparse: A unified system for multi-index vector search,” in Companion Proceedings of the ACM Web Conference 2024, 2024, pp. 393–402. [12] H. Zhang, J. Liu, Z. Zhu, S. Zeng, M. Sheng, T. Yang, G. Dai, and Y. Wang, “Efficient and effective retrieval of dense-sparse hybrid vectors using graph-based approximate nearest neighbor search,” arXiv preprint arXiv:2410.20381, 2024. [13] V. Karpukhin, B. Oguz, S. Min, P. Lewis, L. Wu, S. Edunov, D. Chen, and W.-t. Yih, “Dense passage retrieval for open-domain question answering,” in Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 2020, pp. 6769–6781. [14] N. Reimers and I. Gurevych, “Sentence-BERT: Sentence embeddings using siamese BERT-networks,” in Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, 2019, pp. 3982–3992.

[15] J. Chen, S. Xiao, P. Zhang, K. Luo, D. Lian, and Z. Liu, “M3embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation,” in Findings of the Association for Computational Linguistics: ACL 2024, 2024, pp. 2318– 2335. [16] T. Formal, C. Lassance, B. Piwowarski, and S. Clinchant, “From distillation to hard negative sampling: Making sparse neural IR models more effective,” in Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2022, pp. 2353–2359. [17] C. Lassance and S. Clinchant, “An efficiency study for SPLADE models,” in Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2022, pp. 2220– 2226. [18] T. Formal, C. Lassance, B. Piwowarski, and S. Clinchant, “Towards effective and efficient sparse neural information retrieval,” ACM Transactions on Information Systems, vol. 42, no. 5, pp. 1–46, 2024. [19] N. Thakur, N. Reimers, A. Rücklé, A. Srivastava, and I. Gurevych, “BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models,” in Thirty-Fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021. [20] T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M.-W. Chang, A. M. Dai, J. Uszkoreit, Q. Le, and S. Petrov, “Natural questions: A benchmark for question answering research,” Transactions of the Association for Computational Linguistics, vol. 7, pp. 452–466, 2019. [21] Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. W. Cohen, R. Salakhutdinov, and C. D. Manning, “HotpotQA: A dataset for diverse, explainable multihop question answering,” in Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018, pp. 2369– 2380. [22] P. Bajaj, D. Campos, N. Craswell, L. Deng, J. Gao, X. Liu, R. Majumder, A. McNamara, B. Mitra, T. Nguyen, M. Rosenberg, X. Song, A. Stoica, S. Tiwary, and T. Wang, “MS MARCO: A human generated machine reading comprehension dataset,” arXiv preprint arXiv:1611.09268, 2016. [23] J. Thorne, A. Vlachos, C. Christodoulopoulos, and A. Mittal, “FEVER: A large-scale dataset for fact extraction and verification,” in Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2018, pp. 809–819. [24] F. Hasibi, F. Nikolaev, C. Xiong, K. Balog, S. E. Bratsberg, A. Kotov, and J. Callan, “DBpedia-Entity v2: A test collection for entity search,” in Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2017, pp. 1265– 1268. [25] Y. A. Malkov and D. A. Yashunin, “Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 42, no. 4, pp. 824–836, 2020. [26] R. Li, X. Zhong, J. Jin, P. Cheng, W. Ni, Z. Shen, W. Jia, X. Wang, H. T. Shen, and J. Song, “SINDI: An efficient index for sparse vector approximate maximum inner product search,” in Proceedings of the 2026 IEEE 42nd International Conference on Data Engineering, 2026. [27] H. Kulkarni, S. MacAvaney, N. Goharian, and O. Frieder, “Lexicallyaccelerated dense retrieval,” in Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2023, pp. 152–162. [28] G. V. Cormack, C. L. A. Clarke, and S. Büttcher, “Reciprocal rank fusion outperforms condorcet and individual rank learning methods,” in Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval, 2009, pp. 758– 759. [29] P. Indyk and R. Motwani, “Approximate nearest neighbors: Towards removing the curse of dimensionality,” in Proceedings of the Thirtieth Annual ACM Symposium on Theory of Computing, 1998, pp. 604–613. [30] A. Gionis, P. Indyk, and R. Motwani, “Similarity search in high dimensions via hashing,” in Proceedings of the 25th International Conference on Very Large Data Bases, 1999, pp. 518–529. [31] H. Jégou, M. Douze, and C. Schmid, “Product quantization for nearest neighbor search,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 33, no. 1, pp. 117–128, 2011. [32] J. Johnson, M. Douze, and H. Jégou, “Billion-scale similarity search

with GPUs,” IEEE Transactions on Big Data, vol. 7, no. 3, pp. 535– 547, 2019. [33] C. Fu, C. Xiang, C. Wang, and D. Cai, “Fast approximate nearest neighbor search with the navigating spreading-out graph,” Proceedings of the VLDB Endowment, vol. 12, no. 5, pp. 461–474, 2019. [34] S. J. Subramanya, F. Devvrit, H. V. Simhadri, R. Krishnawamy, and R. Kadekodi, “DiskANN: Fast accurate billion-point nearest neighbor search on a single node,” in Advances in Neural Information Processing Systems, vol. 32, 2019. [35] M. Aumüller, E. Bernhardsson, and A. Faithfull, “ANN-benchmarks: A benchmarking tool for approximate nearest neighbor algorithms,” Information Systems, vol. 87, p. 101374, 2020. [36] M. Wang, X. Xu, Q. Yue, and Y. Wang, “A comprehensive survey and experimental comparison of graph-based approximate nearest neighbor search,” Proceedings of the VLDB Endowment, vol. 14, no. 11, pp. 1964– 1978, 2021. [37] S. Ding and T. Suel, “Faster top-k document retrieval using blockmax indexes,” in Proceedings of the 34th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2011, pp. 993–1002. [38] A. Mallia, T. Suel, and N. Tonellotto, “Faster learned sparse retrieval with block-max pruning,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2024, pp. 2411–2415. [39] S. Bruch, F. M. Nardini, C. Rulli, and R. Venturini, “Efficient inverted indexes for approximate retrieval over learned sparse representations,” in Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2024, pp. 152– 162. [40] S. Bruch, F. M. Nardini, A. Ingber, and E. Liberty, “An approximate algorithm for maximum inner product search over streaming sparse vectors,” ACM Transactions on Information Systems, vol. 42, no. 2, pp. 1–43, 2023. [41] ——, “Bridging dense and sparse maximum inner product search,” ACM Transactions on Information Systems, vol. 42, no. 6, pp. 151:1–151:38, 2024. [42] Z. Li, Y. Li, Y. Zhu, C. Ge, Z. Chen, and Y. Gao, “All-in-one graph-based indexing for hybrid search on GPUs,” arXiv preprint arXiv:2511.00855, 2025. [43] Z. Yin, J. Gao, P. Balsebre, G. Cong, and C. Long, “DEG: Efficient hybrid vector search using the dynamic edge navigation graph,” Proceedings of the ACM on Management of Data, vol. 3, no. 1, pp. 29:1– 29:34, 2025. [44] M. Franzke, T. Emrich, A. Züfle, and M. Renz, “Indexing multi-metric data,” in Proceedings of the 32nd IEEE International Conference on Data Engineering, 2016, pp. 1122–1133. [45] Y. Zhu, L. Chen, Y. Gao, B. Zheng, and P. Wang, “DESIRE: An efficient dynamic cluster-based forest indexing for similarity search in multimetric spaces,” Proceedings of the VLDB Endowment, vol. 15, no. 10, pp. 2121–2133, 2022. [46] H. Hu and J. Li, “Efficient approximate nearest neighbor search for multiple weighted lp≤2 distance functions,” arXiv preprint arXiv:2011.11907, 2020. [47] Y. Zhu, L. Chen, Y. Gao, R. Ma, B. Zheng, and J. Zhao, “HJG: An effective hierarchical joint graph for ANNS in multi-metric spaces,” in Proceedings of the 40th IEEE International Conference on Data Engineering, 2024, pp. 4275–4287. [48] R. Uemura, D. Amagata, and T. Hara, “An efficient framework for approximate nearest neighbor search on high-dimensional multi-metric data,” in Similarity Search and Applications, ser. Lecture Notes in Computer Science, vol. 15268, 2024, pp. 3–17.

Related documents

Record · ID 1680481 · SHA-256 4ac5ea6e1ea53b17
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive