arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.05573cs.DBcs.AIcs.IR
收藏

MicroNN:一种设备端磁盘驻留可更新向量数据库

MicroNN: An On-device Disk-resident Updatable Vector Database

Apple(苹果公司)

Jeffrey Pound, Floris Chabert, Arjun Bhushan, Ankur Goswami, Anil Pacaci, Shihabur Rahman Chowdhury

AI总结:

MicroNN 是一种面向低资源设备端的嵌入式可更新向量数据库,通过磁盘高效索引和混合查询支持,在约10 MB内存下以不到7 ms实现百万级向量90%召回率的top-100最近邻搜索。

摘要:

在稠密向量集合上进行最近邻搜索在信息检索、检索增强生成(RAG)和内容排序中具有重要应用。在大规模向量集合上执行高效搜索是一个已被充分研究的问题,已有许多现有方法和开源实现。然而,大多数最先进的系统通常面向使用具有充足内存的大型服务器、不可更新的静态向量集合以及与其他搜索条件相隔离的最近邻搜索等场景。我们提出了 Micro Nearest Neighbour(MicroNN),这是一种嵌入式最近邻向量搜索引擎,专为低资源环境中的可扩展相似性搜索而设计。MicroNN 解决了设备端向量搜索问题,面向包含更新和混合搜索查询的真实工作负载,这些查询将最近邻搜索与结构化属性过滤器相结合。在这种场景下,内存高度受限,需要磁盘高效的索引结构和算法,并且需要支持持续的插入和删除。MicroNN 是一个可嵌入的库,能够以最少的资源扩展到大规模向量集合。MicroNN 已在生产环境中使用,并为设备端广泛的向量搜索用例提供支持。MicroNN 在公开的百万级向量基准上以约 10 MB 的内存占用,在不到 7 ms 的时间内检索 top-100 最近邻,召回率达到 90%。

英文摘要:

Nearest neighbour search over dense vector collections has important applications in information retrieval, retrieval augmented generation (RAG), and content ranking. Performing efficient search over large vector collections is a well studied problem with many existing approaches and open source implementations. However, most state-of-the-art systems are generally targeted towards scenarios using large servers with an abundance of memory, static vector collections that are not updatable, and nearest neighbour search in isolation of other search criteria. We present Micro Nearest Neighbour (MicroNN), an embedded nearest-neighbour vector search engine designed for scalable similarity search in low-resource environments. MicroNN addresses the problem of on-device vector search for real-world workloads containing updates and hybrid search queries that combine nearest neighbour search with structured attribute filters. In this scenario, memory is highly constrained and disk-efficient index structures and algorithms are required, as well as support for continuous inserts and deletes. MicroNN is an embeddable library that can scale to large vector collections with minimal resources. MicroNN is used in production and powers a wide range of vector search use-cases on-device. MicroNN takes less than 7 ms to retrieve the top-100 nearest neighbours with 90% recall on publicly available million-scale vector benchmark while using ~10 MB of memory.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑