CROWN: Efficient Neural Network Robustness Certification for General Activation FunctionsEfficient Neural Network Robustness Certification with General Activation Functions
The authors propose CROWN, which computes robustness certificates using activation function upper and lower bounds, and report improved lower bounds for ReLU networks and results for nonlinear activations.
For a given input x0, consider input perturbations within an ℓp ball for any p≥1 that may change the classification prediction; compute certified lower bounds on the minimum perturbation for targeted and untargeted attacks separately. The certification computation uses the network weights, biases and activation functions.
- Exactly solving for the minimum adversarial perturbation is computationally expensive, and existing certification methods mostly exploit the piecewise-linear property of ReLU. The authors focus on how to compute certified lower bounds on robustness near the input for general activation functions.
- CROWN constructs activation function upper and lower bounds for each neuron, propagates them layer by layer according to the sign of the equivalent weights, and then searches for the certifiable radius. The framework includes adaptive linear bounds and quadratic bounds.
- The authors compare certified lower bounds and runtime on MLPs for MNIST and CIFAR-10. The adaptive bounds for ReLU improve results relative to Fast-Lin; certified lower bounds are also obtained for tanh, sigmoid and arctan, but the appendix contains conditions under which the baseline outperforms CROWN-Ada.
- The paper does not specifically discuss limitations. The experimental subjects are MLPs; the CIFAR-10 sigmoid networks were excluded due to poorer accuracy. Some MNIST architecture labels and value correspondences in Table 5 and Table 7 are inconsistent.
- Evaluated models
- MNIST 2 × [20] (ReLU)MNIST 3 × [20] (ReLU)MNIST 2 × [1024] (ReLU)MNIST 3 × [1024] (ReLU, tanh, sigmoid, arctan)MNIST 4 × [1024] (ReLU, tanh, sigmoid, arctan)MNIST 5 × [1024] (tanh, sigmoid, arctan)CIFAR-10 5 × [2048] (ReLU, tanh, arctan)CIFAR-10 6 × [2048] (ReLU, tanh, arctan)CIFAR-10 7 × [1024] (ReLU, tanh, arctan)
- Benchmarks
- MNISTCIFAR-10
- Metrics
- Certified lower bound of minimum adversarial distortionAverage Computation TimeCLEVER scoreCW/EAD upper bounds
Researchers from UCLA, IBM Research and MIT propose in a paper the CROWN framework, which efficiently computes certified lower bounds on the minimum adversarial perturbation for neural networks using general activation functions such as ReLU, tanh, sigmoid and arctan. The method constructs linear or quadratic upper and lower bounds for each neuron's activation function, propagates backward layer by layer to obtain closed-form solutions for the output bounds, and adaptively selects bounds to tighten the lower bounds; the earlier Fast-Lin becomes a special case of this framework on ReLU networks. In MLP experiments on MNIST and CIFAR-10, CROWN-Ada improves the certified lower bound on ReLU networks by up to 26% over Fast-Lin, with less than a 2-fold increase in computation time; for networks with more than 10,000 neurons, a certified lower bound can be given in about 1 minute on a single CPU core, and certifying non-piecewise-linear activations such as tanh adds only about 20% computational overhead.
Why it was selectedThe framework generalizes neural network robustness certification from ReLU to activation functions such as tanh and sigmoid, and on ReLU networks improves the certified lower bound by up to 26% over Fast-Lin.
Paper analysis
What problem does this paper attempt to solve?
The authors focus on how to extend local robustness certification from ReLU to general activation functions.
The core question is: how to compute a certified lower bound on the minimum adversarial perturbation for neural networks using general activation functions.
- Application scenario: Certify whether all samples near a given input keep the original prediction. The authors consider this meaningful for safety-critical tasks using neural networks.
- Existing methods: The authors point out that exactly solving for the minimum adversarial perturbation of ReLU networks is NP-complete; certification methods that exploit the piecewise linearity of ReLU cannot directly handle activations such as tanh and sigmoid.
- Threat model: The evaluated object is a neural network classifier, the perturbed input lies within an ℓp ball centered at x0, with p≥1; the goal is to change the prediction, and a target class may be specified or any other class considered. The certification computation uses network parameters, and the paper does not separately name this setting white-box or black-box.
- Core design: The authors propose CROWN, which replaces the original function with linear or quadratic activation upper and lower bounds for each neuron, and then computes output bounds; the upper and lower bounds can be chosen independently, without having to use the same slope.
- Meaning of the certificate: The result is a lower bound on the minimum adversarial perturbation, representing the range over which the prediction is guaranteed to remain unchanged; it is not equal to the exact minimum perturbation, nor is it merely an empirical result obtained from attack search.
What related research exists?
Related work revolves around exact verification, certified lower bounds and empirical robustness, with Fast-Lin as the main comparison object.
The paper distinguishes exact minimum perturbation solving from computable certified lower bounds, and positions general activation functions as the scope of CROWN.
Exact verification
- MILP methods: Lomuscio and Maganti, Cheng et al., and Fischetti and Jo (2017) formulate ReLU network verification as mixed-integer problems.
- Reluplex and Planet: Katz et al. (2017) use SMT, and Ehlers (2017) uses SAT. The authors note that such methods can only handle relatively small networks when computing the exact minimum perturbation.
Analytical bounds and local Lipschitz methods
- Szegedy et al. (2013), Peck et al. (2017): use operator norms of weight matrices and the Jacobian, respectively. The authors consider that bounds not exploiting ReLU properties may be looser.
- Hein and Andriushchenko (2017): based on local Lipschitz constants; the authors note that their continuous differentiability assumption excludes ReLU, and that closed-form lower bounds are also difficult to obtain beyond two layers.
- CLEVER, Weng et al. (2018): estimates robustness lower bounds via extreme value theory. The paper explicitly distinguishes it: it is an estimate, not a certified lower bound.
Relaxation and bound propagation
- Kolter and Wong, Raghunathan et al. (2018): the former obtains an LP relaxation via a convex outer adversarial polytope; the latter uses semidefinite programming, and the authors note that their method is limited to one hidden layer.
- Fast-Lin/Fast-Lip, Weng et al. (2018): compute certified lower bounds using ReLU properties; Gehr et al. (2018) certify ReLU via zonotope abstract transformation; Dvijotham et al. (2018) handle general activations with Lagrangian duality, and the authors consider there to be a trade-off between bound quality and scalability.
- Baseline methods and data: Fast-Lin, Fast-Lip, LP-Full, Reluplex and Op-norm are compared on MNIST and CIFAR-10; CLEVER estimates and CW/EAD attack upper bounds are also listed.
Empirical robustness and other certification objects
- Madry et al. (2018), Cao and Gong (2017): study robust optimization adversarial training and region classification, respectively; the authors separate empirical attack resistance from provable certification.
- Sinha et al. (2018): certifies distributional robustness based on the Wasserstein distance, which differs from the local ℓp ball here.
The authors position CROWN as a certification framework that allows general activations and flexible upper and lower bounds, and note that Fast-Lin is a special case of it.
How does the paper address this problem?
CROWN propagates per-neuron activation upper and lower bounds into output bounds, and then searches for the certifiable perturbation radius.
CROWN does not directly search for adversarial examples; instead it establishes uniform upper and lower bounds on the network output within the perturbation set. Its key is to allow each neuron to use different upper and lower bounds and to choose which bound to propagate according to the sign of the equivalent weight.
Input region and local activation bounds
- Input set: for an m-layer network, given an ℓp perturbation ball around x0, compute the pre-activation interval [l,u] of each neuron layer by layer.
- Basic requirement: construct hL(y)≤σ(y)≤ hU(y) on that interval. This requires the substitute function to be valid over the entire interval, not merely fitted to a few sampled points.
- Independent slopes: the linear upper and lower bounds need not be parallel. For ease of exposition the main text restricts slopes to be nonnegative and states that Theorem 3.2 can be generalized to negative slopes.
Layer-by-layer propagation by weight sign
- Choice of bounds: when constructing the output upper bound, positive-coefficient terms use the activation upper bound and negative-coefficient terms use the activation lower bound; when constructing the output lower bound, the choice is reversed.
- Recursive elimination: the substituted expressions are merged into equivalent weights and biases and propagated back layer by layer from the last hidden layer to the input, yielding affine upper and lower bounds on the output (Theorem 3.2; Appendix A).
- Global bounds: using ℓp and its dual norm, the affine bounds are extremized over the input ball to obtain closed-form output bounds (Corollary 3.3; Appendix B).
Bounds corresponding to activation functions
- Interval classification: grouped by whether [l,u] lies on the positive side of zero, the negative side, or crosses zero. The authors state that this corresponds to curvature changes of smooth activations and to the activation state of ReLU.
- ReLU adaptive bounds: when not crossing zero, an exact linear expression is used; when crossing zero, the upper bound connects the endpoints, and the lower bound is chosen between the zero function and the identity function. CROWN-Ada chooses the latter when u≥|l|, otherwise the former.
- Smooth activations: tanh, sigmoid and arctan use tangent lines or endpoint chords according to convex and concave intervals; when crossing zero, a tangent line passing through the endpoint on the other side is sought, and the tangent point can be determined by binary search.
- Text and tables: the above rules are given in Table 2 and Table 3. Section 3.2 contains duplicated interval and upper/lower bound labels; when interpreting, one should consult these two tables; the captions of Figure 1 and Figure 3 are labeled as illustrations of tanh and sigmoid bounds respectively.
Certificate search and computational cost
- Certification condition: for the original prediction c and target class t, search for ϵ̃t=maxϵ{ϵ:γcL(ϵ)−γtU(ϵ)>0}. Its meaning is that within this radius the lower bound on the original class output still exceeds the upper bound on the target class output.
- Radius search: update the intervals of each layer as the radius changes and adjust by bisection until a given tolerance; the paper does not report the tolerance value. The untargeted certificate takes the minimum over the results for all other target classes.
- Margin handling: a footnote in Section 3.1 notes that bounds can be established directly on the output difference between the original class and the target class to improve results.
- Complexity: for an m-layer setting with n neurons and n outputs per layer, the authors give a time complexity of O(m²n³); the linear version does not require an optimization solver.
Quadratic bound extension
- CROWN-Quad: adds quadratic terms to the activation substitute function, forming a quadratic output bound over the previous layer's representation; in general its matrix may be indefinite and the optimization problem may be nonconvex.
- Convexity choice: the authors restrict the combination of quadratic and linear terms so that computing the upper or lower bound becomes a convex optimization, then use projected gradient descent with Armijo line search.
- Depth handling: for two-layer networks the input is optimized directly; for deeper networks, post-activation bounds from an earlier layer are used as constraints. Appendix D gives the derivation of the quadratic form.
What experiments did the paper conduct?
The experiments compare certified lower bounds and runtimes for MLPs; the appendix includes conditions under which baselines outperform CROWN-Ada and labeling discrepancies between tables.
The experiments focus on MLPs on MNIST and CIFAR-10, comparing certificate size and computation time, with attack upper bounds and exact results on small networks as references.
Experimental setup
- ReLU networks: MNIST 2×[20], 3×[20], 2×[1024], 3×[1024], 4×[1024]; CIFAR-10 5×[2048], 6×[2048], 7×[1024].
- Other activations: Table 7 lists tanh, sigmoid and arctan for MNIST 3×[1024], 4×[1024], 5×[1024]; for CIFAR-10 the three large networks are listed with tanh and arctan. The MNIST labeling in Table 5 differs; see below.
- Data and targets: ReLU uses existing pretrained models and the same 100 random test images and random attack targets; Table 4 skips misclassified images. The appendix additionally compares three target classes: runner-up, random and least.
- Methods and references: CROWN-Ada, CROWN-Quad, CROWN-general; baselines are Fast-Lin, Fast-Lip, LP-Full, Reluplex and Op-norm. CLEVER is a non-certified estimate, and CW/EAD provide upper bounds on the minimum perturbation.
- Metrics and determination: compare certified lower bounds on the minimum perturbation for ℓ1, ℓ2 and ℓ∞ and average runtime; certificates are determined by mathematical output bounds, with no LLM or human review. The paper does not report the number of repetitions across training seeds.
- Runtime conditions: Python, numpy, numba; BLAS set to one thread; Intel Skylake 2.0 GHz CPU. For non-ReLU networks, learning rate and weight decay were searched to obtain accuracy close to ReLU.
Main results
The table below gives average certified lower bounds for ReLU, random target; all large ReLU networks are listed under the ℓ2 condition from Table 4 and Table 6. Values for different networks do not constitute an activation comparison controlling for architecture.
Swipe horizontally to read the table
Dataset and network Norm Fast-Lin Fast-Lip CROWN-Ada Source MNIST 2×[1024] ℓ2 0.63299 0.59033 0.68506 Table 6 MNIST 3×[1024] ℓ2 0.43892 0.26980 0.50841 Table 6 MNIST 4×[1024] ℓ2 0.18891 0.06487 0.22811 Table 4 CIFAR 5×[2048] ℓ2 0.07654 0.01417 0.09527 Table 6 CIFAR 6×[2048] ℓ2 0.04129 0.00331 0.05245 Table 6 CIFAR-10 7×[1024] ℓ2 0.05937 0.00407 0.07496 Table 4 - Authors' interpretation: the authors attribute the improvement to adaptive activation bounds and state that relative improvements are larger on larger, deeper networks.
- Basis for the improvement figure: the introduction states up to 26% relative to Fast-Lin; Appendix E.1 states up to 28%. The CIFAR 6×[2048], ℓ∞, least row of Table 6 specifically reports +28.4%.
- Runtime exception: the main text states that runtime increases by less than 2X relative to Fast-Lin; however, in Table 4, MNIST 4×[1024], ℓ2 is 1.78 seconds versus 3.79 seconds, so the main-text summary cannot be applied to all rows.
General activation functions and differences between tables
- Comparison within the same table: in Table 5, for CIFAR-10 6×[2048], ℓ2, the ReLU/CROWN-Ada lower bound is 0.05245, tanh/CROWN-general is 0.02538, and arctan/CROWN-general is 0.02515. The table does not specify the target class.
- Exclusion condition: both Table 5 and Table 7 state that the CIFAR sigmoid networks have worse accuracy than the other networks and are therefore excluded; the paper does not give the specific accuracy numbers.
- Labeling inconsistency: Table 5 labels the MNIST tanh ℓ2 lower bound 0.27287 as 3×[1024]; Table 7 lists 0.2729 in the 4×[1024], random row, while its 3×[1024], random row is 0.5023. The two tables cannot be merged into the same setting on the basis of similar values.
Small networks: exact solutions and quadratic bounds
- Comparison objects: Figure 2 covers MNIST 2×[20] and 3×[20], comparing ℓ2 and ℓ∞ respectively; CROWN-Quad appears in the two-layer setting, alongside Ada, Fast-Lin, Fast-Lip, LP-Full and Reluplex.
- Caption information: the left axis is perturbation size, the right axis is seconds on a logarithmic scale; the top of the figure lists average CLEVER and C&W attack upper bounds. The converted text does not preserve bar heights, curves or values, so numerical gaps cannot be reported from it.
- Authors' interpretation: the authors state that CROWN-Quad and CROWN-Ada obtain the largest lower bounds, and that Reluplex and LP-Full are several orders of magnitude slower; this is retained here as the authors' statement about the figure.
Baseline wins and certificate gaps
- Fast-Lip wins: in Table 6, for MNIST 2×[1024], ℓ1, random, the Fast-Lip lower bound is 5.10000 and CROWN-Ada is 4.17760; for this architecture under ℓ1, the runner-up and least rows also give larger lower bounds for Fast-Lip.
- Op-norm wins: in Table 6, for MNIST 4×[1024], ℓ2, least, Op-norm is 0.23710 and Fast-Lin is 0.20671. The operator-norm baseline cannot be summarized as worse in every row.
- Upper-lower bound gap: in Table 6, for CIFAR 7×[1024], ℓ2, random, CROWN-Ada is 0.07496, the CW/EAD upper bound is 0.9730, and CLEVER is 0.5145; these three are respectively a certified lower bound, an attack upper bound and a non-certified estimate.
Other ablations and analyses
- Target classes: Table 6, CIFAR 6×[2048], ℓ∞, CROWN-Ada, runner-up/random/least lower bounds are 0.00094/0.00114/0.00122 respectively.
- Runtime for nonlinear activations: Table 7, CIFAR-10 6×[2048], ℓ2, random, tanh/arctan are 84.2228/83.1202 seconds respectively.
- Variation with target for general activations: Table 7, MNIST 5×[1024], sigmoid, ℓ2, runner-up/random/least lower bounds are 0.3153/0.4254/0.4849.
What are some points that can be further explored?
The paper does not specifically discuss limitations, nor does it list specific future research plans in the conclusion.
The paper does not specifically discuss limitations; when judging the evidence, it is necessary to retain its actual experimental subjects, exclusion conditions and table annotations.
Limitations and future directions noted by the authors
- Explicit limitations: Section 5 Conclusion summarizes the framework and results, and does not list specific limitations or future research plans.
- Appendix content: Appendices A, B and D provide derivations, Appendix C contains schematic diagrams, and Appendix E contains supplementary experiments; none of them contains a dedicated discussion of limitations or future work.
Scope of experimental coverage
- Models and data: The experimental subjects in Section 4 are MLPs on MNIST and CIFAR-10; activations include ReLU, tanh, sigmoid and arctan. The correspondence between architectures and activations is shown in Table 4–7.
- Certificate scope: The theoretical setting is a local ℓp ball with p≥1; the experiments report ℓ1, ℓ2 and ℓ∞, and Appendix Table 6 and Table 7 distinguish three target categories.
- Samples and repetitions: Section 4 explicitly states that ReLU uses 100 random test images; Table 4 skips misclassified images. The paper does not report the per-model sample size after exclusion or the distribution of results across multiple independent trainings.
- Comparison coverage: Figure 2 for small networks includes exact solving and quadratic bounds; Table 6 notes that LP-Full and Reluplex could not be completed within a reasonable time for the listed large networks. CIFAR sigmoid was excluded due to poor accuracy.
- Reporting correspondence: Some MNIST architecture annotations and numerical correspondences in Table 5 and Table 7 are inconsistent; the general activation results paragraph in Section 4 cites Table 7, while the main text also provides Table 5, and this cannot be arbitrarily corrected to the same condition.
Summarize the main content of the paper
CROWN uses selectable activation upper and lower bounds in a unified certification framework; the experimental gains need to be read according to network, norm and target category.
CROWN is a local robustness certification framework: the authors replace directly solving for the minimum adversarial perturbation with upper and lower bounds on the activation function, aiming to accommodate general activation functions and computational scale.
- Method highlights: starting from per-neuron valid bounds, propagate layer by layer into output bounds according to the sign of the equivalent weight, then search for a radius that guarantees the classification is unchanged; includes ReLU adaptive linear bounds, smooth activation bounds and a quadratic bound extension.
- Main ReLU results: in Table 4, for MNIST 4×[1024], random target, ℓ2, the Fast-Lin and CROWN-Ada lower bounds are 0.18891 and 0.22811 respectively; for CIFAR-10 7×[1024] under the same conditions they are 0.05937 and 0.07496 respectively.
- Larger relative improvement: in Table 6, for CIFAR 6×[2048], ℓ∞, least, the authors report that CROWN-Ada improves over Fast-Lin by +28.4%. This is a result under the specified target class.
- General activation results: in Table 5, for CIFAR-10 6×[2048], tanh, ℓ2, the CROWN-general lower bound is 0.02538, with an average time of 84.22 seconds; the table does not specify the target class.
- Exceptions and limits of interpretation: in Table 6, for MNIST 2×[1024], ℓ1, random, Fast-Lip is 5.10000, higher than CROWN-Ada's 4.17760; in addition, some MNIST non-ReLU results have architecture labeling discrepancies between tables.
The authors consider that flexibly choosing activation bounds can improve certified lower bounds and extends certification to general activation functions. When reading these results, one should distinguish certified lower bounds, attack upper bounds and robustness estimates.