Manuscript Offprint
arXiv:2610.30425Getting a GRIP on Graph-Based Search for Learned Sparse Retrieval
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Learned sparse retrieval (LSR) has recently gained traction in the information retrieval community for the ability to combine the generalization capabilities of neural representations with the interpretability of keyword-based search. A number of recent works have demonstrated that inverted indexes, when appropriately modified for learned sparse embeddings, achieve state-of-the-art recall-latency tradeoffs for LSR, often outperforming graph-based indexes by substantial margins in latency at a fixed recall target. As a result, the community has generally concluded that graph-based approximate nearest neighbor (ANN) search is inferior to inverted indexes for LSR. This paper challenges this conventional wisdom. Our key insight is that, while applying standard graph-based ANN indexes out-of-the-box to sparse vectors leads to uncompetitive performance, we can overcome these shortcomings by infusing the strengths of inverted indexes into graph-based search. In particular, we introduce three techniques to accelerate graph-based LSR: (i) term-based entry point seeding, (ii) approximate routing via sparse sketching, and (iii) sparse partition-based graph construction. We combine these techniques into a new graph-based ANN system for LSR we call GRIP. On the MS MARCO v2 benchmark (138M passages) with SPLADE embeddings, GRIP achieves a latency improvement over Seismic, a state-of-the-art inverted index tailored for LSR, at 95% recall@10. Ultimately, our results call into question the default choice of inverted indexes for deploying learned sparse retrieval.
1 Introduction
Learned sparse embeddings have recently gained popularity in information retrieval applications by bridging the strengths of dense neural representations and interpretable lexical search. Consequently, a number of works have studied building indexes to enable efficient sparse similarity search at scale. Following the breakthrough success of systems such as Seismic [5], inverted index designs currently constitute the state of the art for sparse vector search, substantially outperforming graph-based methods, which typically achieve the strongest performance on dense retrieval workloads [1].
The intuition behind the success of inverted indexes for learned sparse retrieval is simple and compelling: sparse neural representations maintain many structural similarities to classical bag-of-words and TF-IDF sparse representations of text, and inverted indexes
Franco Maria Nardini
francomaria.nardini@isti.cnr.it
ISTI-CNR
Pisa, Italy
Rossano Venturini
University of Pisa
Pisa, Italy
were precisely designed for efficient search over such structures. Graph-based indexes, on the other hand, were conceived to address dense vector retrieval, a fundamentally different problem, and graphs are generally considered ill-suited for learned sparse retrieval due to network traversals incurring many redundant distance computations and poor memory access patterns [22].
MS MARCO v2 (SPLADE-CoCondenser)

Latency per query ( s, log scale)
Figure 1: On the MS MARCO v2 search benchmark with SPLADE-CoCondenser embeddings, GRIP outperforms Seismic, a state-of-the-art inverted index system for LSR, by in latency across all fixed recall targets.
This paper challenges this conventional wisdom that graph-based methods are inherently inferior to inverted indexes for learned sparse retrieval. To that end, we present GRIP (Graph Retrieval for Sparse Inner Product Search), a graph-based approximate nearest-neighbor search system for sparse vector search that achieves a 2.2–3.4× latency improvement over Seismic at recall@10 targets between 90% and 98% on the full MS MARCO v2 benchmark (138M passages) with SPLADE-CoCondenser sparse embeddings, including a 2.5× improvement at 95% recall@10. On MS MARCO v1 (8.84M passages), GRIP is 1.4–1.7× faster than Seismic with SPLADE-CoCondenser embeddings at every recall target from 90% to 99%. With SPARSEUP [15], a more recent sparse embedding model, GRIP is 1.2× faster than Seismic at 92–95% recall@10 and on par at 97%, while Seismic retains an edge in the extremely high-recall regime (98–99%).
Our core insight driving the design of GRIP is that we can infuse the strengths of inverted indexes into graph-based search such that we retain the benefits of both index types. First and foremost, the signature feature of inverted indexes is that a sparse query vector only needs to touch the posting lists associated with its non-zero vector components. For sufficiently sparse vectors, this drastically reduces the search space. Standard graph-based indexes discard this structure. GRIP explicitly ports this structural advantage of the inverted index into graph search via a technique we call term-based entry point seeding, which precomputes, for every vocabulary term, the documents with the largest weight on that term, and initializes the graph search from the documents listed under the query's highest-impact terms. Better entry point selection for graph search is a well-studied problem in the vector database literature, both for dense retrieval [30] and by seeding graph traversal with the results of a separate lexical retrieval stage [19]. GRIP differs from prior work in using the sparse embeddings themselves as the entry point selection mechanism, which requires no additional retrieval system and almost no additional work at query time, making graph search faster on its own in our experimental evaluations.
Secondly, we further accelerate GRIP via an optimization we call approximate routing via sparse sketching that is also inspired by inverted index designs for LSR. Learned sparse embeddings exhibit concentration of importance [5]: a small number of components carry most of each vector's weight. We exploit this property by sketching each document as its R largest-magnitude components and running the graph traversal entirely on these sketches, then reranking the final candidates against the full vectors. Because learned sparse weights are non-negative, a sketched score is always a lower bound on the exact score, so only the navigation of the graph is approximate, and the returned results are scored exactly. This sketching is complementary to quantizing the stored weights, which we also apply; sketching reduces how many components each distance computation touches, while quantization reduces the cost of each one.
Our final key optimization is not related to accelerating the query time of GRIP but rather the graph index construction. Traditionally, graph-based vector search indexes are constructed by calling the query function as a subroutine, inserting each new node by searching for its nearest neighbors among the documents already in the graph and adding edges according to a set of heuristics. As we show in this paper, sparse vectors are ill-suited to this search-based construction approach: while graphs over dense embeddings typically see diminishing returns beyond a construction beam width (ef_construction) of roughly 200 [14], we observe that HNSW graphs over learned sparse embeddings require a beam width of 2000 to achieve competitive search quality (when combined with our other aforementioned optimizations). However, this increase blows up the graph construction time by roughly an order of magnitude, and on the MS MARCO v2 dataset, we estimate that we would require several days to build the graph. To solve this problem, we take inspiration from PiPNN [31], a recently proposed index construction algorithm that replaces the incremental search-based procedure of prior systems with vector partitioning and hashing. PiPNN's partitioning step, which assigns points to randomly sampled leaders, closely mirrors the shallow k-means clustering that Seismic uses to organize its posting lists, and we find that it partitions learned sparse vectors effectively.
However, we cannot apply PiPNN to learned sparse vectors out-of-the-box because PiPNN computes nearest neighbors within each partition using dense matrix multiplication, which is wasteful for sparse vectors spanning tens of thousands of dimensions. Again taking inspiration from inverted index designs for LSR, we instead compute these inner products from a small inverted index built over each partition. We apply this approach to develop a sparse variant of PiPNN we call sparse partition-based graph construction, followed by a single refinement pass in which each document searches the finished graph from its own term seeds. This reduces the time to construct a GRIP graph from 5.5 hours (with HNSW) to 47 minutes on the 8.8M MS MARCO v1 collection with SPLADE-CoCondenser embeddings. While we show that GRIP's sparse PiPNN graph is somewhat weaker than an HNSW graph under standard search, the order-of-magnitude improvement in construction time allows us to build the graph for MS MARCO v2 in hours (7.3 hours) as opposed to days.
In addition to improving our scientific understanding of index design for learned sparse retrieval, enabling graph-based indexes to be more efficient for sparse vector workloads also has important practical implications. Many modern retrieval systems now deploy so-called hybrid search strategies where dense and sparse retrieval are combined to produce a final list of results. Since such systems already typically deploy graph-based indexes for dense retrieval, they may be able to consolidate and simplify their infrastructure by reusing the same components for sparse search as opposed to having to maintain separate inverted index logic. Moreover, the popularity of graph-based indexes has led to a mature ecosystem of high-performance libraries and remains an active area of research. Thus, efficient graph-based search for LSR can enable the sparse retrieval community to also take advantage of these ongoing developments.
In summary, this paper makes the following contributions:
-
End-to-End System: We challenge the conventional wisdom that graph-based indexes for sparse vector similarity search are uncompetitive with inverted indexes at practically relevant document collection sizes. We support this claim by presenting GRIP, a new system for graph-based learned sparse retrieval that achieves substantial performance improvements over standard graph-based search designed for dense retrieval via three algorithmic techniques which we highlight further below. These results call into question the default choice of inverted indexes for deploying learned sparse retrieval.
-
Term-based Entry Point Seeding: We present a new approach for selecting entry points for graph-based similarity search tailored to the structure of learned sparse embeddings. In particular, we precompute a list of documents with the largest weights per vocabulary term and initialize graph search at the nodes associated with the query's highest-impact components.
• Approximate Routing: Inspired by the concentration of importance property of learned sparse embeddings, we propose a simple and effective sketching technique that retains a document embedding’s R largest-magnitude components and performs graph traversal entirely on the sketched vectors. We observe that this reduces query latency with negligible loss in search quality.
- Sparse PiPNN: We find that the traditional search-based iterative graph construction procedures used by popular indexes such as HNSW and DiskANN are especially poor fits for LSR because sparse embeddings require searching a much larger pool of candidates to build sufficiently navigable graphs. While applying traditional graph-based construction methods, in conjunction with our aforementioned optimizations, can produce competitive performance with inverted indexes, the build time is prohibitively expensive at scale. To remedy this bottleneck, we take inspiration from the recently proposed PiPNN construction algorithm [31] and adapt PiPNN to the sparse setting by utilizing inverted indexes in the construction process.
2.1 Learned Sparse Embeddings
Sparse vector search is a foundational problem in information retrieval dating back to early foundational work on bag-of-words and term frequency representations of text [32]. However, traditional sparse lexical vectors are fundamentally limited in that they can only match queries to documents with exact keyword overlaps. Learned sparse representations were conceived to address this shortcoming by utilizing neural networks to learn high-dimensional representations of vectors with a small number of nonzero components such that each component represents a generalized concept as opposed to a fixed word. Following the revolution in transformer-based representation learning, a number of works have studied how to train or fine tune learned sparse representations [2, 10–12, 23, 24, 35].
One of the most influential families of learned sparse embeddings models is SPLADE [16, 18, 20, 21] which established learned sparse retrieval as a state-of-the-art technique for first-stage text retrieval. Recently, Formal [15] introduced SPARSEUP, a next-generation learned sparse embedding model that achieves improved retrieval quality over SPLADE and, to our knowledge, currently constitutes the best-in-class sparse embedding model for first-stage retrieval. Furthermore, another very recent line of work has studied the notion of inference-free learned sparse embeddings which replace the query encoder model with a learned lookup table [28, 33].
2.2 Algorithms for Learned Sparse Retrieval
In addition to training models for encoding effective learned sparse embeddings, the retrieval community has also proposed numerous techniques for efficiently searching over these representations. A key finding in early work within this area is that learned sparse representations generate term distributions that differ considerably from the Zipfian nature of bag-of-words text representations, rendering traditional inverted indexes designed for text matching as inefficient [4, 25].
Several of the early specialized indexes for learned sparse retrieval involved graph-based search. The Neurips 2023 Big ANN benchmarking competition [34] included a dedicated learned sparse retrieval track where the winning solutions, PyANNS and Grass-RMA, utilized graph-based vector search, a dominant approach for dense vector retrieval [1], for learned sparse similarity search. Both PyANNS and GrassRMA utilize the HNSW graph index [26] with additional low-level optimizations, such as integer quantization of values and graph reordering [9], to improve performance. Notably, these methods do not seek to infuse the structural properties of inverted indexes into graph-based search, which, at a methodological level, differentiates GRIP.
These graph-based methods subsequently lost their standing as the state-of-the-art indexing solution for LSR following the introduction of Seismic [5] which achieved substantial efficiency improvements over PyANNS and GrassRMA using an inverted index tailored to the idiosyncrasies of learned sparse embeddings. Seismic has since been further improved in a number of follow-on works [6, 7, 29]. In addition to Seismic, several other systems have proposed efficient inverted indexes for LSR including Block-Max Pruning (BMP) [27], Dynamic Superblock Pruning (DSP) [8], and SINDI [22] that each seek to accelerate the posting list traversal component of inverted index-based search. The latest version of Seismic, described in the work of [29], includes further performance optimizations that achieve significant search quality-efficiency improvements over both other inverted index designs for LSR and graph-based approaches and, to our knowledge, represents the current state-of-the-art system for LSR. Thus, we treat this latest version of Seismic as our primary baseline when comparing with our proposed GRIP system.
3 Methodology
We now present the algorithmic details behind GRIP. As in prior work on graph-based search indexes, GRIP consists of an offline index build phase and an online search phase. Algorithm 1 and Algorithm 2 together describe the offline phase where we build a data structure of term-seeded entry points and construct the graph for traversal via our sparse PiPNN algorithm, respectively. Algorithm 3 then describes the online search procedure which follows the standard paradigm of graph-based search for ANN via beam search with two modifications: (i) we initialize the graph search with up to nodes, the highest-weighted documents (from the precomputed term seed lists) for each of the highest-impact query terms, and (ii) we perform the traversal using top-R sketched sparse vectors and re-score the final top-k results with the full embeddings.
3.1 Term-Seeded Entry Point Selection
While prior work in vector similarity search has studied judiciously choosing entry points for graph-based search [19, 30], no research, to our knowledge, has examined how to choose entry points for learned sparse embeddings or has demonstrated that graph-based search for LSR benefits from entry point selection. We close this gap. Our core insight is that standard graph-based search begins every query from a fixed, query-independent entry point, and must then traverse the graph to converge to the neighborhood of the query's nearest neighbors, paying for distance computations at every hop along the way. An inverted index, in contrast, needs
Algorithm 1 Building the term seed lists
Require: Collection of sparse vectors over vocabulary ; seeds per term
Return: Seed lists ; per-term maximum weights
1: for each term do
2: empty min-heap of capacity , keyed on weight
3:
4: end for
5: for each document do
6: for each term with do
7:
8: if then
9: push onto
10: else if then
11: replace the minimum of with
12: end if
13: end for
14: end for
15: return
Algorithm 2 Sparse PiPNN
Require: Sparse vectors ; neighbors per point within a leaf ; degree bound
Return: Graph with out-degree at most
1: : leaders scored via inverted index. See [31] for the full ball carving description.
2: for each leaf do
3: build an inverted index over : replaces PiPNN's dense GEMM
4: compute all pairwise inner products in from its posting lists
5: add each point's nearest neighbors in as candidate edges
6: end for
7:
8: , on inner products
9: for each point do
10:
11:
12: end for
no such traversal: the query’s non-zero components directly identify the posting lists where its answers are guaranteed to reside. Term-based entry point selection brings this advantage to graph search by initializing the search at nodes that carry large weight on the query’s most important terms, which leads to fewer wasted distance computations. Specifically, in the offline phase, described in Algorithm 1, we precompute for every vocabulary term a seed list containing the documents with the largest weight on that term, that is, the documents maximizing , along with the largest weight on the term, . Each seed list is maintained as a min-heap of capacity , so the lists can be built in a single pass over the non-zero entries of the collection in time. The resulting table holds at most entries which concretely translates to roughly 8 MB of space on the MS
Algorithm 3 GRIP Search
Require: Query q; graph G; full vectors ; 8-bit routing sketches of each document's top-R weights; seed lists and maxima ; seed terms T; beam width ef; patience P
Return: Top-k documents for q
1: -bit quantization of q integer query table
2: the T query terms of largest
3: term-based entry points
4: routing on sketches; stop after P expansions without top-k change
5: return top k of B rescored with exact rescoring
MARCO v1 8.8M passage collection, a negligible space overhead in comparison to the 8.8 GB used to store the remainder of the index. At query time, we use to bound how much each query term can contribute to any document's score: for every document , . We select the query terms with the largest such upper bound, take the union of their seed lists , which contains at most documents, and initialize the beam with every document in . We set throughout and for SPLADE-CoCondenser and for SPARSEUP, each selected on held-out training queries disjoint from the evaluation queries.
3.2 Approximate Routing via Sparse Sketching
The second core optimization at the heart of GRIP is approximate routing via sparse sketching, which is inspired by the concentration of importance phenomenon of learned sparse embeddings identified by Bruch et al. [5]. In essence, concentration of importance states that a small fraction of the non-zero components of learned sparse vectors, which themselves are a small proportion of the total number of dimensions, contains the majority of the mass of the vector. While Bruch et al. [5] utilize this insight in the design of Seismic, we leverage this same structure for faster graph-based traversal. To our knowledge, this is a novel optimization in the context of sparse graph ANN since prior graph-based systems for LSR such as PyANNS and GrassRMA adopt quantization techniques to represent the vectors in lower precision (as we also do in GRIP) but do not consider dropping low-magnitude non-zero components entirely. In particular, our sparse sketching scheme, as described in Algorithm 3, involves constructing, for every document d, a sketch that retains only the R largest-magnitude non-zero components of and sets the remaining components to zero. Importantly, sketching affects only search: the graph itself is constructed on the full vectors, as are the seed lists, so the edges of the graph reflect exact similarities between documents.
We store these sketches as a second copy of the collection, quantized to 8 bits, and run the entire beam search over them: both the choice of which nodes to expand and the decision of when to terminate are made using the sketched scores . Once the search terminates, we rescore every document in the final beam with its exact score against the full vectors and return the top . Because the weights of learned sparse embeddings are non-negative, the sketched score is always a lower bound on the exact score,
, and the error is confined to the documents' smallest components. Thus, the sketch only perturbs the route the search takes through the graph, while the returned results are always ranked by their exact scores. Moreover, when is at least the number of non-zero components of every document, sketched search reduces to search over the full (quantized) vectors. On SPLADE-CoCondenser, whose documents have 127 non-zero components on average, we set , which keeps only 62% of the non-zero entries while speeding up search by at recall@10 targets between 95% and 99%. We use for SPARSEUP, whose documents have 190 non-zero components on average. For both experiments, we set the value of via holdout training queries.
3.3 Sparse PiPNN

Figure 2: Unlike in dense vector retrieval, where graph-based systems like HNSW achieve diminishing returns with an ef construction parameter above 200, learned sparse workloads continue to improve in quality with an ef construction value up to 2000.

Figure 3: We observe that Sparse PiPNN achieves close to the performance of standard HNSW, but at a fraction of the index build time. Furthermore, GRIP, which augments the Sparse PiPNN graph with the term-seeding and approximate routing, outperforms HNSW.
We now discuss the third core optimization behind GRIP, namely sparse partitioned graph construction. To motivate the need for a new graph construction approach that differs from the traditional paradigm of building navigable graphs by iteratively inserting documents via repeated calls to the beam search subroutine, we demonstrate in Figure 2 that on learned sparse embeddings the quality of graph search improves substantially when the construction beam width (efc) is increased from 200 to 2000, while dense retrieval typically sees diminishing returns on search quality with efc values in the range of 100 to 300 [14, 26]. On MS MARCO v1, an HNSW graph built with an efc of 2000 is 1.7–3.5× faster to search than one built with an efc of 200 at recall@10 targets between 95% and 98%, and the latter cannot exceed roughly 99% recall@10 at all. This finding further underscores the widely held observation that graph-based search is not particularly well-suited to sparse retrieval without further innovation. While we can overcome this shortcoming simply by increasing the efc parameter, this solution is not scalable as it requires 5.5–7.4 hours to construct an HNSW graph on MS MARCO v1 and extrapolating from those numbers, several days to build such a graph on MS MARCO v2's 138M passages. This is impractical for collections that must be reindexed frequently.
To circumvent this prohibitively long index construction time, we turn to PiPNN [31], a recent algorithmic breakthrough in efficiently constructing graph-based ANN indexes that completely avoids the iterative search-based insertion procedure. Unfortunately, we cannot use PiPNN directly out-of-the-box for LSR because several steps of the algorithm are specifically designed for dense vectors. As described in Algorithm 2, we modify the original PiPNN construction procedure to be amenable to sparse vectors.
The key insight behind our Sparse PiPNN approach is to replace PiPNN's dense vector multiplication subroutines with sparse computations by utilizing inverted indexes to efficiently compute pairwise inner products. In particular, we apply this idea at the two stages of PiPNN that are dominated by dense computation. First, PiPNN partitions the collection by randomized ball carving: it samples a set of leaders, assigns every point to its nearest few leaders, and recurses until every partition holds at most C points. Rather than comparing every point against every leader, we build an inverted index over the leaders' non-zero components, so each point accumulates scores only for the leaders with which it shares at least one term; a point that shares no term with any leader is assigned to a leader chosen by hashing, so that such points do not all collapse into the same partition.
Second, within each leaf partition P, PiPNN computes all pairwise similarities with a dense matrix multiplication, at a cost of , which is wasteful when vectors span tens of thousands of dimensions but have only around a hundred non-zero components each. We instead build a small inverted index over the documents in P and accumulate every pairwise inner product by iterating over its posting lists, at a cost of , where denotes the documents in P with a non-zero weight on term t. The remaining steps of PiPNN, HashPrune and RobustPrune, carry over directly, with similarities measured by inner product rather than Euclidean distance throughout. Finally, deviating from the original PiPNN algorithm, we add a final refinement pass in which each document searches the finished graph starting from its own term-based seeds and re-prunes its neighbor list with the results. Although this pass performs one search per document, it searches a completed graph rather than inserting documents one at a time, and we find that it is important for search quality at very high recall targets.
With leaves of at most 1,024 documents and a maximum out-degree of 64, Sparse PiPNN builds the graph for the 8.8M-passage
MS MARCO v1 collection in 47 minutes, compared to 5.5 hours for HNSW with an efc of 2000. As with term-seeded entry point selection, where we borrow ideas from inverted indexes to initialize graph-based search, and approximate routing, where we take inspiration from the concentration of importance property used in the Seismic inverted index system, our sparse PiPNN algorithm utilizes inverted indexes as part of the index build stage to reduce graph construction time by an order of magnitude. In each of our core optimizations behind GRIP, we see a common narrative pattern of infusing the strengths of inverted index designs to make graph-based search for LSR more performant.
As shown in Figure 3, a graph built with our Sparse PiPNN approach (without any of the other GRIP-specific optimizations) performs slightly below standard HNSW search with an efc construction setting of 2000 while building in 47 minutes as opposed to 5.5 hours. Thus, Sparse PiPNN trades off a small loss in search quality for major gains in construction build time, which becomes particularly important at larger collection sizes. Furthermore, we also note in Figure 3 that GRIP, which adds entry point seeding and approximate routing on top of Sparse PiPNN, outperforms Sparse PiPNN and HNSW, which underscores the value of our other aforementioned optimizations.
4 Experiments
We implemented GRIP in Rust, building off the ANN search primitives developed within the KANNOLO library [13]. We conduct our experimental evaluation using two standard sparse retrieval benchmarks, MS MARCO v1, which consists of 8.8M passages and MS MARCO v2, which contains 138M passages in the collection. We embed both sets of passages using two different sparse embedding models: SPLADE-CoCondenser [17] and the recently released SPARSEUP model [15] which achieves state-of-the-art performance on several retrieval benchmarks. We conducted all experiments on a single cloud instance with an Intel Xeon Platinum 8358 @ 2.60 GHz processor, 30 vCPUs, and 222 GB of RAM. We use all 30 available threads for index construction and a single thread at query time.
We compare GRIP against two representative baselines. The first is HNSW without any sparsity-specific optimizations to provide a reference point for GRIP's specific improvements tailored to LSR. We use the KANNOLO Rust implementation of HNSW. Second, we also compare with the latest version of Seismic [5], using the official Rust implementation, which represents, to the best of our knowledge, the current state-of-the-art index for LSR in terms of recall-latency tradeoffs. We do not explicitly benchmark other LSR indexes such as SINDI [22], GrassRMA, and PyANNS since recent work has shown that an optimized implementation of Seismic outperforms these other methods by substantial margins [29].
We report our primary experimental findings in Figures 4 and 1, which benchmark on MS MARCO v1 and MS MARCO v2, respectively. In Figure 4 we observe that GRIP dominates HNSW on both SPLADE-CoCondenser and SPARSEUP, running and faster at recall@10 targets between and (though the gap narrows in the high-recall regime, falling to at on SPARSEUP). These results validate our sparsity-specific optimizations. Furthermore, we see that GRIP achieves a speedup over Seismic on SPLADE-CoCondenser across recall@10 targets from 90% to 99%. On SPARSEUP, GRIP is 1.2× faster than Seismic at 92–95% recall@10 and roughly on par at 97%, while Seismic is faster in the extremely high-recall regime of 98% and above. In Figure 1, the gap over Seismic widens at scale: on the 138M passages of MS MARCO v2, GRIP is 2.2–3.4× faster than Seismic at recall@10 targets between 90% and 98%. This observation on the improvement of graph search over inverted indexes at larger scale is also consistent with the prior findings of Bruch et al. [7], who found that graphs exhibited better asymptotic scalability. However, at the time, the concrete efficiency of graph-based search still lagged behind inverted indexes like Seismic, so the point at which the scalability of graphs provided an advantage occurred at impractically large collection sizes. Our evaluation of GRIP shows that we can bend this scaling curve considerably by bringing ideas from inverted indexes into graph search.
| Method | MS MARCO v1 (8.8M) | MS MARCO v2 (138M) | |
|---|---|---|---|
| CoCondenser | SPARSEUP | CoCondenser | |
| HNSW (efc 200) | 19 min | 31 min | - |
| HNSW (efc 2000) | 5.5 h | 7.4 h | - |
| Seismic | 2 min | 3 min | 47 min |
| GRIP | 47 min | 54 min | 7.3 h |
Table 1: Index construction time (30 threads). For Seismic, we report the build time for the index that gives its best latency at 95% recall@10. We observe that Seismic has an order-of-magnitude faster build time than GRIP, underscoring that the inverted indexes still maintain a decisive advantage over graph-based indexes in terms of build time.

Figure 4: On the MS MARCO v1 dataset, we observe that GRIP is faster than Seismic across all recall@10 targets plotted with SPLADE-CoCondenser embeddings. With SPARSEUP embeddings, GRIP is faster than Seismic at recall@10 and roughly on par at , while Seismic remains faster in the extremely high-recall regime of and above.
In Table 1, we report the index construction time of the index types we consider in our experiments. For the graph-based methods, GRIP and HNSW, we build a single index and generate the corresponding recall-latency tradeoff curve by varying search time
| Method | MS MARCO v1 (8.8M) | MS MARCO v2 (138M) | |
|---|---|---|---|
| CoCondenser | SPARSEUP | CoCondenser | |
| HNSW (efc 200) | 5.5 | 7.8 | — |
| HNSW (efc 2000) | 6.3 | 8.5 | — |
| Seismic | 6.5 | 16.1 | 73.0 |
| GRIP | 8.8 | 12.3 | 140 |
Table 2: Index size in GB. For Seismic, we report the size of the index that gives its best latency at 95% recall@10.
parameters. For Seismic, we build many indexes to generate different latency-recall operating points, so we report the build time of the index that gives the best latency at 95% recall@10. From Table 1, we see that GRIP's Sparse PiPNN approach considerably reduces build time compared to HNSW with high efc, as previously noted. We also observe that Seismic maintains an order-of-magnitude faster build time than GRIP demonstrating that inverted indexes still maintain a considerable advantage over graph indexes in construction time. Nevertheless, the 7.3h construction time for GRIP at the 138M scale of MS MARCO v2 is still within practical constraints of search systems that require rebuilding indexes on a daily cadence. We do not report the build time of HNSW on MS MARCO v2 because an efc value of 200 would produce uncompetitive search quality and an efc of 2000 would require days to build.
In Table 2, we report the index size for each of the methods we evaluate. On MS MARCO v1, we observe that the GRIP index consumes more space than Seismic with CoCondenser embeddings but less memory with SPARSEUP. We hypothesize that the lower space footprint on SPARSEUP stems from the fact that SPARSEUP embeddings are denser (more nonzero components) and have a larger vocabulary, leading Seismic's posting lists to grow faster than the graph. We leave further investigation of the impact of these parameters for future work. On MS MARCO v2 with CoCondenser, we note that GRIP uses almost double the space of Seismic primarily due to the fact that GRIP stores an additional copy of each vector in R-sketched form. Improving the space efficiency of GRIP is another promising direction for future work, following similar work on optimizing the space footprint of Seismic [3, 29].
Finally, in Table 3, we conduct an ablation study to isolate the speedup of term-based entry point seeding and approximate routing via sketching. We observe that term-based seeding provides larger gains than routing, but the two optimizations are complementary and, when combined, produce a larger speedup than either technique alone.
5 Conclusion
Our core insight behind the design of GRIP is that we can infuse the strengths of inverted indexes into graph-based search. To that end, we introduced three optimizations that accelerate query processing and index construction, namely term-based entry point seeding, approximate routing via sparse sketching, and Sparse PiPNN, each of which is inspired by, or directly uses, inverted indexes. Together, these allow GRIP to outperform Seismic, a state-of-the-art inverted index, by on the 138M-passage MS MARCO v2 collection with SPLADE-CoCondenser embeddings. These results challenge the recent consensus in the vector search community that inverted indexes are the better choice for learned sparse retrieval at realistic collection sizes. These gains do come at a cost: GRIP's index is larger than Seismic's and takes longer to build. Closing this gap, for instance through graph and vector compression, is an important direction for future work. Nevertheless, within LSR specifically, our results call into question the default choice of inverted indexes for deploying sparse retrieval, and may open the door to applying sparse embeddings in new, ambitious applications that demand more scalability. More broadly, we believe that our insights on combining the strengths of inverted indexes and graph-based indexes may have implications beyond learned sparse retrieval. Graph-based search for LSR was not inherently uncompetitive; it simply had not yet borrowed what made inverted indexes successful. We suspect the same is true in other data structures problems where one technique has been set aside in favor of another, and where the better answer may be to combine the strengths of both. Exploring the generality of our insights to other problems may also be a promising direction of future work.
| Model | Search | Recall@10 | |||
|---|---|---|---|---|---|
| 95% | 97% | 98% | 99% | ||
| CoCondenser | Seeding only | ||||
| Routing only | |||||
| Seeding + routing | |||||
| SparseUp | Seeding only | ||||
| Routing only | |||||
| Seeding + routing | |||||
Table 3: Ablation of GRIP's search on MS MARCO v1 (8.8M). We report the speedup over standard beam search on the same Sparse PiPNN graph at matched recall@10 (single thread). Seeding uses (CoCondenser) and (SparseUp) with . Routing uses and . We observe that term-based seeding provides the majority of the efficiency gains, but the two optimizations are complementary and combine to produce a larger speedup than either technique alone.
References
[1] Martin Aumüller, Erik Bernhardsson, and Alexander Faithfull. 2020. ANN-Benchmarks: A benchmarking tool for approximate nearest neighbor algorithms. Information Systems 87 (2020), 101374.
[2] Yang Bai, Xiaoguang Li, Gang Wang, Chaoliang Zhang, Lifeng Shang, Jun Xu, Zhaowei Wang, Fangshan Wang, and Qun Liu. 2020. Sparterm: Learning term-based sparse representation for fast text retrieval. arXiv preprint arXiv:2010.00768 (2020).
[3] Sebastian Bruch, Martino Fontana, Franco Maria Nardini, Cosimo Rulli, and Rossano Venturini. 2026. Forward Index Compression for Learned Sparse Retrieval. In European Conference on Information Retrieval. Springer, 444–451.
[4] Sebastian Bruch, Franco Maria Nardini, Amir Ingber, and Edo Liberty. 2023. An approximate algorithm for maximum inner product search over streaming sparse vectors. ACM Transactions on Information Systems 42, 2 (2023), 1–43.
[5] Sebastian Bruch, Franco Maria Nardini, Cosimo Rulli, and Rossano Venturini. 2024. 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. 152–162.
[6] Sebastian Bruch, Franco Maria Nardini, Cosimo Rulli, and Rossano Venturini. 2024. Pairing Clustered Inverted Indexes with -NN Graphs for Fast Approximate Retrieval over Learned Sparse Representations. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management. 3642–3646.
[7] Sebastian Bruch, Franco Maria Nardini, Cosimo Rulli, Rossano Venturini, and Leonardo Venuta. 2025. Investigating the scalability of approximate sparse retrieval algorithms to massive datasets. In European Conference on Information Retrieval. Springer, 437–445.
[8] Parker Carlson, Wentai Xie, Shanxiu He, and Tao Yang. 2025. Dynamic superblock pruning for fast learned sparse retrieval. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. 3004–3009.
[9] Benjamin Coleman, Santiago Segarra, Alexander Smola, and Anshumali Shrivastava. 2022. Graph reordering for cache-efficient near neighbor search. Advances in Neural Information Processing Systems 35 (2022), 38488–38500.
[10] Zhuyun Dai and Jamie Callan. 2019. Context-aware sentence/passage term importance estimation for first stage retrieval. arXiv preprint arXiv:1910.10687 (2019).
[11] Zhuyun Dai and Jamie Callan. 2020. Context-aware document term weighting for ad-hoc search. In Proceedings of the web conference 2020. 1897–1907.
[12] Zhuyun Dai and Jamie Callan. 2020. Context-aware term weighting for first stage passage retrieval. In Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval. 1533–1536.
[13] Leonardo Delfino, Domenico Erriquez, Silvio Martinico, Franco Maria Nardini, Cosimo Rulli, and Rossano Venturini. 2025. kANN olo: Sweet and Smooth Approximate k-Nearest Neighbors Search. In European Conference on Information Retrieval. Springer, 400–406.
[14] Owen P Elliott and Jesse Clark. 2024. The impacts of data, ordering, and intrinsic dimensionality on recall in hierarchical navigable small worlds. In Proceedings of the 2024 ACM SIGIR International Conference on Theory of Information Retrieval. 25–33.
[15] Thibault Formal. 2026. Sparseup - open-source sparse retrieval model (SOTA on BEIR-13). https://www.linkup.so/blog/introducing-sparseup-by-linkup
[16] Thibault Formal, Carlos Lassance, Benjamin Piwowarski, and Stéphane Clinchant. 2021. SPLADE v2: Sparse lexical and expansion model for information retrieval. arXiv preprint arXiv:2109.10086 (2021).
[17] Thibault Formal, Carlos Lassance, Benjamin Piwowarski, and Stéphane Clinchant. 2022. 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. 2353–2359.
[18] Thibault Formal, Benjamin Piwowarski, and Stéphane Clinchant. 2021. 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. 2288–2292.
[19] Hrishikesh Kulkarni, Sean MacAvaney, Nazli Goharian, and Ophir Frieder. 2023. Lexically-accelerated dense retrieval. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval. 152–162.
[20] Carlos Lassance and Stéphane Clinchant. 2022. An efficiency study for splade models. In Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval. 2220–2226.
[21] Carlos Lassance, Hervé Déjean, Thibault Formal, and Stéphane Clinchant. 2024. SPLADE-v3: New baselines for SPLADE. arXiv preprint arXiv:2403.06789 (2024).
[22] Ruoxuan Li, Xiaoyao Zhong, Jiabao Jin, Peng Cheng, Wangze Ni, Zhitao Shen, Wei Jia, Xiangyu Wang, Heng Tao Shen, and Jingkuan Song. 2026. Sindi: An efficient index for sparse vector approximate maximum inner product search. In 2026 IEEE 42nd International Conference on Data Engineering (ICDE). IEEE, 2793–2806.
[23] Jimmy Lin and Xueguang Ma. 2021. A few brief notes on deepimpact, coil, and a conceptual framework for information retrieval techniques. arXiv preprint arXiv:2106.14807 (2021).
[24] Sean MacAvaney, Franco Maria Nardini, Raffaele Perego, Nicola Tonellotto, Nazli Goharian, and Ophir Frieder. 2020. Expansion via prediction of importance with contextualization. In Proceedings of the 43rd International ACM SIGIR conference on research and development in Information Retrieval. 1573–1576.
[25] Joel Mackenzie, Andrew Trotman, and Jimmy Lin. 2021. Wacky weights in learned sparse representations and the revenge of score-at-a-time query evaluation. arXiv preprint arXiv:2110.11540 (2021).
[26] Yu A Malkov and Dmitry A Yashunin. 2018. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE transactions on pattern analysis and machine intelligence 42, 4 (2018), 824–836.
[27] Antonio Mallia, Torsten Suel, and Nicola Tonellotto. 2024. Faster learned sparse retrieval with block-max pruning. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 2411–2415.
[28] Franco Maria Nardini, Thong Nguyen, Cosimo Rulli, Rossano Venturini, and Andrew Yates. 2025. Effective inference-free retrieval for learned sparse representations. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. 2936–2940.
[29] Franco Maria Nardini, Luca Rizzo, Cosimo Rulli, and Rossano Venturini. 2026. Compact and Efficient Indexes for Learned Sparse Retrieval. arXiv preprint arXiv:2610.12300 (2026).
[30] Yutaro Oguri and Yusuke Matsui. 2024. Theoretical and empirical analysis of adaptive entry point selection for graph-based approximate nearest neighbor search. arXiv preprint arXiv:2402.04713 (2024).
[31] Tobias Rubel, Richard Wen, Laxman Dhulipala, Lars Gottesbüren, Rajesh Jayaram, and Jakub Łącki. 2026. PiPNN: ultra-scalable graph-based nearest neighbor indexing. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2. 4092–4102.
[32] Hinrich Schütze, Christopher D Manning, and Prabhakar Raghavan. 2008. Introduction to information retrieval. Vol. 39. Cambridge University Press, Cambridge.
[33] Xinjie Shen, Zhichao Geng, and Yang Yang. 2025. Exploring t0 Sparsification for Inference-free Sparse Retrievers. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. 2572–2576.
[34] Harsha Vardhan Simhadri, Martin Aumüller, Amir Ingber, Matthijs Douze, George Williams, Magdalen Dobson Manohar, Dmitry Baranchuk, Edo Liberty, Frank Liu, Ben Landrum, et al. 2024. Results of the Big ANN: NeurIPS'23 competition. arXiv preprint arXiv:2409.17424 (2024).
[35] Tiancheng Zhao, Xiaopeng Lu, and Kyusong Lee. 2021. SPARTA: Efficient open-domain question answering via sparse transformer matching retrieval. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 565–575.