Adaptive Hierarchical Certification for Segmentation using Randomized Smoothing

Alaa Anani, Tobias Lorenz, Bernt Schiele, Mario Fritz

Introduction

In safety-critical domains such as autonomous driving and medical imaging, the robustness of semantic segmentation models is paramount. Randomized smoothing has emerged as a leading technique for providing mathematical guarantees against adversarial perturbations. However, applying this to dense pixel-wise tasks often results in high abstention rates. This paper presents AdaptiveCertify, a method that leverages semantic hierarchies to provide useful certifications even when fine-grained certainty is low.

The Challenge of Pixel-wise Certification

Standard certification methods like SegCertify employ a "flat" classification approach. If a pixel's prediction is unstable under noise—for instance, if the model fluctuates between 'car' and 'truck'—the system must abstain from making a certified prediction. This leads to significant "blind spots" in the output, particularly at object boundaries where uncertainty is naturally higher. The authors observed that these fluctuations are rarely random; they typically occur between semantically related classes.

Adaptive Hierarchical Certification

The core innovation of AdaptiveCertify is the use of a Directed Acyclic Graph (DAG) representing a semantic hierarchy. Instead of a binary choice between a specific class and abstention, the algorithm can adaptively relax its certification to a coarser parent node (e.g., certifying a pixel as a 'vehicle' rather than specifically a 'car').

The process involves three key steps:

  1. Fluctuation Detection: Identifying unstable pixels using a small initial noise sample to observe probability differences between top predicted classes.
  2. Adaptive Mapping: Mapping uncertain pixels to higher levels in the hierarchy based on their instability.
  3. Hierarchical Certification: Running the full randomized smoothing process to certify the pixel at the assigned level of granularity using multiple hypothesis testing.

To evaluate this approach, the authors introduce Certified Information Gain (CIG). Unlike standard accuracy, CIG rewards more specific (leaf-node) predictions while still providing credit for correct coarse-grained predictions, preventing models from "cheating" by only predicting the most general categories.

Evaluation and Results

The authors evaluated AdaptiveCertify across four diverse datasets: Cityscapes, ACDC, PASCAL-Context, and COCO-Stuff-10K.

Visual comparison of SegCertify and AdaptiveCertify on Cityscapes and ACDC datasets.

As shown in the results, AdaptiveCertify consistently outperforms the non-adaptive baseline. On the complex COCO-Stuff-10K dataset, which features 171 classes, the method reduced abstention rates by up to 35 percentage points. Crucially, it excels at "rescuing" boundary pixels, which are the primary source of abstentions in standard methods. By grouping semantically related but fluctuating classes (e.g., 'grass' and 'dirt' under 'ground'), the model maintains safety guarantees while providing actionable information. On Cityscapes, the relative improvement in boundary pixel coverage reached approximately 29%.

Conclusion

AdaptiveCertify effectively navigates the tradeoff between robustness and information density. By recognizing that model fluctuations are often semantically grounded, the hierarchical approach significantly reduces the need for abstention in safety-critical segmentation tasks. While the method currently relies on manually designed hierarchies, future work may involve automating hierarchy generation to extend this framework to even more specialized domains.

Summary updated

BibTeX
@inproceedings{anani2024adaptive,
  author = {Alaa Anani and Tobias Lorenz and Bernt Schiele and Mario Fritz},
  title = {{Adaptive Hierarchical Certification for Segmentation using Randomized Smoothing}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=iOEReiiTit},
}
Figure