TL;DR
This paper introduces a scalable framework for verifying the robustness of semantic segmentation networks (SSNs) using conformal inference. By replacing traditional, error-prone surrogate models with a novel "clipping block" and a deflation-based PCA for dimensionality reduction, the authors provide strong probabilistic safety guarantees that are significantly less conservative and more computationally efficient than current state-of-the-art methods.
What Problem Does This Paper Address?
Semantic segmentation—the task of assigning a class label to every pixel in an image—is vital for safety-critical systems like autonomous vehicles and medical diagnostics. However, deep learning models are notoriously fragile to adversarial attacks and noise.
Verifying the "robustness" of these models (proving they won't change their prediction under slight input perturbations) is a massive challenge. Deterministic verification methods, which try to prove a property holds for all possible inputs, simply don't scale to the millions of dimensions found in modern image segmentation. Probabilistic methods, like randomized smoothing, often rely on the "union bound" to provide guarantees across all pixels. As the number of pixels grows, these guarantees become so "conservative" (loose) that they often label almost every pixel as "unknown," making the analysis practically useless.
Methods
The authors propose a framework that combines Conformal Inference (CI) with a new surrogate modeling technique.
- Conformal Inference (CI): This is a statistical framework used to generate prediction regions with a user-defined probability of containing the true value. It is "distribution-free," meaning it doesn't make strong assumptions about the underlying data.
- The Clipping Block: Previous attempts at this used a small ReLU neural network as a "surrogate" to approximate the complex segmentation model. These surrogates often suffered from low fidelity. The authors replace this with a "clipping block" that constructs a convex hull from training data outputs. Unseen outputs are projected onto this hull using linear programming. This provides a tighter, more accurate deterministic reachable set without the need for additional surrogate training.
- Deflation-based PCA: To handle the high dimensionality of logit vectors (the raw scores before the final class is chosen), the authors use a learning-based deflation algorithm. This extracts principal components one by one, allowing the method to scale to massive output spaces where standard PCA would fail.
- Reachset Inflation: To account for the error between the original model and the surrogate, they use CI to calculate an "inflating set" (a hyper-rectangle). They then use the Minkowski sum to combine the surrogate's reachable set with this inflation set, resulting in a final, provable probabilistic reachset.
Datasets
The framework was evaluated on four diverse, large-scale datasets:
- CamVid: Urban street scenes for autonomous driving.
- OCTA-500: Optical coherence tomography angiography (medical imaging of the eye).
- Lung Segmentation: Chest X-rays for medical diagnostics.
- Cityscapes: A standard benchmark for urban scene understanding.
Key Insights and Ideas
- Error vs. Magnitude: A key "aha moment" is that while raw model outputs are huge and complex, the prediction error between a model and a good surrogate is relatively small. By applying Conformal Inference to these smaller errors, the resulting safety bounds are much tighter.
- Training-Free Surrogates: By using a convex hull of existing training outputs (the clipping block) instead of training a new neural network surrogate, the authors eliminate "fidelity issues" and the scalability bottlenecks associated with training high-dimensional surrogates.
- Architecture Agnostic: The framework treats the segmentation network as a black box. It doesn't matter if the underlying model is a UNet, a BiSeNet, or a Transformer; the verification happens on the input-output relationship.
Key Results
- Reduced Conservatism: On the Cityscapes dataset, the proposed "Naive" approach (a baseline for their method) resulted in only 0.06% to 0.07% uncertifiable pixels. In contrast, prior state-of-the-art methods like SEGCERTIFY and ADAPTIVECERTIFY had uncertifiable rates as high as 39% and 28%, respectively.
- Scalability: The method successfully verified models with over 65 million parameters (HRNetV2) and handled perturbations across the entire image.
- Efficiency: While deterministic tools like NNV or $\alpha,\beta$-CROWN often encounter out-of-memory (OOM) errors or take hours on these tasks, the proposed framework completed verification in roughly 3.5 to 18 minutes depending on the model.
Limitations and Future Work
- Prior Distribution Assumptions: The current work assumes a uniform distribution for the input uncertainty ($W$). The authors note that this could be extended to "worst-case" distribution analysis using robust conformal inference.
- Linear Programming Bottlenecks: Although the clipping block is more efficient than previous surrogates, projecting onto a convex hull via linear programming can still become slow as the output dimensionality increases. The authors use PCA to mitigate this, but further optimizations in high-dimensional geometry could improve speed.
- Probabilistic vs. Deterministic: The authors acknowledge that while their method is scalable, it provides probabilistic guarantees rather than the absolute deterministic guarantees required by some ultra-strict safety standards.
Summary updated