Infinity Search: Approximate Vector Search with Projections on q-Metric Spaces
cs.IR, cs.LG, eess.SP, math.MG
Submitted: 2025-06-06
Updated: 2026-10-01
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: An ultrametric space or infinity-metric space is defined by a dissimilarity function that satisfies a strong triangle inequality in which every side of a triangle is not larger than the larger of the
Abstract
An ultrametric space or infinity-metric space is defined by a dissimilarity function that satisfies a strong triangle inequality in which every side of a triangle is not larger than the larger of the other two. We show that search in ultrametric spaces with a vantage point tree has worst-case complexity equal to the depth of the tree. Since datasets of interest are not ultrametric in general, we employ a projection operator that transforms an arbitrary dissimilarity function into an ultrametric space while preserving nearest neighbors. We further learn an approximation of this projection operator to efficiently compute ultrametric distances between query points and points in the dataset. We proceed to solve a more general problem in which we consider projections in q-metric spaces -- in which triangle sides raised to the power of q are smaller than the sum of the q-powers of the other two. Notice that the use of learned approximations of projected q-metric distances renders the search pipeline approximate. We show in experiments that increasing values of q result in faster search but lower recall. Overall, search in q-metric and infinity metric spaces is competitive with existing search methods.
Sources
- Totally bounded ultrametric spaces and locally finite trees
- Ultrametric Cluster Hierarchies: I Want 'em All!
- Properties of distance spaces with power triangle inequalities
- Optimization of Indexing Based on k-Nearest Neighbor Graph for Proximity Search in High-dimensional Data
- Understanding (dis)similarity measures
- Metric Representations of Network Data
- Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
- Tao: A Learning Framework for Adaptive Nearest Neighbor Search using Static Features Only
Related papers
- The Price of Isolation: Estimating the Ecosystem Cost of Symmetric Two-Sided A/B Testing
- SCAR: Semantic Continuity-Aware Retrieval for Efficient Context Expansion in RAG
- MixLoRA-DSI: Dynamically Expandable Mixture-of-LoRA Experts for Rehearsal-Free Generative Retrieval over Dynamic Corpora
- How Do LLM-Generated Texts Impact Term-Based Retrieval Models?
- MemSyco-Bench: Benchmarking Sycophancy in Agent Memory
- Training with Missed Targets in Generative Recommendation: Separating Supervision from Probability Competition