TL;DR
FastPGT is a novel framework that accelerates parameter tuning for proximity graph indexes in vector databases by up to 2.37x. By generating batch recommendations and building multiple graphs simultaneously, it eliminates massive amounts of redundant distance computations during the graph construction phase without sacrificing search quality.
What Problem Does This Paper Address?
Vector databases rely heavily on Proximity Graphs (PGs)—such as HNSW and Vamana—to perform fast $k$-approximate nearest neighbor search ($k$-ANNS). However, a graph's search efficiency (Queries Per Second, or QPS) and accuracy (Recall) are highly sensitive to its index construction parameters.
Tuning these parameters typically involves two steps: parameter recommendation (picking a candidate parameter set) and parameter estimation (building the graph and testing its performance). Because graph construction scales superlinearly, this estimation step is incredibly slow, consuming over 98% of the total tuning time. Prior work focused entirely on making better recommendations, leaving the massive bottleneck of graph construction completely unaddressed.
Methods
FastPGT tackles the estimation bottleneck through a multi-pronged approach:
- Parameter Space Reduction: The authors mathematically prove (Theorem 1) that one of the key parameters in Relative Neighborhood Graphs ($R$, the number of intermediate search results) can simply be set equal to the search pool size ($L$), safely removing it from the tuning space.
- Batch Parameter Recommendation: They extend the state-of-the-art VDTuner framework using a new heuristic called $m$EHVI (multi-Objective Expected Hypervolume Improvement) to recommend a batch of $m$ promising parameters at once instead of just one.
- Simultaneous Graph Construction: Instead of building graphs sequentially, FastPGT builds the batch of graphs concurrently. It introduces a Deterministic Random Strategy (using consistent pseudo-random seeds for layer assignment and initialization) to maximize structural similarities between the graphs.
- Shared Computations (
mKANNS&mPrune): During concurrent execution, FastPGT caches distance calculations across different graph searches (mKANNS) and avoids redundant dominance checks during neighbor pruning (mPrune).
Datasets
The framework was evaluated on four standard high-dimensional benchmarks:
- Sift: 1 million 128-dimensional vectors (Image features)
- Gist: 1 million 960-dimensional vectors (Image features)
- Glove: 1.18 million 100-dimensional vectors (Text/Twitter embeddings)
- Msong: 992,272 420-dimensional vectors (Audio features)
No newly introduced benchmarks were presented.
Key Insights and Ideas
- The Construction Bottleneck: Profiling reveals that the "Search" and "Prune" phases dominate graph construction time, making up over 80–90% of the build time across HNSW, Vamana, and NSG.
- Structural Overlap: Graphs built with slightly different parameters share a massive amount of structural overlap (neighbor lists). By enforcing deterministic randomness during initialization, the authors intentionally maximize this overlap.
- Exploiting Redundancy: Because concurrent graphs are structurally similar, a search query or pruning step on a node in Graph A will compute the exact same vector distances as in Graph B. Caching these distances globally across the batch turns a massive amount of redundant $O(n^2)$ floating-point operations into simple $O(1)$ cache lookups.
Key Results
- Speedup: FastPGT achieves a 2.2x to 2.37x speedup over VDTuner when tuning HNSW, NSG, and Vamana on the high-dimensional Gist dataset.
- Computation Reduction: It slashes the number of distance computations drastically, performing only 29.2% to 50% of the distance calculations required by standard VDTuner on Gist.
- Tuning Quality: Despite the massive speedups, FastPGT matches or exceeds the tuning quality (the Pareto frontier of QPS vs. Recall) of baseline methods like VDTuner, OtterTune, and Random Search within the same time budget.
Limitations and Future Work
Not discussed in the paper.
Summary updated