TL;DR
This paper introduces the Dynamic Edge Navigation Graph (DEG), a novel graph-based index designed for Hybrid Vector Queries (HVQ) on bimodal data (e.g., image-text pairs). Unlike existing methods that fix the modality weight parameter ($\alpha$) at index construction time, DEG dynamically adapts to any query-time $\alpha$ value without sacrificing accuracy or efficiency. It achieves this via a greedy Pareto frontier search, a dynamic edge pruning strategy with active ranges, and a novel edge seed selection method.
What Problem Does This Paper Address?
Bimodal data, such as image-text pairs or text-location data, is everywhere. To query this data effectively, researchers use Hybrid Vector Queries (HVQ), which calculate a similarity score based on a weighted sum of two independent vector distances:
$$\text{Dist} = \alpha \cdot \delta_e + (1-\alpha) \cdot \delta_s$$
Here, $\alpha$ is a query-specific parameter that dictates the user's preference (e.g., prioritizing semantic text similarity over geographic proximity).
The core challenge is that state-of-the-art Approximate Nearest Neighbor Search (ANNS) indexes, like Hierarchical Navigable Small World (HNSW) graphs, assume that distances between objects are fixed and pre-determined. Existing approaches either fix $\alpha=0.5$ during indexing (Fusion) or build separate indexes for each modality and merge them at query time (Merging). As shown in Figure 2, when the query-time $\alpha$ deviates from the index's fixed assumptions, performance degrades drastically because the geometric proximity properties of the graph break down.
Methods
The authors propose DEG, a graph-based ANNS index that maintains high performance across varying $\alpha$ values using three novel components:
- Greedy Pareto Frontier Search (GPS): Since $\alpha$ can be any arbitrary value between 0 and 1, finding the nearest neighbors for every possible weight is impossible. DEG treats index construction as a multi-objective optimization problem. The GPS algorithm iteratively explores "neighbors of neighbors" to find an approximate Pareto frontier (or skyline) of candidate neighbors that are optimal under different $\alpha$ combinations.
- Dynamic Edge Pruning Strategy: Standard graph indexes approximate a Relative Neighborhood Graph (RNG) to prune redundant edges (Figure 1b). DEG dynamically extends this by assigning an active range to each edge. An edge is only traversed at query time if the query's $\alpha$ falls within its active range, ensuring the active graph always satisfies the RNG property.
- Edge Seed Method: Traditional graph searches start from the center of the graph. However, the graph's center shifts drastically as $\alpha$ changes, leading to redundant parallel searches. DEG selects "edge seeds"—nodes furthest from the center across varying $\alpha$ values. At query time, the search automatically starts from the seed closest to the query, safely ignoring distant seeds.
Datasets
The authors evaluated DEG on five real-world datasets:
- OpenImage: 507K image-text pairs using ViT and BERT embeddings.
- Ins-SG: 1M Instagram posts from Singapore, pairing ViT image embeddings with 2D geographic coordinates.
- Howto100M: 1.2M video-text pairs using S3D video and BERT text embeddings.
- CC3M: 3.3M image-text pairs using ViT and BERT embeddings.
- Twitter-US: 10M tweets containing geo-locations and text descriptions (used specifically for scalability testing).
Key Insights and Ideas
- Framing Preference as Multi-Objective Optimization: Instead of guessing a fixed weight balance at index time, treating the two vector modalities as independent objectives guarantees that the true nearest neighbor for any query-time $\alpha$ resides within the multi-layer Pareto frontier.
- Graphs with "Dynamic Lifespans": By assigning an active interval to graph edges rather than altering the graph topology statically, the index can dynamically "shape-shift" at query time to maintain the crucial accuracy-efficiency trade-offs of Relative Neighborhood Graphs.
- The Virtue of Starting at the Edge: Counter-intuitively, starting a hybrid graph search from the boundaries (edge seeds) of the vector space is more efficient than starting from multiple approximate centers, as it naturally prevents overlapping, wasteful search paths.
Key Results
- Superior Trade-offs: DEG consistently outperformed all baselines (HNSWF, HNSWM, HNSWO) in Queries Per Second (QPS) vs. Recall@10 across all datasets and all $\alpha$ intervals.
- Robustness to Parameter Shifts: DEG's performance remains stable regardless of whether $\alpha$ is close to 0, 0.5, or 1. Its overall performance matches an "Oracle" approach (building a separate custom HNSW index for every single $\alpha$ value).
- Scalability: On the 10-million-object Twitter-US dataset, DEG successfully built its index in roughly 12 hours. In contrast, standard HNSW baselines failed to build within two days due to out-of-memory errors caused by HNSW’s multi-layer overhead on massive datasets.
- Negligible Overhead: Storing the active ranges as integers adds a negligible memory footprint compared to the high-dimensional vectors themselves, and DEG's indexing time remains comparable to standard single-index construction.
Limitations and Future Work
- Limited to Two Vectors: The current active range formulation relies on a 2D space (complementary weights $\alpha$ and $1-\alpha$). For queries involving more than two vectors, the active range becomes a complex hyperplane in higher dimensions, which is significantly harder to compute, store, and traverse.
- In-Memory Constraints: DEG is currently designed as an in-memory graph index. For production vector databases handling billion-scale datasets, the authors note that developing a disk-based version of DEG is a critical next step.
Summary updated