Cosmos: A CXL-Based Full In-Memory System for Approximate Nearest Neighbor Search
Retrieval-Augmented Generation (RAG) is crucial for improving the quality of large language models by injecting proper contexts extracted from external sources. RAG requires high-throughput, low-latency Approximate Nearest Neighbor Search (ANNS) over billion-scale vector databases. Conventional DRAM/SSD solutions face capacity/latency limits, whereas specialized hardware or RDMA clusters lack flexibility or incur network overhead. We present <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">COSMOS</small>, integrating general-purpose cores within CXL memory devices for full ANNS offload and introducing rank-level parallel distance computation to maximize memory bandwidth. We also propose an adjacency-aware data placement that balances search loads across CXL devices based on inter-cluster proximity. Evaluations on SIFT1B and DEEP1B traces show that <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">COSMOS</small> achieves up to 6.72× higher throughput than the baseline CXL system and 2.35× over a state-of-the-art CXL-based solution, demonstrating scalability for RAG pipelines.
Authors
- Taeksang Song (ORCID: https://orcid.org/0009-0001-2958-6303)
- Hongsuk Shim (ORCID: https://orcid.org/0000-0003-1145-1707)
- Seoyoung Ko (ORCID: https://orcid.org/0000-0002-9315-920X)
- Si-Dong Roh (ORCID: https://orcid.org/0000-0001-5961-948X)
- Minyong Yoon (ORCID: https://orcid.org/0009-0003-0529-8184)
- Jung Ho Ahn (ORCID: https://orcid.org/0000-0003-1733-1394)
- Jinin So (ORCID: https://orcid.org/0000-0002-7569-3505)
- Sungmin Yun (ORCID: https://orcid.org/0000-0002-5682-2535)
- Wanju Doh (ORCID: https://orcid.org/0000-0002-8145-253X)
- Yongsuk Kwon (ORCID: https://orcid.org/0000-0002-1956-4629)
- Sangsoo Park (ORCID: https://orcid.org/0000-0002-9617-6312)
Institutions
- Seoul National University (KR)
- Samsung (South Korea) (KR)
Publication Details
- Journal
- IEEE Computer Architecture Letters
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/lca.2025.3570235
- Citations
- 4
- Primary Topic
- Advanced Image and Video Retrieval Techniques
- Type
- article
- Field-Weighted Citation Impact
- 5.10