arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.06121cs.IR
收藏

kANNolo: 甜美顺滑的近似k近邻搜索

kANNolo: Sweet and Smooth Approximate k-Nearest Neighbors Search

University of Pisa(比萨大学);ISTI-CNR(意大利国家研究委员会信息科学与技术研究所)

Leonardo Delfino, Domenico Erriquez, Silvio Martinico, Franco Maria Nardini, Cosimo Rulli, Rossano Venturini

AI总结:

提出基于Rust的模块化ANN库kANNolo,通过可组合架构支持稠密/稀疏向量,集成多种相似度度量、量化技术和索引结构,兼顾性能与易用性。

摘要:

近似最近邻(ANN)搜索在推荐系统和信息检索等多个应用中是一项关键任务。当前最先进的ANN库虽然注重性能,但往往缺乏模块化和易用性。这导致它们不完全适合快速原型设计和研究思路测试,而这是一个需要支持的重要特性。我们通过引入kANNolo来解决这些限制,这是一个用Rust编写的新型研究导向ANN库,旨在有效结合可用性与性能。kANNolo为ANN搜索引入了完全可组合的架构,支持稠密和稀疏向量表示。它使研究人员能够在单一统一框架内无缝混合和匹配不同的相似度度量、向量量化技术(例如乘积量化)和索引结构(例如HNSW)。这些功能通过Rust trait进行管理,允许抽象处理共享行为。这种抽象确保了灵活性,并便于新组件的轻松集成。在这项工作中,我们详细介绍了kANNolo的架构,并证明其灵活性不会影响性能。实验分析表明,kANNolo在速度-精度权衡方面达到了最先进的性能,同时允许快速简便的原型设计,从而使kANNolo成为推进ANN研究的宝贵工具。源代码可在GitHub上获取:this https URL。

英文摘要:

Approximate Nearest Neighbors (ANN) search is a crucial task in several applications like recommender systems and information retrieval. Current state-of-the-art ANN libraries, although being performance-oriented, often lack modularity and ease of use. This translates into them not being fully suitable for easy prototyping and testing of research ideas, an important feature to enable. We address these limitations by introducing kANNolo, a novel research-oriented ANN library written in Rust and explicitly designed to combine usability with performance effectively. kANNolo introduces a fully composable architecture for ANN search that supports both dense and sparse vector representations. It enables researchers to seamlessly mix and match different similarity measures, vector quantization techniques (e.g., Product Quantization), and index structures (e.g., HNSW) within a single unified framework. These functionalities are managed through Rust traits, allowing shared behaviors to be handled abstractly. This abstraction ensures flexibility and facilitates an easy integration of new components. In this work, we detail the architecture of kANNolo and demonstrate that its flexibility does not compromise performance. The experimental analysis shows that kANNolo achieves state-of-the-art performance in terms of speed-accuracy trade-off while allowing fast and easy prototyping, thus making kANNolo a valuable tool for advancing ANN research. Source code available on GitHub: https://github.com/TusKANNy/kannolo.

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

↑