Repository navigation
Description
Motivation
RampNet is strong but not perfect — on the deployment benchmark it sits around P ~0.95 / R ~0.80, so ~1 in 5 real curb ramps is still missed. General VLMs now do bounding-box detection, and the model-comparison harness (#20, PR #34) lets us score them on the same ground truth. The question this issue tracks: can a hybrid of RampNet + an open VLM beat RampNet alone — at a cost an open-source, academically-hosted project can actually afford?
Project Sidewalk is open source, runs on academic servers, and has very little money, so "just call a paid VLM per pano" is off the table at deployment scale. That constraint isn't a blocker — it shapes the design.
The cost reframe: self-host the VLM
- Gemini (paid API) → useful as a reference baseline, but never a deployment component (per-call cost × millions of panos).
- Qwen3-VL (open weights) → self-hostable on makelab2 (A40, 48 GB, 24 TB) or Hyak; inference cost is GPU-hours, not dollars. This makes Qwen — not Gemini — the real hybrid partner.
- Tiling wrinkle worth testing: the harness feeds the VLM 1024×1024 perspective tiles, not the full 4096+ pano. The "A40 OOMs Qwen at native res" concern (why Qwen was earmarked for Hyak) may not apply to tiled inference — so makelab2 could be self-sufficient here. Verify empirically.
Approaches (with the standard names)
| Approach | What it is | Fit for us |
|---|---|---|
| Ensemble / late (decision-level) fusion — Weighted Boxes Fusion (Solovyev et al. 2019), NMS-fusion | Run both, pool + merge detections weighted by confidence | Best accuracy; pays VLM cost on every pano forever |
| Confidence-gated cascade (propose→verify) | RampNet everywhere; VLM invoked only on RampNet's uncertain/empty panos to recover misses or prune FPs | Bounds VLM calls to a fraction — budget-friendly |
| Offline distillation / pseudo-labeling (teacher→student, weak supervision) | VLM improves the auto-generated training set once; deploy RampNet alone | Free at inference; most on-brand for an auto-labeling project; most publishable |
Decision gate — do this first (cheap, no training)
A hybrid only helps if the two models make different errors. Before building anything, run the complementarity analysis on the existing model-comparison run (cached detections + derived GT):
- Oracle-union recall — recall if a ramp counts as found when either model finds it. Compare to RampNet's solo recall.
- The "RampNet-miss ∩ VLM-hit" set — real ramps RampNet misses that the VLM catches (the upside), and the FP cost of taking the VLM's extra detections (the downside).
- Verdict: if union recall materially exceeds RampNet's ~0.80 without a FP blowup → prototype a cascade. If not → it's a distillation story (VLM cleans the dataset), or not worth it.
Early data point (in-progress run): Gemini-3.6-flash tiling ≈ P 0.76 / R 0.65 on 70 richmond panos — below RampNet — so a naive union would add FPs. Whether the errors are complementary is the open question. Qwen numbers TBD (needs wiring, see #20).
Compute
- makelab2 — A40 (48 GB), 24 TB; self-host Qwen3-VL (test tiled inference here first). Needs env setup (py3.12 + CUDA torch + transformers pin).
- Hyak — for heavier runs / native-res if tiling proves insufficient.
- Gemini — paid reference baseline only, via the harness.
Relation to other work
Builds directly on #20 (model-comparison harness) and PR #34 (docs/model_comparison.md, scripts/model_comparison/). The complementarity analysis reuses that harness's cached detections and rampnet/detection_eval.py ground truth — no new infra. Wiring Qwen3-VL (the prerequisite for a Qwen hybrid) is already a checklist item on #20.
Next steps
- Complementarity analysis on the current Gemini run (defines whether to proceed).
- Wire + self-host Qwen3-VL on makelab2 (test whether tiled inference fits the A40); rerun complementarity with Qwen.
- If promising: prototype the cheapest viable hybrid (likely a confidence-gated cascade or a distillation pass), measure vs RampNet-alone on the benchmark.
Filing to give the idea a home; not committing to build until the complementarity gate says it's worth it.
Activity
jonfroehlich commentedon Jul 23, 2026
Decision-gate results: RampNet vs Gemini (Flash-3.6, Pro-3.1) on the benchmark
Ran the model-comparison harness (#20 / PR #34) on
benchmark/{richmond,bend}for Gemini, then the complementarity analysis this issue gates on. Gemini is a paid reference baseline here, not a deployment candidate — Qwen (self-hosted) is still the real hybrid partner and is TBD. Numbers are operating-point P/R at the pano radius 0.022; RampNet's rows match its verdict-based cross-check, so the harness is self-validated.Solo scores (perspective tiling — the fair VLM input)
RampNet wins solo by a wide margin (F1 ~.85 vs the best VLM's ~.66). A frontier general VLM, even on its fair input, does not match the purpose-trained detector on this task.
Reprojection is empirically justified: without tiling (whole-pano lower bound), gemini-3.6-flash recall collapses — richmond 0.642 → 0.268, bend 0.587 → 0.245 (~2.4× recall from the perspective reprojection, precision ~held). Ramps really are undetectable in the warped 4k equirect.
Complementarity (richmond, 310 GT ramps) — the actual gate
Does the VLM catch ramps RampNet misses?
Verdict
Caveats / next
python scripts/model_comparison/compare.py benchmark/<city> --models rampnet,gemini:gemini-3.1-pro-preview(+ the complementarity script).jonfroehlich commentedon Jul 23, 2026
The results above are richmond (Mapillary/OOD) + bend (GSV/in-distribution) only. Two cities is a pattern, not a verdict — the "distillation over inference-time hybrid" read should be treated as a working hypothesis and re-tested across more geography, imagery sources, and ramp densities before we act on it.
Next: expand the benchmark to more cities, starting with Clovis, NM (Mapillary/OOD, dense drive) so the harness scores a third city the same way. The conclusion may shift — or firm up — with broader coverage; nothing here is being locked in.
Also still outstanding and potentially conclusion-changing: Qwen3-VL (the self-hostable, deployment-viable partner, unlike the paid Gemini baseline) — same complementarity read once wired (#20).
jonfroehlich commentedon Jul 24, 2026
Related: recall error analysis quantifies the "hard misses"
A depth-quantified error analysis of RampNet's misses (posted in detail on #25) sharpens the picture behind this issue's complementarity numbers:
Implication for the hybrid question: the complementary-recall ceiling we measured (union 0.855) is bounded by imagery, not by model choice — which further supports the distillation over inference-time-hybrid conclusion, and points at sampling density / resolution as the higher-leverage direction than adding a second detector at inference time.
jonfroehlich commentedon Jul 24, 2026
Sharpening the cascade: the decision gate is answered, and the load-bearing piece is an arbiter-on-crop
The complementarity gate this issue asks for now has data (OWLv2 leg, PR #40 /
docs/model_comparison.md):So the gate's verdict is: union recall massively exceeds RampNet's solo recall — but a naive union is unusable at 128:1 FP. That reframes the whole thing around one component this issue didn't originally name:
An arbiter/verifier is load-bearing, and it should judge the actual crop. Decompose detection into (cheap high-recall proposal) + (per-crop verification): the generator (OWLv2, or a multi-model union) proposes; the arbiter looks at a tight crop around each proposal and answers ramp / not / unsure.
Why this is more promising than end-to-end VLM detection:
stage_one/crop_model/…) is a curb-ramp crop classifier — cheap, in-domain, already trained. Try it as arbiter checkpoint file #1 before spending VLM tokens; a VLM arbiter (Molmo/Qwen on the crop) is the stronger, costlier variant.Honest framing:
The failure-taxonomy pass (#46) directly de-risks this: if OWLv2's ~8,800 FPs are mostly hood/driveway/obvious junk, the arbiter's job is easy; if they're ambiguous concrete, it isn't. Worth running #46 before prototyping the cascade. The nadir/hood mask (#47) also shrinks the generator's FP flood at the source.
[-][P3] Experiment: hybrid RampNet + open VLM (Qwen3-VL) — ensemble / cascade / distillation[/-][+]Experiment: hybrid RampNet + open VLM (Qwen3-VL) — ensemble / cascade / distillation[/+]Bucket the false positives too: the open detectors' near-ramp FPs are…
Add the FP gallery, sharing the miss gallery's instrument (#46, #35)
Run all 8 challengers on sao_paulo (#98): the lead holds at 0.323, an…
complementarity.py: any provider, not just Gemini (#126)
Complementarity at parity: 61% of RampNet-misses recoverable, union s…
complementarity: ask it at the operating point we would deploy (#126)
complementarity: one matcher for the cells and the FP counts (#126, #132
Test the complementarity gate and the cascade gate, and close two sil…
Vistas parity write-up: correct the 384 column, and say what a clean …
36 remaining items
Review N4: the parity leg's roster note names its five splits; scoreb…
Review N10: partial-legs sentence says 'not run every pooled split --…
Re-review N11: move the run-id uniqueness assert back into test_usage…
Re-review N12: pano download is about 6 GB (5.86 GB Parquet), 6.5 GB …
Merge origin/main (#203) into analysis/cascade-transfer-35
Merge pull request #202 from ProjectSidewalk/analysis/cascade-transfe…
Merge origin/main (#201-#204, #186) into analysis/multiview-48
#35 Argon cascade: address the PR #289 review
#35 Argon cascade doc: confidence-leg precision stated, not 'same pat…
Merge pull request #289 from ProjectSidewalk/cascade-argon-b0
#35 Stage 0: rules as pure functions, both readings of "pooled" (PR #293
#35 Stage 0 docs: second reading of "pooled", plan appendix, index ro…
jonfroehlich commentedon Nov 25, 2026
Record of option B1 (confirm or drop a per-rig threshold and an open-weight second arm for open imagery) and its Stage 0 run.
Plan.
open-weight-cascade-confirm-2026-11-15.md, written and reviewed on 2026-11-15 (not in the repo). Three policies for curb-ramp labels on Mapillary and Panoramax imagery: N, RampNet at 0.30; T, a per-rig threshold; C, an open-weight YOLO pano arm that promotes RampNet peaks below 0.30. C is always compared with the better of N and T. Stage 0 is a CPU screen on the four GoPro Max splits (laurens_mapillary,bayonne,budapest_district5,morgantown), with Lyon (Stage 1) and Kaysville (Stage 2) held back as confirmation sets. Its steps and rules are reproduced verbatim in Appendix A ofdocs/cascade_confirm_35.md, and the instruction that kept Lyon and Kaysville unread is in Appendix B.Run. Stage 0 ran on 2026-11-15: #293 (
scripts/analysis/cascade_confirm_35.py,analysis_out/cascade_confirm_35/stage0.json). No model call, no spend.Result: N under the rules as coded. T is dropped: the rig key test does not pass, and pooled held-out T − N is −0.022 [−0.038, −0.003]. C is dropped: pooled held-out C − max(N, T) is +0.027 [+0.007, +0.043] with the folds' counts summed, against a +0.03 bar, with wins on 2 of 4 splits. The whole gain is from
laurens_mapillaryandbayonne.Open. The plan does not define "pooled". Read as the mean of the four per-split deltas, C − max(N, T) is +0.0313 [+0.0088, +0.0465]: C survives, the outcome is "C only", and Stage 1 (Lyon) would follow. Which reading governs is Jon's call; it is set out in the PR and the doc. Until then, Stage 1 and Stage 2 are not run.
🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5
#35 Stage 0: tests for review 2's nits; CRLF note in the doc (PR #293)
Merge pull request #293 from ProjectSidewalk/analysis/open-weight-cas…