A deployable shortest-path router that uses an ML travel-time predictor as advice but guarantees bounded worst-case degradation via a single tunable trust parameter λ. First reproducible empirical study of the consistency–robustness–smoothness curve for routing on real road-network + traffic data.
The headline metric is robustness, not prediction accuracy.
See ROAR_Research_Blueprint.md for the full
research plan and CLAUDE.md for the project's non-negotiable
rules and component roadmap.
Status: All seven phases done -- data & graph pipeline, the pluggable travel-time predictor, classical + pure-ML-guided baselines, RobustAStar + RobustnessGuard (the provable (1+α) degradation bound), the experiment harness + sweeps, statistics + figures, and the deployable API + demo. See the roadmap in
CLAUDE.mdand honest caveats inLIMITATIONS.mdbefore citing any number.
data/{raw,processed}/ real data only — see data/README.md (added in Phase 1)
roar/graph/ OSM + sensor loading, feature engineering
roar/predictor/ pluggable travel-time predictor interface + implementations
roar/routing/ baselines, robust A*, robustness guard
roar/eval/ experiment harness, metrics, statistics
roar/api/ FastAPI routing service
experiments/configs/ one YAML per experiment
experiments/notebooks/ analysis notebooks
tests/ pytest suite, including the robustness guarantee tests
results/ generated CSV/parquet + figures (regenerated, not hand-edited)
demo/ interactive map demo
paper/ LaTeX source (IEEE format)
Requires Python 3.11.
make setupThe full pipeline from raw data to every paper figure runs end to end with:
make setup # create venv, install pinned deps
make data # download/cache OSM + METR-LA, build features (Phase 1)
make train # train the travel-time predictor (Phase 2)
make experiments # run all consistency/robustness/smoothness sweeps + ablations (Phase 5)
make figures # regenerate every figure/table from logged results (Phase 6)Every reported number in the paper must be regenerable via make experiments
and make figures — see CLAUDE.md for the full reproducibility rules, and
experiments/configs/ for every sweep's exact, seeded configuration.
Each figure has its underlying plotted data saved alongside it as a CSV in
results/figures/ (e.g. fig1_money_plot.png + fig1_money_plot.csv), so a
reviewer can check a number in the paper against the exact data behind its
figure without re-running anything.
Runtime note: experiments/configs/query_set.yaml ships with a reduced
query count (200 queries/experiment across 5 seeds, not literally the
"thousands" the build plan calls for) to keep a full make experiments run
to well under an hour in a typical dev environment — see
LIMITATIONS.md §4. Raise n_queries there for a
full-scale run; nothing else changes.
make setup && make data && make train # real graph/model artifacts, required first
docker compose up --build- API: http://localhost:8000/predictor/health,
POST /route - Demo: http://localhost:8501 — pick a real origin/destination, move the λ slider, see the consistency-robustness trade-off directly.
docker compose up mounts the host's data/ and results/ (gitignored,
regenerated by the commands above) into both containers rather than baking
them into the image. See roar/api/app.py's module docstring and
LIMITATIONS.md §6 for an important caveat: the live
demo's robustness_bound is a self-consistency check (no independent
ground truth exists for a route starting now), not the paper's stronger
offline-replay guarantee.
A short screencast of the demo will go here: docs/screencast.md
(placeholder — record one before submission).
make test # run pytest
make lint # run ruff
make api # run the FastAPI routing service directly (no Docker)
make demo # run the interactive demo directly (no Docker)See LIMITATIONS.md for an honest, specific accounting of
threats to validity: sensor-mapping error, single-city/single-dataset scope,
the robustness guard's ground-truth assumption (and how it's weakened in the
live API), predictor coverage, and experimental-design/statistical-power
caveats. Read it before citing a number from this project.
MIT — see LICENSE. Please cite via CITATION.cff.