Prior2Former -- Evidential Modeling of Mask Transformers for Assumption-Free Open-World Panoptic Segmentation

TL;DR

Prior2Former integrates evidential learning with mask transformers for assumption-free open-world panoptic segmentation.

cs.CV 🔴 Advanced 2025-04-07 47 views
Sebastian Schmidt Julius Körner Dominik Fuchsgruber Stefano Gasperini Federico Tombari Stephan Günnemann
computer vision transformers uncertainty estimation open-world segmentation evidential learning

Key Findings

Methodology

Prior2Former (P2F) extends Mask2Former by incorporating Beta distribution priors to model pixel-wise uncertainty. It predicts distribution parameters (α, β) for each mask, quantifying confidence without relying on external OOD data or contrastive learning. The architecture includes a Beta-prior head, evidential sampling, a symmetric Dice loss, and uncertainty-based clustering, enabling multi-task learning for anomaly detection and open-world segmentation. During inference, the model computes the expected value of the Beta distribution to derive pixel uncertainty, facilitating unknown object detection and instance clustering.

Key Results

  • On datasets like Cityscapes, COCO, SegmentMeIfYouCan, and OoDIS, P2F outperforms state-of-the-art models in anomaly and open-world segmentation, achieving XX% AP and reducing FPR by XX%, all without external OOD samples.
  • In anomaly detection benchmarks, P2F surpasses existing methods with a significant margin in FPR@95TPR, demonstrating robust unknown object detection capabilities.
  • Ablation studies confirm the importance of Beta priors, symmetric Dice loss, and evidential sampling, with P2F showing superior uncertainty calibration and detection accuracy across scenarios.

Significance

This work addresses a critical gap by enabling models to estimate uncertainty and detect unknown objects without relying on external OOD data, thus enhancing robustness in real-world applications like autonomous driving. It provides a theoretically grounded, practical framework that balances known class performance with open-set detection, paving the way for safer, more reliable AI systems in complex environments.

Technical Contribution

The paper introduces a novel evidential learning mechanism based on Beta distributions within a transformer architecture, allowing pixel-level uncertainty quantification. The symmetric Dice loss and evidential sampling improve training stability and accuracy. Unlike prior methods, P2F does not depend on external OOD data or contrastive losses, offering a unified approach for multiple tasks including anomaly detection and open-world segmentation with theoretical guarantees of uncertainty calibration.

Novelty

This is the first integration of Beta distribution-based evidential learning into mask transformers for assumption-free open-world segmentation. Unlike existing approaches relying on external OOD data or contrastive learning, P2F models uncertainty directly through learned distribution parameters, enabling robust detection of unknown objects without prior assumptions about their distribution or appearance.

Limitations

  • In highly complex or data-scarce scenarios, the accuracy of Beta parameters may degrade, affecting uncertainty estimates and unknown object detection.
  • The approach's computational overhead, while minimal, still poses challenges for real-time deployment in high-resolution, multi-class environments.
  • Model performance in extreme class imbalance or novel scenarios with very few samples remains to be thoroughly validated.

Future Work

Future research could focus on integrating multi-modal data (e.g., LiDAR, radar) to improve uncertainty estimation in autonomous systems. Developing more efficient Beta parameter learning algorithms and extending the framework to video sequences for dynamic uncertainty tracking are promising directions. Additionally, exploring adaptive loss functions and scalable architectures will further enhance practical deployment.

AI Executive Summary

In the rapidly evolving field of autonomous perception, the ability to accurately segment and recognize objects in complex, unpredictable environments remains a fundamental challenge. Traditional segmentation models excel within the confines of predefined classes but falter when encountering novel or out-of-distribution objects, limiting their reliability in safety-critical applications like self-driving cars. Addressing this gap, Prior2Former (P2F) introduces a groundbreaking approach that combines evidential learning with mask transformers, enabling assumption-free open-world panoptic segmentation.

P2F extends the popular Mask2Former architecture by integrating a Beta distribution prior for pixel-wise uncertainty modeling. This innovation allows the model to quantify its confidence in each pixel's classification, effectively distinguishing known objects from unknown or anomalous ones without relying on external OOD datasets or contrastive training. The architecture includes a dedicated Beta-prior head, an evidential sampling mechanism, a symmetric Dice loss for robust training, and an uncertainty-based clustering method for instance differentiation.

Experimental results on datasets such as Cityscapes, COCO, SegmentMeIfYouCan, and OoDIS demonstrate that P2F achieves state-of-the-art performance across multiple tasks. It surpasses existing models in anomaly detection accuracy, with significant reductions in false positives, and maintains high performance on known classes. These results validate the model's ability to operate reliably in real-world, open-world scenarios, where unknown objects are common and unpredictable.

The significance of this work lies in its theoretical rigor and practical utility. By eliminating the dependence on external OOD data, P2F offers a scalable, robust solution for safety-critical systems, paving the way for more trustworthy autonomous agents. Its flexible architecture supports various tasks, including anomaly instance segmentation and holistic scene understanding, making it a versatile tool for future AI applications.

Despite its strengths, challenges remain. The approach's computational complexity and performance in extremely sparse or imbalanced data scenarios need further exploration. Future research directions include multi-modal integration, real-time adaptation, and scalability improvements, aiming to translate this promising framework into widespread, real-world deployment.

Deep Analysis

Background

近年来,自动驾驶、机器人等领域对场景理解的需求不断提升。早期方法多依赖卷积神经网络(如DeepLab系列)实现像素级语义分割,随后Transformer架构(如Swin Transformer)逐步展现优势。Panoptic segmentation结合语义与实例识别,代表性模型包括Panoptic-DeepLab和Mask2Former,强调端到端掩码预测。然而,这些模型普遍依赖预定义类别,面对未知类别或OOD(out-of-distribution)数据时表现不佳,限制了其在复杂环境中的应用。近年来,异常检测和开源分割成为研究热点,旨在突破类别限制,增强模型鲁棒性。尽管如此,现有方法多依赖外部OOD样本或对比学习,存在数据依赖和泛化能力不足的问题,亟需一种无需外部知识的鲁棒方案。

Core Problem

核心问题在于,现有分割模型在面对未知类别或OOD数据时,表现出过度自信或误判,主要源于缺乏对模型不确定性的有效估计。传统方法依赖外部OOD样本或对比训练,导致模型在实际场景中泛化能力有限。此外,模型在同时保证已知类别高性能和未知类别检测能力方面存在权衡,难以兼顾两者。如何在没有外部数据支持的情况下,准确衡量模型对每个像素的信心,识别未知或异常对象,成为亟待解决的关键难题。

Innovation

本研究的创新点在于引入贝塔分布作为像素级不确定性建模的基础,结合掩码变换器架构,提出无假设的开源场景鲁棒性方案。具体包括:• 贝塔先验头,学习像素级贝塔分布参数(α、β),描述模型信心;• 证据采样策略,提升训练效率和预测稳定性;• 对称Dice损失,平衡正负样本,提高二值掩码的预测质量;• 不依赖外部OOD样本,实现未知类别的检测与聚类。该方法突破了传统依赖外部知识的限制,提供一种理论严谨、实用性强的解决方案。

Methodology

  • �� 输入:RGB图像与标注;• 特征提取:利用骨干网络提取像素特征FE;• 掩码嵌入:Transformer计算掩码嵌入FM;• 贝塔先验:预测每个掩码的α、β参数,描述像素不确定性;• 采样:利用证据采样策略,从贝塔分布中采样掩码;• 损失函数:结合对称Dice、交叉熵和最大似然,优化模型;• 推理:计算像素不确定性,结合像素嵌入进行未知实例检测与聚类。

Experiments

采用Cityscapes、COCO、SegmentMeIfYouCan和OoDIS数据集,比较基线(Mask2Former、U3HS)和P2F在异常检测和开源任务中的性能。训练中使用ResNet-50骨干,验证贝塔先验、对称Dice和证据采样的贡献。指标包括AP、FPR、未知类别检测准确率,确保模型鲁棒性。

Results

P2F在所有测试集上优于对比模型,AP提升XX%,FPR降低XX%,在未知类别检测中表现尤为突出。消融实验显示贝塔先验和对称Dice损失对性能提升关键。模型在无外部OOD样本条件下,仍能准确识别未知对象,验证其理论创新和实用价值。

Applications

适用于自动驾驶、机器人、安防监控等场景,能在未知环境中检测新颖或异常对象。无需额外外部数据,便于部署,提升系统安全性。未来结合多模态信息,扩展到视频场景,实现动态不确定性估计。

Limitations & Outlook

在极端复杂或极少样本场景中,贝塔参数可能偏差,影响不确定性估计。高密度、多类别场景下计算成本仍需优化,模型在极端类别不平衡或新场景中的表现需验证。

Plain Language Accessible to non-experts

想象你在一家工厂工作,工厂每天都在生产不同的产品。有些产品你很熟悉,知道它们的特征,但有时候会出现新产品,工人们不知道它们是什么。传统检测系统只能识别已知的产品,遇到新产品时会误判或漏检。Prior2Former就像给工厂装上了一个智能检测员,它不仅能识别已知的产品,还能判断某个产品是否是未知的。它通过观察每个产品的细节,给出一个“信心值”,告诉你这个产品是否可靠。这个检测员不用提前知道所有可能出现的产品,只需要根据观察到的特征,判断出哪些是新颖或异常的。这样,无论工厂生产什么新产品,它都能及时发现,保证工厂的安全和效率。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的拼图游戏,你的任务是把所有拼图拼好,但有些拼图你从没见过,怎么知道它们是不是正确的?传统的方法只认熟悉的拼图,遇到新拼图就不知道怎么办。Prior2Former就像给你一个神奇的望远镜,它可以告诉你哪些拼图是你熟悉的,哪些是新出现的。它通过观察每个拼图的细节,给出一个“信心值”,告诉你这个拼图是不是可靠的。这样,即使遇到新拼图,你也能知道它是不是异常或未知的。这个方法不用提前知道所有可能出现的拼图,只要用观察和判断,就能发现新奇的拼图,保证游戏的顺利进行。

Glossary

Evidential Learning (证据学习)

一种基于Dempster–Shafer理论的概率模型,通过学习证据参数(α、β)来量化模型不确定性。

在论文中,用于像素级不确定性建模,避免依赖外部数据。

Beta Distribution (贝塔分布)

一种连续概率分布,由两个正参数α、β定义,用于二分类的先验分布,表示正负证据。

模型通过预测贝塔分布参数,衡量像素的信心与不确定性。

Mask2Former (掩码变换器)

一种端到端掩码预测架构,结合Transformer机制进行实例与语义分割。

作为P2F的基础架构,用于像素嵌入和掩码生成。

Uncertainty Estimation (不确定性估计)

量化模型对预测信心的技术,关键在于识别未知或异常样本。

在论文中,通过贝塔分布参数实现像素级不确定性。

Symmetric Dice Loss (对称Dice损失)

一种平衡正负样本的损失函数,用于二值掩码训练,提升预测稳定性。

优化模型二值掩码的准确性。

Open Questions Unanswered questions from this research

  • 1 如何提升贝塔参数在极端复杂场景中的表达能力,确保不确定性估计的准确性,仍需深入研究。
  • 2 模型在极少样本或极端类别不平衡情况下的鲁棒性有待验证,未来需设计更稳健的训练策略。

Applications

Immediate Applications

自动驾驶中的异常检测

利用P2F实时识别未知障碍物或行人,提高行车安全,适用于无人驾驶车辆。

工业机器人安全监控

检测生产线上的异常物体或误操作,保障生产安全和效率。

Long-term Vision

智能安防系统

实现全天候、全场景的未知入侵或异常行为检测,提升城市安全水平。

Abstract

In panoptic segmentation, individual instances must be separated within semantic classes. As state-of-the-art methods rely on a pre-defined set of classes, they struggle with novel categories and out-of-distribution (OOD) data. This is particularly problematic in safety-critical applications, such as autonomous driving, where reliability in unseen scenarios is essential. We address the gap between outstanding benchmark performance and reliability by proposing Prior2Former (P2F), the first approach for segmentation vision transformers rooted in evidential learning. P2F extends the mask vision transformer architecture by incorporating a Beta prior for computing model uncertainty in pixel-wise binary mask assignments. This design enables high-quality uncertainty estimation that effectively detects novel and OOD objects enabling state-of-the-art anomaly instance segmentation and open-world panoptic segmentation. Unlike most segmentation models addressing unknown classes, P2F operates without access to OOD data samples or contrastive training on void (i.e., unlabeled) classes, making it highly applicable in real-world scenarios where such prior information is unavailable. Additionally, P2F can be flexibly applied to anomaly instance and panoptic segmentation. Through comprehensive experiments on the Cityscapes, COCO, SegmentMeIfYouCan, and OoDIS datasets, P2F demonstrates state-of-the-art performance across the board.

cs.CV