Introduction
Deep learning models are increasingly deployed in safety-critical applications, yet they remain notoriously fragile to adversarial attacks—small, imperceptible perturbations that can trigger misclassification. To address this, formal verification aims to provide mathematical guarantees that a model remains robust within a defined perturbation ball. However, "complete" verification is NP-complete, leading researchers to rely on "incomplete" verification methods like convex relaxation.
While convex relaxation works efficiently for piecewise linear functions like ReLU, it is significantly more challenging for "S-shaped" sigmoidal activations (e.g., Sigmoid or Tanh). This paper introduces an automated approach to design tighter linear bounding functions for these nonlinearities, leveraging state-of-the-art algorithm configuration to improve the certification of neural network robustness.
The Challenge of Sigmoidal Nonlinearities
Incomplete verification relies on "sandwiching" non-linear activation functions between two linear bounds. The tightness of these bounds is critical; if the bounds are too loose, the verifier may fail to prove robustness even when the network is safe. For sigmoidal functions, the difficulty lies in finding the optimal "tangent points" where the linear bounds touch the curve to minimize approximation error across the network.
Existing frameworks, such as the popular CROWN verifier, typically use a simple binary search heuristic to locate these tangent points. While functional, this heuristic is often sub-optimal, leading to loose global lower bounds that hinder the certification of complex network instances.
Methodology: Optimizing with SMAC
The authors propose replacing manual heuristics with a novel parameter search method optimized via Sequential Model-based Algorithm Configuration (SMAC). SMAC is a Bayesian optimization tool that utilizes a Random Forest regressor to navigate high-dimensional search spaces efficiently.
Instead of manually tuning every neuron, the method optimizes two key global hyper-parameters for the search process:
- Starting Point ($s$): The initial location for the tangent point search.
- Multiplier ($\psi$): The rate at which the search point is updated if a bound is found to be invalid.
By finding a global configuration that maximizes the "global lower bound" of the network output, the approach ensures that the linear approximations are as tight as possible for the specific architecture and input range being verified.
Experimental Setup
The approach was evaluated using the ERAN benchmark, a standard for the verification community. The experiments covered:
- Architectures: Convolutional Neural Networks (ConvMed) and Fully Connected Networks (FNN_6x500).
- Datasets: MNIST and CIFAR-10.
- Activations: Sigmoid and Tanh.
- Perturbations: $L_\infty$ radii ($\epsilon$) ranging from 0.0039 to 0.3.
Key Insights and Results
Tighter Bounds and Increased Certifiability
The proposed method achieved a 25% average improvement in the global lower bound across all benchmarks. In a particularly notable case—a CIFAR-10 CNN with $\epsilon=0.0313$—the improvement reached 184%. These tighter bounds translated directly into better certification performance; for instance, on a Sigmoid-based FNN, the number of certified robust instances increased from 5 to 8 compared to the vanilla CROWN baseline.
Discovery of "Optimal Regions"
By analyzing the probability density of the tangent points, the authors discovered that the automated method identifies specific "optimal regions" for bounding parameters. While baseline binary searches tend to spread points out, the SMAC-optimized search clusters them around values that yield significantly tighter global bounds. Interestingly, even though the hyper-parameters are set globally, they result in specialized tangent points for every neuron based on that neuron's unique pre-activation bounds.
Performance Trends
The method is most effective when the perturbation radius ($\epsilon$) is large. At very small radii, linear approximations are naturally tight, leaving less room for optimization. Additionally, while the focus was on Sigmoid functions, the method demonstrated consistent generalizability to Tanh-based networks.
Limitations and Future Outlook
Despite its success, the method introduces some computational overhead, as SMAC requires approximately 150 evaluation trials to find the optimal configuration. Furthermore, the current search is limited to two global hyper-parameters. The authors suggest that moving toward neuron-specific configurations could yield even tighter results, albeit at a higher computational cost.
A promising direction for future work is the integration of this search method with $\alpha$-optimization (tuning the slope of the bounds). Jointly optimizing search parameters and slope parameters could potentially establish a new state-of-the-art for the verification of sigmoidal neural networks.
Summary updated