BANG: Billion-Scale Approximate Nearest Neighbour Search Using a Single GPU
Top Cited Papers
- 19 June 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Big Data
- Vol. 11 (6) , 3142-3157
Abstract
Approximate Nearest Neighbour Search (ANNS) is a subroutine in algorithms routinely employed in information retrieval, pattern recognition, data mining, image processing, and beyond. Recent works have established that graph-based ANNS algorithms are practically more efficient than the other methods proposed in the literature. The growing volume and dimensionality of data necessitates designing scalable techniques for ANNS. To this end, the prior art has explored parallelising graph-based ANNS on GPU, leveraging its massive parallelism. The current state-of-the-art GPU-based ANNS algorithms either (i) require both the dataset and the generated graph index to reside entirely in the GPU memory, or (ii) partition the dataset into small independent shards, each of which can fit in GPU memory, and perform the search on these shards on the GPU. While the first approach fails to handle large datasets due to the limited memory available on the GPU, the latter delivers poor performance on large datasets due to high data traffic over the low-bandwidth PCIe interconnect. We introduce BANG, a first-of-its-kind technique for graph-based ANNS on GPU for billion-scale datasets, that cannot entirely fit in the GPU memory. BANG stands out by harnessing a compressed form of the dataset on a single GPU to perform distance computations while efficiently accessing the graph index kept on the host memory, enabling efficient ANNS on large graphs within the limited GPU memory. BANG incorporates highly optimised GPU kernels and proceeds in phases that run concurrently on the GPU and CPU, taking advantage of their architectural specificities. Furthermore, it enables overlapping communication with computation that results in efficient data transfer between the CPU and GPU. Using a single NVIDIA Ampere A100 GPU, BANG achieves throughputs 50×–400×higher than competing methods for a recall of 0.9 on three popular billion-scale datasets.Keywords
This publication has 37 references indexed in Scilit:
- Survey of vector database management systemsThe VLDB Journal, 2024
- Optimizing FPGA-based Accelerator Design for Large-Scale Molecular Similarity Search (Special Session Paper)2021
- Deep Learning in ChemistryJournal of Chemical Information and Modeling, 2019
- Efficient Large-Scale Approximate Nearest Neighbor Search on OpenCL FPGA2018
- The rise of deep learning in drug discoveryDrug Discovery Today, 2018
- Efficient Large-Scale Approximate Nearest Neighbor Search on the GPU2016
- Efficient Indexing of Billion-Scale Datasets of Deep Descriptors2016
- Assembling large genomes with single-molecule sequencing and locality-sensitive hashingNature Biotechnology, 2015
- Approximate nearest neighbor algorithm based on navigable small world graphsInformation Systems, 2014
- Searching in one billion vectors: Re-rank with source coding2011