Nanyang Technological University
Efficient approximate nearest neighbor search for hybrid vector and large-k queries
Abstract
dc:description.abstractThe rapid advancement of large-scale deep learning and generative AI techniques has made vectors pivotal to many real-world applications. This brings efficient vector management to the forefront of research, with Approximate Nearest Neighbor (ANN) Search as the core operation, which trades off minor accuracy for significantly improved query speed. Despite the development of numerous ANN algorithms, most are designed for settings where both data and queries are single vectors and aim to retrieve a small number of nearest neighbors, which is insufficient for the diverse needs of real-world applications. To advance the practical use of ANN algorithms, this thesis investigates hybrid vector queries and large-k ANN queries, which have broad practical applications but remain underexplored within the ANN community. First, for hybrid vector queries, which calculate similarity scores for objects represented by two vectors using a weighted sum of individual vector similarities, a query-specific parameter α controls the weight. Existing methods build ANN indexes with a fixed α, causing significant performance degradation when α varies across different query needs. To address this, we propose a novel graph-based ANN index, the Dynamic Edge Navigation Graph (DEG), which stores edges suitable for different α values during the indexing phase and dynamically selects edges for routing based on the query’s α at query time, thereby maintaining efficiency and accuracy across varying α. Second, for embedding-based spatial keyword queries, a special case of hybrid vector queries where one vector encodes geo-location and ground-truth results are available for training, various text models can generate embeddings and build relevance models for improved effectiveness. However, no efficient indexes have been developed to accelerate the top-k search process of these queries. To fill this gap, we propose LIST, a novel machine learning-based ANN index that utilizes a learning-to-cluster technique to group relevant queries and objects together while separating irrelevant ones, thereby accelerating top-k search. We also introduce a learning-based spatial relevance model to integrate with various text relevance models to form a relevance model for re-ranking objects retrieved by LIST. Third, large-k ANN queries that aim to retrieve a large number of nearest neighbors remain underexplored, despite their numerous real-world applications. Existing ANN methods face significant performance degradation for such queries. To address this, we first investigate the reasons for the performance degradation of quantization-based ANN indexes: (1) the inefficiency of existing top-k collectors, which incurs significant overhead in candidate maintenance, and (2) the reduced pruning effectiveness of quantization methods, which leads to a costly re-ranking process. To address this, we propose a novel bucket-based result collector (BBC) to enhance the efficiency of existing quantization-based ANN indexes for large-k ANN queries. BBC introduces two key components: (1) a bucket-based result buffer that organizes candidates into buckets by their distances to the query. This design reduces ranking costs and improves cache efficiency, enabling high-performance maintenance of a candidate superset and a lightweight final selection of top-k results. (2) two re-ranking algorithms tailored for different types of quantization methods, which accelerate their re-ranking process by reducing either the number of candidate objects to be re-ranked or cache misses.
Degree
thesis:*- College dc:contributor.school
- College of Computing and Data Science
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Yin, Ziqi
- Advisor dc:contributor.supervisor
-
- Gao Cong
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/10356/210724