A Likelihood Ratio-Based Approach to Segmenting Unknown Objects

Nazir Nayal, Youssef Shoeb, Fatma Güney

Abstract

In open-world environments, semantic segmentation models must identify out-of-distribution (OoD) objects without compromising performance on known classes. We present a lightweight Unknown Estimation Module (UEM) that leverages a likelihood-ratio-based scoring function. By freezing a foundation model backbone like DINOv2 and adding a small MLP trained with outlier supervision, our approach achieves state-of-the-art results in anomaly segmentation, outperforming previous methods by over 5.7% in average precision while maintaining high computational efficiency.

Introduction

Standard semantic segmentation models are typically trained for "closed-world" settings with a fixed set of classes (e.g., car, road, tree). However, real-world applications such as autonomous driving encounter "open-world" scenarios containing unknown objects like loose tires or wild animals. Traditional models often misclassify these with high confidence. While outlier supervision helps, retraining large foundation models is computationally expensive and can lead to representation collapse. This work introduces a method to gain the benefits of outlier supervision while keeping the core "inlier" model frozen and intact.

Methods

The proposed framework utilizes a two-stage approach centered on a Likelihood Ratio (LR) formulation.

Architecture of the proposed system featuring the frozen foundation backbone and the Unknown Estimation Module (UEM).
  1. Frozen Foundation Backbone: The system uses DINOv2 as a feature extractor, which is kept frozen to preserve its robust, internet-scale representations.
  2. Unknown Estimation Module (UEM): A lightweight 3-layer Multi-Layer Perceptron (MLP) is added to estimate two distributions: a proxy distribution for outliers ($\tilde{p}_{out}$) and a generic distribution for known "inlier" classes ($\tilde{p}_{in}$).
  3. Likelihood Ratio Scoring: Instead of relying solely on low confidence in the main segmentation head, an anomaly score is calculated as $LR(x) = \frac{p_{out}(x)}{p_{in}(x)}$. This score essentially determines if a pixel is more likely to be an unknown object than a known one.
  4. Outlier Supervision: The UEM is trained using "proxy outliers"—objects from the COCO dataset that are semantically different from the primary Cityscapes training set—which are "pasted" into training images.

Results

The model was evaluated on several rigorous anomaly detection benchmarks, including RoadAnomaly and Fishyscapes LostandFound (FS LaF).

Qualitative comparison of different scoring components: the in-distribution (ID) score, the out-of-distribution (OoD) score, and the final Likelihood Ratio (LR) score.

Key findings include:

  • State-of-the-Art Performance: The approach achieved the highest scores across multiple benchmarks, outperforming the previous best method by an average of 5.74% in Average Precision (AP).
  • Reduced False Positives: On the FS LaF benchmark, the model achieved a remarkably low False Positive Rate (FPR) of 1.62% (at a 95% True Positive Rate), significantly reducing "ghost" anomalies.
  • Efficiency: The UEM adds fewer than 800k parameters to a 101M parameter model (a <1% increase), making it a highly efficient plug-and-play addition for existing architectures.
  • Backbone Impact: DINOv2 proved to be a superior backbone compared to CLIP or Swin Transformers, likely due to its self-supervised training capturing more granular spatial features.

Conclusion

By combining a frozen foundation model with a lightweight UEM and a likelihood-ratio scoring function, this approach provides a robust and efficient solution for open-world semantic segmentation. The method successfully identifies novel objects without degrading performance on known classes. Future work will explore the impact of different proxy datasets and generalization to more realistic, non-pasted outliers derived from real-world sensor failures.

Summary updated

BibTeX
@article{nayal2025likelihood,
  author = {Nazir Nayal and Youssef Shoeb and Fatma Güney},
  title = {{A Likelihood Ratio-Based Approach to Segmenting Unknown Objects}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-025-02509-0},
}
Figure