WorksComputer Science
Certified Robustness via Sparse Second-Order Cone Relaxations
Abstract
Certified robustness is critical for deploying neural networks in safety-sensitive settings, but computing exact certificates typically requires solving nonconvex optimization problems. Practical verifiers use convex relaxations: linear programming (LP) relaxations are scalable but often too conservative, whereas semidefinite programming (SDP) relaxations can be substantially tighter but are computationally expensive. We introduce a hierarchy of second-order cone programming (SOCP) relaxations that provide stronger certificates than LP while avoiding the cost of global positive-semidefinite constraints. Our construction combines convex-hull relaxations of ReLU activations, selective McCormick lifting over certified variable bounds, and second-order cone constraints induced by 2-by-2 principal minors. Adding these constraints progressively yields a monotone hierarchy of increasingly tight bounds with a controllable computation-tightness trade-off. On fully connected and convolutional networks on MNIST and CIFAR-10, SOCP-based verification improves certified robust accuracy over LP-based verification and is competitive with alpha,beta-CROWN, while remaining orders of magnitude faster than SDP-based verification. These results position selective second-order constraints as a practical middle ground between scalable LP-based and tight SDP-based certification. Finally, we introduce class-optimized robust evaluation (CORE), which applies tighter relaxations only to target classes not certified by cheaper ones. On the fully connected MNIST benchmark, CORE variants match SDP-cert's certified robust accuracy while reducing average verification time by up to 86.30%.
Introduction
Reliable deployment of neural networks in safety-sensitive settings requires guarantees that extend beyond accuracy on unperturbed inputs. Small adversarial perturbations can change a classifier’s prediction while remaining visually imperceptible [15, 21]. This vulnerability motivates certified robustness, which provides a mathematical guarantee that the classifier assigns the correct label to every input in a prescribed perturbation set [20] (Wong and Kolter 2018).
Exact certification can be formulated by maximizing each competing class’s logit margin relative to the true class over the allowed perturbations. Computing these worst-case margins generally requires solving nonconvex optimization problems, which can make verification computationally hard [8]. For ReLU networks, complete verifiers, including satisfiability modulo theories (SMT) [19], mixed-integer optimization [23], and branch-and-bound methods (Wang et al., 2021), can resolve a verification problem given sufficient computation, but their cost can be prohibitive. Incomplete verifiers instead bound these margins to certify that the prediction remains correct under every admissible perturbation. If these certification bounds cannot be established, the input remains uncertified. A robust input left uncertified represents a false negative in robustness certification.
In this paper, we introduce a hierarchy of sparse second-order cone programming (SOCP) relaxations with a controllable trade-off between bound tightness and computational cost, and a class-wise cascade to progressively allocate more expensive verifiers to unresolved margins. Figure 1 illustrates both components.

Figure 1. Overview of the proposed methods: (a) jointly selected cross-layer, current-layer, and previous-layer couplings at each hidden layer, with , and (b) CORE’s class-wise cascade with early stopping.
Sparse SOCP hierarchy (Fig. 1a). Starting from the exact quadratically constrained quadratic program (QCQP) for ReLU-network verification, we combine
ReLU convex-hull relaxations (Wong and Kolter (2018)) with sparse lifting of selected cross-layer, current-layer, and previous-layer products at each hidden layer. These couplings are incorporated jointly using McCormick envelopes over certified variable bounds (McCormick [18]) and second-order cone (SOC) representations of positive-semidefinite (PSD) constraints (Kim and Kojima [9]), avoiding a global PSD constraint. Increasing the number of selected couplings tightens the relaxation at the expense of greater computational cost. Experiments conducted on MNIST (LeCun et al. [12]) and CIFAR-10 (Krizhevsky [10]) illustrate that SOCP-based verification improves certified robust accuracy over the linear programming (LP) verifier and is competitive with -CROWN under the same evaluated settings. On the fully connected MNIST benchmark, SOCP verifier is orders of magnitude faster than the semidefinite programming (SDP) verifier.
Class-optimized robust evaluation (CORE) (Figure 1b). CORE allocates verification effort to individual class-wise margin problems. For each target class, it applies verifiers in sequence, moving to the next class as soon as robustness against the current class is certified. CORE certifies an input as robust once every target class is certified. If a class remains unresolved at the final stage, CORE stops and leaves the input uncertified. Therefore, CORE maintains at least the certified robust accuracy of the final verifier while avoiding unnecessary computation. On the fully connected MNIST benchmark, CORE variants match SDP-cert’s certified robust accuracy while reducing average verification time by up to 86.30%.
Related work. Convex relaxations balance certification tightness and computational cost. LP relaxations of ReLU networks (Wong and Kolter (2018)) support scalable dual formulations and bound propagation (Wong et al. (2018); Zhang et al. (2018)), with general cutting planes providing additional tightening (Zhang et al. (2022)). Building on this framework, -CROWN combines optimized linear bound propagation with branch-and-bound for complete verification (Xu et al. (2020); Wang et al. (2021)). However, relaxing neurons separately can fail to capture dependencies among their activations. SDP relaxations capture second-order interactions through lifted matrices and global PSD constraints (Raghunathan et al. [20]; ); Vandenberghe and Boyd (1996)). Quadratic-constraint formulations (Fazlyab et al. [5]), memory-efficient solvers (Dathathri et al. [4]), and linear reformulations (Lan et al. [11]) improve their practicality, although global PSD constraints remain costly. SDP-CROWN incorporates -norm-based inter-neuron coupling into bound propagation (Chiu et al. [3]). Cascading robustness verification (CRV) (Maleki et al. [16]) reduces verification cost by escalating only uncertified inputs to more expensive verifiers. These approaches motivate capturing useful second-order structure without a global PSD constraint and allocating tighter verification to unresolved class-wise margins.
In this paper, we first formulate the robustness verification problem and then develop the sparse SOCP relaxations and CORE (§ 2–§ 4). We then evaluate these methods experimentally (§ 5) before presenting the conclusion and limitations (§ 6).
Robustness Verification
Consider a neural network with one hidden layer consisting of neurons. The input space is , where is the input dimension, and the output space represents scores (or logits) across classes. The network computes the logits as , where and denote the input-to-hidden and hidden-to-output weight matrices, respectively. Let the hidden pre-activation and activation be and . For simplicity, we omit bias terms, though they are included in our experiments. We use one hidden layer for ease of presentation; the framework extends layer-wise to multilayer ReLU networks (Appendix § 12).
Given an input , the network assigns label by selecting the class with the highest score,
where is the element of . To certify robustness against input perturbations, we consider an -ball centered on a correctly classified input , defined as
Let denote the true label of the clean input . The worst-case margin quantifies the robustness of the model at input by maximizing the difference between the logit score of any target class , , and the true class , , over all valid perturbations:
An input is certifiably robust if, for all , the worst-case margin satisfies , ensuring no perturbation within leads to misclassification. Conversely, is considered non-robust if there exists a such that , indicating a potential adversarial example within the allowed perturbation level .
For a fixed target class , let , where is the th standard basis vector in . Then . Thus, the class-wise verification problem maximizes a linear function of the hidden activations over all admissible inputs and their corresponding ReLU activations.
Solving (2) is generally intractable due to the non-convexity introduced by ReLU activations. Although complete verification methods exist, they are often computationally prohibitive, with worst-case complexity that grows exponentially with network size [20, 7]. Incomplete verifiers based on convex relaxations such as LP, SDP, and dual formulations derive an upper bound satisfying , reducing robustness certification to verifying whether for every target class . In contrast, is inconclusive for an incomplete verifier; i.e., failure to verify an input does not necessarily imply that the input is non-robust.
Exact quadratic formulation. The perturbation set is the box , where and . This box constraint can be equivalently expressed as the quadratic constraint,
where denotes element-wise multiplication and vector inequalities are interpreted componentwise. Furthermore, the ReLU relation can be equivalently encoded as , , and . These constraints ensure that behaves as a ReLU activation, maintaining equivalence to the original function. Together with the input constraint in (3) and the affine relation , this gives the following exact QCQP for the one-hidden-layer verification problem [20]:
Following Raghunathan et al. [20], we lift this QCQP by defining and . The rank-one constrained optimization problem in (4) can be written in terms of the matrix as follows.
The rank constraint is the only non-convex constraint in (5). Removing the rank-one constraint yields an SDP relaxation whose optimal value provides an upper bound on the worst-case margin . LP relaxations (Wong and Kolter, 2018) are efficient but can be loose, while SDP relaxations [20] are typically tighter but significantly more expensive. These observations motivate an intermediate relaxation that balances tightness and scalability. We develop this relaxation using SOCP in the next section.
SOCP Relaxation
Starting from the lifted rank-one formulation (5), the canonical SDP relaxation drops the non-convex constraint while retaining , yielding strong certificates but scaling poorly as the network size or verification problem size increases [20]. Our goal is to preserve the main benefit of SDP, namely, its ability to capture second-order interactions among lifted variables, while avoiding the cost of enforcing global positive semidefiniteness. We build SOCP outer relaxations by lifting selected quadratic and bilinear terms into auxiliary variables, enforcing their consistency over known bounds via convex envelopes, and replacing with SOC-representable surrogates that enforce positive semidefiniteness only on a carefully chosen sparse collection of low-dimensional principal submatrices.
Sparse SOCP Relaxation
We derive a scalable second-order cone relaxation of the rank-one lifted formulation in (5) by combining (i) a convex-hull relaxation of each ReLU, which removes the single-neuron quadratic complementarity constraint; (ii) sparse lifting of selected bilinear terms via McCormick envelopes, which introduces auxiliary variables only for targeted products and bounds them using the available lower and upper bounds on their factors; and (iii) local PSD surrogates through selected principal minors, which enforce second-order consistency among selected lifted variables while remaining exactly SOCP-representable.
Figure 2 shows three coupling types at hidden layer : cross-layer selects , current-layer selects , and previous-layer selects . Here is the activation vector at layer , with . Each selected product satisfies McCormick envelopes and a local PSD constraint; square lifts are shared across incident products and adjacent layers. The derivation below uses , omitting layer superscripts; § 3.2 and Appendix § 12 give the extension.

Figure 2. Panels (a)–(c) illustrate sparse SOCP couplings by selecting cross-layer , current-layer , and previous-layer couplings, which also satisfy McCormick envelopes.
Base Relaxation. We replace the complementarity constraint in (4) with the convex-hull relaxation of each ReLU over bounded pre-activations (Wong and Kolter, 2018). Let , and suppose that bounds are available for each hidden unit . The corresponding activation upper bound is . For an unstable neuron, i.e., , we impose
For stable neurons, the relaxation is exact: if , then , while if , then .
We next introduce auxiliary diagonal moment variables to lift . For the input box , the quadratic implication yields the affine upper bound . We lift this relation by replacing with and enforcing
To capture a subset of cross-layer couplings, which are input-activation products for , without incurring the full lifting cost, we select a sparse edge set . For each , we introduce an auxiliary variable for the bilinear product . Given bounds and , we impose the McCormick envelope [18]:
For any and within these bounds, the exact product satisfies all four inequalities. Thus, (8) contains the exact product relation but also permits additional convexified points, giving a valid outer relaxation.
We then add a second-order consistency constraint so that the relaxed products remain tied to the variables from which they were lifted. For each selected pair , we introduce diagonal surrogates and for and , and impose the local PSD constraint
Since a PSD constraint is equivalent to and , it admits a rotated-SOC representation.
We then use the ReLU relation to define the activation-square surrogate from the selected lifted products, while bounding the contribution of the products that are not lifted. In the exact lifted model, the ReLU complementarity condition implies
Since we introduce bilinear variables only for selected pairs , we represent these selected terms explicitly and absorb the omitted terms into a residual:
The residual accounts for the terms with ; its interval bounds are computed from the bounds on and , as described in Appendix § 9.
Additional Sparse Couplings. The base relaxation can be tightened by adding selected current-layer and previous-layer couplings. For the first, we first select current-layer activation products. Let with , and introduce a surrogate for , for each . We impose a convex outer relaxation over
and using the McCormick envelope:
We also couple to the diagonal surrogates and through the corresponding local PSD minor, as in (9), equivalently imposing and for .
Previous-layer couplings select products , as in Figure 2c. In the derivation here, and . Let with , and introduce an auxiliary variable for each to represent . Given bounds and , we impose the McCormick envelope [18]:
We also couple to the diagonal surrogates and through the corresponding local PSD minor, as in (9), equivalently imposing and for .
Sparse Coupling Selection. At each hidden layer , the sparse sets , , and select cross-layer, current-layer, and previous-layer products, respectively. In our experiments, the selection rules are fixed across the evaluation, while the selected pairs are determined
separately for each input and target class. For each hidden layer , we rank each unstable neuron by
where is its target-dependent backward influence coefficient. These scores rank current-layer candidates; interval widths rank previous-layer candidates. Pairs from these pools define the candidate couplings: , , and . The backward recursion and the exact pair-selection scores are given in Appendix F.
Lemma 3.1 (Sparse SOCP Upper Bound). Let denote the feasible set of the sparse SOCP relaxation defined above, with optimal value
Then
With unchanged variable bounds, enlarging , , or cannot increase this upper bound. The full formulation and proof are given in Appendices C and D.
With the same variable bounds, SOCP adds selected coupling constraints to the LP relaxation. If SDP uses the same linear constraints as SOCP and imposes on the full lifted matrix, the margin upper bounds satisfy . Consequently, on the same evaluation set, the corresponding certified robust accuracies satisfy .
Extension to Multiple Hidden Layers
For hidden layers, let , , and . At layer , takes the Algorithm 1 CORE: Class-wise Verification
Require: Clean input , true label , radius
Require: Ordered verifiers
Ensure: Robust or Uncertified
for each with do
for to do
▷ upper bound on margin
if then
break ▷ class certified
if then
return Uncertified
return Robust
role of . The sets , , and select products , , and , respectively. Thus represents original input-input products, whereas for represents products of preceding-layer hidden activations. These constraints are valid in both cases, even when they leave the margin bound unchanged.
We apply the interval bounds, ReLU hulls, McCormick envelopes, and local PSD constraints at each layer, sharing square lifts across incident products and adjacent layers, with . Appendix E gives the multilayer residual identity, output margin, residual bounds, and sparse implementation.
Remark 1 (Computational Complexity). Let . The SOCP has scalar variables and constraints, compared with entries in the dense SDP lift. A conventional interior-point solve costs arithmetic operations with dense factorization, where is the Newton-system dimension and the iteration count. Appendix G details construction costs, memory, multilayer scaling, and the comparison with branch-and-bound.
CORE: Class-wise Cascade
For an input with a true label , certification reduces to class-wise margin problems: is certified robust if, for every , an upper bound is negative. CRV escalates inputs across verifiers and may re-solve all class-wise subproblems at expensive stages [16]. CORE cascades at the class-subproblem level: for each target class, it applies verifiers from cheap to expensive and escalates only when the current stage returns a non-negative upper bound for that class (Algorithm 1).
If the upper bound for a class remains nonnegative at the final stage, CORE terminates immediately for that input (Algorithm 1), because the cascade cannot certify the input as robust.
We assume a fixed ordering of verifiers in increasing order of typical computational cost, based on their relaxation family. In particular, linear relaxations (e.g., bound propagation/LP-style) are placed earlier, SOCP relaxations follow, and semidefinite (or other heavier quadratic/SDP-based) relaxations are placed last. This ordering is chosen once and used for all inputs and classes, based on theoretical and empirical complexity rather than input-dependent heuristics (see, e.g., the solver-level cost summaries in [13]). When the relative cost of two candidates is unclear, we fix their order using a brief pilot run on a small representative subset; if their costs are comparable, we prioritize the tighter verifier first, since early certification avoids invoking later stages.
CORE certifies an input as robust only when every adversarial class is certified with a negative upper bound by at least one verifier; otherwise, it stops as soon as a class remains non-negative even under the tightest verifier . Consequently, CORE’s certified robust accuracy is at least that of , as follows from the cascade logic in Algorithm 1.
CORE can reduce runtime by avoiding expensive evaluations for classes certified at earlier stages and by stopping immediately once the cascade cannot certify an input.
Experiments
Experiments on MNIST and CIFAR-10 under perturbations address three questions: (i) How do SOCP-, LP-, and SDP-based verifiers compare in certified robust accuracy and runtime? (ii) Can CORE reduce runtime while retaining the final verifier’s certified robust accuracy? (iii) How does the SOCP-based verifier compare with -CROWN across certified-training methods?
Computing exact robust accuracy is generally intractable. Certified robust accuracy and accuracy under PGD attacks provide lower and upper bounds, respectively. We use for the training perturbation budget and for the verification budget, with as shorthand for the latter.
Networks. Table 1 compares SOCP-cert with -CROWN across IBP [6], CROWN-IBP (Zhang et al., 2020), DeepPoly [22], and Dual-WK (Wong and Kolter, 2018) training, using a fixed architecture per dataset: a LeNet-style CNN for MNIST and CNN5 for CIFAR-10.
| Dataset | Training Method | Clean | SOCP-cert | -CROWN | PGD | ||
| MNIST | IBP | 0.1 | 0.1 | 99.00% | 88.33% | 87.33% | 88.67% |
| CROWN-IBP | 0.1 | 0.1 | 97.67% | 94.33% | 93.67% | 94.67% | |
| DeepPoly | 0.1 | 0.1 | 98.00% | 94.67% | 93.33% | 94.67% | |
| Dual-WK | 0.1 | 0.1 | 82.00% | 69.67% | 70.00% | 72.33% | |
| MNIST | CROWN-IBP | 0.1 | 0.15 | 97.67% | 8.00% | N/A | 32.00% |
| DeepPoly | 0.1 | 0.15 | 98.00% | 7.33% | N/A | 34.33% | |
| MNIST | IBP | 0.3 | 0.3 | 99.00% | 71.67% | 70.33% | 78.33% |
| CROWN-IBP | 0.3 | 0.3 | 97.67% | 83.33% | 83.33% | 85.67% | |
| DeepPoly | 0.3 | 0.3 | 98.00% | 82.33% | 82.00% | 85.67% | |
| Dual-WK | 0.3 | 0.3 | 82.00% | 51.00% | 48.33% | 51.33% | |
| CIFAR-10 | CROWN-IBP | 2/255 | 1/255 | 54.00% | 50.00% | 49.00% | 51.00% |
| DeepPoly | 2/255 | 1/255 | 59.50% | 49.00% | 49.00% | 51.00% | |
| Dual-WK | 2/255 | 1/255 | 42.00% | 38.50% | 38.00% | 39.00% | |
| CIFAR-10 | CROWN-IBP | 2/255 | 2/255 | 54.00% | 39.50% | 39.50% | 39.50% |
| DeepPoly | 2/255 | 2/255 | 59.50% | 36.50% | 35.50% | 38.00% | |
| Dual-WK | 2/255 | 2/255 | 42.00% | 29.00% | 28.50% | 31.50% |
Table 1. Verification of CNNs Trained for Certified Robustness. Clean accuracy, certified robust accuracy (SOCP-cert and -CROWN), and PGD upper bounds use matched test images (300 MNIST; 200 CIFAR-10). N/A indicates that -CROWN ran out of memory (Appendix § 14). Additional MNIST results at appear in Appendix § 8.§ 3.
We compare certified robust accuracy and runtime on matched networks and test inputs using Grad-NN, trained with SDP-based robust regularization, and Std-NN, trained by empirical risk minimization. *CNNSmall-
(MNIST) and CNNSmall-B (CIFAR-10) extend the LP/SOCP comparison to CNNs; Grad-NN also evaluates CORE’s runtime savings. Architecture and training details appear in Appendix § 8.§ 1.
Certification Procedures. LP-cert uses the linear relaxation of Wong and Kolter (2018); SOCP-cert uses the sparse lifted relaxation developed in § 3; and SDP-cert uses a global PSD lift (Raghunathan et al. [20]). -CROWN combines bound propagation with branch-and-bound (Wang et al. (2021)).
CRV-FSR1 (LP SDP) and CRV-FSR2 (SOCP SDP) cascade at the input level with fast stepwise relaxation (FSR) (Maleki et al. [16]). CORE applies LP SOCP SDP at the target-class level (Algorithm 1); CORE-FSR adds FSR to its SDP stage.
Optimization setup. For Table 1, SOCP-cert uses CVXPY (SCS or CLARABEL); -CROWN uses CUDA with a 120-second per-property timeout and a 10,000-domain limit. For Table 2 and Figure 3–Figure 4, SOCP-cert and SDP-cert use YALMIP (Lofberg [14]) /MOSEK on the same 6-core CPU, and LP-cert uses PyTorch¹. Appendix § 8.§ 2 gives additional solver settings.
| Verifier | RA | Time (min) | Reduction |
| SDP-cert | 86.15% | 328.98 | — |
| SOCP-cert | 52.31% | 0.31 | 99.90% |
| LP-cert | 12.31% | — | — |
| CRV-FSR1 | 86.15% | 168.33 | 48.83% |
| CRV-FSR2 | 86.15% | 91.86 | 72.08% |
| CORE | 86.15% | 70.61 | 78.54% |
| CORE-FSR | 86.15% | 45.06 | 86.30% |
| PGD | 90.00% | — | — |
Table 2. Verification of Grad-NN on MNIST at . RA is certified robust accuracy; PGD gives an empirical upper bound. Time is averaged per image; reduction is relative to SDP-cert.
Figure 3. Certified robust accuracy versus perturbation radius on Grad-NN (one hidden layer). SOCP-cert retains certificates at radii where LP-cert certifies no inputs.
Figure 4. Certified robust accuracy versus perturbation radius on Std-NN (two hidden layers). SOCP-cert improves on LP-cert across the evaluated radii.
SOCP-cert selected couplings. For the layer-wise coupling sets defined in § 3.2, the baseline budgets ( retain at most 32 products per hidden layer. Current-layer candidates are ranked by the score defined in (14), which is the product of each unstable ReLU’s preactivation interval width and its target-dependent influence. We retain the highest-scoring eligible pairs separately for each input and target class. All three sets are imposed jointly through McCormick envelopes and SOCP-representable PSD constraints. Exact pair scores are given in Appendix § 13.
SOCP-cert vs. -CROWN. In Table 1, SOCP-cert achieves higher mean certified robust accuracy than -CROWN on both datasets, with comparable average runtime on MNIST (43.3 versus 40 seconds per image); on CIFAR-10, its runtime is higher (approximately 305 versus 120 seconds).
Certified training can reduce ReLU instability (Mao et al. [17]), favoring branch-and-bound. Increasing the verification radius, however, can introduce additional unstable ReLUs and make branching more demanding. For the CROWN-IBP and DeepPoly MNIST models trained at and verified at , -CROWN runs out of available memory, whereas SOCP-cert completes both 300-image evaluations, certifying 8.00% and 7.33%, respectively. This highlights a practical advantage of SOCP-cert’s fixed relaxation: by avoiding a growing search frontier, it completes under the tested memory budget (Appendix G).
SOCP-cert vs. SDP-cert. SOCP-cert offers an intermediate tightness-cost trade-off: selected second-order couplings strengthen LP-cert, while the sparse lift uses small SOC constraints instead of SDP-cert’s global PSD constraint, reducing formulation size at the evaluated coupling budgets (Appendix G). On Grad-NN at (Table 2), SOCP-cert certifies 52.31% of inputs, compared with 12.31% for LP-cert and 86.15% for SDP-cert. Its mean runtime is 0.31 versus 328.98 minutes per image for SDP-cert, demonstrating substantially lower computational cost at the expense of lower certified robust accuracy on this benchmark.
SOCP-cert vs. LP-cert. We also apply both verifiers to CNNs on both datasets: compared to LP-cert,
SOCP-cert improves certified robust accuracy from 0.00% to 86.67% on MNIST CNNSmall-A at , and from 2.00% to 41.02% on CIFAR-10 CNNSmall-B at .
CORE. All four cascades in Table 2 attain SDP-cert’s 86.15% certified robust accuracy. Using SOCP-cert rather than LP-cert as the first stage reduces CRV-FSR runtime from 168.33 to 91.86 minutes per image. CORE takes 70.61 minutes, and CORE-FSR takes 45.06 minutes, an 86.30% reduction relative to SDP-cert. CORE-FSR also improves on CRV-FSR2 (45.06 versus 91.86 minutes) at the same certified robust accuracy. PGD yields a 90.00% robust-accuracy upper bound; the remaining gap to CORE is 3.85 percentage points.
Effect of perturbation level . Figure 3 and Figure 4 compare SOCP-cert and LP-cert on the fully connected networks. On Grad-NN, with one hidden layer, SOCP-cert certifies 13.85% at , whereas LP-cert reaches 0.00%. On Std-NN, with two hidden layers, LP-cert reaches 0.00% at 0.04, whereas SOCP-cert still certifies 60.00% at 0.10.
Discussion and Limitations
We presented an SOCP-based certification framework for ReLU networks that bridges the gap between LP- and SDP-based verification. Starting from a QCQP formulation of the robustness problem, our relaxation captures selected second-order structure through sparse lifting, McCormick envelopes, and SOC-representable PSD minors. We further introduced CORE, a class-subproblem cascade that escalates only unresolved margins to tighter verifiers, reducing redundant computation while preserving the certified robust accuracy of the tightest verifier in the cascade. Limitations include that the certificates provide deterministic guarantees for the specified threat model, and that the tightness-runtime trade-off depends on the selected sparse coupling sets.
References
Experimental Setup and Additional Results
Networks
Grad-NN: a fully connected network with one 500-unit hidden layer, trained using SDP-based robust regularization (Raghunathan et al. [20]).
Std-NN: a fully connected network with two hidden layers, trained by standard empirical risk minimization.
CNNSmall-A: a MNIST network with inputs, two convolution-ReLU layers with 8/16 channels, a 64-unit fully connected ReLU layer, and a linear classifier; approximately 0.8 million parameters.
CNNSmall-B: the same layer structure as CNNSmall-A, with CIFAR-10 inputs; approximately 1.05 million parameters.
LeNet-style CNN: the certified-trained MNIST architecture in Table 1, with two convolution-ReLU blocks (16/32 channels, kernels, stride 2, padding 1), a 100-unit fully connected ReLU layer, and a 10-class linear output; 166,406 trainable parameters.
CNN5: the certified-trained CIFAR-10 architecture in Table 1, with five convolution-ReLU blocks (24/24/48/48/96 channels), a 192-unit fully connected ReLU layer, and a 10-class linear output; 416,506 trainable parameters. Blocks 1/3/5 use kernels and stride 2; blocks 2/4 use kernels and stride 1; all use padding 1.
Training data and preprocessing. Inputs use pixels in without mean/std normalization. MNIST uses no augmentation; CIFAR-10 training uses random horizontal flips and crops with four-pixel padding. Hyperparameters are selected on a held-out 10% training split. Verification uses unaugmented inputs in evaluation mode, with perturbations clipped to the pixel range.
Training settings. The certified-trained models use AdamW with batch size 128 and an initial learning rate of . MNIST models are trained for 20 epochs with weight decay ; CIFAR-10 models for 35 epochs with weight decay .
Certification and Optimization Details
Coupling budgets. For Table 1, the per-layer budgets are , as specified in § 5. Appendix § 13 gives the candidate selection and pair scores. Candidate-pool limits control the pairs considered for scoring; the coupling budgets limit the pairs retained in the conic problem.
Solver choice. The software and hardware for the two experimental setups are specified in § 5. For challenging CVXPY instances, CLARABEL is used to improve numerical convergence and accuracy; changing between SCS and CLARABEL preserves the relaxation’s mathematical feasible set. Resource-limited runs are discussed in Appendix § 14.
-CROWN configuration. The runs use an NVIDIA TITAN Xp with 12 GiB of GPU memory and approximately 15 GiB of system RAM. Incomplete verification precedes branch-and-bound, with patch-mode convolution and KFSB branching. The timeout and domain limit are specified in § 5. The initial batch size is 1024 with automatic enlargement disabled; after premature termination, evaluation is repeated with smaller batch sizes. We use 100 -CROWN optimization iterations and 20 -CROWN iterations. The internal PGD attack, when enabled, runs before certification and is distinct from the separate PGD evaluation reported in the tables.
Additional Results
Certified-trained models at verification radius 0.2. Table 3 reports the MNIST results at verification radius 0.2. SOCP-cert exceeds -CROWN on all four reported models by 0.67–1.67 percentage points, while remaining below the PGD robust-accuracy upper bounds. These observations concern the evaluated models, images, and configurations.
| Dataset | Training method | Clean | SOCP-cert | -CROWN | PGD | ||
| MNIST | IBP | 0.3 | 0.2 | 99.00 | 83.33 | 81.67 | 86.00 |
| MNIST | CROWN-IBP | 0.3 | 0.2 | 97.67 | 88.33 | 87.33 | 90.00 |
| MNIST | DeepPoly | 0.3 | 0.2 | 98.00 | 88.00 | 86.67 | 90.33 |
| MNIST | Dual-WK | 0.3 | 0.2 | 82.00 | 61.67 | 61.00 | 62.67 |
Table 3. Certified-trained MNIST models trained at and evaluated at , complementing Table 1. Accuracy values are percentages on the same matched 300-image evaluation set.
Residual Bounds
Write for the one-hidden-layer network. For each hidden unit , the residual in (11) collects the omitted products:
For and , define
Then , and signed interval arithmetic gives
Thus . Empty sums are zero, so retaining every cross-layer product eliminates the residual. The bounds are conservative because they need not capture dependencies among omitted products.
At hidden layer , set , , , and . For bounds and , use
Substituting these endpoints into (17) gives valid layer-wise residual bounds, including when an activation has a positive lower bound.
Full SOCP Formulation
For one hidden layer, the feasible set consists of the ReLU convex-hull constraints, diagonal lifts, McCormick envelopes for selected cross-layer, current-layer, and previous-layer products, residual bounds, and SOC-representable PSD constraints on selected principal submatrices. Here , and layer superscripts are omitted; Appendix § 12 gives the multilayer formulation. For fixed , let , , and . With the residual intervals from Appendix B, the upper bound is given by
Proof of Lemma 3.1
Validity. Take any exact feasible point , , and . Complete it with
for the selected pairs, and set . The exact ReLU graph satisfies its convex hull. The input square secant follows from , and every exact product satisfies its McCormick envelope. For any selected pair , its lifted minor is
so all SOC constraints hold. Finally, ReLU complementarity gives
and Appendix B bounds the omitted sum. Thus every exact feasible point has a feasible lifted completion in (18). Projecting onto and maximizing the same objective proves .
Monotonicity. Fix the variable bounds and take , , and . Given a feasible point for the larger sets, retain the shared variables and define
The McCormick envelope bounds each newly selected product within the interval previously used for that omitted term. Summing those intervals with the remaining residual interval places in the bounds for , and the residual equation is preserved. All other constraints on shared variables remain in the larger formulation. Therefore
which proves that enlarging the selected sets cannot increase the maximum. This is a non-strict statement: additional couplings need not improve the bound. Replacing existing pairs or changing the underlying variable bounds is not covered by this argument.
Comparison with LP and SDP. SOCP retains the input bounds and ReLU hulls of the corresponding LP, hence its projection is contained in the LP feasible set. Conversely, a full lifted matrix satisfying the same linear constraints and global positive semidefiniteness satisfies every selected PSD minor and square epigraph. For these matched formulations,
This comparison requires the same bounds and retained linear constraints; it does not order arbitrary implementations with different preprocessing or numerical settings.
Extension to Multiple Hidden Layers
Network and interval bounds. For hidden layers, following the convention in § 2, write
and . For , the objective is
Starting from , interval bounds can be propagated by
where , , and the operations are componentwise. At every hidden layer, impose these boxes, the linear equation for , and the ReLU hull in (6). Convolutions are linear operators under this convention, so the same construction applies after indexing their input and output coordinates.
Diagonal and product lifts. Let . A multilayer formulation can impose the valid square bounds
For the cross-layer, current-layer, and previous-layer couplings in Figure 2, introduce
Each product variable over satisfies
With shared diagonal surrogates for , impose the local PSD constraint in SOC form:
For previous-layer couplings , the diagonal entries are and , reducing to and at . Each diagonal variable is shared across all pairs and adjacent layers.
Residual identities. At each layer, ReLU complementarity gives , yielding
The residual collects the omitted terms , bounded using Appendix B. For one hidden layer, and , so (19) reduces to (11). With the layer-wise constraints above, the exact-lift argument in Appendix D establishes a valid upper bound on the output margin.
Sparse Coupling Selection Details
Backward influence coefficients. Using the notation of Appendix E, let . The released evaluator defaults to gamma_backend=dual, which computes CROWN-style influence coefficients (Zhang et al., 2018); dual_WK selects the implemented Wong-Kolter-style recursion (Wong and Kolter, 2018). This choice affects coupling selection, independently of the model’s training method. For an unstable ReLU, define
For the CROWN-style recursion, initialize . For , set
For dual_WK, initialize and propagate . Stable units use the same inactive/active rules, while the implemented unstable-unit step is
These expressions state the unregularized recursions; the code adds to the slope denominators. Convolutional maps use the corresponding adjoint convolution.
Candidate pools and pair scores. Rank current-layer neurons by
The largest scores form . This prioritizes unstable units; if fewer than are unstable, the released top- routine also includes stable units. For the preceding layer, define , and let contain the widest intervals. With and , score the pairs by
At each layer, retain the highest positive, finite-scoring pairs, up to , , and , respectively. Previous-layer couplings use : the inputs at and hidden activations at . Budgets remain fixed within a run, while scores and selected sets are recomputed for each input and target. Record the selected indices with the software version to reproduce choices among equal scores.
Computational Complexity and Resource-Limited Verification
This section relates the resource-limited results in Table 1 to the formulation and solver costs in Remark 1.
Observed memory-limited evaluations. For the CROWN-IBP and DeepPoly MNIST models trained at , evaluation at exhausts the available memory during the -CROWN runs. The process exits are caused by memory constraints rather than expiration of the 120-second per-property timeout. The evaluations use the configuration in Appendix § 8.§ 2; smaller-batch retries also fail to complete. Consequently, N/A denotes unavailable certified robust accuracy, not a zero value or a determination of non-robustness. SOCP-cert completes the corresponding 300-image evaluations, certifying 8.00% and 7.33%, respectively.
Fixed SOCP formulation. For hidden layers of widths , with , define
The base variables and square lifts number . Each selected pair adds one product variable, four McCormick inequalities, and a constant-dimensional SOC; square epigraphs also use constant-dimensional SOCs. Thus the formulation has variables, constraints, and cones, compared with entries in a dense SDP lift. If counts nonzero coefficients in the expanded network operators, sparse conic data require storage. For convolutions, counts repeated weight uses, not only trainable parameters.
Construction and solution costs. With sparse operators available, interval propagation costs per input. For and in Appendix § 13, define
Backward influence, comparison sorting, residual bounds, and assembly give the per-target bound
For Newton-system dimension and interior-point iterations, conventional dense factorization gives
Under strict feasibility and suitable primal-dual initialization, short-step path following requires for initial duality gap and tolerance ([1, 2]). This yields a polynomial arithmetic-operation bound for a fixed relaxation, excluding initialization. Sparse factorization depends on fill-in; SCS has different iteration costs. Dense operator conversion adds preprocessing and storage, with .
Branch-and-bound time and memory. -CROWN combines bound propagation with batched branching and retains unresolved subdomains ((Wang et al., 2021, Appendix B)). If root processing costs , at most subdomains are processed, and each costs at most , then
An uncapped binary search over initially unstable ReLUs can have ; this is a search-tree bound, not the cost of one bound-propagation pass. Peak memory depends instead on retained domains and simultaneous computation. With at most stored domains, per-domain storage bounded by , batch workspace , and model/root-processing storage , a conservative bound is
Bounds, split histories, and relaxation parameters contribute to this state; CPU and GPU allocations each face their own capacity limits. Reducing batch size lowers concurrent work but does not eliminate root-processing or retained-domain storage. Neither a timeout nor a domain-count cap is a bound on all memory allocations. For an uncapped search that retains its frontier, gives the conservative worst-case bound . This allows exponential frontier growth; traversal policies that retain fewer domains can use substantially less memory.
Why limited memory can favor SOCP. For difficult properties with many unresolved subdomains, SOCP avoids search-frontier growth by solving a fixed relaxation whose size is controlled by the coupling budgets. Candidate-pool limits separately control selection work. This provides a practical advantage in the reported memory-limited runs: it completes an evaluation with useful certificates while the configured complete-search runs terminate. The trade-off is incompleteness; a fixed SOCP may leave robust inputs uncertified. Factorization and operator storage can still be substantial, so these results support a configuration-dependent advantage in evaluation completion, without establishing universal memory or runtime superiority. More memory or different settings may allow -CROWN to complete.
References
- [1]Farid Alizadeh and Donald Goldfarb. Second-order cone programming. Mathematical programming, 95 (1):3–51, 2003.DOI
- [2]Aharon Ben-Tal and Arkadi Nemirovski. Lectures on modern convex optimization: analysis, algorithms, and engineering applications. SIAM, 2001.
- [3]Hong-Ming Chiu, Hao Chen, Huan Zhang, and Richard Y Zhang. Sdp-crown: Efficient bound propagation for neural network verification with tightness of semidefinite programming. arXiv preprint arXiv:2506.06665, 2025.arxiv.org/abs/2506.06665
- [4]Sumanth Dathathri, Krishnamurthy Dvijotham, Alexey Kurakin, Aditi Raghunathan, Jonathan Uesato, Rudy R Bunel, Shreya Shankar, Jacob Steinhardt, Ian Goodfellow, Percy S Liang, and Pushmeet Kohli. Enabling certification of verification-agnostic networks via memory-efficient semidefinite programming. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 5318–5331, 2020.arxiv.org/abs/2010.11645
- [5]Mahyar Fazlyab, Manfred Morari, and George J Pappas. Safety verification and robustness analysis of neural networks via quadratic constraints and semidefinite programming. IEEE Transactions on Automatic Control, 2020.arxiv.org/abs/1903.01287
- [6]Sven Gowal, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models. In arXiv preprint arXiv:1810.12715, 2018.arxiv.org/abs/1810.12715
- [7]Sandy Huang, Nicolas Papernot, Ian Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv preprint arXiv:1702.02284, 2017.arxiv.org/abs/1702.02284
- [8]Guy Katz, Clark Barrett, David L Dill, Kyle Julian, and Mykel J Kochenderfer. Reluplex: An efficient smt solver for verifying deep neural networks. In International conference on computer aided verification, pages 97–117. Springer, 2017.arxiv.org/abs/1702.01135
- [9]Sunyonga Kim and Masakazu Kojima. Second order cone programming relaxation of nonconvex quadratic optimization problems. Optimization methods and software, 15(3-4):201–224, 2001.DOI
- [10]Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical Report, University of Toronto, 2009. URL https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf. CIFAR-10 dataset.
- [11]Jianglin Lan, Yang Zheng, and Alessio Lomsuscio. Tight neural network verification via semidefinite relaxations and linear reformulations. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 7272–7280, 2022.
- [12]Yann LeCun, Corinna Cortes, and Christopher J. C. Burges. The mnist database of handwritten digits. http://yann.lecun.com/exdb/mnist/, 1998.
- [13]Linyi Li, Tao Xie, and Bo Li. Sok: Certified robustness for deep neural networks. In 2023 IEEE symposium on security and privacy (SP), pages 1289–1310. IEEE, 2023.arxiv.org/abs/2009.04131
- [14]Johan Lofberg. Yalmip: A toolbox for modeling and optimization in matlab. In 2004 IEEE international conference on robotics and automation (IEEE Cat. No. 04CH37508), pages 284–289. IEEE, 2004.DOI
- [15]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.arxiv.org/abs/1706.06083
- [16]Mohammadreza Maleki, Rushendra Sidibomma, Arman Adibi, and Reza Samavi. Cascading robustness verification: Toward efficient model-agnostic certification. arXiv preprint arXiv:2602.04236, 2026.arxiv.org/abs/2602.04236
- [17]Yuhao Mao, Stefan Balāuca, and Martin Vechev. CT-Bench: A library and benchmark for certified training. arXiv preprint arXiv:2406.04848, 2024.arxiv.org/abs/2406.04848
- [18]G. P. McCormick. Computability of global solutions to factorable nonconvex programs: Part i—convex underestimating problems. Mathematical Programming, 10:147–175, 1976.DOI
- [19]Luca Pulina and Armando Tacchella. Challenging smt solvers to verify neural networks. Ai Communications, 25(2):117–135, 2012.DOI
- [20]Aditi Raghunathan, Jacob Steinhardt, and Percy S Liang. Semidefinite relaxations for certifying robustness to adversarial examples. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1811.01057
- [21]Daniel Sadig, Mohammadreza Maleki, Hamed Karimi, and Reza Samavi. Cear: Certified ensemble adversarial robustness in dnns. arXiv preprint arXiv:2606.01437, 2026.arxiv.org/abs/2606.01437
- [22]Gagandeep Singh, Timon Gehr, Markus Püschel, and Martin Vechev. An abstract domain for certifying neural networks. In Proceedings of the ACM on Programming Languages (POPL), volume 3, pages 1–30, 2019.DOI
- [23]Vincent Tjeng, Kai Xiao, and Russ Tedrake. Evaluating robustness of neural networks with mixed integer programming. In International Conference on Learning Representations, 2019.

