[Paper Review] DeepSafe: A Data-driven Approach for Checking Adversarial Robustness in Neural Networks
DeepSafe proposes a data-guided method that partitions the input space into safe regions via label-guided clustering and uses formal verification (Relupex) to prove robustness or expose adversarial examples, including targeted robustness guarantees.
Deep neural networks have become widely used, obtaining remarkable results in domains such as computer vision, speech recognition, natural language processing, audio recognition, social network filtering, machine translation, and bio-informatics, where they have produced results comparable to human experts. However, these networks can be easily fooled by adversarial perturbations: minimal changes to correctly-classified inputs, that cause the network to mis-classify them. This phenomenon represents a concern for both safety and security, but it is currently unclear how to measure a network's robustness against such perturbations. Existing techniques are limited to checking robustness around a few individual input points, providing only very limited guarantees. We propose a novel approach for automatically identifying safe regions of the input space, within which the network is robust against adversarial perturbations. The approach is data-guided, relying on clustering to identify well-defined geometric regions as candidate safe regions. We then utilize verification techniques to confirm that these regions are safe or to provide counter-examples showing that they are not safe. We also introduce the notion of targeted robustness which, for a given target label and region, ensures that a NN does not map any input in the region to the target label. We evaluated our technique on the MNIST dataset and on a neural network implementation of a controller for the next-generation Airborne Collision Avoidance System for unmanned aircraft (ACAS Xu). For these networks, our approach identified multiple regions which were completely safe as well as some which were only safe for specific labels. It also discovered several adversarial perturbations of interest.
Motivation & Objective
- Motivate robust evaluation of neural networks beyond point-wise adversarial checks, aiming to certify robustness over input regions.
- Develop a data-guided clustering approach that yields well-defined safe regions with consistent labeling.
- Provide formal verification within each region to guarantee robustness or expose counterexamples.
- Introduce targeted robustness to guarantee protection against misclassification to specific target labels within regions.
- Demonstrate scalability and applicability on safety-critical ACAS Xu networks and MNIST classifier.
Proposed method
- Introduce label-guided clustering that extends kMeans to produce dense clusters with consistent labels by recursively splitting mixed-label clusters.
- Define a cluster as a safe region if all inputs within its radius have the same true label; shrink radius to r = average distance to centroid to increase likelihood of consistency.
- Represent robustness checks as targeted properties: for a cluster with label l, verify that no input within distance r from the centroid maps to any other label l' (Eq. 2).
- Use Reluplex to verify the negation of the cluster’s hypothesis (Eq. 2) for each potential target label l' to certify targeted robustness (or produce an adversarial example).
- Prioritize target labels by descending centroid scores to optimize verification effort; perform verification within small clusters to improve tractability and enable parallelization.
- Handle distance metrics by using L2 for clustering and L1 for Reluplex verification (as an upper bound) to preserve validity of found perturbations; improve scalability via bound tightening and cluster-level containment.
Experimental results
Research questions
- RQ1Can label-guided clustering create small, dense, single-label regions suitable for robustness verification?
- RQ2Does verification within these regions yield formal guarantees of robustness, including targeted robustness against specific misclassifications?
- RQ3How scalable is cluster-based robustness verification compared to point-wise adversarial searches?
- RQ4What kinds of adversarial perturbations and safe regions arise in safety-critical networks (e.g., ACAS Xu) and standard datasets (e.g., MNIST)?
Key findings
- The method identified multiple completely safe regions and several regions safe for specific labels in ACAS Xu.
- Some clusters were safe only for particular target labels, indicating nuanced regional robustness.
- The approach discovered adversarial perturbations of interest and highlighted regions requiring more training data.
- ACAS Xu experiments yielded 125 safe clusters, 52 targeted safe clusters, and 33 timeouts among 210 clusters analyzed (Table 1).
- Further cluster details showed various clusters labeled as safe, targeted safe, or unsafe across different slices and radii (Table 2).
- The technique demonstrated scalability by decomposing robustness into regional proof obligations and enabling parallel verification of clusters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.