AI summary · arXiv: 2611.29252v1 · cs.DC

Zarc: Exact Nearest Neighbors over a Billion Vectors in Seconds

Dongfang Zhao
Original paper · DOI 10.5281/zenodo.23674583 Submitted to arXiv on 22 Nov. 2026 Identical to https://zenodo.org/records/23674584 License: CC BY-NC-ND 4.0 Also in: fr

How to read this summary? Illustrated guide

The essentials

Zarc combines certified screening, tiered memory, and ordered verification to deliver exact vector search at billion-vector scale with substantial speedups over exhaustive GPU search.

Question

Can exact nearest-neighbor search scale to billion-vector datasets and changing workloads without keeping all raw vectors in GPU memory? The paper addresses how to retain exactness while supporting filters, updates, multiple similarity metrics, and LLM attention workloads.

Method

Zarc keeps half-precision screening rows and anchor samples on GPUs, while full-precision vectors reside in host memory; certified lower bounds screen candidates, and survivors are verified in double precision. The evaluation uses four H100 GPUs, datasets up to one billion vectors, and attention-key retrieval from eleven open LLMs, alongside tests of filters, updates, cosine similarity, and inner products.

Findings

  • Result On four H100 GPUs, Zarc answered 10,000 exact queries over one billion vectors in 1.1 seconds, compared with about five minutes for exhaustive search.
    See the passage in the paper
    On four H100 GPUs, Zarc indexes BIGANN-1B Jegou et al. (2011) in 79 s and answers the same 10,000 queries exactly in 1.1 s (Figure 1(a)).
  • Result Zarc was 2.2 to 13.1 times faster than exhaustive cuVS search for exact top-10 attention-key retrieval across the evaluated open LLMs.
  • Result For one-million-token sparse attention with k=64, Zarc reduced the forward-pass time to 3.6 seconds while selecting the exact top-64 for every query.
  • Authors’ interpretation The authors' central design conclusion is that certified screening can reduce GPU memory requirements by storing short proof rows on the GPU and leaving full vectors in host memory.
    See the passage in the paper
    Our insight is to keep only these rows in GPU memory and the full-precision vectors in host memory, because exact verification reads the full vectors of only the few vectors that remain.
  • Result The system supported exact filtered queries and updates, and the authors report exact answers across their evaluated workloads.
    See the passage in the paper
    Every answer of Zarc is checked against the ground truth and matches it, which gives an exact fraction of 100% throughout, including on adversarial inputs with exact ties, duplicates, and extreme norms (Appendix O).

Limitations

  • The reported evidence is based on selected benchmark datasets, evaluated models, and specified hardware platforms, so it does not establish performance for all datasets or deployment settings.
    See the passage in the paper
    The main platform is a server with four 94 GB H100 GPUs connected pairwise by NVLink, 192 cores of the Intel Xeon Platinum 8468, and 960 GB of host DRAM, which runs the billion-scale and LLM experiments.
  • The update design keeps projections fixed between rebuilds, so periodic projection recomputation and row rebuilding remain necessary.
    See the passage in the paper
    As insertions keep the projection fixed, Zarc periodically recomputes it and rebuilds the rows.

Why it matters

The authors argue that certified exclusion can make exact search practical beyond GPU memory by separating compact screening data from full vectors and verifying only plausible neighbors. They present Zarc as a way to retain exactness while extending vector search to billion-scale data and workloads such as sparse LLM attention.

Written by AI from the paper. Passages are checked word for word against the text we analysed; the rest may contain errors.

AI-generated keywords: exact nearest-neighbor search certified exclusion GPU acceleration host-memory verification long-context retrieval

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
The paper asks whether exact nearest-neighbor search can scale to billion-vector datasets and long-context language-model workloads without scanning every vector or sacrificing correctness. Exhaustive GPU search is exact but slow and requires the full dataset to fit in GPU memory. Approximate indexes can be faster, but they may omit true neighbors. Zarc uses certified exclusion. For each vector, it computes a lower bound on its distance to the query and skips the vector only when the bound proves it cannot be among the top-k. The goal is to preserve this guarantee while supporting datasets larger than GPU memory, updates, filters, and multiple similarity measures. Zarc stores compact, half-precision screening rows on GPUs and keeps full-precision vectors in pinned host memory. Tensor-core kernels screen the compact rows using certified rounding-error bounds, ensuring that a vector is excluded only when its lower bound is safe. The system estimates an upper bound on the true kth-neighbor distance using sampled anchors, then tightens it with candidates from nearby data partitions. It also fits local projections for partitions, which can improve bounds on clustered data. Survivors are ordered by their certified lower bounds, and the GPU fetches and checks full vectors from host memory only while they could still enter the result. A calibrated cost model selects projection widths and other settings, while sharding lets multiple GPUs search under a shared threshold. The framework also supports insertions and deletions, filtered queries, cosine similarity, and inner-product search. The evaluation compares results with double-precision ground truth and includes tests with ties, duplicates, and extreme vector norms. On four H100 GPUs, Zarc answers 10,000 queries over one billion BIGANN vectors in 1.1 seconds, compared with about five minutes for exhaustive search—a reported 269-fold speedup. It reaches 8,997 queries per second on that dataset. On one H100, it searches 500 million vectors at 5,233 queries per second using 71 GB of GPU memory, compared with 256 GB to store the raw vectors in single precision. For this workload, it reads an average of 699 full vectors per query from the 5,593 screened survivors. For attention-key retrieval across eleven open language models, Zarc is reported to be 2.2 to 13.1 times faster than exhaustive cuVS search and exact on every evaluated query. By contrast, bf16 matrix products return the exact top 10 for only 14% to 86% of queries, depending on the model. In a one-million-token sparse-attention experiment on Qwen2.5-7B-Instruct-1M, exact top-64 selection with Zarc reduces the forward pass from 11.2 to 3.6 seconds compared with bf16 selection using FlashInfer. The bf16 method selects the exact top 64 for only 42% to 43% of queries. The paper also reports that building an exact 10-nearest-neighbor graph on DataComp-12.8M takes 42 times less time with Zarc than with projected exhaustive search. These results suggest that certified screening can make exact search practical even when the raw vectors do not fit in GPU memory, while preserving correctness for the evaluated updates and query types. However, performance depends on the data, query distribution, projection width, and cost of host-memory verification. The paper addresses these trade-offs through tuning rather than eliminating them. Its measurements are also tied to specific workloads and hardware, principally H100 servers, and do not establish equivalent benefits for every dataset or deployment. Zarc’s central contribution is therefore a systems design and evaluation showing that exactness need not require exhaustive distance computation, rather than a claim that it universally outperforms approximate search.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts Citation alerts guide
Who works on it?

Among the 23 papers around this one, the name that comes back most: Jian-Yang Gao (2 papers)

2 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter Presented in "Computing beyond AI this week" of 30 November 2026. Computing beyond AI this week: What a system reveals, and what it can guarantee · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Close Broader context Cited by this paper
    Fast k nearest neighbor search using GPU
    V. Garcia, Eric Debreuve, M. Barlaud · 2008 · IEEE Computer Society Conference on Computer Vision and Pattern Recognition workshops · cited 627 times · Not summarized yet

    Fast k nearest neighbor search using GPU applies kNN to estimate information-theoretic measures for image and video tasks, rather than scaling exact vector retrieval.

    Abstract

    Statistical measures coming from information theory represent interesting bases for image and video processing tasks such as image retrieval and video object tracking. For example, let us mention the entropy and the Kullback-Leibler divergence. Accurate estimation of these measures requires to adapt to the local sample density, especially if the data are high-dimensional. The k nearest neighbor (kNN) framework has been used to define efficient variable-bandwidth kernel-based estimators with such a locally adaptive property. Unfortunately, these estimators are computationally intensive since they rely on searching neighbors among large sets of d-dimensional vectors. This computational burden …

  2. Close Same method, another problem Cited by this paper Used in depth by this paper
    CertEx: Exact Visual Retrieval at Scale by Certified Exclusion
    Dongfang Zhao · 2026 · cited 2 times · Not summarized yet

    CertEx uses low-precision certified exclusion to prove which image-embedding vectors cannot be exact nearest neighbors, as Zarc does for vector search.

    Abstract

    Exact $k$-nearest-neighbor (kNN) search over image descriptors and embeddings underlies visual retrieval, near-duplicate detection, the evaluation of learned representations, and increasingly the memory of LLM agents. However, exhaustive search computes every distance at full precision, whereas approximate indexes return recall below one. We observe that exact search only needs a proof that each excluded vector cannot be a neighbor. Because such a proof only has to be conservative, it can be checked in low precision, much as the retina examines the whole scene at low resolution. We call this principle certified exclusion and realize it in an exact kNN method for GPUs, which we call CertEx. S…

  3. Close Another approach to the problem Cited by this paper Used in depth by this paper
    Billion-scale similarity search with GPUs
    Jeff Johnson, Matthijs Douze, Hervé Jégou · 2017 · Computer Vision and Pattern Recognition · cited 6,722 times · AI summary available

    Billion-scale similarity search with GPUs accelerates nearest-neighbor search through high-performance GPU k-selection, whereas Zarc screens candidates with certified bounds and verifies survivors.

    Abstract

    Similarity search finds application in specialized database systems handling complex data such as images or videos, which are typically represented by high-dimensional features and require specific indexing structures. This paper tackles the problem of better utilizing GPUs for this task. While GPUs excel at data-parallel tasks, prior approaches are bottlenecked by algorithms that expose less parallelism, such as k-min selection, or make poor use of the memory hierarchy. We propose a design for k-selection that operates at up to 55% of theoretical peak performance, enabling a nearest neighbor implementation that is 8.5x faster than prior GPU state of the art. We apply it in different similar…

  4. Close Another approach to the problem Cited by this paper
    PilotANN: Memory-Bounded GPU Acceleration for Vector Search
    Yun-Tao Gui, Peiqi Yin, Xiao Yan et al. · 2025 · Knowledge Discovery and Data Mining · cited 12 times · Not summarized yet

    PilotANN combines CPU RAM and GPU processing for memory-bounded graph-based approximate search, while Zarc uses host memory to support exact search.

    Abstract

    Approximate Nearest Neighbor Search (ANNS) has become fundamental to modern deep learning applications, having gained particular prominence through its integration into recent generative models that work with increasingly complex datasets and higher vector dimensions. Existing CPU-only solutions, even the most efficient graph-based ones, struggle to meet these growing computational demands, while GPU-only solutions face memory constraints. As a solution, we propose PilotANN, a hybrid CPU-GPU system for graph-based ANNS that utilizes both CPU's abundant RAM and GPU's parallel processing capabilities. Our key innovation lies in decomposing the top-k search process into three complementary stag…

  5. Close Another approach to the problem Cited by this paper
    GPU-Native Approximate Nearest Neighbor Search with IVF-RaBitQ: Fast Index Build and Search
    Ji-Fan Shi, Jian-Yang Gao, J. Xia et al. · 2026 · Proceedings of the VLDB Endowment · cited 12 times · Not summarized yet

    IVF-RaBitQ uses GPU-native clustering and quantization for high-recall approximate vector search, unlike Zarc’s certified exact search.

    Abstract

    Approximate nearest neighbor search (ANNS) on GPUs is gaining increasing popularity for modern retrieval and recommendation workloads that operate over massive high-dimensional vectors. Graph-based indexes deliver high recall and throughput but incur heavy build-time and storage costs. In contrast, cluster-based methods build and scale efficiently yet often need many probes for high recall, straining memory bandwidth and compute. Aiming to simultaneously achieve fast index build, high-throughput search, high recall, and low storage requirement for GPUs, we present IVF-RaBitQ (GPU), a GPU-native ANNS solution that integrates the cluster-based method IVF with RaBitQ quantization into an effici…

  6. Close Another approach to the problem
    Cosmos: A CXL-Based Full In-Memory System for Approximate Nearest Neighbor Search
    Seoyoung Ko, Hyunjeong Shim, Wanju Doh et al. · 2025 · IEEE computer architecture letters · cited 12 times · Not summarized yet

    Cosmos offloads billion-scale approximate search to CXL memory devices and optimizes distance computation, whereas Zarc targets exact search across host and GPU memory.

    Abstract

    Retrieval-Augmented Generation (RAG) is crucial for improving the quality of large language models by injecting proper contexts extracted from external sources. RAG requires high-throughput, low-latency Approximate Nearest Neighbor Search (ANNS) over billion-scale vector databases. Conventional DRAM/SSD solutions face capacity/latency limits, whereas specialized hardware or RDMA clusters lack flexibility or incur network overhead. We present Cosmos, integrating general-purpose cores within CXL memory devices for full ANNS offload and introducing rank-level parallel distance computation to maximize memory bandwidth. We also propose an adjacency-aware data placement that balances search loads …

  7. Close Another approach to the problem Cited by this paper
    GGNN: Graph-Based GPU Nearest Neighbor Search
    Fabian Groh, Lukas Ruppert, Patrick Wieschollek et al. · 2019 · IEEE Transactions on Big Data · cited 85 times · Not summarized yet

    GGNN builds GPU-friendly nearest-neighbor graphs for approximate search, whereas Zarc screens vectors with certified bounds to preserve exact results.

    Abstract

    Approximate nearest neighbor (ANN) search in high dimensions is an integral part of several computer vision systems and gains importance in deep learning with explicit memory representations. Since PQT (Wieschollek et al., 2016), FAISS (Johnson et al., 2021), and SONG (Zhao et al., 2020) started to leverage the massive parallelism offered by GPUs, GPU-based implementations are a crucial resource for today’s state-of-the-art ANN methods. While most of these methods allow for faster queries, less emphasis is devoted to accelerating the construction of the underlying index structures. In this paper, we propose a novel GPU-friendly search structure based on nearest neighbor graphs and informatio…

  8. Close Another approach to the problem Cited by this paper
    SVFusion: A CPU-GPU Co-Processing Architecture for Large-Scale Real-Time Vector Search
    Yuchen Peng, Ding-Yu Yang, Zhong-Le Xie et al. · 2026 · Proceedings of the VLDB Endowment · cited 8 times · Not summarized yet

    SVFusion coordinates GPU, CPU, and disk for dynamic approximate vector search, while Zarc supports updates with exact results using GPU screening and host-resident vectors.

    Abstract

    Approximate Nearest Neighbor Search (ANNS) underpins modern applications such as information retrieval and recommendation. With the rapid growth of vector data, efficient indexing for real-time vector search has become rudimentary. Existing CPU-based solutions support updates but suffer from low throughput, while GPU-accelerated systems deliver high performance but face challenges with dynamic updates and limited GPU memory, resulting in a critical performance gap for continuous, large-scale vector search requiring both accuracy and speed. In this paper, we present SVFusion, a GPU-CPU-disk collaborative framework for real-time vector search that bridges sophisticated GPU computation with onl…

Prior work it builds on

  1. Related Another approach to the problem Used in depth by this paper
    CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUs
    Hiroyuki Ootomo, Akira Naruse, Corey J. Nolet et al. · 2023 · IEEE International Conference on Data Engineering · cited 142 times · Not summarized yet

    CAGRA constructs GPU-parallel graphs for approximate nearest-neighbor search, while Zarc uses certified candidate exclusion for exact search.

    Abstract

    Approximate Nearest Neighbor Search (ANNS) plays a critical role in various disciplines spanning data mining and artificial intelligence, from information retrieval and computer vision to natural language processing and recommender systems. Data volumes have soared in recent years and the computational cost of an exhaustive exact nearest neighbor search is often prohibitive, necessitating the adoption of approximate techniques. The balanced performance and recall of graph-based approaches have more recently garnered significant attention in ANNS algorithms, however, only a few studies have explored harnessing the power of GPUs and multi-core processors despite the widespread use of massively…

  2. Related Another approach to the problem Used in depth by this paper
    Searching in one billion vectors: Re-rank with source coding
    H. Jégou, R. Tavenard, M. Douze et al. · 2011 · IEEE International Conference on Acoustics, Speech, and Signal Processing · cited 435 times · Not summarized yet

    Searching in one billion vectors reranks compressed-index candidates using short quantization codes to avoid full-vector reads, while Zarc verifies survivors in double precision.

    Abstract

    Recent indexing techniques inspired by source coding have been shown successful to index billions of high-dimensional vectors in memory. In this paper, we propose an approach that re-ranks the neighbor hypotheses obtained by these compressed-domain indexing methods. In contrast to the usual post-verification scheme, which performs exact distance calculation on the short-list of hypotheses, the estimated distances are refined based on short quantization codes, to avoid reading the full vectors from disk. We have released a new public dataset of one billion 128-dimensional vectors and proposed an experimental setup to evaluate high dimensional indexing algorithms on a realistic scale. Experime…

  3. Related Shared data, tool or method
    Results of the NeurIPS'21 Challenge on Billion-Scale Approximate Nearest Neighbor Search
    H. Simhadri, G. Williams, Martin Aumüller et al. · 2022 · Neural Information Processing Systems · cited 120 times · Not summarized yet

    The NeurIPS’21 challenge provides an open evaluation framework and leaderboards for billion-scale approximate search, rather than proposing Zarc’s exact-search method.

    Abstract

    Despite the broad range of algorithms for Approximate Nearest Neighbor Search, most empirical evaluations of algorithms have focused on smaller datasets, typically of 1 million points~\citep{Benchmark}. However, deploying recent advances in embedding based techniques for search, recommendation and ranking at scale require ANNS indices at billion, trillion or larger scale. Barring a few recent papers, there is limited consensus on which algorithms are effective at this scale vis-\`a-vis their hardware cost. This competition compares ANNS algorithms at billion-scale by hardware cost, accuracy and performance. We set up an open source evaluation framework and leaderboards for both standardized …

  4. Related Another approach to the problem Used in depth by this paper
    Filtered-DiskANN: Graph Algorithms for Approximate Nearest Neighbor Search with Filters
    Siddharth Gollapudi, Neel Karia, Varun Sivashankar et al. · 2023 · The Web Conference · cited 174 times · Not summarized yet

    Filtered-DiskANN develops graph algorithms for filtered approximate search, while Zarc supports filtered queries with exact nearest-neighbor results.

    Abstract

    As Approximate Nearest Neighbor Search (ANNS)-based dense retrieval becomes ubiquitous for search and recommendation scenarios, efficiently answering filtered ANNS queries has become a critical requirement. Filtered ANNS queries ask for the nearest neighbors of a query’s embedding from the points in the index that match the query’s labels such as date, price range, language. There has been little prior work on algorithms that use label metadata associated with vector data to build efficient indices for filtered ANNS queries. Consequently, current indices have high search latency or low recall which is not practical in interactive web-scenarios. We present two algorithms with native support f…

  5. Related Another approach to the problem
    HAVEN: High-Bandwidth Flash Augmented Vector Engine for Large-Scale Approximate Nearest-Neighbor Search Acceleration
    Po-Kai Hsu, Wei-Hong Xu, Qun-You Liu et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 16 times · Not summarized yet

    HAVEN augments GPU memory with high-bandwidth flash for approximate vector search and reranking, while Zarc uses host memory and certified screening for exact search.

    Abstract

    Retrieval-Augmented Generation (RAG) relies on large-scale Approximate Nearest Neighbor Search (ANNS) to retrieve semantically relevant context for large language models. Among ANNS methods, IVF-PQ offers an attractive balance between memory efficiency and search accuracy. However, achieving high recall requires reranking which fetches full-precision vectors for reranking, and the billion-scale vector databases need to reside in CPU DRAM or SSD due to the limited capacity of GPU HBM. This off-GPU data movement introduces substantial latency and throughput degradation. We propose HAVEN, a GPU architecture augmented with High-Bandwidth Flash (HBF) which is a recently introduced die-stacked 3D …

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 30 November 2026.

The illustrated guide to the papers around a paper

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.