arXiv:2610.34109cs.DBOct 2026

Manuscript Offprint

arXiv:2610.34109

Geo-Filtered Approximate Nearest-Neighbor Search on a Single Proximity Graph

Zhiqiu Zou, Rong-Hua Li, Qiangqiang Dai, Guoren Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Geo-filtered approximate nearest-neighbor (GFANN) search retrieves the objects inside a query-specified geographic disk whose feature vectors are closest to a query vector, a core operation in location-aware Web search. A disk filter on a standard proximity graph invalidates out-of-disk routing vertices; on selective disks, these removals break greedy paths and recall drops sharply. Existing methods scan all in-disk objects, over-fetch unfiltered candidates, or maintain separate sub-indexes across spatial partitions, trading latency for index overhead. We propose REACH, a single-graph index based on row-local active-order invariance: if every vertex stores its outgoing neighbors in a fixed-width row sorted by vector distance, any disk filter masks out-of-disk entries while surviving in-disk (active) neighbors remain vector-sorted. Offline, each vertex merges globally closest vector candidates with a nearest-first geographic stream into one row; online, beam search evaluates vector distances only for the first ℓ\ell active entries of each visited row. Because colocated objects share the same distance to every query center, every disk admits a coordinate group in full or not at all, decomposing active connectivity into intra-group and inter-coordinate conditions. Under a spatial marked-site model with repeated coordinates, we prove that polylogarithmic out-degree guarantees strong connectivity across all disks and constant-factor distance reduction per hop on compact disks, while a cut-rank threshold characterizes the minimum scan budget ℓ\ell. Across four datasets up to 10710^7 objects, one REACH index per dataset outperforms SOTA methods, achieving 2.49×2.49\times higher geometric-mean QPS than the strongest baseline at 0.95 Recall@10 on selective queries, while building 3.8×−11.9×3.8\times-11.9\times faster and using 37%-45% less space than a SOTA spatial-graph index.

CCS Concepts

• Information systems → Retrieval models and ranking; Spatial-temporal systems.

Keywords

Approximate nearest neighbor search, geo-filtered vector search, proximity graph index, spatial-vector retrieval

Rong-Hua Li

Beijing Institute of Technology

Beijing, China

lironghuabit@126.com

Guoren Wang

Beijing Institute of Technology

Beijing, China

wanggrbit@126.com

1 Introduction

Approximate nearest-neighbor (ANN) search in high-dimensional vector spaces is a core operation in Web search, recommendation, and retrieval-augmented generation [20, 27]. Proximity graphs such as HNSW [25], NSG [13], and DiskANN [17] achieve the strongest trade-off between recall and latency [41] by linking each object to proximate vector neighbors and routing queries through best-first beam search. In location-aware Web services, vector similarity is often paired with a spatial range filter: a user may search for geotagged photos visually similar to a query image within a kilometer of a landmark, or retrieve points of interest (POIs) matching a text query within walking distance. We call this problem geo-filtered approximate nearest-neighbor (GFANN) search: given a query vector and a query-centered geographic disk, return the k in-disk objects closest to the query in vector space.

Applying a geographic disk filter to a standard proximity graph breaks its navigation structure. Because semantic similarity is independent of physical location, a vertex's closest vector neighbors are scattered globally; restricting traversal to a disk removes out-of-disk routing vertices, which severs multi-hop paths and disconnects the in-disk subgraph (filter-induced path erosion, Section 2). Existing filtered ANN methods struggle as disk selectivity varies [8]. Filter-agnostic strategies fail at one extreme: (1) pre-filtering (Spatial-First [7]) scans all in-disk objects, which is fast on tiny radii but slows by orders of magnitude on neighborhood-or city-scale disks ( 102−10610^{2}-10^{6} objects); (2) post-filtering (Vector-First, VBASE [46]) retrieves global vector candidates before spatial filtering, wasting most distance evaluations on selective disks; and (3) in-filtering (ACORN [28]) explores two-hop unfiltered neighborhoods, which still disconnect under selective disks. Predicate-aware indexes encode filters into the graph for discrete labels [6, 15, 24, 42], workload-tuned sub-indexes [21], weighted attribute-vector metrics [40, 45], or 1D numeric intervals [12, 23, 43, 47, 48]. However, 1D range graphs rely on a global attribute order under which every interval is contiguous; 2D disks admit no such order even on three objects and induce Ω(n2)\Omega(n^{2}) distinct active sets (Section 2), whereas spatial partitions [37, 44] either split queries across cell graphs or duplicate edges across tree levels.

In this paper, we show that a single static graph of fixed out-degree can support arbitrary geographic disks through Ranked Active-Graph Recovery. Rather than sorting the dataset along a global axis, we use row-local active-order invariance: each vertex

Zhiqiu Zou, Rong-Hua Li, Qiangqiang Dai, and Guoren Wang

Figure

active node / edge

(a) Store only 2 neighbors

inactive context

---> filtered edge

(b) Recover 2 active neighbors

Figure

route

not stored in (a)

Figure 1: Filter-induced path erosion and active-edge recovery from entry seed s to target t under budget ℓ=2\ell = 2 (Example 2.1). Left: disk c=(g,r)c = (g, r) activates A(c)={s,v1,v2,v3,v4,t}\mathcal{A}(c) = \{s, v_1, v_2, v_3, v_4, t\} (green) and deactivates {h1,…,h7}\{h_1, \ldots, h_7\} (grey). Cards (a) and (b) place these objects in vector space alongside the stored rows of s and v1v_1: (a) storing only two neighbors truncates row(v1)\text{row}(v_1) to [h5,h2][h_5, h_2], leaving v1v_1 with no active exits; (b) scanning wider ordered rows skips inactive entries ( h1,h5h_1, h_5 in row(s)\text{row}(s) and h5,h2h_5, h_2 in row(v1)\text{row}(v_1)) to recover the first ℓ=2\ell = 2 active neighbors ( [v1,v2][v_1, v_2] for s, [v2,s][v_2, s] for v1v_1), forming H2(c)\mathcal{H}_2(c) and restoring route s→v2→v3→v4→ts \to v_2 \to v_3 \to v_4 \to t (orange).

u stores its B outgoing neighbors in a fixed-width row row(u) pre-sorted by vector distance from u. Under any disk c, out-of-disk entries in row(u) are ignored while surviving in-disk (active) entries remain sorted by vector distance. Retaining all active entries defines the complete active projection H∞(c)\mathcal{H}_{\infty}(c), which sets the recall ceiling on c; scanning row(u) sequentially and taking only the first ℓ\ell active entries reconstructs a degree- ℓ\ell recovery graph Hℓ(c)⊆H∞(c)\mathcal{H}_{\ell}(c) \subseteq \mathcal{H}_{\infty}(c) that caps per-step vector evaluations at ℓ\ell, with minimum connectivity budget given by the cut-rank threshold ℓSC(c)\ell_{\mathrm{SC}}(c).

To keep H∞(c)\mathcal{H}_{\infty}(c) connected across all Ω(n2)\Omega(n^{2}) disks on both POI catalogs with mostly unique coordinates and photo archives where thousands of records share a landmark coordinate [1], we group co-located objects into coordinate fibers. If a vertex simply linked to its geographically closest objects, a dense landmark would consume its entire neighbor budget on co-located ties. Because all members of a fiber lie at the same distance from any query center, any disk admits a fiber either in full or not at all. This property decomposes active connectivity into query-independent intra-fiber connectivity and inter-coordinate quotient connectivity, both satisfied at polylogarithmic degree under a marked-site model. Guided by this analysis, REACH builds one width-B row per vertex offline from global vector candidates and a fiber-aware geographic stream, and answers queries online through an O(n)O(n) spatial seed grid and a two-phase filter-then-score kernel. Our contributions are:

• Theoretical Foundation: We prove that 2D disks induce Ω(n2)\Omega(n^{2}) active sets (Theorem 2.2) and admit no contiguous order (Proposition 2.3). We then define Hℓ(c)\mathcal{H}_{\ell}(c) and cut rank ℓSC(c)\ell_{\mathrm{SC}}(c) (Theorem 3.3), prove fiber closure and route decomposition (Lemma 3.4, Theorem 3.5), and establish polylogarithmic degree bounds for strong connectivity and compact-disk α\alpha-shortcut routing (Theorem 3.7, Corollary 3.8).

• Graph Index and Query Algorithms: We develop REACH's dual-source row assembly (Algorithm 1), which combines global vector candidates with a 3D kd-tree geographic stream, bounds coordinate ties through intra-fiber α\alpha-pruning, and reuses vector survivors as zero-cost witnesses (Proposition 4.2), paired with a two-phase first- ℓ\ell-active expansion algorithm (Algorithm 2) and an O(n)O(n) grid seed directory.

• Comprehensive Evaluation: Across four datasets up to 10710^7 objects and six selectivities ( σ~∈[10−5,1]\tilde{\sigma} \in [10^{-5}, 1]), one REACH index per dataset achieves 2.49×2.49 \times higher geometric-mean QPS than the best per-setting baseline at 0.95 Recall@10 on selective queries (fastest in 14/16 selective cells, 6.33×6.33 \times over CubeGraph, 3.56×3.56 \times over Geo-Partition), builds 3.8×−11.9×3.8 \times -11.9 \times faster than CubeGraph, and uses 37%-45% less space on three of the four datasets.

References (36)