|国家预印本平台
首页|Accelerating High-Dimensional Nearest Neighbor Search with Dynamic Query Preference

Accelerating High-Dimensional Nearest Neighbor Search with Dynamic Query Preference

Accelerating High-Dimensional Nearest Neighbor Search with Dynamic Query Preference

来源:Arxiv_logoArxiv
英文摘要

Approximate Nearest Neighbor Search (ANNS) is a crucial operation in databases and artificial intelligence. Current graph-based ANNS methods, such as HNSW and NSG, have shown remarkable performance but are designed under the assumption of a uniform query distribution. However, in practical scenarios, user preferences and query temporal dynamics lead to some queries being searched for more frequently than others. To fully utilize these characteristics, we propose DQF, a novel Dual-Index Query Framework. This framework comprises a dual-layer index structure and a dynamic search strategy based on a decision tree. The dual-layer index structure comprises a hot index for high-frequency nodes and a full index for the entire dataset, allowing for the separate management of hot and cold queries. Furthermore, we propose a dynamic search strategy that employs a decision tree to adapt to the specific characteristics of each query. The decision tree evaluates whether a query is of the high-frequency type to detect the opportunities for early termination on the dual-layer, avoiding unnecessary searches in the full index. Experimental results on four real-world datasets demonstrate that the Dual-Index Query Framework achieves a significant speedup of 2.0-5.7x over state-of-the-art algorithms while maintaining a 95% recall rate. Importantly, it does not require full index reconstruction when query distributions change, underscoring its efficiency and practicality in dynamic query distribution scenarios.

Yunjun Gao、Ruijie Zhao、Zhonggen Li、Baihua Zheng、Yifan Zhu、Zhaoqing Chen

计算技术、计算机技术

Yunjun Gao,Ruijie Zhao,Zhonggen Li,Baihua Zheng,Yifan Zhu,Zhaoqing Chen.Accelerating High-Dimensional Nearest Neighbor Search with Dynamic Query Preference[EB/OL].(2025-08-10)[2025-08-24].https://arxiv.org/abs/2508.07218.点此复制

评论