Optimizing Matrix-Vector Operations With CGLA for High-Performance Approximate k-NN Search
In this paper, we propose a novel approach to accelerating approximate k-nearest neighbor (k-NN) search—a crucial operation in modern vector databases such as OpenSearch, ElasticSearch, Pinecone, and Milvus. Our method specifically targets the post-clustering phase in the inverted file (IVF) technique, where the bulk of computational effort is devoted to matrix-vector (MV) multiplication. The primary innovation lies in the optimization technique known as IMAX3—a Coarse-Grained Linear Array (CGLA) —which effectively leverages local memory to retain vectors between queries. This approach eliminates the need to reload vectors for subsequent queries, thereby minimizing memory movement and significantly reducing latency. Experimental evaluations demonstrate that, when excluding overhead, IMAX3 achieves up to a 54.9× speedup for repeat queries compared to the initial execution—substantially outperforming conventional methods and making our solution highly suitable for real-time vector search applications. Moreover, relative to the RTX 4090, we achieve an energy-delay product (EDP) reduction of up to 498.41× and on average 185.23×.
Authors
- D. Y. Kim (ORCID: https://orcid.org/0009-0009-8737-1122)
- Yasuhiko Nakashima (ORCID: https://orcid.org/0000-0002-9457-5061)
Institutions
- Nara Institute of Science and Technology (JP)
Publication Details
- Journal
- IEEE Access
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/access.2025.3582825
- Primary Topic
- Fuzzy Logic and Control Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Japan Society for the Promotion of Science
- Japan Science and Technology Agency