Skip to main content
QUICK REVIEW

[Paper Review] Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flow

Denis Gudovskiy, Tomoyuki Okuno|arXiv (Cornell University)|May 16, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes FlowEneDet, a low-complexity normalizing flow-based detector that concurrently identifies in-distribution misclassification (IDM) and out-of-distribution (OOD) samples in semantic segmentation without retraining the backbone model. By modeling free energy likelihoods in both logit and latent spaces using a 2D Glow-like architecture, FlowEneDet achieves state-of-the-art performance on Cityscapes, Fishyscapes, and SegmentMeIfYouCan benchmarks with minimal memory and inference overhead.

ABSTRACT

Recent semantic segmentation models accurately classify test-time examples that are similar to a training dataset distribution. However, their discriminative closed-set approach is not robust in practical data setups with distributional shifts and out-of-distribution (OOD) classes. As a result, the predicted probabilities can be very imprecise when used as confidence scores at test time. To address this, we propose a generative model for concurrent in-distribution misclassification (IDM) and OOD detection that relies on a normalizing flow framework. The proposed flow-based detector with an energy-based inputs (FlowEneDet) can extend previously deployed segmentation models without their time-consuming retraining. Our FlowEneDet results in a low-complexity architecture with marginal increase in the memory footprint. FlowEneDet achieves promising results on Cityscapes, Cityscapes-C, FishyScapes and SegmentMeIfYouCan benchmarks in IDM/OOD detection when applied to pretrained DeepLabV3+ and SegFormer semantic segmentation models.

Motivation & Objective

  • To address the critical limitation of discriminative semantic segmentation models in handling distributional shifts and out-of-distribution (OOD) inputs.
  • To develop a detector that simultaneously identifies in-distribution misclassifications (IDM) and OOD samples at test time.
  • To maintain the original model's mIoU accuracy by avoiding retraining, enabling deployment on already-deployed models.
  • To design a lightweight, efficient detector with marginal memory and computational overhead.
  • To model free energy likelihoods for both correct predictions and negative cases (IDM/OOD) using a generative normalizing flow framework.

Proposed method

  • FlowEneDet employs a normalizing flow architecture to model the likelihood of a scalar free energy score $ E_{\bm{\lambda}}(\mathbf{x}) $ for correctly classified in-distribution samples.
  • It explicitly models the likelihood of negative samples (IDM and OOD) using an opposite energy score $ \bar{E}_{\bm{\lambda}}(\mathbf{x}) $, trained on the same empirical training data.
  • The flow network is a 2D Glow-like architecture that leverages spatial context in both logit and latent spaces for improved segmentation-aware energy modeling.
  • The model is trained end-to-end on top of a fixed, pretrained segmentation backbone (e.g., DeepLabV3+ or SegFormer), enabling zero-retraining deployment.
  • Test-time augmentation (TTA) is applied to refine confidence scores, especially for fine-grained OOD object boundaries.
  • The method uses a compact flow design with 4–8 coupling blocks, ensuring low complexity and only up to 8% increase in model size.

Experimental results

Research questions

  • RQ1Can a single, lightweight detector effectively identify both in-distribution misclassifications and out-of-distribution samples in semantic segmentation?
  • RQ2Can a normalizing flow model trained on in-distribution data alone reliably estimate likelihoods for both correct predictions and diverse negative cases (IDM/OOD)?
  • RQ3Does the proposed energy-based flow detector maintain the original model's mIoU accuracy while adding robustness to distributional shifts?
  • RQ4How does the detector's performance vary across different backbone architectures, particularly convolutional vs. transformer-based models?
  • RQ5What is the computational and memory overhead of deploying the detector on real-world segmentation models?

Key findings

  • FlowEneDet achieves state-of-the-art performance on IDM and OOD detection benchmarks, including Cityscapes, Cityscapes-C, Fishyscapes, and SegmentMeIfYouCan, without retraining the segmentation backbone.
  • On the Cityscapes-C benchmark, FlowEneDet significantly outperforms existing methods in detecting OOD samples under distributional shifts.
  • The model maintains the original mIoU accuracy of the backbone (e.g., DeepLabV3+ and SegFormer), confirming no degradation in in-distribution performance.
  • Inference speed is reduced by only 5% to 44% compared to the base model, with a marginal 8% increase in model size at most.
  • The transformer-based SegFormer backbone with FlowEneDet produces more consistent and accurate confidence scores than the convolutional DL-R101 backbone, especially in complex scenes.
  • Test-time augmentation (TTA) improves OOD boundary detection by refining multi-scale confidence scores, reducing spurious false positives.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.