Source-linked AI summary
Efficient Neural Network Robustness Certification with General Activation Functions
Huan Zhang, Tsui-Wei Weng, Pin-Yu Chen, Cho-Jui Hsieh, Luca Daniel
TL;DR
Certifying minimum adversarial distortion remains difficult, especially for general activations beyond piecewise-linear ReLU networks. CROWN bounds activations with linear or quadratic functions and reports up to 26% improvement in certified lower bounds over.
Problem
Robustness certification for activations beyond piecewise-linear ReLU, including tanh and sigmoid, remains largely unexplored despite the challenge of finding minimum adversarial distortion.
Source: §1 · p. 2Method
Results
Takeaways & Limitations
Experiments show that non-trivial lower-bound certification is feasible for large networks with different activation functions.
Source: §5 · p. 8A certification approach discussed in the paper requires continuously differentiable activation functions, with soft-plus demonstrated in.
Source: §2 · p. 3
Abstract
from arXiv · showhide
Finding minimum distortion of adversarial examples and thus certifying robustness in neural network classifiers for given data points is known to be a challenging problem. Nevertheless, recently it has been shown to be possible to give a non-trivial certified lower bound of minimum adversarial distortion, and some recent progress has been made towards this direction by exploiting the piece-wise linear nature of ReLU activations. However, a generic robustness certification for general activation functions still remains largely unexplored. To address this issue, in this paper we introduce CROWN, a general framework to certify robustness of neural networks with general activation functions for given input data points. The novelty in our algorithm consists of bounding a given activation function with linear and quadratic functions, hence allowing it to tackle general activation functions including but not limited to four popular choices: ReLU, tanh, sigmoid and arctan. In addition, we facilitate the search for a tighter certified lower bound by adaptively selecting appropriate surrogates for each neuron activation. Experimental results show that CROWN on ReLU networks can notably improve the certified lower bounds compared to the current state-of-the-art algorithm Fast-Lin, while having comparable computational efficiency. Furthermore, CROWN also demonstrates its effectiveness and flexibility on networks with general activation functions, including tanh, sigmoid and arctan.
1 Introduction
CROWN addresses the gap in robustness certification for non-piecewise-linear activations by bounding activations with linear or quadratic functions and adaptively selecting bounds. The paper also reports improved certified lower bounds over prior work and scalability to large networks.
1 Introduction
- Robustness certification seeks the largest neighborhood around an input with an unchanged prediction, but finding minimum adversarial distortion for ReLU networks is NP-complete.Formal verification methods such as Reluplex are computationally demanding even for small networks and face scalability issues.Source: §1 · p. 2
- Prior methods exploit ReLU's piecewise linearity to compute non-trivial certified lower bounds, while certification for nonlinear activations remained largely unexplored.Adversarial perturbations motivate this problem because they can alter predictions in white-box, black-box, and physical settings [2] [12] [13] [14].Source: §1 · pp. 1–2
- CROWN improves certified lower bounds by up to 26% compared to.For a network with over 10,000 neurons, it gives a certified lower bound in about 1 minute on 1 CPU core.Source: §1 · p. 2
- CROWN certifies networks with general activations using linear or quadratic upper and lower bounds, with adaptive bound selection to reduce approximation errors.The framework targets activations beyond piecewise-linear ReLU, including tanh and sigmoid.Source: §1 · p. 2
2 Background and Related Work
Prior robustness-certification methods either face scalability or certification limitations, or target ReLU networks; CROWN is proposed to provide efficient certification for general activation functions. The section distinguishes provable local robustness certification from empirical defenses and distributional robustness.
2 Background and Related Work
- Exact ReLU certification uses MILP [21] [23], SMT (Reluplex [24]) or SAT (Planet), but NP-completeness limits these methods to very small networks.Reluplex can take several hours to find minimum distortion for a network with 5 inputs, 5 outputs, and 300 neurons.Source: §2 · p. 2
- Operator-norm and Jacobian bounds [3, 17] can be loose; local-Lipschitz work excludes ReLU and is hard to extend beyond two layers, while CLEVER is not certified.[26] requires continuously differentiable activations; soft-plus is demonstrated in.Source: §2 · pp. 2–3
- For ReLU networks, relaxes MILP to LP, uses SDP but is limited to one hidden layer, offers Fast-Lin/Fast-Lip certified bounds, and uses zonotopes.Fast-Lin and Fast-Lip exploit ReLU properties and achieve state-of-the-art performance.Source: §2 · p. 2
- CROWN addresses demand for efficient certified bounds with general activations, including those needed in RNNs and LSTMs; also handles general activations but trades bound quality against scalability.The paper states that CROWN performs efficient robustness certification for networks with general activation functions.Source: §2 · p. 2
- Empirical defenses are outside provable certification, while Wasserstein-based distributional certification differs from this paper’s local ℓp-ball robustness model.Source: §2 · p. 3
3 CROWN: A general framework for certifying neural networks
CROWN certifies neural-network robustness by propagating bounds built from linear or quadratic approximations of general activation functions. It supports adaptive neuron-level approximations and applies to ReLU, tanh, sigmoid, and arctan networks.
3.1 General framework
- Neuron-specific linear upper and lower activation bounds are propagated backward through the network to produce explicit output bounds.Taking global bounds over the perturbed input ball yields certified bounds that can be used to search for minimum adversarial distortion.Source: §3.1 · pp. 3–4
- CROWN adaptively selects linear approximations when computing certified lower bounds on minimum adversarial distortion; for an m-layer ReLU network with n neurons per layer and n outputs, its time complexity is O(m^2n^3).It computes analytic output bounds efficiently without optimization solvers for general ℓp distortion.Source: §3.1 · pp. 4–5
3.2 Case studies: CROWN for ReLU, tanh, sigmoid and arctan activations
- CROWN constructs bounds for ReLU, tanh, sigmoid, and arctan, and can incorporate other activations such as leaky ReLU, ELU, and softplus.For tanh, sigmoid, and arctan, the method uses their convexity on one side and concavity on the other; for ReLU, it adaptively selects a lower-bound slope to tighten certification.Source: §3.2 · p. 6
3.3 Extension to quadratic bounds
- CROWN extends its activation bounds with quadratic terms, choosing bounds that make the global-bound problem convex and solvable with projected gradient descent.Without this choice, the quadratic form can be indefinite and the optimization non-convex.Source: §3.3 · p. 7
4 Experiments
Experiments evaluate CROWN on MNST and CIFAR-10 MLPs. CROWN-Ada improves certified bounds on large ReLU networks, while CROWN-general also certifies networks with non-ReLU activations efficiently.
Methods
- The experiments compare adaptive linear bounds, quadratic bounds, Fast-Lin, Fast-Lip, Reluplex, and LP-Full for ReLU networks, and CROWN-general for other activations.Reluplex can solve the exact minimum distortion but is feasible only for very small networks; LP-Full solves each neuron’s LP exactly to obtain the best possible bound.Source: §4 · p. 7
Model and Dataset
- The evaluation uses MLPs trained on MNIST and CIFAR-10, including the same 100 random test images and attack targets as prior ReLU evaluations.For non-ReLU activations, the authors tune learning rate and weight decay to obtain accuracy similar to ReLU models.Source: §4 · p. 7
Results on Small Networks
- On small networks, CROWN-Quad for 2-layer models and CROWN-Ada achieve the largest lower bounds, while Reluplex and LP-Full are orders of magnitude slower.Reluplex also reveals the gap between certified lower bounds and the true minimum adversarial distortion; CROWN-Ada's improvements over Fast-Lin become more significant on larger networks.Source: Figure 2 · p. 8, §4 · p. 8
Results on Large ReLU Networks
- CROWN-Ada significantly outperforms Fast-Lin and Fast-Lip on large ReLU networks, with computation time increasing by less than 2X over Fast-Lin.Its computation time is comparable with Fast-Lip.Source: Table 4 · p. 8, §4 · p. 8
Results on Different Activations
- CROWN-general efficiently certifies non-trivial lower bounds for four activation functions, with about 20% additional computation time versus CROWN-Ada on ReLU networks.CIFAR models with sigmoid activations are excluded because their accuracy is much worse than that of the other networks.Source: §4 · p. 8, Table 5 · p. 8
5 Conclusion
CROWN efficiently computes certified lower bounds on minimum distortion for a given data point, using adaptive bounds and supporting general activation functions.
- CROWN outperforms state-of-the-art baselines on ReLU networks and efficiently certifies non-trivial lower bounds for networks with over 10K neurons and different activation functions.Source: §5 · p. 8
A Proof of Theorem 3.2
The proof derives output bounds by iteratively rewriting the network, with lower bounds following the same procedure as upper bounds.
Upper bound
- Upper-bound derivation selects the appropriate inequality side for each term according to the sign of its associated weight.The proof identifies the nonnegative-weight and other cases, then uses the corresponding key equations to bound the terms.Source: A Proof of Theorem 3.2 · p. 11
- At each rewrite, constant terms are collected and coefficients are combined into equivalent weights and biases, preserving the form needed for another iteration.The derivation also swaps the summation order before combining coefficients.Source: A Proof of Theorem 3.2 · p. 12
- Repeating the rewrite yields a final upper bound at the first layer, which the proof then uses as the bound for the output.The procedure is repeated until f^U,1_j(x) is obtained.Source: A Proof of Theorem 3.2 · p. 12
Lower bound
- The lower-bound proof follows the same iterative procedure but uses the left-hand sides of the bounding inequalities instead of their right-hand sides.This produces a final lower bound f^L,1_j(x).Source: A Proof of Theorem 3.2 · p. 13
B Proof of Corollary 3.3
The proof seeks global upper and lower bounds for the network output over an input ball, using Theorem 3.2 and dual-norm relationships.
Global upper bound
- Theorem 3.2 provides lower and upper bounds for the network output throughout the input ball.The proof's stated goal is to bound the m-th layer output f_j(x) for every x in B_p(x_0, ε).Source: B Proof of Corollary 3.3 · p. 13
- The proof normalizes the perturbation into B_p(0, 1) and applies ℓ_p–ℓ_q duality when moving from equation (19) to (20).It invokes Definition B.1 and the fact that the ℓ_q norm is dual to the ℓ_p norm for p, q ∈ [1, ∞].Source: B Proof of Corollary 3.3 · pp. 13–14
C Illustration of linear upper and lower bounds on sigmoid activation function.
The section illustrates linear upper and lower bounds for the sigmoid activation. It also describes adapting bound propagation to quadratic approximations by replacing the linear bounding functions with quadratic functions.
C Illustration of linear upper and lower bounds on sigmoid activation function.
- Figure 3 illustrates linear upper and lower bounds for the sigmoid activation σ(y).Source: Figure 3 · p. 14
- For quadratic approximations, the upper-bound derivation keeps equations (7) and (8) but replaces h(k) with quadratic functions.Source: C Illustration of linear upper and… · p. 14
- The lower-bound derivation follows the upper-bound derivation by swapping h(k)_L,r and obtaining f^L_j(x).Source: C Illustration of linear upper and… · p. 15
E Additional Experimental Results · E.1 Results on CROWN-Ada
On ReLU networks, CROWN-Ada notably improves certified lower bounds over Fast-Lin, with gains up to 28%, especially on larger and deeper networks. Table 6 also compares several certification methods and estimated or attack-based distortion bounds across norms and targeted attack classes.
E.1 Results on CROWN-Ada
- CROWN-Ada improves certified lower bounds over Fast-Lin by up to 28%, especially for larger and deeper ReLU networks.Table 6 compares the proposed adaptive lower bounds with Fast-Lin, Fast-Lip, and Op-norm.Source: Table 6 · p. 16
- The comparisons consider runner-up, random, and least-likely target classes for each norm.The runner-up class has the second-largest probability.Source: Table 6 · p. 16
- LP-full and Reluplex could not finish within a reasonable time for all reported networks.Source: Table 6 · p. 16
- Op-norm computes each layer's operator norm and uses the product of those norms as a global Lipschitz constant to derive a robustness lower bound.For p = 2, the operator norm is the spectral norm.Source: Table 6 · p. 16
- CLEVER provides an estimated robustness lower bound, while CW and EAD attacks provide upper bounds on minimum adversarial distortion.The cited attack methods are CW [6] and EAD [32].Source: Table 6 · p. 16
- Table 6 compares CROWN-Ada against Fast-Lin, Fast-Lip, and Op-norm alongside LP-full, Reluplex, CLEVER, and attack-based bounds.Source: Table 6 · p. 16
E.2 Results on CROWN-general
This section compares certified lower bounds from CROWN-Ada on ReLU networks and CROWN-general on tanh, sigmoid, and arctan networks.
E.2 Results on CROWN-general
- Table 7 compares certified lower bounds from CROWN-Ada on ReLU networks and CROWN-general on tanh, sigmoid, and arctan networks.The caption does not provide the table’s cell values, so it does not establish which method or activation achieves higher bounds.Source: Table 7 · p. 17
- CIFAR models with sigmoid activations are excluded because their accuracy is much worse than that of the other networks.Source: Table 7 · p. 17
- For each norm, robustness is evaluated against the runner-up, a random, and the least likely targeted attack classes.Source: Table 7 · p. 17
Related papers
This paper cites
- Towards Evaluating the Robustness of Neural Networks2016
- Practical Black-Box Attacks against Machine Learning2016
- Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks2017
- Provable defenses against adversarial examples via the convex outer adversarial polytope2017
- ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Models2017
- Decision-Based Adversarial Attacks: Reliable Attacks Against Black-Box Machine Learning Models2017
Cited by
- Neural Network Verification for Deep Joint Source-Channel Coding2026
- When Are Concept Bottleneck Model Explanations Faithful and Compact?2026
- Certifying Adversarial Robustness of Quantum Classifiers under Known-Readout Query Access2026
- Testing Between the Test Cases: Proving End-to-End Steering in Conditions You Never Drove2026
- $(\text{DNN})^2$: Doubly Non-Negative Relaxations for Deep Neural Networks2026
- Certified but Private: Scalable Zero-Knowledge Proofs for Neural Network Guarantees2026