[Paper Review] Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programming
This paper proposes a semidefinite programming (SDP) framework for safety verification and robustness analysis of feedforward neural networks with general activation functions under norm-bounded input perturbations. By abstracting activation function properties—such as bounded slope, monotonicity, and repetition across layers—using quadratic constraints (QCs), the method formulates the verification problem as an SDP feasibility problem via the S-procedure, enabling provable robustness guarantees with tunable conservatism and computational efficiency.
Certifying the safety or robustness of neural networks against input uncertainties and adversarial attacks is an emerging challenge in the area of safe machine learning and control. To provide such a guarantee, one must be able to bound the output of neural networks when their input changes within a bounded set. In this paper, we propose a semidefinite programming (SDP) framework to address this problem for feed-forward neural networks with general activation functions and input uncertainty sets. Our main idea is to abstract various properties of activation functions (e.g., monotonicity, bounded slope, bounded values, and repetition across layers) with the formalism of quadratic constraints. We then analyze the safety properties of the abstracted network via the S-procedure and semidefinite programming. Our framework spans the trade-off between conservatism and computational efficiency and applies to problems beyond safety verification. We evaluate the performance of our approach via numerical problem instances of various sizes.
Motivation & Objective
- To develop a provably sound and computationally tractable method for verifying the safety and robustness of deep neural networks against input uncertainties.
- To address the limitations of existing methods by enabling analysis for general activation functions beyond piecewise linear ones.
- To reduce conservatism in robustness certification while maintaining computational feasibility through structured quadratic constraints.
- To provide a unified framework applicable beyond safety verification, including Lipschitz estimation and output reachable set analysis.
- To enable systematic trade-offs between computational complexity and solution tightness via inclusion/exclusion of different QC types.
Proposed method
- Abstracting activation functions using quadratic constraints (QCs) to encode properties like bounded slope, monotonicity, and bounded values.
- Modeling the entire neural network as a system of interconnected quadratic constraints to capture cross-layer neuron interactions.
- Formulating the safety verification problem as a semidefinite programming (SDP) feasibility problem using the S-procedure to combine multiple QCs.
- Introducing a hierarchical abstraction where input uncertainty sets and activation function properties are each represented by specific QC matrices.
- Using matrix lifting and Schur complements to transform nonlinear inequalities into convex SDP constraints.
- Enabling scalability and tunable conservatism by selectively including or excluding different types of QCs in the formulation.
Experimental results
Research questions
- RQ1Can we verify the robustness of a deep neural network against input perturbations using a convex optimization framework?
- RQ2How can we abstract general activation functions using quadratic constraints to preserve network behavior under uncertainty?
- RQ3To what extent does capturing inter-layer coupling between neurons reduce conservatism in robustness verification?
- RQ4Can the trade-off between computational cost and solution tightness be systematically controlled in the verification process?
- RQ5Does the proposed QC-based SDP framework generalize to problems beyond safety verification, such as Lipschitz constant estimation?
Key findings
- The proposed SDP framework achieves provable robustness certification for ReLU and other general activation functions under ℓ∞-bounded input perturbations.
- Including quadratic constraints that capture repeated nonlinearity across layers significantly reduces conservatism in the verification bounds.
- The method demonstrates improved over-approximation quality with increasing number of hidden neurons, as shown in numerical evaluations with 100 to 1000 neurons.
- Larger perturbation sizes (e.g., ε = 0.8) lead to looser bounds, but the framework remains numerically stable and scalable across different ε values.
- The framework enables efficient verification for networks of varying depth and width, with computational complexity that scales polynomially with network size under QC abstraction.
- Theoretical guarantees are established via the S-procedure, ensuring that any property verified on the abstracted system holds for the original neural network.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.