CertEx:通过认证排除实现大规模精确视觉检索
CertEx: Exact Visual Retrieval at Scale by Certified Exclusion
AI总结:
提出CertEx方法,通过认证排除原理在GPU上实现精确kNN搜索,在16个含1亿向量的数据集上,其吞吐量达cuVS的7.1-18倍,性能优于量化与图索引。
摘要:
图像描述符和嵌入上的精确k近邻(kNN)搜索是视觉检索、近重复检测、学习表示评估以及LLM智能体记忆功能的基础。然而, exhaustive 搜索会以全精度计算所有距离,而近似索引的召回率低于1。我们发现,精确搜索仅需证明每个被排除的向量不可能是邻居,由于该证明只需具有保守性,因此可以用低精度检查,这类似于视网膜以低分辨率检查整个场景。我们将此原理称为认证排除,并在GPU上实现了一种精确kNN方法,即CertEx。具体而言,CertEx以半精度存储每个向量的下界投影,并将舍入证明融入同一张量核心点积中,因此仅需对测试保留的少数向量计算精确距离。我们证明CertEx会返回每个查询的精确kNN。在多达1亿个向量的16个数据集上,CertEx在单个H100上的吞吐量是最快的cuVS搜索的7.1倍至18.0倍,且在所有查询必须精确的情况下,其性能优于量化和图索引。
英文摘要:
Exact $k$-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$\times$ to 18.0$\times$ the throughput of the fastest cuVS search on one H100 (8.8$\times$ to 11.8$\times$ on an A100) and outperforms quantized and graph indexes whenever every query must be exact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。