ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
4.1k
Citations
0
Influential Citations
IEEE Transactions on Big Data
Venue
2019
Year
Similarity search finds application in 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 such as distance computation, prior approaches in this domain are bottlenecked by algorithms that expose less parallelism, such ask-min selection, or make poor use of the memory hierarchy. We propose a novel design fork-selection. We apply it in different similarity search scenarios, by optimizing brute-force, approximate and compressed-domain search based on product quantization. In all these setups, we outperform the state of the art by large margins. Our implementation operates at up to 55 percent of theoretical peak performance, enabling a nearest neighbor implementation that is 8.5 × faster than prior GPU state of the art. It enables the construction of a high accuracyk-NN graph on 95 million images from the Yfcc100M dataset in 35 minutes, and of a graph connecting 1 billion vectors in less than 12 hours on 4 Maxwell Titan X GPUs. We have open-sourced our approach for the sake of comparison and reproducibility.
Similarity search is a cornerstone of modern AI systems, powering tasks from image retrieval to recommendation engines. As datasets grow to billions of high-dimensional vectors, efficient nearest neighbor search becomes critical. Traditional CPU-based methods struggle with scale, and while GPUs offer massive parallelism, prior GPU approaches were bottlenecked by algorithms like k-selection that expose limited parallelism and underutilize the memory hierarchy. This paper by Johnson et al. addresses these bottlenecks head-on, delivering a fundamental redesign of GPU-based similarity search that pushes the boundaries of what is practical at billion-scale.
The work is particularly significant because it bridges the gap between algorithmic innovation and real-world deployment. By optimizing k-selection for GPUs and applying it across brute-force, approximate, and compressed-domain search, the authors provide a versatile solution that outperforms prior state of the art by large margins. The open-source release further amplifies its impact, enabling reproducibility and adoption by practitioners. In an era where vector databases and embedding-based retrieval are increasingly central to AI applications, this paper offers a timely and highly practical contribution.
The paper reports substantial performance gains: an 8.5x speedup over prior GPU state of the art for nearest neighbor search, operating at up to 55% of theoretical peak performance. Concrete benchmarks include constructing a k-NN graph on 95 million images from the YFCC100M dataset in 35 minutes, and scaling to 1 billion vectors in less than 12 hours using 4 Maxwell Titan X GPUs. These results demonstrate both raw speed and practical scalability, outperforming existing methods by large margins across all tested scenarios.
This work has far-reaching implications for AI practitioners. By making billion-scale similarity search feasible on commodity GPU hardware, it enables faster experimentation and deployment of large-scale retrieval systems. The techniques are directly applicable to vector databases, image and video search, and recommendation systems. Moreover, the open-source implementation lowers the barrier to entry, encouraging widespread adoption and further innovation. As the AI community increasingly relies on high-dimensional embeddings, this paper provides a foundational tool for efficient and scalable similarity search, cementing its role as a key reference in the field.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba