CNN-Cert: An Efficient Framework for Certifying Robustness of Convolutional Neural Networks

Akhilan Boopathy, Tsui-Wei Weng, Pin-Yu Chen, Sijia Liu, Luca Daniel

Abstract

Deep neural networks are notoriously vulnerable to adversarial perturbations—tiny, often imperceptible changes to an input that cause a model to misclassify it. While empirical testing is common, safety-critical applications require formal robustness certification: a mathematical guarantee that no perturbation within a defined range can alter the model's prediction. CNN-Cert is a general and highly efficient framework designed to provide these guarantees for Convolutional Neural Networks (CNNs). By exploiting the mathematical structure of convolutions and employing adaptive linear bounding, CNN-Cert achieves significant speedups over previous state-of-the-art methods while supporting a wide range of architectures, including ResNets and various non-ReLU activation functions.

Introduction: The Challenge of Robustness Certification

To trust deep learning models in safety-critical domains, we need more than just high accuracy; we need provable robustness. Certification aims to find the minimum distortion required to flip a model's label, but calculating this exactly is an NP-complete problem.

Existing "lower bound" estimators, which provide conservative estimates of this distortion, have historically faced three major hurdles:

  1. Poor Scalability: Methods like Dual-LP scale poorly to moderate-sized networks.
  2. Architectural Limitations: Algorithms like Fast-Lin or CROWN were often restricted to simple Multi-Layer Perceptrons (MLPs) or specific activations like ReLU.
  3. Computational Inefficiency: Previous tools often treated CNNs as flattened MLPs, ignoring the inherent computational efficiencies of the convolution operation itself.

Methods: Exploiting Convolutional Structure

CNN-Cert addresses these issues by deriving explicit linear upper and lower bounds for each building block of a network. The framework employs a "sandwich" approach where every non-linear operation (e.g., ReLU, Sigmoid, or Tanh) is bounded by two linear functions. These bounds are then propagated backward from the output layer to the input layer.

Overview of the building blocks supported by CNN-Cert, including Act-Conv, Residual, Batch Normalization, and Pooling blocks.

A key innovation of CNN-Cert is its direct operation in the "convolutional domain." Rather than converting CNNs into massive, sparse fully-connected matrices, CNN-Cert performs calculations using the convolution operation directly. This avoids the $O(r^6)$ complexity associated with flattened input sizes, leading to dramatic reductions in memory and compute overhead. As shown in Figure 1, the framework is highly general, supporting convolutional layers, max/average pooling, batch normalization, and residual blocks.

Key Insights

  • Unification of Prior Work: The authors demonstrate that existing state-of-the-art algorithms, such as Fast-Lin and CROWN, are actually special cases within the broader CNN-Cert framework.
  • Adaptive Bounding: For non-ReLU activations like sigmoid or tanh, CNN-Cert utilizes "adaptive" linear bounds that adjust based on the input range. This results in significantly tighter (more accurate) certificates than previous MLP-based adaptations.
  • Sensitivity to Architecture: The study reveals how different layers impact certifiable robustness. For example, the inclusion of max-pooling can sometimes decrease the certified robustness compared to architectures without it.

Key Results: Speed and Quality

The framework was rigorously evaluated on MNIST, CIFAR-10, and Tiny ImageNet. The results demonstrate that CNN-Cert is not only faster but also provides higher-quality certificates.

Comparison of average computation time and speed-up of CNN-Cert-Ada against other certification methods across different datasets and network architectures.

As detailed in Figure 6, CNN-Cert achieves up to a 17x speedup over Fast-Lin and is up to 366x faster than the Dual-LP approach. Beyond speed, it consistently finds larger certified lower bounds—improving the certified radius by 8% to 25% on pure CNNs. For networks utilizing sigmoid or tanh activations, the improvement in certificate quality reached up to 260% compared to older methods.

Conclusion and Future Directions

CNN-Cert represents a significant step forward in making formal verification practical for modern deep learning architectures. While it provides a conservative lower bound and still faces challenges scaling to massive industry-scale models (like ResNet-101 on full ImageNet), its efficiency opens new doors. One promising direction is using CNN-Cert during the training phase to develop models that are "robust by design," potentially surpassing the effectiveness of current adversarial training techniques.

Summary updated

BibTeX
@inproceedings{boopathy2019cnn,
  author = {Akhilan Boopathy and Tsui-Wei Weng and Pin-Yu Chen and Sijia Liu and Luca Daniel},
  title = {{CNN-Cert: An Efficient Framework for Certifying Robustness of Convolutional Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013240},
}
Figure