Unmasking Anomalies in Road-Scene Segmentation
Shyam Nandan Rai, Fabio Cermelli, Dario Fontanel, Carlo Masone, Barbara Caputo
Abstract
Anomaly segmentation is a critical task for driving applications, and it is approached traditionally as a perpixel 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 stateof-the-art. Github
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Prior2former - Evidential Modeling of Mask Transformers for Assumption-Free Open-World Panoptic Segmentation cites Energy-based Out-of-distribution Detection
- Prior2former - Evidential Modeling of Mask Transformers for Assumption-Free Open-World Panoptic Segmentation cites Per-Pixel Classification is Not All You Need for Semantic Segmentation
- Segment Every Out-of-Distribution Object cites Energy-based Out-of-distribution Detection
- Segment Every Out-of-Distribution Object cites Detecting the Unexpected via Image Resynthesis
- Segmenting Objectiveness and Task-awareness Unknown Region for Autonomous Driving cites Segment Every Out-of-Distribution Object
- Segmenting Objectiveness and Task-awareness Unknown Region for Autonomous Driving cites Per-Pixel Classification is Not All You Need for Semantic Segmentation
- Segmenting Objectiveness and Task-awareness Unknown Region for Autonomous Driving cites Detecting the Unexpected via Image Resynthesis
- Generalize or Detect? Towards Robust Semantic Segmentation Under Multiple Distribution Shifts cites Detecting the Unexpected via Image Resynthesis
- LiON: Learning Point-Wise Abstaining Penalty for LiDAR Outlier DetectioN Using Diverse Synthetic Data cites Segment Every Out-of-Distribution Object
Cited by top-tier papers13
- Segment Every Out-of-Distribution ObjectWenjie Zhao, Jia Li, Xin Dong, Yu Xiang et al.CVPR 2024 · 11 citations
- Generalize or Detect? Towards Robust Semantic Segmentation Under Multiple Distribution ShiftsZhitong Gao, Bingnan Li, Mathieu Salzmann, Xuming HeNeurIPS 2024 · 10 citations
- LiON: Learning Point-Wise Abstaining Penalty for LiDAR Outlier DetectioN Using Diverse Synthetic DataShaocong Xu, Pengfei Li, Qianpu Sun, Xinyu Liu et al.AAAI 2025 · 6 citations
- Prior2former - Evidential Modeling of Mask Transformers for Assumption-Free Open-World Panoptic SegmentationSebastian Schmidt, Julius Körner, Dominik Fuchsgruber, Stefano Gasperini et al.ICCV 2025 · 3 citations
- Segmenting Objectiveness and Task-awareness Unknown Region for Autonomous DrivingMi Zheng, Guanglei Yang, Zitong Huang, Zhenhua Guo et al.ACM MM 2025 · 1 citation
Builds on16
- Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li et al.ICLR 2021 · 7,353 citations
- Barlow Twins: Self-Supervised Learning via Redundancy ReductionJure Zbontar, Li Jing, Ishan Misra, Yann LeCun et al.ICML 2021 · 2,942 citations
- Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
- Per-Pixel Classification is Not All You Need for Semantic SegmentationBowen Cheng, Alexander G. Schwing, Alexander KirillovNeurIPS 2021 · 2,196 citations
- Detecting the Unexpected via Image ResynthesisKrzysztof Lis, Krishna Kanth Nakka, Pascal Fua, Mathieu SalzmannICCV 2019 · 217 citations
Related papers
- ContrastMask: Contrastive Learning to Segment Every ThingXuehui Wang, Kai Zhao, Ruixin Zhang, Shouhong Ding et al.CVPR 2022 · 45 citations
- Beyond Pixel Uncertainty: Bounding the OoD Objects in Road ScenesHuachao Zhu, Zelong Liu, Zhichao Sun, Yuda Zou et al.ICCV 2025 · 1 citation
- One-for-All: Proposal Masked Cross-Class Anomaly DetectionXincheng Yao, Chongyang Zhang, Ruoqi Li, Jun Sun et al.AAAI 2023 · 42 citations
- Masked-attention Mask Transformer for Universal Image SegmentationBowen Cheng, Ishan Misra, Alexander G. Schwing, Alexander Kirillov et al.CVPR 2022
- RbA: Segmenting Unknown Regions Rejected by AllNazir Nayal, Misra Yavuz, João F. Henriques, Fatma GüneyICCV 2023 · 73 citations
