CertEx: Exact Visual Retrieval at Scale by Certified Exclusion
Abstract
Exact -nearest-neighbor (kNN) search over image descriptors and embeddings underlies visual retrieval, near-duplicate detection, the evaluation of learned representations, and increasingly the memory of LLM agents. However, exhaustive search computes every distance at full precision, whereas approximate indexes return recall below one. We observe that exact search only needs a proof that each excluded vector cannot be a neighbor. Because such a proof only has to be conservative, it can be checked in low precision, much as the retina examines the whole scene at low resolution. We call this principle certified exclusion and realize it in an exact kNN method for GPUs, which we call CertEx. Specifically, CertEx stores a lower-bounding projection of each vector in half precision and folds a rounding certificate into the same tensor-core dot product, so that only the few vectors that the test keeps need exact distances. We prove that CertEx returns the exact kNN of every query. On sixteen datasets with up to 100M vectors, CertEx is exact for every query at 7.1 to 18.0 the throughput of the fastest cuVS search on one H100 (8.8 to 11.8 on an A100) and outperforms quantized and graph indexes whenever every query must be exact.
Create a lesson
Metadata
- Comments
- 30 pages, 12 figures
Related papers
SCALE: Improving Guidance-Free Visual Generation via Self-Contrastive Alignment for Likelihood Estimation
Shared title terminologycs.CVJiwan Hur, Dong-Jae Lee, Dongyeun Lee et al.
Kingfisher: Fast Personalized Visual Autoregressive Generation via Scale-Aware Prompt-Conditioned Scale Decomposition
Shared title terminologycs.CVDinh-Khoi Vo, Akihiro Sugimoto, Minh-Triet Tran et al.
WebVibe: Multimodal Interactive Website Generation via Reverse Synthesis and Visual Self-Distillation
Shared title terminologycs.CVTianxiang Jiang, Sheng Xia, Yilin Long et al.
Modality-Shift Contrastive Decoding for Temporally Grounded Audio-Visual Understanding
Shared title terminologycs.CVMinyeong Jeong, Yeonju Kim, Yong Man Ro
HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval
Shared title terminologycs.CVHongzhou Chen, Yuhao Wei, Lianghua He et al.
What Makes a Gavagai? Learning Visual Concepts from One Positive and Few Negatives
Shared title terminologycs.CVKatsuya Ogata, Kazuya Nishimura, Yuta Nakashima