VerifIoU -- Robustness of Object Detection to Perturbations

Noémie Cohen, Mélanie Ducoffe, Ryma Boumazouza, Christophe Gabreau, Claire Pagetti, Xavier Pucel, A. Galametz · DOI

Abstract

We introduce a novel Interval Bound Propagation (IBP) approach for the formal verification of object detection models, specifically targeting the Intersection over Union (IoU) metric. The approach has been implemented in an open source code, named IBP IoU, compatible with popular abstract interpretation based verification tools. The resulting verifier is evaluated on landing approach runway detection and handwritten digit recognition case studies. Comparisons against a baseline (Vanilla IBP IoU) highlight the superior performance of IBP IoU in ensuring accuracy and stability, contributing to more secure and robust machine learning applications.

Introduction

While formal verification has seen significant progress in image classification—answering binary questions like "Is this a stop sign?"—verifying object detection presents a much steeper challenge. In detection, the model must not only identify the object but also precisely localize it. The industry standard for measuring this localization accuracy is the Intersection over Union (IoU), defined as the ratio of the overlap area between the predicted bounding box and the ground truth box to the area of their union.

For safety-critical applications, such as autonomous driving or aeronautical landing systems, it is vital to guarantee a minimum IoU under adverse conditions like sensor noise or lighting changes. However, the IoU function is mathematically complex: it is multi-dimensional, non-convex, and non-linear. As illustrated in Figure 1, even slight input perturbations can lead to significant shifts in the predicted bounding box, causing the IoU to drop precipitously and potentially leading to system failure.

Impact of perturbations on bounding box prediction and resulting IoU values.

Methodology

The proposed VerifIoU framework utilizes a two-step verification pipeline to provide formal guarantees on the worst-case IoU.

1. Bounding the Coordinates

First, the framework employs existing abstract interpretation solvers (such as Auto-LiRPA, CROWN, or standard IBP) to determine the range of possible values for the four coordinates of the predicted bounding box ($z_0, z_1, z_2, z_3$) given a set of input perturbations $\epsilon$.

2. The IBP-IoU Step

The core contribution of this work is the propagation of these coordinate bounds into a tight IoU bound. Two methods were developed:

  • Vanilla IBP IoU: This baseline uses standard interval arithmetic. While computationally efficient, it is often "leaky," significantly overestimating the error and providing loose bounds.
  • Optimal IBP IoU: By deriving the partial derivatives of the IoU function, the researchers discovered that IoU exhibits partial monotonicity. This allows for the calculation of the exact global minimum and maximum IoU values for a given set of coordinate intervals by checking specific vertices of the coordinate domain. This approach is solver-agnostic and can be integrated into various neural network verification frameworks.

Experimental Evaluation

The framework was evaluated on two distinct benchmarks:

  • DIGIT_LOC: A localization task where MNIST handwritten digits are placed on a $90 \times 90$ background. This serves as a controlled environment for testing robustness against white noise.
  • LARD (Landing Approach Runway Detection): A high-stakes aeronautical dataset featuring aerial images of runways. This dataset is particularly challenging because the target size varies significantly based on the aircraft's distance, making the model's precision critical during the final stages of landing.

Results and Discussion

The primary metric for evaluation is Verified Box Accuracy (VBA), which represents the percentage of test images where the model is formally guaranteed to maintain an IoU above a specified safety threshold (typically 0.5).

Superior Tightness and Efficiency

On the DIGIT_LOC dataset, the Optimal IBP IoU method achieved a VBA of 35%, outperforming previous state-of-the-art methods which reached only 27%. Crucially, while the optimal calculation is more complex than the vanilla version, the computational overhead is negligible (measured in milliseconds) compared to the time required to verify the preceding neural network layers.

Insights on Model Vulnerability

The LARD experiments provided a formal quantification of a known intuition: models are significantly more sensitive to perturbations when the target object is small. In the context of landing, this means the system is most vulnerable when the aircraft is furthest from the runway. The framework also successfully provided guarantees for uniform perturbations like brightness and contrast, which are essential for ensuring all-weather operational reliability.

Conclusion

VerifIoU brings formal rigor to the evaluation of object detection models by providing tight, mathematically sound bounds on the IoU metric. While currently limited to single-object detection with fixed ground truths, this work establishes a foundation for more robust safety cases in autonomous systems. Future research will focus on extending these techniques to multi-object scenarios and semantic perturbations where the ground truth itself may be subject to geometric shifts.

Summary updated

BibTeX
@misc{cohen2024verifiou,
  author = {Noémie Cohen and Mélanie Ducoffe and Ryma Boumazouza and Christophe Gabreau and Claire Pagetti and Xavier Pucel and A. Galametz},
  title = {{VerifIoU -- Robustness of Object Detection to Perturbations}},
  year = {2024},
  eprint = {2403.08788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.08788},
}
Figure