TL;DR
FROG introduces a globally aware, vertex-centric index design for range-filtered approximate nearest neighbor search (RFANNS) on GPUs. By replacing fragmented local subgraphs with a unified hierarchy of range-diverse neighbor candidates, FROG achieves up to 37.7× higher query throughput than CPU baselines and up to 14.8× faster index construction than existing GPU methods.
What Problem Does This Paper Address?
Vector databases frequently need to handle hybrid queries that combine high-dimensional vector similarity with structured metadata constraints—for instance, finding visually similar products within a specific price range or videos within a certain time interval. This operation is known as Range-Filtering Approximate Nearest Neighbor Search (RFANNS).
While proximity graphs excel at unconstrained vector search, adding range filters on CPUs hits severe memory bandwidth and scalability walls (as shown in Figure 1). Transitioning to GPUs isn't trivial: naive pre- or post-filtering approaches are highly sensitive to how selective the filter is, often wasting massive computational effort. Meanwhile, existing specialized GPU methods partition data into isolated local subgraphs, causing long search paths and redundant distance calculations when query ranges span across partitions.
Methods
FROG abandons the traditional subgraph-centric partitioning approach in favor of a globally aware, vertex-centric architecture optimized for the Single Instruction, Multiple Threads (SIMT) nature of GPUs.
- Vertex-Centric Index Structure: FROG organizes data using a segment-tree hierarchy over sorted attribute ranks. Instead of storing localized subgraphs, each object maintains a fixed-size block of $m$ Expansion Neighbor Candidates (ENCs) per tree layer, materialized in a dense, flat array optimized for coalesced GPU memory access.
- Fusion Distance Criterion: To select high-quality ENCs and mitigate the boundary effects of rigid segments, FROG introduces a novel fusion distance. This metric jointly incorporates both vector proximity and normalized attribute distance, ensuring that candidates closer in the attribute space can be selected even if they are slightly further away in vector space.
- Bottom-Up Parallel Construction: The index is built from the leaves up, concurrently across segments. To accelerate neighbor routing during construction, FROG builds temporary vector-distance proximity graphs that are overwritten in place as the algorithm moves up the tree layers. An early-termination strategy governed by a "patience" parameter prevents redundant graph traversals.
- SIMT-Aware Query Processing: At query time, FROG uses hotspot localization to dynamically activate only the tree layers matching the query range granularity. It then leverages warp primitives (
__ballot_sync,__popc) for control-flow compaction to pack valid candidates tightly into active threads. Finally, it employs lazy hash checking, deferring expensive duplicate checks until right before distance evaluation to minimize warp divergence.
Datasets
The authors evaluated FROG across six diverse, large-scale datasets:
- Deep10m: 10 million vectors (96 dimensions, image data)
- Audio: 1 million vectors (128 dimensions, audio data)
- SIFT: 1 million vectors (128 dimensions, image data)
- Crawl: ~2 million vectors (300 dimensions, text data)
- GIST: 1 million vectors (960 dimensions, image data)
- Wiki: 1 million vectors (2048 dimensions, multimodal image & text data)
Queries were tested under a mixed-selectivity workload as well as three fixed-selectivity settings ($2^{-2}$, $2^{-5}$, and $2^{-8}$) representing large, medium, and small search ranges.
Key Insights and Ideas
- Global Awareness Beats Local Optima: Traditional methods focus on building optimal local subgraphs and linking them together. FROG demonstrates that a vertex-centric approach focusing on globally aware candidate pools yields much shorter search trajectories and avoids the slow convergence phases typical of fragmented graphs.
- The "Expensive Predicates Last" GPU Trap: In standard CPU software engineering, it is best practice to evaluate cheap predicates before expensive ones (like hash table lookups). On GPUs, however, doing this inside a warp causes massive thread idling and divergence. FROG's "lazy hash check" counterintuitively delays duplicate checking until after candidate compaction, ensuring that the expensive hash operations are packed into fully utilized warps.
- Fusion Distance Trade-offs: Incorporating attribute distance slightly distorts pure vector distance metrics. However, the authors mathematically prove that this is a minor, second-order cost that buys a significant, first-order gain in the availability of valid, range-surviving candidates.
Key Results
- Query Throughput: Under mixed selectivity, FROG outperforms 44-core CPU baselines (iRG, WoW) by 14.7× to 37.7× and the state-of-the-art GPU baseline (Garfield) by 4.5× to 7.6×.
- Construction Speed: FROG accelerates index building by 2.4× to 14.8× compared to Garfield, and up to 68.4× compared to CPU-based WoW.
- Robustness: Unlike generic filtering methods whose performance collapses under high or low selectivity, FROG maintains stable, high throughput across all selectivity ranges, closely approaching the empirical performance ceiling of an unconstrained "Oracle" proximity graph.
Limitations and Future Work
The current design of FROG is optimized for a single filtering attribute. Extending this globally aware, vertex-centric architecture to support multi-attribute range filtering remains an open challenge for future work.
Summary updated