Bi-objective routing · Rust + GPU reproduction

Multi-level Bi-objective Routing

An independent Rust reimplementation (and GPU acceleration) of Multi-level Bi-objective Routing (MBOR): find the complete Pareto-optimal set of paths under two costs (time and energy), fast, by precomputing a boundary multigraph and pruning with two-dimensional cost-intervals. It reproduces the paper's speedup on open data, and every result is exactness-checked.
Arun Sharma
reimplementation of Yang, Zeng, Sharma, Sawamura, Northrop, Shekhar · ACM SIGSPATIAL IWCTS 2024
Boundary multigraphMEPFV2D cost-interval pruningExact ParetoRust workspaceOpen DIMACS data

Abstract

The bi-objective routing problem asks for the full Pareto frontier of paths between two points in a graph whose edges each carry two non-negative costs (for example travel time and energy). The set can be exponential, so compute-on-demand search is slow. MBOR precomputes a boundary multigraph and a Multi-level Encoded Pareto Frontier View (MEPFV), then answers a query by combining a few precomputed Pareto sets, with two-dimensional cost-interval pruning to skip combinations that cannot contribute. This repo is a from-scratch Rust port that reproduces the method on the open 9th DIMACS Bay Area network, plus Triton GPU kernels for the dense sub-steps.

Why it is trustworthy. Every MBOR answer is checked against two independent exact baselines (BOA* and bi-objective Dijkstra) and an exact full-graph search. On real Bay Area queries the four methods return the identical Pareto frontier (zero mismatches), and the average solution count matches the paper.
Honest scope. Two things stated plainly. (1) Rust is not faster than good C++ at the language level; the value here is a memory-safe, one-command-reproducible build that reproduces the paper's speedup on open data. (2) The online retrieval is reproduced; the precompute is correct but not yet memory-optimized for the full BAY network (it stores the full fragment Pareto view). The reproduced figures below are online-query numbers, distinct from the paper's published full-BAY figures, which are cited as such.

How it works

MBOR pipeline
Precompute the MEPFV once (partition → FPPV → boundary multigraph → BPPV); answer each query by combining FPPV ⊕ BPPV ⊕ FPPV, with MBOR-Adv pruning dominated boundary-node pairs via 2D cost-intervals.

Validated output (reproduced)

Produced by this repo's Rust (cargo build --release; mbor-bench) on the open DIMACS Bay Area subnetworks, 50 queries each, BFS region-growing partition (k=50). Average per-query online time, min of 3 passes. Exactness mismatches = 0 on every row: MBOR-Basic, MBOR-Adv, BOA*, and bi-objective Dijkstra return the same Pareto frontier.

NetworknodesBOA* (ms)MBOR-Basic (ms)MBOR-Adv (ms)Adv vs BOA*avg solutions
1/20 BAY15,3665.590.620.054104×15.2
1/10 BAY32,2052.850.380.04072×5.2
1/5 BAY64,68481.7010.421.8744×47.4

Machine: Apple Silicon (local), full table above. On MSI (128-core Linux) the same harness reproduces the ratios on a second machine (1/20 BAY: Adv 93×; 1/10 BAY: Adv 57×); a KaHIP min-cut partition (the paper's exact kaffpa, run locally) roughly doubles MBOR-Adv's speedup (104×→204× on 1/20 BAY). On the full 321,270-node BAY network (KaHIP), MBOR-Adv is 908× over BOA* with avg 118.8 solutions/query (paper: 119), 0 mismatches, the paper's headline network reproduced end to end. The authors' upstream C++ MBOR was also cross-checked locally (avg 15.16 solutions = this Rust 15.2 = paper 15); see EVIDENCE. MBOR-Adv's 2D cost-interval pruning skips 84–99% of boundary-pair combinations. Solution counts match the paper on 1/20 (15.2 vs 15) and 1/5 (47.4 vs 47).

vs the paper (Table 5, 1/20 BAY, authors' C++, KaHIP). Paper MBOR-Basic 0.64 ms; this repo 0.62 ms. Paper headline ">10× online speedup with precomputation"; reproduced here (MBOR-Adv 104× over BOA*, MBOR-Basic 9×). The paper's average solution count for 1/20 BAY is 15; reproduced 15.2. Absolute milliseconds differ by machine and partition.

What is real vs in progress

ComponentStatus
Bi-objective label-setting (Alg 2), Pareto / Minkowski opsReal, exact, tested
MEPFV precompute: FPPV, boundary multigraph, BPPV (Alg 1/5)Real, parity-checked vs exact full-graph search
Online retrieval Basic (Alg 3) + Adv 2DCI pruning (Alg 4)Real, reproduces paper speedup; 0 exactness mismatches
Baselines: BOA*, bi-objective DijkstraReal, exact, agree on all pairs
Precompute speed (rayon multi-threaded)Real, 9.1× on 1/20 BAY (43.2 s → 4.73 s, 14 cores); full-FPPV memory still heavy at full-BAY scale
Triton GPU kernels (Pareto-filter, 2DCI, Minkowski), CPU-vs-A100Validated on A100 (batched Pareto-filter 96×, 2DCI 1188×; see EVIDENCE)
Speculative GPU per-source precomputeNot validated (irregular workload; honest result in EVIDENCE)
KaHIP min-cut partition + upstream C++ cross-checkDone (local), KaHIP min-cut roughly doubles MBOR-Adv speedup (104×→204× on 1/20 BAY); authors' C++ MBOR cross-checked (avg 15.16 solutions = Rust 15.2 = paper 15)

Reproduce it

git clone https://github.com/arunshar/mbor && cd mbor/rust
cargo test                          # exactness on the paper toy + grids
cargo build --release
bash ../data/fetch_dimacs_bay.sh    # vendor open DIMACS Bay Area maps
./target/release/mbor-bench ../data/maps/BAY20-road-d.txt \
    ../data/queries/BAY20-queries 50 3

Full method, code walkthrough, and design rationale in the deep explainer; the rendered paper is on the paper page.