Zarc: Exact Nearest Neighbors over a Billion Vectors in Seconds
Auteurs : Dongfang Zhao
Résumé scientifique
Exact k-nearest-neighbor vector search lies on the critical path of machine learning systems, from sparse attention in the latest large language models (LLMs) to long-context memories and training-data deduplication. Exhaustive GPU search scans the whole dataset for every query, while approximate indexes return inexact neighbors. Recent methods skip almost every vector with a cheap half-precision proof that it lies too far away, but only on one GPU that holds the whole dataset. Our insight is to keep only the short rows of these proofs in GPU memory and to fetch the few remaining full vectors from host memory. Our system, Zarc, answers Euclidean, cosine, inner-product, and filtered queries exactly under updates. On four H100 GPUs, it answers 10,000 exact queries over one billion vectors in 1.1 seconds instead of five minutes. On eleven open LLMs, it retrieves the exact top-10 attention keys 2.2x to 13.1x faster than exhaustive search. In sparse attention over one million tokens, it runs 3.1x faster than bf16 selection with FlashInfer, which misses the exact top-64 for most queries.
Les articles autour de lui, par date et par proximité
Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article
Les articles autour de celui-ci
Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.
Les articles les plus proches
-
Fast k nearest neighbor search using GPUV. Garcia, Eric Debreuve, M. Barlaud · 2008 · IEEE Computer Society Conference on Computer Vision and Pattern Recognition workshops · cité 627 fois · Pas encore résumé
Fast k nearest neighbor search using GPU accélère sur GPU la recherche de voisins nécessaire aux estimateurs adaptatifs, tandis que Zarc vise une recherche exacte à grande échelle.
Résumé scientifique
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 …
-
CertEx: Exact Visual Retrieval at Scale by Certified ExclusionDongfang Zhao · 2026 · cité 2 fois · Pas encore résumé
CertEx applique l’exclusion certifiée en faible précision pour une recherche kNN exacte sur GPU, principe que Zarc adapte aux données réparties entre GPU et mémoire hôte.
Résumé scientifique
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…
-
Billion-scale similarity search with GPUsJeff Johnson, Matthijs Douze, Hervé Jégou · 2017 · Computer Vision and Pattern Recognition · cité 6 722 fois · Résumé IA disponible
Billion-scale similarity search with GPUs optimise la sélection des k voisins et la recherche GPU à grande échelle, un problème auquel Zarc apporte une solution exacte.
Résumé scientifique
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…
-
PilotANN: Memory-Bounded GPU Acceleration for Vector SearchYun-Tao Gui, Peiqi Yin, Xiao Yan et al. · 2025 · Knowledge Discovery and Data Mining · cité 12 fois · Pas encore résumé
PilotANN combine CPU et GPU pour une recherche approchée sous contrainte mémoire, contrairement à Zarc, qui garantit des voisins exacts.
Résumé scientifique
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…
-
GPU-Native Approximate Nearest Neighbor Search with IVF-RaBitQ: Fast Index Build and SearchJi-Fan Shi, Jian-Yang Gao, J. Xia et al. · 2026 · Proceedings of the VLDB Endowment · cité 12 fois · Pas encore résumé
IVF-RaBitQ combine quantification et partitionnement pour accélérer la recherche approchée sur GPU, alors que Zarc certifie une recherche exacte.
Résumé scientifique
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…
-
Cosmos: A CXL-Based Full In-Memory System for Approximate Nearest Neighbor SearchSeoyoung Ko, Hyunjeong Shim, Wanju Doh et al. · 2025 · IEEE computer architecture letters · cité 12 fois · Pas encore résumé
Cosmos déporte la recherche vectorielle approchée vers la mémoire CXL pour les bases massives, tandis que Zarc utilise mémoire hôte et GPU pour l’exactitude.
Résumé scientifique
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 …
-
GGNN: Graph-Based GPU Nearest Neighbor SearchFabian Groh, Lukas Ruppert, Patrick Wieschollek et al. · 2019 · IEEE Transactions on Big Data · cité 85 fois · Pas encore résumé
GGNN construit un index en graphe pour la recherche approchée sur GPU, contrairement au filtrage certifié de Zarc sans recherche approximative.
Résumé scientifique
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…
-
SVFusion: A CPU-GPU Co-Processing Architecture for Large-Scale Real-Time Vector SearchYuchen Peng, Ding-Yu Yang, Zhong-Le Xie et al. · 2026 · Proceedings of the VLDB Endowment · cité 8 fois · Pas encore résumé
SVFusion répartit entre CPU, GPU et disque la recherche vectorielle avec mises à jour, tandis que Zarc traite exactement les requêtes filtrées et les mises à jour.
Résumé scientifique
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…
Les travaux antérieurs sur lesquels il s’appuie
-
CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUsHiroyuki Ootomo, Akira Naruse, Corey J. Nolet et al. · 2023 · IEEE International Conference on Data Engineering · cité 142 fois · Pas encore résumé
CAGRA exploite les graphes et le parallélisme GPU pour la recherche approchée, alors que Zarc cible la recherche exacte.
Résumé scientifique
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…
-
Searching in one billion vectors: Re-rank with source codingH. Jégou, R. Tavenard, M. Douze et al. · 2011 · IEEE International Conference on Acoustics, Speech, and Signal Processing · cité 435 fois · Pas encore résumé
Searching in one billion vectors rerank des candidats compressés sans relire les vecteurs complets, tandis que Zarc vérifie exactement les candidats restants.
Résumé scientifique
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…
-
Results of the NeurIPS'21 Challenge on Billion-Scale Approximate Nearest Neighbor SearchH. Simhadri, G. Williams, Martin Aumüller et al. · 2022 · Neural Information Processing Systems · cité 120 fois · Pas encore résumé
Results of the NeurIPS'21 Challenge fournit un cadre ouvert d’évaluation des méthodes approchées à l’échelle du milliard, domaine de comparaison pour Zarc.
Résumé scientifique
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 …
-
Filtered-DiskANN: Graph Algorithms for Approximate Nearest Neighbor Search with FiltersSiddharth Gollapudi, Neel Karia, Varun Sivashankar et al. · 2023 · The Web Conference · cité 174 fois · Pas encore résumé
Filtered-DiskANN traite les requêtes filtrées par métadonnées avec des graphes pour une recherche approchée, tandis que Zarc prend aussi en charge les filtres avec exactitude.
Résumé scientifique
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…
-
HAVEN: High-Bandwidth Flash Augmented Vector Engine for Large-Scale Approximate Nearest-Neighbor Search AccelerationPo-Kai Hsu, Wei-Hong Xu, Qun-You Liu et al. · 2026 · arXiv.org · preprint, non relu par les pairs · cité 16 fois · Pas encore résumé
HAVEN accélère la recherche approchée en rapprochant mémoire flash et GPU pour les vecteurs massifs, tandis que Zarc conserve les vecteurs complets en mémoire hôte.
Résumé scientifique
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 …
Aller plus loin
Comment ces articles sont-ils trouvés ?
Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.
Mis à jour le 30 novembre 2026.