TL;DR
This paper introduces a theoretical framework and practical algorithm for multi-vector nearest neighbor search, enabling efficient and accurate retrieval for complex data representations like those used in modern NLP models. By adapting existing graph-based search structures to handle non-metric similarity functions, they achieve state-of-the-art performance, significantly improving recall for challenging multi-vector search tasks.
What Problem Does This Paper Address?
Modern information retrieval, especially in areas like natural language processing, is moving beyond simple single-vector representations for queries and documents. The "multi-vector" paradigm, popularized by models like ColBERT, represents data as sets of vectors, allowing for more nuanced semantic matching. This approach, while powerful, comes with a significant computational and storage cost. A key challenge is efficiently searching these multi-vector representations, as traditional nearest neighbor search algorithms, often designed for single vectors and metric distances, struggle with the complexity and non-metric nature of multi-vector similarity functions like Chamfer distance. This paper aims to bridge this gap by developing efficient search algorithms that can handle these complex similarities with theoretical guarantees.
Methods
The core of this work lies in adapting the DiskANN algorithm, a popular and efficient single-vector nearest neighbor search structure, to handle multi-vector similarities. The authors achieve this by:
- Formalizing "k-Quasimetrics": They introduce a generalized notion of distance called "k-quasimetric" to encompass a broader range of non-metric similarity functions, including the Chamfer distance. This theoretical extension is crucial for applying existing graph-based search techniques.
- $\alpha$-Reachable Graphs for k-Quasimetrics: They extend the concept of $\alpha$-reachable graphs, a key component of DiskANN, to work with k-quasimetrics. This involves proving theoretical bounds on the graph construction and search complexity.
- Black-Box Adaptation of DiskANN: The practical implementation treats the underlying similarity computation as a black box. By substituting the single-vector metric with their k-quasimetric function, they leverage the existing DiskANN infrastructure for multi-vector search.
Datasets
The authors evaluated their approach on several standard datasets for information retrieval:
- MS MARCO
- Quora
- NQ (Natural Questions)
- HotpotQA
These datasets were used to generate embeddings and evaluate the performance of their proposed method against existing state-of-the-art approaches.
Key Insights and Ideas
- Non-metric similarities are a major hurdle: The paper highlights that many advanced multi-vector similarity measures (like Chamfer) are not true metrics, violating properties like the triangle inequality. This breaks the theoretical underpinnings of many existing search algorithms.
- Generalization is key: By introducing the "k-quasimetric" concept, they provide a unified theoretical framework that can handle a wide range of non-metric similarities, making their approach broadly applicable.
- DiskANN is surprisingly adaptable: The success of adapting DiskANN, a structure designed for single vectors, to multi-vector search by simply swapping out the distance function demonstrates the robustness and flexibility of graph-based indexing.
- A new recall metric is needed for large-scale search: The authors introduce "100Recall@100" as a more relevant metric for large-scale systems, arguing that optimizing for a few highly relevant results (as in 1Recall@100) is insufficient for practical applications where users expect a broad set of relevant results.
Key Results
- Theoretical Guarantees: They prove that their adapted DiskANN algorithm can achieve $(1+\epsilon)$-approximate nearest neighbor search for k-quasimetric functions with sublinear query time.
- Empirical Performance:
- Their proposed method, "Chamfer-DiskANN," marginally outperforms the prior state-of-the-art (MUVERA) on the 1Recall@100 benchmark.
- Crucially, on the more challenging 100Recall@100 metric, Chamfer-DiskANN achieves at least 61% more recall than MUVERA across all datasets and QPS settings.
- Efficiency: The approach is simpler than prior methods, avoiding additional training or embedding computation overhead.
Limitations and Future Work
- Hardware Acceleration: The authors acknowledge that computing Chamfer distance is computationally intensive. They suggest offloading distance computations to GPUs as a promising avenue for improving latency.
- Reducing Input Sizes: While naive sampling of input vectors did not improve performance in their experiments, they believe more nuanced, data-dependent sampling strategies could be beneficial, provided they are carefully balanced with computational efficiency.
- Generalizability to other non-metric similarities: While their framework is general, further exploration of its performance on a wider array of non-metric similarity functions would be valuable.
Summary updated