Abstract
Quantifying aleatoric uncertainty—the inherent noise and ambiguity in data—is a critical challenge in object detection due to varying scales, occlusions, and labeling errors. This paper introduces a novel, data-centric framework that leverages the rich feature space of the Segment Anything Model (SAM) to calculate a "plug-and-play" uncertainty score. By applying Mahalanobis distance scoring to SAM-extracted features, the authors enable uncertainty-aware data filtering and adaptive training. Experimental results demonstrate that this approach consistently improves the performance of state-of-the-art detectors like YOLOX and Deformable DETR across major benchmarks, including MS-COCO and BDD100K.
Introduction
In real-world datasets, not all annotations are of equal quality. Objects may be blurry, heavily occluded, or incorrectly labeled. This randomness, known as aleatoric uncertainty, can significantly hinder the training of object detection models. While well-understood in simple classification tasks, quantifying this uncertainty in detection is difficult because models must handle multiple objects at different scales within a single scene. Traditional manual ranking is unfeasible at scale. This research proposes using Vision Foundation Models (VFMs) to automatically identify and quantify these uncertainties without requiring architectural changes to existing detectors.
Methodology
The proposed framework utilizes a three-step pipeline to integrate uncertainty into the training process:
- Feature Extraction via SAM: The vision encoder from the Segment Anything Model (SAM) is used to extract high-resolution feature vectors for every object instance. SAM’s training on over a billion masks provides a robust, universal feature space.
- Mahalanobis Distance Scoring: The distribution of these features is modeled using a class-conditional Gaussian distribution. An object's uncertainty score is derived from its Mahalanobis distance—measuring how far its features deviate from the class "ideal."
- Applications:
- Uncertainty-Aware Filtering: Identifying and removing the top 5-10% most uncertain (noisy) samples to prevent model confusion.
- Sample Adaptive Regularizer (UA-entropy): A new loss term that adaptively weights entropy regularization based on the uncertainty score, helping the model balance easy and hard samples more effectively than standard Focal Loss.
Key Results
The method was validated on MS-COCO and the "noisy" BDD100K self-driving dataset. A key finding is that removing the most uncertain 5% of data actually improves accuracy, proving that noisy data can actively harm learning.
As shown in the table below, the UA-entropy method consistently outperforms vanilla training and standard entropy regularization across multiple architectures. On MS-COCO, it improved Deformable DETR's Average Precision (AP) from 46.22 to 47.59. On the challenging BDD100K dataset, the improvements were even more pronounced, with YOLOX-S seeing a boost from 28.16 to 32.53 AP.
Conclusion and Future Work
This work demonstrates that foundation models like SAM can act as "super-annotators," identifying data anomalies better than task-specific detectors. While currently an offline process requiring ground-truth boxes for initial scoring, the framework provides a powerful tool for data-centric AI. Future research will explore applying these strategies to Large Vision Language Models (LVLMs) to mitigate hallucinations caused by noisy training pairs.
Summary updated