TL;DR
This paper introduces a training-free, zero-shot method for detecting out-of-distribution (OOD) road obstacles in autonomous driving by leveraging pretrained foundation models. By inverting the confidence scores of a road-segmentation mask from SAM 2 and validating candidate obstacles using geometric depth disparities from Depth Anything V2, the approach accurately identifies unexpected objects without requiring any task-specific fine-tuning or anomalous training data.
What Problem Does This Paper Address?
Semantic segmentation models in autonomous vehicles are typically trained on a closed set of classes (e.g., roads, cars, pedestrians). When encountering out-of-distribution (OOD) objects—such as lost cargo, fallen trees, or exotic animals—these models often make overconfident, incorrect predictions, posing severe safety risks.
Existing OOD segmentation methods usually require retraining the network, using auxiliary architectures, or exposing the model to synthetic or real anomalous data during training. This paper tackles the challenge of achieving reliable, road-centered OOD detection without any training, fine-tuning, or prior knowledge of what the anomalies look like.
Methods
The authors propose a pipeline that combines appearance-based uncertainty from a segmentation foundation model with geometric cues from a monocular depth estimation model.
- Road Segmentation Inversion: Since OOD objects have unknown identities, they cannot be directly prompted. Instead, the authors use SAM 2 to segment the drivable road using a fixed set of geometric prompts (positive points on the immediate lower road, negative points in the sky/building regions, and a bounding box covering the lower 70% of the image). The full-resolution logit map of the road is inverted via sigmoid inversion ($s^{\text{SAM}} = 1 - \sigma(\ell)$), turning low-confidence road pixels into high-scoring OOD candidates.
- Heuristic Filtering: Connected component analysis extracts candidate segments. Small noise fragments and large segments corresponding to the ego-vehicle's hood are filtered out using simple area and boundary heuristics.
- Depth-Ring Scoring: To eliminate flat false positives (like lane markings, manhole covers, or shadows), the pipeline uses Depth Anything V2. For each candidate segment, a local "depth ring" of surrounding road pixels is constructed. The absolute depth disparity ($\Delta_n$) between the median depth of the segment and its surrounding ring is calculated. If the segment is coplanar with the road ($\Delta_n < \delta_{\text{min}}$), it is suppressed.
- Temporal Tracking: For video sequences, a simple online tracker associates validated OOD segments across frames using the Hungarian algorithm based on mask Intersection-over-Union (IoU).
Datasets
The method was evaluated on several established OOD benchmarks:
- SegmentMeIfYouCan (SMIYC): Includes LostAndFound (1,203 validation images of small obstacles on German roads), RoadObstacle (412 test images with diverse obstacle types), and RoadAnomaly (100 test images with anomalies scattered arbitrarily across the entire scene).
- Video Tracking Benchmarks: Street Obstacle Sequences (SOS) (20 real-world sequences, 1,129 labeled frames) and Wuppertal Obstacle Sequences (WOS) (44 sequences focusing on dynamic anomalies like rolling balls or dogs, 938 labeled frames).
Key Insights and Ideas
- The Road as a Proxy: Instead of trying to model the infinite variety of the "unknown," it is much more effective to robustly model the stable "known" (the road surface) and treat localized drops in model confidence as anomalies.
- Geometry Disproves Visual Noise: Foundation segmentation models are highly robust but still generate false positives on complex textures, shadows, or manhole covers. Monocular depth estimation provides an orthogonal, geometric sanity check: true obstacles protrude from the road plane, while visual artifacts remain flush with it.
- Zero-Shot Synergy: Combining two distinct foundation models (SAM 2 for 2D boundaries and Depth Anything V2 for 3D geometry) out-of-the-box yields a highly capable perception pipeline without a single step of gradient descent.
Key Results
The method demonstrates strong performance on road-centered benchmarks, outperforming several complex, trained baselines:
- RoadObstacle: Achieved a pixel-level AuPRC of 51.3% (compared to 30.7% for the next best baseline, W-EDL) and a segment-level $F_1$ score of 43.2% (compared to 9.4% for ODIN).
- LostAndFound: Delivered an AuPRC of 71.5% and a remarkably low False Positive Rate ($\text{FPR}_{95}$) of 3.2%, showcasing its safety-critical reliability.
- RoadAnomaly: Performed poorly (14.6% AuPRC), which directly reflects the method's deliberate design scope. Because it relies on road segmentation, it cannot detect off-road anomalies (e.g., objects in the sky or vegetation).
Limitations and Future Work
- Strictly Road-Centered: The framework is fundamentally limited to obstacles on or immediately adjacent to the drivable road surface.
- Flat Anomalies: Because the depth-ring scoring suppresses coplanar regions, flat road anomalies (such as oil spills, debris, or road damage) may be mistakenly filtered out.
- Basic Tracking: The simple IoU-based tracking component struggles with large inter-frame displacements in video sequences with fast-moving objects (as seen in the WOS dataset results). The authors note that integrating more advanced temporal association strategies is a key direction for future work.
Summary updated