Skip to content

Training verifiably robust learners with learned verifiersTraining verified learners with learned verifiers

arXiv· arXiv:1805.10265· Krishnamurthy Dvijotham, Sven Gowal, Robert Stanforth, Relja Arandjelovic, Brendan O'Donoghue, Jonathan Uesato, Pushmeet KohliDeepMindIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose predictor-verifier training (PVT), using a verifier network to predict dual variables in order to amortize the verification cost; the authors claim that on MNIST and SVHN the verified bound outperforms prior methods, and give a 73.33% verified adversarial error upper bound on CIFAR-10.

Threat modelAdversarial example setting: the attacker perturbs the nominal input xnom with an l∞-norm perturbation not exceeding ε (MNIST ε=0.1, SVHN ε=0.01, CIFAR-10 ε=0.03, pixel values in [0,1]), with the goal of making the network's prediction deviate from the true label; the defense goal is to train a network that provably cannot have its prediction changed by any attacker within this perturbation set.

Questions
Neural networks are susceptible to adversarial perturbations, and existing verification methods are either slow or applicable only to specific architectures; the authors argue that a scalable, general verified training method is needed, so that networks can be proven to satisfy specifications while fitting the data.
Methods
Proposes predictor-verifier training (PVT): the predictor performs the task, and the verifier network learns to predict dual variables to give an upper bound on the degree of specification violation; the two are jointly optimized on a weighted sum of the task loss and the dual loss, amortizing the verification cost over the training samples.
Experiments and results
On MNIST and SVHN, PVT's verified bound outperforms Kolter and Wong [16] (MNIST 4.44% vs. 5.82%, SVHN 37.56% vs. 40.67%), and it gives a 73.33% verified upper bound on CIFAR-10; the authors claim training is about 25× faster, but the attack-free test error is higher.
Limitations and future work
The authors note that the PVT model's nominal test error is higher, and plan to extend to ImageNet and more complex specifications (Conclusions). The experiments cover only three image datasets—MNIST, SVHN, CIFAR-10—and one ConvNet architecture; the paper does not report multiple repetitions or variance.
Experimental setupPredictor-Verifier · MNIST、SVHN et al. · test error(无攻击)、PGD attack error et al.
Evaluated models
Predictor-Verifier
Benchmarks
MNISTSVHNCIFAR-10
Metrics
test error(无攻击)PGD attack errorverified bound(adversarial error 的可证上界)
AI summaryThe researchers propose a predictor-verifier training framework for training neural networks that can be proven to satisfy given input-output properties. The method trains two networks simultaneously, one performing the prediction task and the other computing a bound on the degree to which the predictor satisfies the property to be verified, and the two are jointly optimized over a weighted combination of the standard data-fitting loss and a term bounding the maximum violation of the property. The paper's experiments show that this architecture achieves verifiable adversarial robustness superior to previous algorithms on small datasets such as MNIST and SVHN with much shorter training time; the authors state that, to their knowledge, this is the first network with verifiable robustness on CIFAR-10.

The researchers propose a predictor-verifier training framework for training neural networks that can be proven to satisfy given input-output properties. The method trains two networks simultaneously, one performing the prediction task and the other computing a bound on the degree to which the predictor satisfies the property to be verified, and the two are jointly optimized over a weighted combination of the standard data-fitting loss and a term bounding the maximum violation of the property. The paper's experiments show that this architecture achieves verifiable adversarial robustness superior to previous algorithms on small datasets such as MNIST and SVHN with much shorter training time; the authors state that, to their knowledge, this is the first network with verifiable robustness on CIFAR-10.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors propose PVT, with the goal of scalably training neural networks that provably satisfy input-output specifications (adversarial robustness).

    Core question: how to scalably train neural networks that provably satisfy a given specification (e.g., robustness to l∞ adversarial perturbations).

    • Problem setting: neural networks are easily fooled by small adversarial perturbations; the authors argue that many defenses are merely gradient obfuscation and will be broken by stronger attackers, while robust optimization (e.g., Madry et al. [22]) does not guarantee that a stronger attacker cannot find a counterexample.
    • Shortcomings of existing methods: formal verification and mixed-integer programming methods require exponential time in the worst case and apply only to small networks with a few hundred hidden units; existing verified training methods [16, 25] are limited by activation function or architecture ([25] is limited to a single hidden layer), and require solving an optimization problem at every training iteration, which is computationally expensive; [6] only verifies already-trained models and does not consider verified training.
    • Core observation: in the dual verification of [6], any value of the dual variables gives a valid upper bound, so the mapping from a sample to the optimal dual variables can be learned by a network, amortizing the verification cost over all training samples.
    • Proposed in the paper: the predictor-verifier training (PVT) framework—the predictor performs the task, the verifier predicts dual variables to give an upper bound on the degree of specification violation, and the two are trained jointly; the authors claim the framework applies to arbitrary feedforward architectures and multiple activation functions.
    • Threat model:
      • Attacker goal: perturb the nominal input xnom so that the network's prediction deviates from the true label.
      • Attacker capability: arbitrarily perturb the input within the set Sin(xnom) = {x | ‖x − xnom‖∞ ≤ ε} (pixel values in [0,1], e.g., MNIST ε=0.1).
      • Victim system: a classification network (a ConvNet in the experiments); the defense goal is to provably ensure that no attack within this set can change the prediction.
  2. What related research exists?

    Related work falls into four categories: adversarial attack and defense, exact verification, verified training, and dual verification; this paper builds on the dual verification of [6].

    Adversarial attacks and defenses

    • Szegedy et al. [26] et al.—found that adversarial perturbations can cause networks to misclassify with high confidence; since then there have been many attack and defense works [1, 21, 24, 30–32].
    • Athalye et al. [2], Uesato et al. [28]—the paper cites their conclusion that many defenses are merely gradient obfuscation and are easily broken by stronger attackers.
    • Madry et al. [22], Engstrom et al. [8]—robust optimization / adversarial training, finding the worst adversarial example at each step and adding it to training; the paper points out that this does not guarantee that a stronger attacker (e.g., brute-force enumeration) cannot find a counterexample.

    Exact verification methods

    • Formal verification [7, 10, 14] and mixed-integer programming [9, 27]—solve the verification problem for networks with piecewise-linear activations; the paper points out that they require exponential time in the worst case and apply only to small networks with a few hundred hidden units.

    Verified training

    • Kolter and Wong [16]—construct a verification upper bound based on convex duality and use it for training; the paper points out that it requires solving an optimization problem for each training sample, which is expensive.
    • Raghunathan et al. [25]—compute a bound valid for any sample, avoiding per-sample optimization; the paper points out that it is limited to single-hidden-layer networks and requires solving a semidefinite program for each pair of classes.

    Dual verification (basis of this paper)

    • Dvijotham et al. [6]—a dual relaxation verification algorithm that computes a worst-case upper bound on the network's specification violation, without restriction on architecture or activation function; the paper points out that it only verifies already-trained models and that solving the optimization problem is expensive, making it unsuitable to put directly into the training loop.

    Baselines and benchmarks: the compared baselines are standard cross-entropy training (Baseline), Madry et al. [22] adversarial training, and Kolter and Wong [16]; the benchmarks are MNIST, SVHN, and CIFAR-10.

    The authors position this paper as: a general verified training method built on [6] that amortizes the verification cost by learning dual variables, overcoming the architectural limitations and computational expense of [16, 25].

  3. How does the paper address this problem?

    PVT jointly trains the predictor and the verifier: the verifier learns to predict dual variables to give an upper bound on specification violation, and the loss is a weighted sum of the task loss and the dual loss.

    Overall idea: using the property of the dual verification in [6] that "any dual variables give a valid upper bound," a verifier network learns the mapping from a sample to near-optimal dual variables, amortizing the cost of solving an optimization problem per sample. The framework is called predictor-verifier training (PVT).

    Problem setup and dual verification

    • Specification form: verify that for all inputs in the nominal set, the network output lies in a half-space, i.e., cT ϕ(x0) + d ≤ 0, ∀ x0 ∈ Sin; adversarial robustness requires that for each class i, (ei − eynom)ᵀφ(x0) ≤ 0 holds within Sin(xnom).
    • Dual relaxation: introduce Lagrange multipliers λ for the inter-layer equality constraints to obtain the dual function ζ(λ; xnom, w); the key property is that any λ gives a valid upper bound on the optimal value of the primal problem, and if some λ makes ζ < 0, then that λ is a certificate that the specification holds.
    • simple function assumption: the transfer function of each layer must be simple (the box-constrained linear-nonlinear optimization can be solved efficiently); the paper claims this covers affine layers (convolution, average pooling, batch-norm), pointwise nonlinearities (ReLU, sigmoid, tanh, etc.), max-pool, and skip connections.
    • bound propagation: for Sin = {x : ‖x − xnom‖∞ ≤ ε}, the input bounds are xnom ± ε, and the upper and lower bounds are propagated layer by layer; Appendix A.3 gives the center-radius parameterization for affine layers, which is claimed to halve the number of operations.

    PVT training objective

    • Two networks: the predictor P (parameters w) takes x0 as input and outputs logits; the verifier V (parameters θ) takes the predictor's activations x and the label y as input and outputs the dual variables λ.
    • Training objective: minw,θ 𝔼[(1−κ) ℓ(P(x;w),y) + κ log(1+ζ(V(x,y;θ);x,w))], where ℓ is the supervised loss (e.g., cross-entropy) and κ controls the relative weight of fitting the data and satisfying the specification.
    • Differentiability: ζ is (sub)differentiable with respect to both λ and w, and the whole procedure can be trained with standard stochastic gradient algorithms (Algorithm 1: at each step sample a minibatch and perform one gradient descent step each for θ and w).

    Verifier architectures (three kinds)

    • Constant verifier: always outputs zero dual variables, has no trainable parameters, is equivalent to naive bound propagation, and cannot model dependencies between activations.
    • Direct architecture: predicts dual variables independently per layer, with the layer's input xk and the target label y as input (Figure 1a); the implementation uses two fully connected layers (reducing to 200 and then expanding to the required dimension, ReLU).
    • Backward-forward architecture: treats dual optimization as dynamic programming (Appendix A.2), first backpropagating to generate an intermediate representation η, then predicting λk layer by layer in the forward direction (Figure 1b); the backward path is a single layer of 200 units + ReLU, and the forward path is two fully connected layers.

    Training details (Appendix A.3)

    • Optimizer and hyperparameters: Adam, initial learning rate 10⁻³; MNIST/SVHN/CIFAR-10 are trained for 90/80/240 epochs respectively, with batch size 100/50/50; κ is tuned per dataset, finally MNIST κ=1, SVHN κ=1, CIFAR-10 κ=0.5.
    • Other techniques: linearly anneal the perturbation radius ε from 0 to the target value (0.1/0.01/0.03) over the first half of the training steps; add 10⁻⁶ L1 regularization to the predicted dual variables, so that the verifier focuses on a smaller subset of dual variables.
    • Data preprocessing: MNIST without augmentation; SVHN training uses random 28×28 crops (excluding extras), testing uses center crops; CIFAR-10 training uses random 28×28 crops plus horizontal flips, testing uses center crops.
  4. What experiments did the paper conduct?

    Compares PVT with three baselines on MNIST, SVHN, and CIFAR-10; the authors claim PVT has the best verified bound but a higher nominal error.

    Experimental setup

    • Subject under test: a ConvNet trained with PVT (predictor: two convolutional layers with 16/32 channels, stride 1/2, followed by two fully connected layers 100→10, with ReLU after all but the last layer; comparable to the architecture used by Kolter and Wong [16]), with the verifier having three architectures: constant / direct / backward-forward.
    • Baselines: standard cross-entropy training (Baseline), Madry et al. [22] adversarial training, Kolter and Wong [16] (the latter compared only on MNIST and SVHN, since it was not tested on CIFAR-10).
    • Datasets: MNIST, SVHN, CIFAR-10; the paper does not report the sizes of the training/test sets used.
    • Metrics: test error (no attack), PGD attack error (the paper calls PGD the strongest current attack [22]), verified bound (a provable upper bound on adversarial error).
    • Perturbation budget: l∞ attack, MNIST ε=0.1, SVHN ε=0.01, CIFAR-10 ε=0.03 (pixel values in [0,1]).
    • Number of repetitions: the paper does not report multiple repetitions or variance.

    Main results

    According to Table 1 (the best PVT models after tuning κ; the last CIFAR-10 row * is a much larger model, for reference only):

    Swipe horizontally to read the table

    DatasetMethodtest errorPGD attackverified bound
    MNIST (ε=0.1)Baseline0.77%52.94%100.00%
    MNIST (ε=0.1)Kolter and Wong [16]1.80%4.11%5.82%
    MNIST (ε=0.1)Madry et al. [22]0.60%4.66%100.00%
    MNIST (ε=0.1)Predictor-Verifier1.20%2.87%4.44%
    SVHN (ε=0.01)Kolter and Wong [16]20.38%33.74%40.67%
    SVHN (ε=0.01)Predictor-Verifier16.59%33.14%37.56%
    CIFAR-10 (ε=0.03)Madry et al. [22]39.00%68.08%100.00%
    CIFAR-10 (ε=0.03)Predictor-Verifier51.36%67.28%73.33%
    • The authors claim PVT achieves state-of-the-art verified robustness on MNIST and SVHN, and gives (to their knowledge) the first non-trivial verified bound on CIFAR-10.
    • The authors note that PVT's nominal test error is higher (e.g., 51.36% vs. Madry et al.'s 39.00% on CIFAR-10), leaving this for future improvement.
    • Training time: the authors report that PVT reaches the performance of [16] on MNIST in 6 minutes and its best performance in 20 minutes, while [16] requires 5 hours (Titan X, weaker than the authors' Titan Xp); the authors claim it is about 25× faster after compensating for the hardware difference.

    Verification time and the importance of verified training (Figure 2)

    • What was measured: a comparison of the verifiability of PVT models and Madry et al. [22] adversarially trained models; the authors state they could not obtain a non-trivial verified bound for the adversarially trained convolutional model, and instead used a smaller fully connected model with L1 regularization.
    • Results: Figure 2a shows that the MNIST PVT model's verified bound approaches the CW attack line under a 15ms/sample budget (the figure labels levels such as 15ms, 20ms, 30ms, 100ms, 300s (LP Solver)); Figure 2b shows that the adversarially trained model's verified bound is weaker than the PVT model's under any verification time budget.
    • Authors' interpretation: training the network so that it is verifiable is key to obtaining a good verified bound.

    Verifier architecture comparison (Table 2, κ=1)

    • What was measured: the three verifier architectures constant / direct / backward-forward; the bound column in this table is computed directly from the dual variables predicted by the verifier, and is higher than the full verification bounds in Table 1.
    • Results: on MNIST, direct's bound is 4.44%, backward-forward 4.72%, constant 5.00%; on SVHN, backward-forward's test error of 16.59% is lower than direct's 22.50%; on CIFAR-10, direct's bound of 70.79% is lower than backward-forward's 71.36%.
    • Authors' interpretation: the constant architecture is worst as expected; direct and backward-forward are comparable, but on SVHN backward-forward's nominal error is much lower.

    Other ablations and analyses

    • Effect of κ (Figure 3, Appendix A.4): multiple models were trained on MNIST and CIFAR-10 with κ from 0.05 to 1; the authors state that nominal error and verified bound are clearly anti-correlated—robustness decreases as κ approaches 0.
    • bound propagation speedup (Appendix A.3): after switching affine layers to the center-radius parameterization, only two affine operations are needed, which the authors claim gives a 2× speedup.
  5. What are some points that can be further explored?

    The authors note that the nominal error is relatively high and plan to extend to ImageNet and complex specifications; the experiments cover only three image datasets and one ConvNet.

    Limitations and future directions noted by the authors

    • Nominal error is relatively high (Section 4.1): the authors note that the PVT network's attack-free test error is much higher, "making space for improvement in future work".
    • Extend to larger datasets (Conclusions): the authors plan to apply the predictor-verifier framework to larger datasets such as ImageNet.
    • Extend to complex specifications (Conclusions): the authors plan to extend the framework to handle complex specifications encountered in real machine learning tasks.

    Scope of experiments

    • The model under test is a ConvNet architecture (two convolutional layers + two fully connected layers), evaluated on three image classification datasets: MNIST, SVHN, CIFAR-10; the verification-time experiment (Figure 2b) additionally used a smaller fully connected model with L1 regularization.
    • Comparison baselines are standard cross-entropy training, Madry et al. [22] adversarial training, and Kolter and Wong [16]; [16] is compared only on MNIST and SVHN.
    • Attack evaluation uses the PGD attack, and Figure 2a additionally marks a CW attack line; the perturbation is the l∞ norm, with ε set to 0.1/0.01/0.03.
    • Only adversarial robustness (prediction unchanged under l∞ perturbation) was evaluated as a specification type; the paper states the framework can handle other specifications (such as monotonicity) but does not experiment with them.
    • The paper does not report multiple repetitions, variance, or statistical significance tests; it does not report the test set sample size.
  6. Summarize the main content of the paper

    PVT uses a learnable verifier to amortize the dual verification cost; on MNIST/SVHN its verified bound outperforms prior methods and it extends to CIFAR-10.

    A methods paper on verified training: training neural networks that both fit the data and can be proven to satisfy input-output specifications (l∞ adversarial robustness).

    • Problem addressed: existing verification methods are slow or architecture-restricted, and existing verified training methods [16, 25] must solve an optimization problem at each iteration, which is costly; adversarial training [22] provides no provable guarantee.
    • Method highlights: predictor-verifier training (PVT) — a verifier network learns to predict the dual variables in the dual verification of [6]; since any dual variables give a valid upper bound, an approximate prediction does not break the validity of the certificate; the loss is a weighted sum of the task loss and the dual loss (weight κ), and the whole is backpropagatable; the verifier has three architectures: constant, direct, and backward-forward.
    • Main results (Table 1, l∞ perturbation): MNIST (ε=0.1) verified bound 4.44%, better than Kolter and Wong [16]'s 5.82%; SVHN (ε=0.01) 37.56% vs. 40.67%; CIFAR-10 (ε=0.03) 73.33%, which the authors state is (to their knowledge) the first non-trivial verified upper bound on CIFAR-10.
    • Cost and speed: PVT's nominal test error is higher (51.36% on CIFAR-10 vs. Madry et al.'s 39.00%); the authors report reaching [16]'s performance on MNIST in 6 minutes, claiming about 25× faster after compensating for hardware.
    • Other findings: Figure 2 shows that the PVT model achieves a near-optimal verified bound at 15ms/sample, whereas the adversarially trained model has a weaker verified bound under any time budget; Figure 3 shows that κ controls the trade-off between nominal error and verified bound.
    • Authors' conclusion: the authors view PVT as a step toward specification-driven ML and plan to extend it to ImageNet and more complex specifications.

Related papers

Show 3 more papers
Read originalarxiv.org