TL;DR
MINT (Multi-vector search Index TuNer) is a novel framework that automates index selection for multi-vector databases, which are increasingly common in multi-modal AI applications (e.g., searching by both text and image). By intelligently choosing a mix of single-column and multi-column indexes, MINT achieves a 2.1x to 8.3x speedup in search latency compared to traditional methods while strictly adhering to storage and accuracy constraints.
What Problem Does This Paper Address?
In modern AI, an "item" in a database is rarely just one vector. A product in an e-commerce store might be represented by a text embedding, a visual embedding, and a category feature vector. Searching across these is called multi-vector search.
Currently, developers face a "pick your poison" scenario for indexing these databases:
- One-index-per-query: Build a custom index for every possible combination of features. This is fast but consumes massive amounts of storage and takes forever to build.
- One-index-per-column: Build one index for each feature and merge results at query time. This saves space but is slow and often results in poor accuracy (recall) because the top results for individual features might not be the top results for the combined score.
MINT addresses the lack of an automated "middle ground"—a way to tune indexes specifically for multi-vector workloads to balance speed, storage, and accuracy.
Methods
The authors propose a framework consisting of two main modules:
- The Query Planner: Given a set of existing indexes, how should we answer a specific query to minimize cost? The authors prove this is an NP-hard problem. They solve it using a Dynamic Programming (DP) approach and a search algorithm that focuses on "relevant" rankings (extended-k) to find the optimal plan for retrieving and re-ranking candidates.
- The Configuration Searcher: This module decides which indexes to build for the entire workload. It uses a Beam Search algorithm to navigate the astronomical number of possible index combinations, selecting the set that minimizes total workload latency within a storage budget.
To make this efficient, MINT doesn't build full indexes to test them. Instead, it uses lightweight estimators trained on just 1% of the data. It uses simple linear models to predict search cost (distance computations) and logarithmic models to predict recall.
Datasets
The researchers evaluated MINT using a variety of high-dimensional vector datasets:
- Semi-synthetic Workloads: Created by combining popular single-feature datasets like GloVe (text), SIFT1M (images), Deep1M, Music, and Yandex Text-to-Image.
- Real-world "News" Dataset: 100,000 rows of BBC News data with four distinct embeddings (Title, Description, Content, and Image) generated using CLIP and Nomic-BERT models.
Key Insights and Ideas
- The Power of Multi-Column Indexes: The "aha moment" is that indexing two or three columns together (e.g., Text + Image) provides much higher quality candidates than searching them separately. This drastically reduces the number of items that need to be "re-ranked," which is the primary bottleneck in multi-vector search.
- Predictability of Complexity: Even though graph-based indexes like HNSW and DiskANN are complex, the authors found that their performance characteristics (cost and recall) are remarkably predictable using simple mathematical models and small data samples.
- NP-Hardness Proofs: The paper provides formal proofs that both query planning and index selection in this domain are NP-hard, providing a theoretical foundation for why simple heuristics often fail and why their sophisticated search algorithms are necessary.
Key Results
- Significant Speedups: MINT consistently outperformed the "one-index-per-column" baseline (used by systems like Milvus or VBase), providing 2.1x to 7.2x speedup using HNSW indexes and 2.1x to 8.3x using DiskANN.
- Near-Optimal Latency: MINT's latency was often close to the "one-index-per-query" approach (the theoretical lower bound for latency) while using 33% to 50% less storage.
- Efficiency: MINT can recommend an optimized index configuration for millions of vectors within minutes, making it practical for real-world production environments.
- Scalability: The framework scales linearly with the number of queries in a workload and handles varying storage constraints gracefully.
Limitations and Future Work
- Model Complexity: The current cost and recall estimators are relatively simple (linear/logarithmic). The authors suggest that more sophisticated machine learning models could provide even tighter estimates.
- Index Variety: The study focused on HNSW and DiskANN. Future work could extend MINT to other popular index types like IVF (Inverted File Index) or PQ (Product Quantization).
- Storage Granularity: The current storage constraint is based on the number of indexes. A more granular model accounting for the actual byte-size of different index types would be a valuable improvement.
Summary updated