DARTH: Declarative Recall Through Early Termination for Approximate Nearest Neighbor Search
Approximate Nearest Neighbor Search (ANNS) presents an inherent tradeoff between performance and recall (i.e., result quality). Each ANNS algorithm provides its own algorithm-dependent parameters to allow applications to influence the recall/performance tradeoff of their searches. This situation is doubly problematic. First, the application developers have to experiment with these algorithm-dependent parameters to fine-tune the parameters that produce the desired recall for each use case. This process usually takes a lot of effort. Even worse, the chosen parameters may produce good recall for some queries, but bad recall for hard queries. To solve these problems, we present DARTH, a method that uses target declarative recall. DARTH uses a novel method for providing target declarative recall on top of an ANNS index by employing an adaptive early termination strategy integrated into the search algorithm. Through a wide range of experiments, we demonstrate that DARTH effectively meets user-defined recall targets while achieving significant speedups, up to 14.6x (average: 6.8x; median: 5.7x) faster than the search without early termination for HNSW and up to 41.8x (average: 13.6x; median: 8.1x) for IVF.
Authors
- Manos Chatzakis (ORCID: https://orcid.org/0000-0002-9616-6210)
- Themis Palpanas (ORCID: https://orcid.org/0000-0002-8031-0265)
- Yannis Papakonstantinou (ORCID: https://orcid.org/0009-0007-6360-9496)
Institutions
- Google (United States) (US)
- Sorbonne Paris Cité (FR)
Publication Details
- Journal
- Proceedings of the ACM on Management of Data
- Published
- 2025-09-22
- DOI
- https://doi.org/10.1145/3749160
- Citations
- 1
- Primary Topic
- Advanced Image and Video Retrieval Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.28