Papers › CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUs

CAGRA: Highly Parallel Graph Construction and Approximate Nearest Neighbor Search for GPUs

29 Aug 2023arXiv:2308.15136archive 2025-07-28

Hiroyuki Ootomo, Akira Naruse, Corey Nolet, Ray Wang, Tamas Feher, Yong Wang

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 parallel and general-purpose computing. To bridge this gap, we introduce a novel parallel computing hardware-based proximity graph and search algorithm. By leveraging the high-performance capabilities of modern hardware, our approach achieves remarkable efficiency gains. In particular, our method surpasses existing CPU and GPU-based methods in constructing the proximity graph, demonstrating higher throughput in both large- and small-batch searches while maintaining compatible accuracy. In graph construction time, our method, CAGRA, is 2.2~27x faster than HNSW, which is one of the CPU SOTA implementations. In large-batch query throughput in the 90% to 95% recall range, our method is 33~77x faster than HNSW, and is 3.8~8.8x faster than the SOTA implementations for GPU. For a single query, our method is 3.4~53x faster than HNSW at 95% recall.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.15136")

Code

Syntology Ran 3 of 12 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 3 ran with no contract checked.

By repository: official repository: 4 samples from 1 repository, 3 ran; community (archive-listed): 8 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rapidsai/raft officialmentioned in paperpytorchApache-2.0 report
rapidsai/cuvs mentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 3 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran
9unverified

Licence: 8 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_raft_comm_state rapidsai/raft/python/raft-dask/raft_dask/common/comms.py official repository ran Apache-2.0 (permissive) · 61e08a7e9b102edc · report
local_handle rapidsai/raft/python/raft-dask/raft_dask/common/comms.py official repository ran Apache-2.0 (permissive) · a6c03b255c7f286e · report
parse_host_port rapidsai/raft/python/raft-dask/raft_dask/common/utils.py official repository ran Apache-2.0 (permissive) · ecd325143e42f86b · report
set_nccl_root rapidsai/raft/python/raft-dask/raft_dask/common/comms.py official repository unverified Apache-2.0 (permissive) · 36f6b3bde8db7a57 · report
choose_random_queries rapidsai/cuvs/python/cuvs_bench/cuvs_bench/generate_groundtruth/__main__.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · b805cbcdf347d91b · report
dtype_from_filename rapidsai/cuvs/python/cuvs_bench/cuvs_bench/backends/_utils.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a8203568aae7ab37 · report
expand_param_grid rapidsai/cuvs/python/cuvs_bench/cuvs_bench/backends/_utils.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5e6889d7e7f8fe19 · report
generate_random_queries rapidsai/cuvs/python/cuvs_bench/cuvs_bench/generate_groundtruth/__main__.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 47f3b6ffa867c7d2 · report
get_search_space rapidsai/cuvs/python/cuvs_bench/cuvs_bench/backends/search_spaces.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 57e66bf359c19c79 · report
import_with_fallback rapidsai/cuvs/python/cuvs_bench/cuvs_bench/generate_groundtruth/__main__.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a215ace470bb8f6e · report
read_bin_header rapidsai/cuvs/python/cuvs_bench/cuvs_bench/_bin_format.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 06b136bd9d1ae767 · report
write_bin_header rapidsai/cuvs/python/cuvs_bench/cuvs_bench/_bin_format.py community (archive-listed) unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · e11971f562a6c65d · report

Tasks

Information RetrievalRecommendation Systemsgraph construction

2 archive task tags without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections