Certifying Robustness of Convolutional Neural Networks with Tight Linear Approximation

Yuan Xiao, Tongtong Bai, Mingzheng Gu, Chunrong Fang, Zhenyu Chen

Abstract: The robustness of neural network classifiers is becoming critical in safety-sensitive domains. Robustness verification quantifies this by providing mathematical proofs of safety, yet current efficient techniques are often "loose," failing to prove robustness even when it exists. We present Ti-Lin, a Tight Linear approximation approach for the robustness verification of Convolutional Neural Networks (CNNs). Ti-Lin introduces neuron-wise tightest linear bounds for the MaxPool function and improved constraints for S-shaped activation functions. Evaluated across 48 CNNs on MNIST, CIFAR-10, and Tiny ImageNet, Ti-Lin significantly outperforms five state-of-the-art methods, improving certified robustness bounds by up to 253.54% for MaxPool layers while maintaining high computational efficiency.

The Challenge of Robustness Verification

Deep neural networks are notoriously "brittle"—small, imperceptible perturbations to an input (adversarial attacks) can cause them to flip their classification. To deploy these models in safety-critical areas like autonomous driving or medical imaging, we need robustness verification: a mathematical proof that for a given input, no small change within a certain range can alter the model's output.

The challenge lies in the non-linear layers of a network, such as ReLU or MaxPool. While "complete" verifiers provide exact proofs, they are computationally expensive (NP-complete). Consequently, researchers use "incomplete" verifiers that rely on linear relaxation—replacing complex non-linear functions with simpler linear upper and lower bounds. The "gap" between these bounds is called the over-approximation zone. If this zone is too large, the verifier becomes too "loose" and fails to prove robustness. MaxPool is particularly difficult to bound tightly because it is a multi-variate function that considers multiple pixels simultaneously.

Methods: Achieving Neuron-wise Tightness

Ti-Lin focuses on creating the tightest possible linear bounds for the MaxPool function. The core innovation lies in Neuron-wise Tightness, where the authors mathematically define and prove linear constraints that result in the smallest possible volume for the over-approximation zone.

Neuron-wise tightest linear approximation for the MaxPool function.

The method utilizes a Four-Case Logic to categorize the input regions of a MaxPool operation based on the relationship between the upper and lower bounds of the input neurons. By carefully selecting points on the "space diagonal" of the input region, Ti-Lin constructs a bounding plane that minimizes the integral of the error. Despite this increased precision, the algorithm remains highly efficient, with a time complexity of $O(pool\_size \times \log 3)$, allowing it to be integrated into existing high-speed verification frameworks like DeepPoly and $\alpha, \beta$-CROWN.

Key Results and Performance

Ti-Lin was evaluated across a diverse set of benchmarks, including image classification (MNIST, CIFAR-10, Tiny ImageNet) and 3D point cloud processing (ModelNet40). The results demonstrate that improving a single layer's bounding logic can significantly boost the performance of the entire verification ecosystem.

Experimental comparison of Ti-Lin against state-of-the-art methods across MNIST, CIFAR-10, and ModelNet40 datasets.

Key findings include:

  • Certified Accuracy: Ti-Lin outperformed state-of-the-art verifiers like 3DCertify and DeepPoly by significant margins, reaching up to a 78.6% improvement in certified accuracy for certain MNIST and CIFAR-10 configurations.
  • Speed: It achieved these results with almost no additional time cost compared to the fastest existing tools. In some cases, it provided a 420.9x speedup over tools like OSIP, which transform MaxPool into complex sequences of ReLU layers.
  • Tightness: Qualitative visualizations show that Ti-Lin consistently produced higher global lower bounds, providing a much more "certain" proof of safety than previous methods.

Conclusion

Ti-Lin represents a significant step forward in making robustness verification practical for complex CNNs. By providing the tightest linear bounds for multivariate functions like MaxPool, it narrows the gap between efficient incomplete verifiers and expensive complete ones. Future work may explore multi-neuron constraints to further reduce over-approximation and apply similar "tightest bound" logic to other complex layers used in modern architectures like Transformers.

Summary updated

Abstract

The robustness of neural network classifiers is becoming important in the safety-critical domain and can be quantified by robustness verification. However, at present, efficient and scalable verification techniques are always sound but incomplete. Therefore, the improvement of certified robustness bounds is the key criterion to evaluate the superiority of robustness verification approaches. In this paper, we present a Tight Linear approximation approach for robustness verification of Convolutional Neural Networks(Ti-Lin). For general CNNs, we first provide a new linear constraints for S-shaped activation functions, which is better than both existing Neuron-wise Tightest and Network-wise Tightest tools. We then propose Neuron-wise Tightest linear bounds for Maxpool function. We implement Ti-Lin, the resulting verification method. We evaluate it with 48 different CNNs trained on MNIST, CIFAR-10, and Tiny ImageNet datasets. Experimental results show that Ti-Lin significantly outperforms other five state-of-the-art methods(CNN-Cert, DeepPoly, DeepCert, VeriNet, Newise). Concretely, Ti-Lin certifies much more precise robustness bounds on pure CNNs with Sigmoid/Tanh/Arctan functions and CNNs with Maxpooling function with at most 63.70% and 253.54% improvement, respectively.
BibTeX
@inproceedings{xiao2025certifying,
  author = {Yuan Xiao and Tongtong Bai and Mingzheng Gu and Chunrong Fang and Zhenyu Chen},
  title = {{Certifying Robustness of Convolutional Neural Networks with Tight Linear Approximation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01927},
}
Figure