CAIMS: Scalable Cross-Array In-Memory Search
Yi-Chun Liao, Liu Liu, Ruiyang Qin, Yiran Chen, X. Sharon Hu
Abstract
Search, especially top-k similarity search, plays a vital role in many applications, but its performance can be severely limited by memory access overhead. In-memory search (IMS), an alternative to CPU/GPU-based approaches, exploits massive parallelism within a content-addressable memory (CAM) array to perform search in situ and provides both low latency and high energy efficiency. However, the capacity of a single CAM array is often insufficient for modern workloads, requiring data to be distributed across multiple arrays. Deploying scalable top-k similarity search across multiple CAM arrays poses a fundamental problem that existing designs fail to address: how to accurately and efficiently reduce local binary match results to global top-k results. This work introduces CAIMS, a cross-array IMS framework that is agnostic to memory technologies and applications, enabling scalable and efficient top-k similarity search while preserving accuracy. To enable accurate top-k result reduction, CAIMS leverages the existing threshold match functionality with a combined offline and online parameter selection approach to transform local binary match results that lack globally comparable similarity information into global coarse-grained similarity scores. To further improve efficiency, CAIMS conducts hierarchical reduction and transfers only the selection results and necessary control signals with lightweight local peripherals. Implemented on a 3D NAND Flash model and demonstrated using the retrieval phase of retrieval-augmented generation, CAIMS improves throughput by up to 22.3×/10.1× and energy efficiency by 426.6×/23.7× compared to the server-class CPU baseline and prior 3D NAND Flash accelerators, respectively, while maintaining comparable accuracy.
Create a lesson
Related papers
Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators
Shared title terminology · Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi et al.
RE-CAM: Readout-Enhanced Content-Addressable Memory for Quantitative Similarity Search
Shared title terminology · Yi-Chun Liao, Dongyoung Lee, Jiazheng Chen et al.
CHARMING: Parallel Edge AI Acceleration Across Tensor Processing and In-Memory Computation
Shared title terminology · Md Omar Faruque, Jingang Jin, João Paulo C. de Lima et al.
Continuous Kinetic Model of Counterion-Mediated Redox Switching in 14-Bit Molecular Memristors for Analog In-Memory Computing
Shared title terminology · Logan Larsh, Dhiman Biswas, Nazmus Saadat As-Saquib et al.
SMART-AIMC: Sensitivity-Aware Mixed ADC Resolution with Fine-Grained Tunability for Analog In-Memory Computing
Shared title terminology · Yung-Chin Chen, Ourania Stouraiti, Naveen Verma
Rethinking ANNS on Commodity PIM: PIM-Native Vector Search with Cooperative Filtering
Shared title terminology · Dawei Guo, Yizou Chen, Fan Yang et al.