🤖 AI Summary
This work addresses the challenges of constructing graph-based indices for large-scale, high-dimensional data, which typically suffer from prolonged build times, high GPU costs, and limited device memory. To overcome these limitations, the authors propose ScaleGANN, an end-to-end system that integrates an optimized vector partitioning algorithm, a multi-GPU parallel indexing mechanism, and a preemptible instance scheduling strategy. By leveraging distributed graph partitioning, a task scheduler, and a cost model, ScaleGANN efficiently utilizes low-cost preemptible GPU resources in cloud environments while maintaining high index quality. Experimental results on real-world large-scale datasets demonstrate that ScaleGANN achieves up to 9× faster index construction and 6× lower cost compared to DiskANN.
📝 Abstract
Graph-based ANNS algorithms have gained increasing research interest and market adoption due to their efficiency and accuracy in retrieval. Existing approaches primarily rely on CPUs for graph index construction and retrieval, but this often requires significant time, especially for large-scale and high-dimensional datasets. Some studies have explored GPU-based solutions. However, GPUs are costly and their limited memory makes handling large datasets challenging.
In this paper, we propose a novel end-to-end system ScaleGANN that enables users to efficiently construct graph indexes for large-scale, high-dimensional datasets by leveraging low-cost spot GPU resources in a distributed cloud system. ScaleGANN utilized the idea of divide-and-merge, with an optimized vector partitioning algorithm to further improve the indexing time and space efficiency while guaranteeing good index quality. Its novel resource allocation strategy realized multi-GPU indexing parallelism and overall cost-effectiveness for both build and query. Besides, we designed a task scheduler and cost model for better spot instance management and evaluation.
We tested our system on large real-world datasets. Experiment results show that our approach can significantly accelerate the index build time to up to 9x times at even 6x lower price compared with the state-of-the-art extendable ANNS benchmark DiskANN.