arXiv:2610.11563cs.DBOct 2026

Manuscript Offprint

arXiv:2610.11563

Grant: A Framework for Approximate Nearest Neighbor Search with Multi-Attribute Range Filters

Daichi Amagata

Abstract

Recently, academia and industry have considered the problem of approximate nearest neighbor search (ANNS) with filters. In this setting, each object consists of a high-dimensional vector and attribute values. Given a query vector, filters for attribute values, and k, this problem retrieves k vectors approximately nearest to the query vector among a set of objects passing the filters. This paper considers range filters, i.e., users can specify a range constraint for each attribute. Most existing works do not consider this setting, and they assume (i) only a single attribute or (ii) matching filters that require the same attribute values or categories. Existing techniques for these assumptions are not available for our setting or are trivially not efficient. Although standard solutions, such as pre-filter and post-filter, can handle our problem, they are also inefficient. Some works tackle the same problem as ours, but their techniques necessitate historical query workloads, which significantly limit practical use cases. To remove these limitations, this work proposes Grant, a novel framework that solves this problem efficiently while accepting arbitrary range filters and ANNS data structures. Grant can guarantee a search time sub-linear to the number of objects, which is not held by existing techniques. We conduct extensive experiments, and their results demonstrate that Grant outperforms existing techniques.

1 Introduction

Modern search engines increasingly rely on machine learning models that embed many types of objects, such as images and texts, into high-dimensional vectors. Due to this fact, the problem of similarity search in a high-dimensional space becomes more important in many fields, such as recommender systems [1, 2], information retrieval [6, 5, 8, 24, 23], databases [35, 44, 54, 45], artificial intelligence [27], and machine learning [3, 4]. For example, computing the exact nearest neighbor on large data with high dimensionality is computationally expensive, and many applications, such as RAG (Retrieval-Augmented Generation), allow approximate results [28]. Therefore, approximate nearest neighbor search (ANNS) has been studied extensively [7].

Nowadays, to enable making use of attribute information associated with objects, ANNS with attribute filters has been considered both in academia [51, 20, 48, 58, 53, 37] and industry (e.g., Alibaba [50], Apple [34], and Microsoft [57, 19]). As specified in these industrial works, the problem of ANNS with attribute filters is also important in many real-world Web applications. A typical example of this problem is that, in e-commerce scenarios, each user finds the products most similar to a given query vector among a set of objects satisfying attribute filters (e.g., price, rating, and production date). Similarly, RAG applications receive benefits from ANNS with attribute filters. For example, when a user wants to know health risk, he/she may write a prompt like “investigate what symptoms tend to appear for people aged from 40 to 50 and with blood pressure at least 140.” This script is transformed into an ANNS with range filters on age and blood pressure attributes, and the large language model obtains the answer from the retriever.

References (56)