Unmasking Anomalies in Road-Scene Segmentation

Shyam Nandan Rai, Fabio Cermelli, Dario Fontanel, Carlo Masone, Barbara Caputo
2/14/2026

No official code found. Best implementation: shyam671/Mask2Anomaly-Unmasking-Anomalies-in-Road-Scene-Segmentation (61 stars, last commit 2024-04-28).

Abstract

Anomaly segmentation is a critical task for driving applications, and it is approached traditionally as a per-pixel classification problem. However, reasoning individually about each pixel without considering their contextual semantics results in high uncertainty around the objects’ boundaries and numerous false positives. We propose a paradigm change by shifting from a per-pixel classification to a mask classification. Our mask-based method, Mask2Anomaly, demonstrates the feasibility of integrating an anomaly detection method in a mask-classification architecture. Mask2Anomaly includes several technical novelties that are designed to improve the detection of anomalies in masks: i) a global masked attention module to focus individually on the foreground and background regions; ii) a mask contrastive learning that maximizes the margin between an anomaly and known classes; and iii) a mask refinement solution to reduce false positives. Mask2Anomaly achieves new state-of-the-art results across a range of benchmarks, both in the per-pixel and component-level evaluations. In particular, Mask2Anomaly reduces the average false positives rate by 60% w.r.t. the previous state-of-the-art.

View on arXivView PDF

Code Implementations(1)

[ICCV'23 Oral] Unmasking Anomalies in Road-Scene Segmentation

6110C++, CudaApr 2, 20232 years ago
anomaly-detectioniccv2023mask-classificationood-detectionood-robustness+5 more

Similar Papers

Cite this paper

@article{rai2026unmasking,
  title  = {Unmasking Anomalies in Road-Scene Segmentation},
  author = {Shyam Nandan Rai and Fabio Cermelli and Dario Fontanel and Carlo Masone and Barbara Caputo},
  year   = {2026},
  eprint = {2307.13316},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.13316},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.13316.svg)](https://codeofpaper.com/paper/2307.13316)

Discussion