TL;DR
This paper introduces a novel sequential framework that progressively shrinks the "relaxation gap" in Semidefinite Programming (SDP) relaxations for neural network robustness verification. By iteratively adding carefully constructed non-convex cuts, the method achieves exact verification and demonstrates significant improvements over existing techniques, especially for deeper networks.
What Problem Does This Paper Address?
Verifying the robustness of neural networks, especially for safety-critical applications, is a major challenge. This involves ensuring that a network's output remains within acceptable bounds even when its input is slightly perturbed (e.g., by an adversarial attack). While Semidefinite Programming (SDP) has emerged as a powerful tool for this task, it often suffers from a significant "relaxation gap." This gap means that the SDP solution might indicate robustness even when the network is actually vulnerable, or vice-versa, leading to unreliable certifications. The core problem is that the non-linear activation functions (like ReLU) in neural networks make the verification problem inherently non-convex, and standard convex relaxations like SDP can introduce this gap.
Methods
The paper proposes a sequential framework to address the relaxation gap in SDP-based neural network verification. The core idea is to iteratively add non-convex cuts to the SDP problem. These cuts are derived using a secant approximation technique, inspired by previous work on approximating non-convex functions.
Here's a breakdown of the key methodological contributions:
- Secant Approximation for Non-Convex Constraints: The paper leverages the idea of approximating non-convex constraints with a series of linear "secant" lines. This is applied to the non-convex constraint $X - \mathbf{z}\mathbf{z}^T \ge 0$, which is the source of the relaxation gap in SDP. By dividing the feasible space into segments and fitting lines to the boundary, they create a set of linear constraints that, when combined, approximate the original non-convex constraint.
- Cut Generating Linear Programming (CGLP): To find effective linear cuts (ax ≥ β) that can prune the search space and reduce the relaxation gap, the authors employ a CGLP formulation. This involves solving an auxiliary linear program based on a candidate solution from the SDP relaxation.
- Sequential Algorithm: The paper proposes an iterative algorithm. In each iteration, it:
- Solves the current SDP problem to obtain a candidate solution $(x^*, X^*)$.
- Identifies potential non-convex cuts using CGLP based on eigenvectors of $X^* - x^*(x^*)^T$.
- Adds a valid cut (if found) to the SDP problem.
- Repeats until a desired level of tightness is achieved or a maximum number of iterations is reached.
- Theoretical Guarantees: The framework is theoretically shown to shrink the relaxation gap to zero as the number of iterations (or cuts) approaches infinity.
Datasets
The paper evaluates its method on the IRIS dataset. The networks used for evaluation are pre-trained MLP classification networks.
Key Insights and Ideas
- Non-convex cuts are crucial for closing the SDP gap: While convex relaxations are standard, the paper highlights that strategically adding non-convex constraints (cuts) is essential for achieving exact verification and eliminating the relaxation gap.
- Secant approximation offers a practical way to generate these cuts: The geometric interpretation of approximating the non-convex feasible region with secant lines provides a concrete mechanism for generating these powerful cuts.
- Iterative refinement is key: A single application of secant approximation might not be sufficient. The sequential approach, where cuts are added iteratively, allows for a progressive reduction of the relaxation gap, leading to a more accurate certification.
- CGLP is a powerful tool for finding effective cuts: The CGLP formulation provides a principled way to discover linear cuts that are guaranteed to cut off invalid solutions and strengthen the SDP relaxation.
- Deeper networks benefit most: The paper's empirical results show that the proposed method significantly outperforms standard SDP, especially for networks with more hidden layers, where the relaxation gap is typically larger.
Key Results
- Improved Certification Percentage: For networks with 15 hidden layers, the proposed Algorithm 1 achieved a 100% certification percentage, while the standard SDP and a penalized approach achieved only 60% and 0% respectively.
- Reduced Trace Gap: The average trace gap (a measure of relaxation tightness) was significantly reduced by Algorithm 1, often by orders of magnitude, compared to the original SDP and penalized methods. For a 10-layer network with Q=5, the trace gap dropped from 0.48 to $4.73 \times 10^{-7}$.
- Theoretical Convergence: The paper proves that the sequential framework asymptotically achieves exact verification as the number of cuts increases.
- Empirical Effectiveness: Satisfactory results were achieved even with small values of Q (number of partitions for secant approximation), suggesting practical applicability.
Limitations and Future Work
- Computational Cost: The CGLP procedure, which is central to generating cuts, can be computationally expensive, especially for large networks. The paper notes that while LP scales better than SDP, the dimension of the LP can be large. Future work could focus on developing more efficient solvers for CGLP, potentially leveraging sparsity.
- Problem-Specific Runtime: The running time of Algorithm 1 is problem-specific, depending on how loose the initial SDP solution is and how many cuts are needed.
- Choice of Eigenvectors: While the paper suggests using eigenvectors corresponding to positive eigenvalues of $X^* - x^*(x^*)^T$, the selection of which eigenvectors to use for generating cuts could be further explored.
- Generalization to Other Activation Functions: The current work focuses on ReLU networks. Extending the framework to other non-linear activation functions would be a valuable future direction.
Summary updated