English

$\boldsymbol{Steiner}$-Hardness: A Query Hardness Measure for Graph-Based ANN Indexes

Databases 2024-08-27 v1

Abstract

Graph-based indexes have been widely employed to accelerate approximate similarity search of high-dimensional vectors. However, the performance of graph indexes to answer different queries varies vastly, leading to an unstable quality of service for downstream applications. This necessitates an effective measure to test query hardness on graph indexes. Nonetheless, popular distance-based hardness measures like LID lose their effects due to the ignorance of the graph structure. In this paper, we propose SteinerSteiner-hardness, a novel connection-based graph-native query hardness measure. Specifically, we first propose a theoretical framework to analyze the minimum query effort on graph indexes and then define SteinerSteiner-hardness as the minimum effort on a representative graph. Moreover, we prove that our SteinerSteiner-hardness is highly relevant to the classical Directed SteinerSteiner Tree (DST) problems. In this case, we design a novel algorithm to reduce our problem to DST problems and then leverage their solvers to help calculate SteinerSteiner-hardness efficiently. Compared with LID and other similar measures, SteinerSteiner-hardness shows a significantly better correlation with the actual query effort on various datasets. Additionally, an unbiased evaluation designed based on SteinerSteiner-hardness reveals new ranking results, indicating a meaningful direction for enhancing the robustness of graph indexes. This paper is accepted by PVLDB 2025.

Keywords

Cite

@article{arxiv.2408.13899,
  title  = {$\boldsymbol{Steiner}$-Hardness: A Query Hardness Measure for Graph-Based ANN Indexes},
  author = {Zeyu Wang and Qitong Wang and Xiaoxing Cheng and Peng Wang and Themis Palpanas and Wei Wang},
  journal= {arXiv preprint arXiv:2408.13899},
  year   = {2024}
}

Comments

Accepted by PVLDB Volume 17 (presented at 2025)

R2 v1 2026-06-28T18:23:22.809Z