TL;DR
This paper introduces IBP IoU, a novel approach for formally verifying the stability of object detection models, specifically focusing on the Intersection over Union (IoU) metric. By developing a method to bound the non-linear IoU function, they enable robust verification of object detectors against plausible perturbations, crucial for safety-critical applications like aircraft landing.
What Problem Does This Paper Address?
Ensuring the reliability of machine learning models, especially in safety-critical domains, is paramount. Object detection models, which identify and localize objects in images, are a key component in many such systems, like autonomous driving or aviation. A critical property for these models is stability: their ability to maintain correct performance even when faced with minor, plausible variations in the input data (e.g., slight changes in lighting, noise).
The challenge lies in formally verifying this stability property. Object detection models often output bounding boxes, and their performance is evaluated using metrics like Intersection over Union (IoU), which measures the overlap between predicted and ground-truth bounding boxes. However, IoU is a non-linear function, making it difficult to analyze using traditional formal verification techniques that typically rely on linear properties. This paper tackles the problem of formally verifying the stability of object detection models with respect to the IoU metric under various input perturbations.
Methods
The authors propose a two-step approach:
- Perturbation and Reachable Set Computation: The first step involves applying perturbations to the input image and then using existing abstract interpretation tools (like Auto-LiRPA) to compute the reachable set of outputs for the object detection model. Instead of precise bounding boxes, this step yields intervals for the bounding box coordinates, representing the range of possible outputs under the given perturbations. They consider three types of perturbations: white noise, brightness, and contrast.
- IoU Interval Extension: The second step is the core contribution: formally bounding the IoU function itself. Since IoU is non-linear and complex, they develop two methods for "interval extension" to soundly bound its value given the perturbed bounding box intervals from Step 1:
- Vanilla IoU: This method bounds each primitive operation (addition, subtraction, multiplication, division, min, max) within the IoU calculation using standard interval arithmetic rules.
- Optimal IoU: This more advanced method aims for tighter bounds by analyzing the variations of the IoU function with respect to its input coordinates. It leverages partial derivatives to find the exact minimum and maximum IoU values achievable within the given input intervals. This approach is more computationally intensive but yields more precise results.
Datasets
The paper evaluates their approach on two datasets:
- MNIST: A standard dataset for handwritten digit recognition. For this use case, images are augmented by placing digits on larger backgrounds, and the ground truth box is fixed.
- LARD: A custom dataset for runway detection in aerial images, specifically designed for landing approach scenarios. This dataset is considered more challenging due to varying ground truth box sizes.
Key Insights and Ideas
- Formalizing Stability for Object Detection: The paper successfully formalizes the "stability property" for object detection, defining it as a minimal threshold on the IoU between the predicted bounding box and the ground-truth box under perturbations.
- Bridging the Gap for Non-linear Metrics: The development of "IoU interval extension" is a significant contribution, enabling formal verification of non-linear metrics like IoU, which is crucial for many real-world ML applications.
- Optimality Matters: The "Optimal IoU" extension significantly outperforms the "Vanilla IoU" in terms of tightness, leading to more accurate stability guarantees and fewer false positives. This highlights the importance of carefully handling non-linear functions in formal verification.
- Step 1 is Crucial: The tightness of the reachable sets computed in Step 1 (using tools like CROWN-IBP vs. CROWN) has a substantial impact on the final verification results.
Key Results
- The proposed IBP IoU approach, particularly with the Optimal IoU extension, demonstrates superior performance in certifying the stability of object detection models.
- On the LARD dataset, the Optimal IoU extension consistently achieved higher bounds than Vanilla IoU, with Vanilla IoU often failing to find any stable boxes.
- For example, under a brightness perturbation, Vanilla IoU with the CROWN method resulted in a false positive rate ranging from 2.6% to 80% for a threshold of 0.5, whereas Optimal IoU significantly reduced this.
- The paper also shows that their method can be combined with existing verification techniques for other stages of a pipeline (e.g., semantic segmentation for pose estimation), allowing for end-to-end verification.
Limitations and Future Work
- Scalability: While the approach is described as scalable, the computational cost of Step 1 (using abstract interpretation tools) can still be a bottleneck for very large models.
- Model Complexity: The current work focuses on single-box object detection. Future work aims to extend this to more complex scenarios, including models with Non-Maximum Suppression (NMS) and multi-object detection architectures like YOLO.
- Defining "Safe" Distances: An open question is determining at what distance from the runway an object detection model should be considered stable, and what the appropriate IoU threshold should be for different scenarios.
- Certified Training: The authors express interest in exploring "certified training" for object detection, where models are trained to be provably robust, balancing performance on training data with formal guarantees.
Summary updated