CAIMS: Scalable Cross-Array In-Memory Search
Organizations: Duke University, Durham, NC, USA · University of Notre Dame, Notre Dame, IN, USA · Villanova University, Villanova, PA, USA
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 and energy efficiency by compared to the server-class CPU baseline and prior 3D NAND Flash accelerators, respectively, while maintaining comparable accuracy.
Figures & tables
| Dataset | #queries | #candidates | IVF( n_list / n_probe ) |
|---|---|---|---|
| BEIR-SciFact | 300 | 5,183 | 64 / 16 |
| BEIR-SciDocs | 1,000 | 25,657 | 128 / 16 |
| BEIR-Quora | 10,000 | 522,931 | 512 / 32 |
| BEIR-NQ | 3,452 | 2,681,468 | 1024 / 64 |
| DPR-NQ | 3,610 | 21,015,324 | 4096 / 256 |
| DPR-TQA | 11,313 | 21,015,324 | 4096 / 256 |
| Device | Description |
|---|---|
| CPU | Intel Xeon Gold 6530, SMT on |
| DRAM | 8 64GB DDR5-4800 |
| SSD | 8 channels, 16 chips/channel, 2 planes/chip, 128 Kb/page, 5.8 pJ/bit transfer energy [ 26 ] , 25W power budget |
| Dataset | CPU-Based Brute-Force Search | CPU-Based IVF | TVLSI2026 [ 26 ] | CAIMS | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BEIR-SciFact | 97.0% / | 11063.8 / | 21.2 mJ | 94.7% / | 64840.8 / | 3.9 mJ | Not Provided | 95.0% / | 625.0 / | 0.2 mJ | ||
| BEIR-SciDocs | 91.5% / | 4285.1 / | 69.6 mJ | 91.1% / | 27656.3 / | 9.5 mJ | Not Provided | 88.8% / | 625.0 / | 0.2 mJ | ||
| BEIR-Quora | 99.9% / | 158.8 / | 1884.1 mJ | 99.6% / | 1282.3 / | 247.6 mJ | Not Provided | 99.9% / | 625.0 / | 0.7 mJ | ||
| BEIR-NQ | 94.0% / | 31.0 / | 9657.5 mJ | 91.7% / | 238.8 / | 1343.1 mJ | Not Provided | 92.0% / | 625.0 / | 3.5 mJ | ||
| DPR-NQ | 89.1% / | 3.6 / | 83895.7 mJ | 88.7% / | 28.0 / | 11602.8 mJ | 85.8% / | 169.2 / | 609.8 mJ | 88.2% / | 625.0 / | 27.2 mJ |
| DPR-TQA | 86.2% / | 3.9 / | 77785.0 mJ | 85.9% / | 30.9 / | 10545.3 mJ | 84.5% / | 62.1 / | 643.7 mJ | 84.0% / | 625.0 / | 27.2 mJ |
Compute-in-Memory
Compute-in-memory (CIM) performs computation within or beside memory arrays to reduce data movement and accelerate AI workloads.
See all 66 papers