Abstract
Adversarial training is well-known to produce high-quality neural network models that are empirically robust against adversarial perturbations. Nevertheless, once a model has been adversarially trained, one often desires a certification that the model is truly robust against all future attacks. Unfortunately, when faced with adversarially trained models, all existing approaches have significant trouble making certifications that are strong enough to be practically useful. Linear programming (LP) techniques in particular face a "convex relaxation barrier" that prevent them from making high-quality certifications, even after refinement with mixed-integer linear programming (MILP) and branch-and-bound (BnB) techniques. In this paper, we propose a nonconvex certification technique, based on a low-rank restriction of a semidefinite programming (SDP) relaxation. The nonconvex relaxation makes strong certifications comparable to much more expensive SDP methods, while optimizing over dramatically fewer variables comparable to much weaker LP methods. Despite nonconvexity, we show how off-the-shelf local optimization algorithms can be used to achieve and to certify global optimality in polynomial time. Our experiments find that the nonconvex relaxation almost completely closes the gap towards exact certification of adversarially trained models.
Introduction
Deep learning models are notoriously vulnerable to adversarial attacks—tiny, human-imperceptible changes to an input that cause the model to fail. While "adversarial training" (training the model on these attacks) makes models robust in practice, we often need a formal certification: a mathematical proof that no possible perturbation within a certain range can flip the model's prediction.
The challenge is that exact certification is NP-hard. Researchers usually rely on "relaxations"—simpler versions of the problem that are easier to solve. Currently, most tools use Linear Programming (LP) relaxations. However, these suffer from a "convex relaxation barrier": they are often too "loose," meaning they fail to certify a model even when it is actually robust. Semidefinite Programming (SDP) offers much tighter bounds but is computationally explosive, requiring $O(n^2)$ variables for $n$ neurons, making it unusable for anything beyond tiny toy networks.
Methodology
The authors propose a middle ground: a nonconvex low-rank SDP relaxation.
- Low-Rank Factorization: Instead of optimizing over a massive $n \times n$ matrix (standard SDP), they use the Burer-Monteiro approach to factorize the matrix into a much smaller $n \times r$ rectangular matrix, where $r$ is a small rank (often $\le 10$). This reduces the number of variables from millions to thousands.
- Handling Nonconvexity: While this factorization makes the problem nonconvex, the authors prove that under mild conditions, any local minimum found by standard solvers is either a global minimum or a saddle point that is easy to escape.
- The Riemannian Staircase: If the solver gets stuck, they use a "rank-lifting" technique. They increment the rank $r$, which turns a local trap into a "saddle point" with a clear path downward toward the global solution.
- BM-Full: They further tighten the bound by incorporating "preactivation bounds" (estimates of neuron ranges) from existing LP-based verifiers.
Key Results and Insights
- Breaking the Barrier: The "convex relaxation barrier" isn't an absolute limit of mathematics; it's a limit of linear relaxations. Moving to SDP-style constraints, even in a low-rank nonconvex form, allows the verifier to "see" the robustness that LP methods miss. On the ADV-MNIST model, standard state-of-the-art LP verifiers could only certify a robustness of 20.9%. This paper’s method (BM-Full) certified 76.2%, nearly reaching the empirical upper bound of 77.4% set by the strongest known attacks.
- Efficiency: While 5–10x slower than the fastest (but loose) LP methods, the proposed method is orders of magnitude faster and more memory-efficient than traditional SDP solvers, which would simply crash on these models.
- Depth Scaling: Unlike previous "SDP-lite" attempts that became very loose as networks got deeper, this method remained relatively tight even for 9-layer networks. As shown in the table above, BM-Full consistently provides the tightest robust certification across various datasets (ADV-MNIST, LPD-MNIST, NOR-MNIST) and perturbation radii.
Limitations and Future Work
While a huge step up from standard SDP, $O(nr)$ complexity still poses challenges for massive models like ResNets used on ImageNet. Further optimization of the underlying solvers is needed. Additionally, the "Full" version of the algorithm relies on bounds generated by other verifiers; integrating the low-rank SDP approach directly into the bound-propagation phase could lead to even tighter results. Finally, extending these tight relaxations to other activation functions like Sigmoid or GeLU remains an open area for research.
Summary updated