Training-Free Out-Of-Distribution Segmentation With Foundation Models
Laith Nayal, Hadi Salloum, Ahmad Taha, Yaroslav Kholodov, Alexander Gasnikov
TL;DR
This work tackles training-free OoD segmentation by leveraging foundation-model features (InternImage) and a simple clustering-based pipeline. By clustering deep features with K-Means and aligning clusters to a per-pixel max-logit confidence map, the method identifies OoD regions without any outlier data or fine-tuning. It achieves competitive OoD segmentation results on RoadAnomaly (AP ≈ 50.02) and ADE-OoD (AP ≈ 48.77 with InternImage-L), illustrating robust generalization across distinct distribution shifts. The findings highlight the potential of minimal-assumption approaches for open-world segmentation, with future work aiming to improve upsampling and broaden applicability to existing segmentation architectures.
Abstract
Detecting unknown objects in semantic segmentation is crucial for safety-critical applications such as autonomous driving. Large vision foundation models, including DINOv2, InternImage, and CLIP, have advanced visual representation learning by providing rich features that generalize well across diverse tasks. While their strength in closed-set semantic tasks is established, their capability to detect out-of-distribution (OoD) regions in semantic segmentation remains underexplored. In this work, we investigate whether foundation models fine-tuned on segmentation datasets can inherently distinguish in-distribution (ID) from OoD regions without any outlier supervision. We propose a simple, training-free approach that utilizes features from the InternImage backbone and applies K-Means clustering alongside confidence thresholding on raw decoder logits to identify OoD clusters. Our method achieves 50.02 Average Precision on the RoadAnomaly benchmark and 48.77 on the benchmark of ADE-OoD with InternImage-L, surpassing several supervised and unsupervised baselines. These results suggest a promising direction for generic OoD segmentation methods that require minimal assumptions or additional data.
