[Paper Review] Application-Driven Near-Data Processing for Similarity Search
This paper proposes SSAM, a near-data processing accelerator integrated with Hybrid Memory Cube (HMC) that performs similarity search by executing k-nearest neighbors (kNN) computations directly in memory. By co-locating processing units with DRAM and optimizing for data-parallel distance calculations and top-k sorting, SSAM achieves up to 100x higher area-normalized throughput and energy efficiency than CPUs, GPUs, and FPGAs, while also enabling efficient kNN index construction and functioning as a high-capacity content-addressable memory.
Similarity search is a key to a variety of applications including content-based search for images and video, recommendation systems, data deduplication, natural language processing, computer vision, databases, computational biology, and computer graphics. At its core, similarity search manifests as k-nearest neighbors (kNN), a computationally simple primitive consisting of highly parallel distance calculations and a global top-k sort. However, kNN is poorly supported by today's architectures because of its high memory bandwidth requirements. This paper proposes an application-driven near-data processing accelerator for similarity search: the Similarity Search Associative Memory (SSAM). By instantiating compute units close to memory, SSAM benefits from the higher memory bandwidth and density exposed by emerging memory technologies. We evaluate the SSAM design down to layout on top of the Micron hybrid memory cube (HMC), and show that SSAM can achieve up to two orders of magnitude area-normalized throughput and energy efficiency improvement over multicore CPUs; we also show SSAM is faster and more energy efficient than competing GPUs and FPGAs. Finally, we show that SSAM is also useful for other data intensive tasks like kNN index construction, and can be generalized to semantically function as a high capacity content addressable memory.
Motivation & Objective
- To address the growing bottleneck of memory bandwidth in similarity search workloads, especially for large-scale multimedia and data-intensive applications.
- To reduce data movement overhead in kNN search by co-locating computation with memory using near-data processing.
- To design an application-driven accelerator tailored for kNN workloads, leveraging emerging 3D-stacked memory technologies like HMC.
- To demonstrate significant performance and energy efficiency improvements over conventional CPUs, GPUs, and FPGAs for similarity search and related tasks.
- To explore the generalization of the accelerator to serve as a high-capacity content-addressable memory for data-intensive workloads.
Proposed method
- Designing a programmable vector processor-based accelerator integrated within a die-stacked HMC to perform kNN operations directly in memory.
- Implementing hardware support for parallel distance computations and a priority queue for global top-k selection to minimize data movement.
- Extending the instruction set to include specialized operations for similarity search, such as vector dot product and comparison instructions.
- Synthesizing and simulating the SSAM design down to physical layout for accurate performance and area estimation.
- Evaluating the design against CPUs, GPUs, and FPGAs using real-world kNN workloads and indexing tasks.
- Leveraging emerging memory technologies like HMC to enable high memory bandwidth and density, enabling efficient in-memory computation.
Experimental results
Research questions
- RQ1Can near-data processing significantly reduce data movement overhead in kNN similarity search, leading to improved performance and energy efficiency?
- RQ2How does an application-driven accelerator design, co-optimized for kNN workloads, compare to general-purpose accelerators like GPUs and FPGAs?
- RQ3To what extent can in-memory processing with a vector processor reduce the latency and energy cost of kNN queries in large-scale datasets?
- RQ4Can the same accelerator architecture be reused for related data-intensive tasks such as kNN index construction?
- RQ5Can the SSAM design function as a high-capacity content-addressable memory, enabling associative search beyond kNN?
Key findings
- SSAM achieves up to two orders of magnitude higher area-normalized throughput compared to multicore CPUs.
- SSAM delivers up to two orders of magnitude better energy efficiency than multicore CPUs for similarity search workloads.
- SSAM outperforms both GPUs and FPGAs in both throughput and energy efficiency for kNN search.
- The SSAM design enables efficient kNN index construction by reducing data movement during vector processing.
- SSAM can be generalized to function as a high-capacity content-addressable memory, demonstrating semantic flexibility beyond kNN.
- The application-driven codesign of hardware and instruction set extensions enables significant performance gains by aligning the accelerator with the computational patterns of kNN.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.