Towards Enabling Distance-Based Memory Addressing
Ananth Krishna Prasad, Sharad Bhat, Rajeev Balasubramonian, Mahdi Nazm Bojnordi
Abstract
Approximate Nearest-Neighbor Search (ANNS) in high dimensional vector datasets is an application of significant prevalence across different AI applications. However, such an operation is significantly bandwidth limited at large workingset sizes owing to the curse of dimensionality. Traditional indices used to accelerate ANNS rely on search-space pruning as a preprocessing step to alleviate such bandwidth requirement, but such optimization occurs either at the cost of increased bandwidth-inefficiency and/or degradation of search quality. This paper proposes a data-parallel hardware/software mechanism for performing large-scale similarity search in-memory. We propose a novel algorithm to simplify the computation requirement for similarity search across various distance metrics through lightweight primitives to perform a fast and approximate data-parallel brute-force search on the entire vector space. We further build a memory system capable of executing the required operations to generate a distance metric per datapoints, which is then used to enable pruning as a post-processing step. We offer adequate software support for user control over the proposed system. By enabling such search-space pruning as a post-processing step, we achieve near-perfect recall across representative workloads while achieving orders of magnitude performance and energy improvement over state-of-the-art algorithmic approaches on million and billion-scale workloads.
Create a lesson
Metadata
- Categories
- cs.AR, cs.ET
- Comments
- 14 pages, 10 figures, 3 Tables
Related papers
RE-CAM: Readout-Enhanced Content-Addressable Memory for Quantitative Similarity Search
Shared title terminologycs.ARYi-Chun Liao, Dongyoung Lee, Jiazheng Chen et al.
WaferTrans: Enabling IOMMU-free Distributed Virtual Address Translation for Wafer-scale GPUs
Shared title terminologycs.ARXinru Tang, Jingxiang Hou, Guanghong Wu et al.
PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching
Shared title terminologycs.ARGeraldo F. Oliveira, Ahmet Caner Yüzügüler, Renzo Andri et al.
Lattice: Alleviating the Shared-Channel Bottleneck in Solid-State Drives to Enable Scalable In-Flash Processing
Shared title terminologycs.ARRakesh Nadig, Manos Frouzakis, Nika Mansouri Ghiasi et al.
Let2Gain: Efficient LLM Inference on 2.5D Chiplet Architecture using 2T Gain-Cell Memory
Shared title terminologycs.ARArkapravo Ghosh, XinXin Wang, Shuhan Liu et al.
ABLE: Anchor-Based Linear Equivalence for Reconstructing DRAM Address Mappings
Shared title terminologycs.ARJiajie Wen, Xin Xin, Hengyue Kang et al.