Abstract
Formal robustness verification is essential for deploying Deep Neural Networks (DNNs) in safety-critical environments. While much progress has been made for ReLU-based architectures, verifying networks with "Sigmoid-like" (S-shaped) activations remains challenging due to their non-linear, smooth nature. This paper introduces the concept of network-wise tightness, moving beyond traditional heuristic neuron-wise approximations. By providing two provably tightest linear approximation methods, the authors demonstrate significant improvements in certified robustness bounds, outperforming state-of-the-art tools by up to 251%.
Introduction
Deep Neural Networks are notoriously susceptible to adversarial attacks—small, often imperceptible perturbations to input data that can cause a model to produce incorrect or even dangerous predictions. Formal verification seeks to provide a mathematical guarantee that a model's prediction remains constant within a specific radius of an input.
For non-linear activation functions like Sigmoid, Tanh, and Arctan, the standard verification approach involves "over-approximation." This process replaces non-linear functions with linear upper and lower bounds, transforming the verification task into a solvable linear programming problem. However, the quality of these bounds is critical; loose bounds lead to pessimistic results that fail to certify robust models. Traditionally, researchers have focused on "neuron-wise" tightness—minimizing the area between the upper and lower linear bounds for a single neuron. This paper challenges that convention, demonstrating that local tightness does not necessarily translate to global precision.
The Problem: The Local vs. Global Trap
The core insight of this research is that minimizing the area of linear approximations at the individual neuron level can actually degrade the final verification result. Because error propagates through successive layers in complex ways, a "tighter" local fit might lead to a wider, less useful bound at the network's output.
Existing tools like VeriNet and DeepCert rely on these local heuristics, leading to inconsistent performance across different network architectures. To address this, the authors propose a shift toward network-wise tightness, where the goal is to find linear approximations that are guaranteed to produce the most precise output intervals for the entire network.
Methodology
The authors developed a theoretical framework to identify the optimal linear bounds for S-shaped activations. Their approach is divided into three primary contributions:
- Complexity Analysis: They prove that finding the absolute tightest approximation for a general multi-layer network is a complex, non-convex optimization problem, making it computationally difficult for arbitrary weights.
- Algorithm for 1-Hidden-Layer Networks: For simpler architectures, the authors developed a gradient-descent-based searching algorithm (Algorithm 1) capable of finding the optimal linear bounds by navigating the non-convex landscape.
- Optimality in Non-negative Networks: In many security applications, such as malware detection, networks are designed with non-negative weights. The authors prove that for these networks, a specific configuration of tangent lines and endpoint-connecting lines is globally optimal. This allows for a "network-wise tightest" approximation that remains computationally efficient.
These methods were implemented in a new prototype tool called NeWise.
Experimental Evaluation
The authors evaluated NeWise against standard image classification benchmarks, including MNIST, Fashion MNIST, and CIFAR10. The testing spanned both Fully Connected Networks (FNNs) and Convolutional Neural Networks (CNNs) utilizing Sigmoid, Tanh, and Arctan activations.
Key Results
- Significant Precision Gains: On Tanh-based networks with non-negative weights,
NeWiseimproved certified lower robustness bounds by up to 251.28% compared to existing state-of-the-art tools. - CNN Performance: For convolutional architectures, the tool showed up to a 122.22% improvement in precision, demonstrating that the theoretical benefits of network-wise tightness scale to more complex structures.
- Efficiency: Despite the shift toward optimization,
NeWisemaintains a computational overhead similar to existing tools. For non-negative networks, the complexity remains $O(1)$ per neuron, ensuring scalability. - Consistency: In all 22 tested Sigmoid models with non-negative weights,
NeWiseconsistently produced the largest certified lower bounds, validating the mathematical proofs of optimality.
Discussion and Limitations
The research highlights that monotonicity is the key to propagating local tightness to global tightness. In networks where weights are non-negative, the network is "network-wise monotonous," and local optimality is preserved.
However, challenges remain for general networks with mixed (positive and negative) weights. In these cases, the optimization problem remains "unpredictable" and non-convex. While the gradient-based search works for 1-hidden-layer networks, it is more computationally intensive than heuristic approaches. Future work will likely focus on hybrid strategies that adapt the definition of tightness based on the specific weight distribution within a layer to better handle the mixed-weight challenge.
Conclusion
By redefining tightness from a local neuron property to a global network property, this work provides a more theoretically grounded approach to the verification of Sigmoid-like neural networks. The NeWise tool demonstrates that achieving provably tighter bounds is not only mathematically possible but also practically efficient, offering a significant leap forward in our ability to certify the safety of complex AI systems.
Summary updated