Papers
Topics
Authors
Recent
Search
2000 character limit reached

Monotonic Relative Neighborhood Graph (MRNG)

Updated 26 December 2025
  • MRNG is a formally defined proximity graph that guarantees strictly decreasing, monotonic paths in greedy best-first search for ANNS.
  • It is constructed by ordering neighbors by increasing Euclidean distance and selecting edges based on an empty-lune condition to maintain constant out-degree.
  • MRNG underpins scalable, efficient graph-based ANN indices and inspires extensions like block-aware MRNG for disk-resident data environments.

A Monotonic Relative Neighborhood Graph (MRNG) is a formally defined proximity graph designed to guarantee strictly decreasing distance paths in greedy best-first search, primarily for approximate nearest neighbor search (ANNS) in high-dimensional spaces. MRNG ensures connectedness, compactness (constant out-degree), minimal search complexity, and forms the theoretical core for practical graph-based ANN indices, including recent disk-aware extensions.

1. Formal Definition and Construction

MRNG is constructed over a finite set S⊂RdS \subset \mathbb{R}^d with the metric δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_2. For each pair (p,q)(p, q), define the lune

lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),

where B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}. The MRNG is the directed graph (S,E)(S, E) with

(p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.

Equivalently, for construction: order S∖{p}S \setminus \{p\} by increasing δ(p,⋅)\delta(p, \cdot), initialize the out-neighbor list LpL_p with the nearest neighbor, and for each successive candidate δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_20, include δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_21 if no δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_22 satisfies δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_23.

Pseudocode (all-pairs naive construction, δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_24 time):

S∖{p}S \setminus \{p\}1 MRNG is unique and edge-minimal with respect to monotonicity: removing any edge breaks the monotonic path guarantee (Zhu et al., 2021).

2. Monotonicity and Connectivity Properties

A path δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_25 from δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_26 to δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_27 is monotonic if

δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_28

MRNG is a Monotonic Search Network (MSNET), meaning for every pair δ(p,q)=∥p−q∥2\delta(p,q) = \|p-q\|_29 there exists a monotonic path from (p,q)(p, q)0 to (p,q)(p, q)1. Greedy best-first search in MRNG—always moving to the neighbor closest to the query that is strictly closer—never backtracks, with each hop reducing the distance to the target. This ensures strong connectivity: for any (p,q)(p, q)2, there is a directed path from (p,q)(p, q)3 to (p,q)(p, q)4 (Fu et al., 2017, Zhu et al., 2021).

MRNG is the unique minimal graph structure guaranteeing this property. Any deletion of edges would violate monotonic search coverage for some node pairs (Zhu et al., 2021).

3. Degree Bound and Space Complexity

The out-degree in MRNG is bounded only by the ambient dimension (p,q)(p, q)5, not by the cardinality (p,q)(p, q)6; for (p,q)(p, q)7-dimensional Euclidean space, by sphere-packing arguments, the degree is

(p,q)(p, q)8

Empirical statistics show average node degrees plateau with increasing (p,q)(p, q)9; for lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),0, mean degree lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),1, max lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),2, and for lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),3 mean degree lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),4, max lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),5 (Zhu et al., 2021). The total number of edges is lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),6, yielding a compact index size (Fu et al., 2017).

4. Search-Time Complexity and Greedy Guarantees

For query lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),7 and source lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),8, let lunep,q=B(p,δ(p,q))∩B(q,δ(p,q)),\mathrm{lune}_{p,q} = B(p, \delta(p,q)) \cap B(q, \delta(p,q)),9 denote the length of the monotonic path in MRNG, and B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}0 the average node out-degree, which is B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}1. The greedy search procedure inspects at most B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}2 candidates per hop, with total time

B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}3

Under uniform random distribution in B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}4,

B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}5

where B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}6 is the minimal difference in triangle side-lengths in B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}7. In high dimensions, this growth is close to logarithmic in B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}8 (Fu et al., 2017). Greedy monotonic search in MRNG always terminates at the true nearest neighbor in at most B(x,r)={y:δ(x,y)<r}B(x, r) = \{y : \delta(x, y) < r\}9 steps; empirical scaling closely matches or exceeds alternatives like k-NN graphs (Zhu et al., 2021).

5. Generalizations, Approximation Techniques, and Hidden Structures

To accommodate large (S,E)(S, E)0, generalizations of MRNG restrict neighbor candidate sets and cap the out-degree:

  • Degree cap (S,E)(S, E)1 ((S,E)(S, E)2)
  • Candidate pool (S,E)(S, E)3

Generic MRNG (GenMRNG) applies identical neighbor construction, limited to candidates from (S,E)(S, E)4 and up to (S,E)(S, E)5 neighbors. With (S,E)(S, E)6, build time is (S,E)(S, E)7 and storage (S,E)(S, E)8 (Zhu et al., 2021).

MRNG possesses hidden structure termed conflicting nodes: for edge (S,E)(S, E)9, the conflicting node set (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.0 contains all (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.1 such that (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.2—these are nodes "blocked" during construction. Recording conflict lists per edge facilitates escape from local minima in search, enabling improved recall and faster query time. The conflict-search subroutine, upon encountering a local minimum, scans (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.3 for nodes closer to (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.4; this strictly accelerates search convergence (Zhu et al., 2021).

Empirical findings indicate that capping degree at roughly half the mean degree of MRNG retains nearly full recall, with a phase transition where adding more edges yields negligible improvement (Zhu et al., 2021).

6. Block-Aware Monotonic Extensions for Disk-Based ANNS

The Block-aware Monotonic Relative Neighborhood Graph (BMRNG) extends MRNG principles to disk-resident graphs where disk I/O cost dominates. Vertex set (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.5 is partitioned into blocks (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.6; block-aware pruning jointly considers both geometric and storage layout to ensure monotonic search over block transitions.

  • Intra-block edges: Retain the full block-wise MRNG.
  • Cross-block edges: Pruned aggressively; only kept if no intra-block monotonic shortcut exists.

A monotonic I/O path is defined as a sequence of block-transitions and node steps, with strictly decreasing distances to (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.7 at every step. BMRNG guarantees such monotonic I/O paths for every pair (p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.8. The expected number of block transitions is

(p→q)∈E  ⟺  lunep,q∩S=∅    or    ∀r∈lunep,q: (p→r)∉E.(p \to q) \in E \iff \mathrm{lune}_{p,q} \cap S = \varnothing \;\;\text{or}\;\; \forall r \in \mathrm{lune}_{p,q}:\ (p \to r) \notin E.9

(Li et al., 3 Sep 2025).

The Block-Aware Monotonic Graph (BAMG) is a practical, linear-time index that approximates BMRNG by integrating block layout into edge selection and leverages in-memory multi-layer navigation graphs for efficient search entry. BAMG achieves up to 2.1× higher throughput and 13–52% fewer disk I/Os compared to prior approaches, with only a small index size overhead (Li et al., 3 Sep 2025).

7. Practical Implications and Empirical Performance

MRNG serves as a theoretical foundation for scalable ANNS indices such as Navigating Spreading-out Graphs (NSG), which are practical MRNG approximations with nearly S∖{p}S \setminus \{p\}0 build cost and billion-node scalability (Fu et al., 2017).

Guidance for implementation includes using genMRNG with degree caps at approximately half the empirical mean, candidate pools drawn from k-NN graphs or random samples, and conflict lists for heavy edges, optimizing both index build and search times (Zhu et al., 2021).

Compared to classical Relative Neighborhood Graphs (RNG), MRNG relaxes the empty-lune condition, enforcing forward-only monotonic greedy paths and precluding backtracking. BMRNG/BAMG further extend this property to disk-based environments, making graph construction and block assignment a joint optimization problem, resulting in significant query throughput and I/O gains while preserving monotonicity and recall (Li et al., 3 Sep 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Monotonic Relative Neighborhood Graph (MRNG).