Introduction: The Reliability Gap in Object Detection
Object Detection (OD) is a foundational task in computer vision, powering critical systems from autonomous vehicles to medical diagnostics. Despite their impressive performance, modern deep learning models are often overconfident and lack formal reliability. A confidence score of 0.9 for a "Pedestrian" is typically a heuristic rather than a calibrated statistical probability.
While Conformal Prediction (CP) provides a framework for distribution-free uncertainty quantification, its application to OD is non-trivial. OD is a multi-stage process involving filtering, localization, and classification—steps that are deeply interdependent. Previous conformal methods often addressed these components in isolation or were tied to specific architectures. This paper introduces Sequential Conformal Risk Control (SeqCRC), a unified framework that provides holistic statistical guarantees across the entire detection pipeline.
Methodology: Sequential Conformal Risk Control (SeqCRC)
SeqCRC is a post-hoc wrapper that can be applied to any pre-trained detector (e.g., YOLO, DETR) without retraining. The framework ensures that the true object is captured within the predicted localization and classification sets with a user-defined probability.
The core innovation is a two-step calibration process:
- Confidence Thresholding: The system identifies a threshold ($\lambda^{cnf}$) to retain a sufficient number of candidate boxes, ensuring the ground truth objects are likely included in the initial set.
- Sequential Task Calibration: For the retained boxes, the system simultaneously calibrates a localization margin (expanding the bounding box) and a classification set (a list of potential labels).
A key technical challenge in OD is that the matching process between predicted and ground-truth boxes can be "noisy" and non-monotone. To address this, the authors employ a monotonization trick, ensuring that increasing the uncertainty allowance strictly decreases the error risk—a prerequisite for rigorous statistical proofs.
Experimental Setup and Datasets
The framework was evaluated using the MS-COCO dataset. The validation split was divided into:
- Calibration Set (2,500 images): Used to tune the conformal parameters.
- Test Set (2,500 images): Used to verify the statistical guarantees on unseen data.
To demonstrate model agnosticism, SeqCRC was tested on two distinct architectures: YOLOv8 (single-stage CNN) and DETR (transformer-based).
Key Insights
- Error Budget Allocation: Users can split a total "error budget" ($\alpha^{tot}$) between localization and classification. This allows practitioners to prioritize precision in one domain (e.g., tighter boxes) over the other (e.g., more certain labels).
- The Cost of Certainty: SeqCRC makes the trade-off between reliability and precision transparent. To achieve a 95% recall guarantee, the model may output larger bounding boxes or multi-label sets for ambiguous objects.
- Matching Strategy: The method for matching predictions to ground truth significantly impacts set sizes. The authors found that a "Mix" distance, combining spatial and label information, offered the most efficient trade-off.
Results and Performance
In all experimental configurations, the empirical risk on the test set remained below the user-defined threshold ($\alpha$). For a 10% global error rate, classification sets were typically singletons for clear objects, only expanding when visual evidence was ambiguous. Furthermore, the use of "pixel-wise" loss enabled tighter, more informative bounding boxes compared to traditional box-wise losses, while maintaining statistical validity.
Limitations and Future Directions
While SeqCRC effectively controls Recall (ensuring objects aren't missed), it does not directly control Precision (preventing false positives). While the optimization seeks the smallest valid sets, a model could theoretically satisfy the guarantee with overly broad predictions. Additionally, the quality of conformal sets is inherently limited by the consistency of ground-truth annotations.
Future work includes extending the framework to video sequences for temporal conformal prediction and developing adaptive margins that respond to local image features, such as blur or low lighting.
The authors have released the Conformal Object Detection Toolkit (CODS) on GitHub for community use.
Summary updated