RE-CAM: Readout-Enhanced Content-Addressable Memory for Quantitative Similarity Search
Yi-Chun Liao, Dongyoung Lee, Jiazheng Chen, Tergel Molom-Ochir, Tomohisa Kawakami, Tania Roy, Ik-Joon Chang, X. Sharon Hu, Hai "Helen" Li, Yiran Chen
Abstract
Similarity search is essential to many applications but incurs massive data movement when executed on conventional architectures. Content-addressable memory (CAM) is a promising hardware substrate, as it allows similarity search directly in the CAM array, minimizing data movement and offering both low latency and high energy efficiency. However, conventional CAM array readout produces only binary match results, discarding quantitative similarity information that could be further exploited. Extracting this information requires interpreting the CAM array output voltage that evolves during a CAM search, making the sensing timestamp a crucial design variable alongside the reference voltage and decoding parameter. In this work, we propose RE-CAM, a readout enhancement framework for CAM that is agnostic to memory technology and application, enabling CAM array readout to approximate linear and nonlinear functions with one CAM search. By reusing the comparators to sense the time-varying output voltage multiple times, jointly optimizing the three design variables under system constraints and hardware nonidealities, and co-designing the optimization algorithm and reconfigurable hardware, RE-CAM achieves accurate approximation with low energy and area overhead without introducing a readout throughput bottleneck. Across linear, piecewise-linear, sigmoid, and exponential functions, RE-CAM reduces normalized root mean square error by 10.89% to 24.34% for general approximation and 29.43% to 46.73% when exploiting dataset distribution, compared to a shared uniform-reference ADC baseline with the same comparison budget. Relative to the same baseline, RE-CAM also achieves 8× higher search throughput while reducing energy per search and area by 47% and 39%, respectively.
Create a lesson
Related papers
CAIMS: Scalable Cross-Array In-Memory Search
Shared title terminology · Yi-Chun Liao, Liu Liu, Ruiyang Qin et al.
Rethinking ANNS on Commodity PIM: PIM-Native Vector Search with Cooperative Filtering
Shared title terminology · Dawei Guo, Yizou Chen, Fan Yang et al.
Scalable fault vulnerability analysis for ReRAM-based process-in-memory CNN accelerators
Shared title terminology · Aniseh Dorostkar, Hamed Farbeh, Hamid R. Zarandi et al.
Mitigating Row Buffer Contention Through Multiple Row Buffer (MRB) DRAM
Shared title terminology · K Chitra, Arjun Dey, Aryabartta Sahu et al.
Do Apple M-Series Processors Enforce the Compound Memory Model? Sequential and Parallel Composition of Arm and TSO
Shared title terminology · Vijay Nagarajan
Chimera: A Configurable LLM Decode Accelerator Architecture with Compute-Memory-Floorplan Co-Design for HBM-Equipped Multi-Die FPGAs
Shared title terminology · Zhiheng Chen, Yifan Zhang, Yu-An Chou et al.