Errpedia: Is Your Exact k-NN Vector Search Really Exact?
Yinuo Deng, Ying Zhang, Hanchen Wang, Wenjie Zhang
Abstract
Exact k-nearest-neighbor (k-NN) vector search is a common feature of vector libraries and database systems. It serves applications that require exact results and provides the ground truth for evaluating approximate search. However, floating-point rounding and overflow can cause an exact search to return mathematically incorrect top-k result sets. These errors can go unnoticed and affect downstream tasks that rely on exact results. We present Errpedia, a purpose-built dataset for testing the numerical correctness of exact vector search. Errpedia contains 1,616 queries across 21 error categories, with ground truth independently verified using exact rational arithmetic. We evaluate 20 widely used library and database configurations and find that every tested configuration returns mathematically incorrect top-10 result sets on at least 1 applicable query. Failures include misranking nearly equidistant vectors and returning incomplete results: 1 library omits all 10 exact matches to a query, and several systems return fewer than k neighbors. We release Errpedia as a reproducible benchmark for developers and researchers to test their implementations. The dataset is publicly available at https://github.com/dynos01/errpedia.
Create a lesson
Related papers
KatoANN: Enabling Near-Exact Vector Search at the Speed of Lossy Scans with CPU Matrix Engines
Shared title terminology · Soobin Cho, Gyuyeong Kim
Pelorus: Warped-Product Graph Indexing for Hyperbolic Vector Search
Shared title terminology · Wenxuan Xiao, Xu Cao
HorizANN: Elastically Scaling Vector Search with Ghost Edges
Shared title terminology · Talika Gupta, Yunqi Li, Aditya Kunte et al.
Authenticated Approximate Nearest Neighbor Search in Outsourced Vector Databases
Shared title terminology · Yuanhang Zhou, Xinyi Zhang, Cheng Xu et al.
Calibrated Early Termination with Bounded Optimality Gaps for Constrained Vector Search
Shared title terminology · Xinyu Zhang, Jingze Li, Baihua Zheng et al.
Per-Query Recall Guarantees for Approximate Nearest Neighbor Search in Dynamic Vector Databases
Shared title terminology · Woong-Kee Loh, Suan Lee