---
title: "Provably Robust Deep Learning via Adversarially Trained"
description: "How SmoothAdv combines adversarial training with randomized smoothing to improve certified image classification, and what its guarantees cover."
canonical: "https://research.elamur.ai/free/en/papers/salman-2019-provably-robust-deep-learning-adversarially/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/salman-2019-provably-robust-deep-learning-adversarially/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers

# Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers

Paper · 2019 · Hadi Salman, Greg Yang, Jerry Li et al.

**Authors:** [Hadi Salman](https://md.research.elamur.ai/free/en/authors/hadi-salman/), Greg Yang, [Jerry Li](https://md.research.elamur.ai/free/en/authors/jerry-li/), [Pengchuan Zhang](https://md.research.elamur.ai/free/en/authors/pengchuan-zhang/), [Huan Zhang](https://md.research.elamur.ai/free/en/authors/huan-zhang/), Ilya Razenshteyn and [Sébastien Bubeck](https://md.research.elamur.ai/free/en/authors/sebastien-bubeck/) · **Year:** 2019 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**247** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2951735139) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1906.04584](https://arxiv.org/abs/1906.04584)
- [OpenAlex](https://openalex.org/W2951735139)

## Deep dive: Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers

How SmoothAdv combines adversarial training with randomized smoothing to improve certified image classification, and what its guarantees cover. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A classifier can recognize an image correctly and still change its answer after a carefully chosen, very small alteration. Testing against attacks can expose this weakness, but surviving a test does not establish that every permitted alteration is harmless. This paper studies how to improve classifiers whose resistance to certain alterations can be certified mathematically. Its central contribution is SmoothAdv, an attack and training procedure designed for randomized smoothing: a method that bases an image’s label on the answers obtained from many noisy versions of that image.

Randomized smoothing separates the underlying neural network from the classifier whose robustness is certified. The underlying network classifies individual inputs. The smoothed classifier selects whichever class the network is most likely to return after Gaussian noise is added. Earlier work had established a tight certificate for this construction. Salman and colleagues retain that certificate and improve the underlying network through adversarial training. Their key observation is that attacking the original network does not necessarily identify the changes that most threaten its smoothed counterpart. SmoothAdv instead searches for an alteration that reduces the correct class’s probability after predictions have been averaged over noise.

The distinction improves both attack evaluation and certified accuracy. On ImageNet, the paper reports certified top-1 accuracy of 56% for a ResNet-50 classifier against alterations with ℓ₂ norm below 127/255, compared with the previous best of 49%. Certified accuracy counts an example only when its label is correct and the certification procedure establishes robustness at the requested radius. The authors also report improvements on CIFAR-10, with further gains when training incorporates additional data through pretraining or semisupervised learning. These results concern image classification under specified mathematical perturbation sets; they do not establish general resistance to every kind of adversarial input.

The scientific contribution is therefore a better way to train within an existing certification framework. SmoothAdv itself remains a heuristic optimization procedure: it does not prove that training has found the strongest attack or the best possible parameters. The eventual guarantee comes from randomized smoothing and its certification algorithm. This combination is the paper’s organizing idea. An empirical method can improve the quality of a system whose final behavior is assessed with a formal certificate, provided the training objective targets the classifier that will actually receive that certificate.

### Ideas worth borrowing

Align training with the deployed decision. SmoothAdv attacks the classifier formed by averaging behavior under noise, instead of assuming that weaknesses of the underlying network are the right training targets. This matters whenever deployment adds a transformation around a learned component. Averaging, voting, or another aggregation rule can change which errors matter. The reusable lesson is to derive the optimization objective from the complete decision procedure before choosing a familiar training recipe.

Keep learning and certification separate. The authors improve certified performance without introducing a stronger certification theorem. Better training produces underlying classifiers for which an established theorem certifies more examples. This separation helps organize research: a weak result may reflect the learned function, the certificate, or both. It also supports engineering systems in which experimental training methods can change while the meaning of a reported guarantee remains fixed.

Check the order of nonlinear operations. SmoothAdv averages correct-class probabilities before applying the negative logarithm. Averaging losses instead produces a different objective. These expressions can look similar while emphasizing different failures. The broader idea applies whenever a system combines uncertain predictions and then evaluates them: a loss applied to an aggregate need not behave like an aggregate of individual losses. Writing both expressions explicitly can uncover a mismatch that ordinary implementation inspection misses.

Spend approximation effort where it changes the conclusion. The paper uses relatively few Gaussian samples during training and substantially more when evaluating attacks. This acknowledges that repeated training updates and a final robustness assessment have different computational roles. A reusable strategy is to distinguish the approximation needed to obtain a useful training signal from the approximation needed to support an evaluation claim. The paper’s sample-count comparisons make that distinction measurable rather than merely convenient.

Judge estimators by optimization behavior. An alternative gradient estimator is unbiased and avoids differentiating through the underlying network, yet produces weaker attacks in the reported experiments. The estimator used by SmoothAdv is biased but performs better. The lesson is specific and useful: a favorable statistical property does not settle whether an estimator supplies effective search directions under a practical computational budget. Variability, sample cost, and the surrounding optimization problem also matter.

Treat robustness as an operating choice. Larger training attacks and stronger smoothing noise favor larger certification radii, while smaller settings can preserve more accuracy near unaltered inputs. There is no single setting that the experiments establish as best for every radius. Elsewhere, this suggests selecting a robustness target before comparing systems, and showing performance across relevant operating conditions instead of reporting only whichever condition makes each system look strongest.

Use abstention as an observable outcome. The prediction and certification procedures can decline to return an answer when sampling does not support sufficient confidence. The paper counts those cases against its accuracy metrics and separately examines abstention. This is useful for any system that can withhold a decision: correctness among returned answers and the frequency of returning an answer should remain distinguishable. Otherwise, a system can appear dependable in part because it avoids difficult cases.

### How Mova uses it

For [Mova](https://md.research.elamur.ai/free/en/projects/mova/), a small transparent language system written in Rust, the most direct application is methodological. SmoothAdv shows why robustness tests should target the complete procedure that produces an answer. If a language system combines several analyses, applies deterministic rules after a learned score, or aggregates perturbed inputs, testing an isolated internal component may miss weaknesses introduced by that composition. A Mova experiment could therefore define its final decision first and construct attacks against that decision.

The image-classification certificate does not transfer automatically to text. The paper assumes inputs represented as real-valued vectors, Gaussian perturbations, and a neighborhood measured with the ℓ₂ norm. A language input consists of discrete choices whose changes may affect grammatical structure or meaning. Replacing a word is not automatically equivalent to moving a small distance through the input space used in this paper. A Mova application would need its own clearly stated perturbation family before it could make a robustness claim.

A concrete exploratory use would be to choose a bounded classification task inside Mova and record how its answer changes under an explicit set of allowed input transformations. The task would need a fixed label set and a clear criterion for whether a transformation preserves the intended answer. Repeated agreement could then be reported as an empirical stability measurement. It would remain an experiment until a suitable argument established what, if anything, could be guaranteed beyond the tested transformations.

The distinction between averaging probabilities and averaging losses also offers a useful design check. If Mova ever combines probability-valued outputs from several altered inputs, the objective used to tune that component should reflect the combined output. SmoothAdv demonstrates that evaluating each altered input separately can optimize a different behavior from evaluating their aggregate. This insight is relevant even without adopting Gaussian noise, image architectures, or adversarial training.

Transparency would be especially useful in reporting such an experiment. Mova could expose the permitted transformations, the individual decisions, the aggregate decision, and any reason for abstaining. These are proposed applications, not established Mova features or results. Nothing in the paper demonstrates a Rust implementation, a language-system certificate, or a Mova integration. Its contribution to that setting is a disciplined way to connect an attack, a training objective, a decision procedure, and the exact scope of the evidence supporting robustness.

### The problem and its context

#### Why successful classification is not enough

The paper begins with a failure of local stability. An image can receive the correct label while a nearby, adversarially selected image receives an incorrect one. Here, “nearby” is mathematical: the size of the change is measured with a norm. The authors concentrate on the ℓ₂ norm, which combines changes across input coordinates into a Euclidean distance. The attack may alter many coordinates, provided the resulting distance stays within its budget.

Ordinary accuracy does not reveal how decisions behave throughout that neighborhood. It asks whether the classifier answers correctly at the observed image. Robustness asks whether permitted movements away from that image can change the answer. The two properties are related but distinct. A classifier can perform well on the original test set and still have vulnerable decision boundaries close to many test examples.

The paper describes adversarial training as a leading empirical response. During training, the system searches for nearby inputs that increase its loss, then updates its parameters using those difficult inputs. This encourages better behavior around the training examples. However, the search procedure is itself limited. A classifier that withstands one attack may remain vulnerable to another search method or to an adversarial example that the current method fails to find.

That limitation motivates certification. Instead of relying only on failed attempts to induce errors, a certificate establishes that a specified prediction cannot change anywhere inside a stated region. The region and the assumptions are part of the claim. In this paper, the main region is an ℓ₂ ball around an input: all vectors whose Euclidean distance from that input falls below a given radius.

#### Earlier certification methods and their scaling problem

The authors distinguish methods that solve the verification problem exactly from methods that provide conservative guarantees. The earlier exact approaches discussed in the paper use satisfiability or mixed-integer optimization. Their attraction is completeness: they can settle whether an adversarial example exists within the specified region. Their difficulty is computational cost when the network becomes large.

The conservative approaches discussed by the authors trade completeness for efficiency. They can establish safety for some inputs without fully resolving every case. A failure to certify should therefore not be read as proof that an attack exists. It may reflect looseness in the method’s reasoning. This distinction is essential when comparing certified accuracy with empirical accuracy: the former can be limited by the certificate even when a classifier is more robust than the certificate establishes.

According to the paper, the earlier approaches had not demonstrated the scalability needed for large, expressive networks performing well on ImageNet. That is the immediate reason randomized smoothing matters here. Its guarantee does not require tracing every internal activation or restricting the underlying architecture to a convenient verification form.

The authors’ account of the literature therefore presents two connected obstacles. Empirical defenses do not generally establish robustness against all allowed attacks. Earlier certification techniques can be too expensive or too conservative for practical large networks. Randomized smoothing offers a route around the architectural scaling obstacle, while leaving open the question of how best to train the network it uses.

#### What randomized smoothing had already established

Randomized smoothing replaces a direct classification decision with a decision about behavior under noise. Around a query image, imagine a Gaussian distribution of altered images. The smoothed classifier chooses the class that the underlying classifier returns most often under that distribution.

This construction is more than ordinary noise augmentation. Noise augmentation is a training procedure that exposes a network to corrupted examples. Smoothing defines a different classifier at prediction time. Its answer depends on the distribution of the underlying classifier’s decisions, rather than on the underlying classifier’s decision at the unaltered input alone.

The paper describes earlier smoothing research as progressing from heuristic defenses to increasingly strong guarantees. Initial work used related constructions without proofs of robustness. Lécuyer and colleagues supplied a guarantee using ideas associated with differential privacy. Li and colleagues strengthened the guarantee through information-theoretic tools. Cohen and colleagues then established a tight ℓ₂ robustness bound and practical sampling procedures for prediction and certification.

Salman and colleagues build directly on that last framework. They retain its certification method, use the same principal network architectures, and keep many training choices aligned with the earlier experiments. This makes their central comparison relatively focused: how much does a training procedure designed around the smoothed decision improve the robustness that the existing certificate can establish?

#### The remaining mismatch

A natural approach is to adversarially train the underlying network and smooth it afterwards. Another is to attack that network, add Gaussian noise to the resulting adversarial examples, and train on those corrupted inputs. Both approaches involve adversarial examples and noise, but neither necessarily searches for the perturbations that most damage the smoothed decision.

The mismatch arises because smoothing aggregates behavior across many inputs. A perturbation that strongly harms one individual prediction may have little effect on the aggregate. Conversely, a perturbation that consistently lowers the correct class’s probability across the surrounding noise distribution can be dangerous to the smoothed classifier without being the most damaging input for the unsmoothed network.

SmoothAdv is designed around this latter possibility. Its contribution is to make the aggregation explicit in the attack objective, approximate the resulting gradient, and use those attacks during training. The paper’s experiments then ask whether that alignment improves certified performance, instead of assuming that any adversarial training procedure should help equally.

### The method, step by step

The method has two layers. The outer layer is an existing randomized-smoothing classifier and its certificate. The inner layer is a new way to find adversarial training examples for that classifier. Understanding which layer does what prevents a common misreading: SmoothAdv improves the learned function, while the smoothing theorem supplies the guarantee.

Training and certifying with SmoothAdv The steps in order.

#### Define the smoothed decision

Let the underlying hard classifier assign a single class to an input. The smoothed classifier chooses the most probable such class after Gaussian noise has been added:

```
g(x) = argmax_{c ∈ 𝒴} P(f(x + δ) = c),  δ ∼ 𝒩(0, σ²I)
```

Here, x is an input vector, f is the underlying hard classifier, and g is the smoothed classifier. The set 𝒴 contains the possible labels, and c is one candidate label. The expression P denotes probability over the random noise δ. The distribution 𝒩 is Gaussian, its mean is zero, and its covariance is σ²I. The identity matrix I indicates that the noise has the same variance in each coordinate and no covariance between different coordinates. The parameter σ is the noise standard deviation.

The argmax operation selects whichever candidate class has the highest probability. This is a statement about the whole noise distribution, not a rule that takes a fixed small collection of noisy images as its exact definition. Sampling enters later because those probabilities are generally unavailable in closed form.

The noise level affects what kind of stability can be achieved. Small noise concentrates attention close to the original input. Larger noise spreads that attention over a broader region, potentially supporting larger robustness radii but making classification more difficult. The paper treats this as an accuracy–robustness tradeoff instead of a parameter that can simply be increased without cost.

#### Connect class probabilities to a radius

Suppose the leading class under the noise distribution has probability p_A, while the strongest competing class has probability p_B. The certification result used by the paper is:

```
R = (σ / 2) [Φ⁻¹(p_A) − Φ⁻¹(p_B)]
```

R is the certified ℓ₂ radius. The symbol σ again denotes the Gaussian standard deviation. The function Φ is the cumulative distribution function of a standard Gaussian, and Φ⁻¹ is its inverse. The probability p_A belongs to the leading class c_A. The probability p_B is the largest probability assigned to any class other than c_A.

The formula explains why the distribution of noisy decisions matters. A leading class that is only narrowly ahead offers a weaker certificate than a leading class separated clearly from its competitors. The certificate depends on this separation after the probabilities are transformed through the inverse Gaussian cumulative distribution function.

For neural networks, the exact probabilities are difficult to calculate. The certification procedure therefore estimates conservative bounds by sampling. It substitutes a lower confidence bound for the leading probability and an upper confidence bound for the competing probability. Using conservative bounds preserves the intended direction of the guarantee: uncertainty reduces what can be certified instead of silently strengthening the claim.

This also explains why certification can abstain. The sampled evidence may not establish that one class leads by enough to support the requested conclusion. Abstention is an outcome of insufficient evidence for the procedure’s claim, rather than necessarily an error in the underlying network’s most probable label.

#### Introduce a differentiable target

The hard classifier returns a label. A neural network typically produces class scores or probabilities before selecting that label. The paper calls the probability-valued function F and defines its smoothed counterpart G by averaging those probabilities:

```
G(x) = E_{δ ∼ 𝒩(0, σ²I)} [F(x + δ)]
```

F maps an input to a probability distribution over classes. G maps the input to the average of those distributions under Gaussian noise. The expectation E averages over δ, while x, σ, and I retain their earlier meanings.

The distinction between g and G is important. The hard smoothed classifier g aggregates class decisions. The soft smoothed classifier G aggregates probability-valued outputs. These operations need not produce identical intermediate quantities. The authors use G because it supplies a tractable target for gradient-based attacks, then certify the final hard smoothed classifier g.

This is a surrogate construction. Its usefulness rests partly on the empirical observation that attacks against the soft smoothed function also expose weaknesses of the hard smoothed classifier. The paper does not replace the certification theorem with a claim that the surrogate and the certified decision are interchangeable in every respect.

#### Search for an adversarial input

Given an input and its correct class, SmoothAdv searches within an ℓ₂ ball for a point that makes the smoothed soft classifier’s cross-entropy loss large:

```
x̂ = argmax_{‖x′ − x‖₂ ≤ ε} [−log E_{δ ∼ 𝒩(0, σ²I)} [F(x′ + δ)_y]]
```

The original input is x, and its correct label is y. The candidate adversarial input is x′, while x̂ denotes the selected result of the search. The bound ε is the maximum permitted ℓ₂ distance from x. The notation F(x′ + δ)_y selects the probability assigned to the correct class. The logarithm is applied after averaging that probability over Gaussian noise.

Increasing this loss means decreasing the correct class’s average probability under noise. That is the intended attack target: the aggregate behavior of the soft smoothed classifier near a deliberately shifted input.

The optimization is non-convex, so the authors do not solve it exactly. They use projected gradient descent, abbreviated PGD, and a method called decoupled direction and norm, abbreviated DDN. PGD searches for a high-loss point within the allowed region. DDN has a related but different aim: it searches for a nearby adversarial example while treating direction and distance separately.

The distinction matters when interpreting the shared SmoothAdv terminology. Both implementations use gradients derived from the smoothed soft objective, but the surrounding search procedures are not identical optimization algorithms.

#### Why averaging losses attacks a different object

A tempting alternative is to evaluate cross-entropy on every noisy input and average the resulting losses:

```
x̂_wrong = argmax_{‖x′ − x‖₂ ≤ ε} E_{δ ∼ 𝒩(0, σ²I)} [−log F(x′ + δ)_y]
```

The symbols x, x′, ε, δ, σ, I, F, and y have the same meanings as above. The subscript on x̂_wrong marks the alternative objective distinguished by the authors. Here, the negative logarithm operates inside the expectation.

This ordering changes the problem. The alternative searches for an input whose individual noisy realizations incur large losses on average. SmoothAdv searches for an input whose averaged correct-class probability is small. Because the logarithm is nonlinear, these are different ways of scoring the same collection of probabilities.

The authors interpret the alternative as seeking an adversarial example for the underlying soft classifier that remains damaging after Gaussian corruption. Their own objective directly targets the soft smoothed classifier. This is the paper’s central technical distinction, and it connects the mathematical formulation to the training comparison: adding noise around an attack is not enough if the attack was optimized for the wrong decision rule.

#### Approximate the gradient by sampling

The exact SmoothAdv gradient includes an expectation over a high-dimensional noise distribution:

```
∇_{x′} J(x′) = ∇_{x′} [−log E_{δ ∼ 𝒩(0, σ²I)} [F(x′ + δ)_y]]
```

J is the attack loss as a function of the candidate input x′. The operator ∇_{x′} means differentiation with respect to that candidate. The remaining symbols retain their earlier definitions.

The authors approximate the expectation using independently sampled Gaussian vectors:

```
∇_{x′} J(x′) ≈ ∇_{x′} [−log ((1 / m) Σ_{i=1}^{m} F(x′ + δ_i)_y)]
```

The sample count is m, and δ_i is the Gaussian noise vector associated with sample index i. The summation averages the correct-class probabilities from the noisy candidates. The approximation symbol indicates that a finite sample replaces the exact expectation.

This plug-in estimator differentiates through the sampled average and its logarithm. It is not an unbiased estimate of the exact loss gradient. Nonetheless, the authors report that it produces their strongest practical attacks and, when used in training, their strongest certified defenses.

The computational cost grows with the sample count because the network must be evaluated for each noisy input. During training, the authors consider m_train in {1, 2, 4, 8}. During attack evaluation, they use m_test in {1, 4, 8, 16, 64, 128}. They distinguish these budgets because evaluating a demanding attack occasionally is different from embedding it inside every training update.

For the PGD implementation, the step size follows:

```
γ = 2ε / T
```

The symbol γ is the constant PGD step size, ε is the attack radius, and T is the number of attack steps. The projection keeps candidate inputs within the permitted ℓ₂ ball as the search progresses.

#### Consider a gradient-free alternative

The paper also develops an estimator that does not require derivatives of F. Since the negative logarithm is monotonic in the relevant direction, attacking the correct-class probability itself provides another route to the same search goal. Stein’s lemma gives:

```
∇_{x′} G(x′)_y = E_{δ ∼ 𝒩(0, σ²I)} [(δ / σ²) F(x′ + δ)_y]
```

The left-hand side is the gradient of the smoothed correct-class probability. On the right, each probability is multiplied by its Gaussian noise vector divided by the variance σ². The expectation averages those vector-valued contributions. The symbols x′, G, F, y, and δ retain their previous meanings.

The corresponding sample estimator is:

```
∇_{x′} G(x′)_y ≈ (1 / m) Σ_{i=1}^{m} [(δ_i / σ²) F(x′ + δ_i)_y]
```

Here, m is the number of sampled noise vectors, and i identifies an individual sample. Unlike the plug-in estimator of the loss gradient, this estimator is unbiased for the probability gradient it estimates.

It also avoids backpropagating through F. The authors note associated time and memory advantages and explain that the expression can accommodate a hard classifier represented through class-indicator outputs. In principle, that allows attacks without requiring a differentiable underlying decision function.

In their experiments, however, this estimator yields weak attacks. The suggested explanation is excessive variance, but that explanation remains a hypothesis. The practical method therefore uses the plug-in gradient, while the alternative remains a mathematical and experimental direction for further investigation.

#### Turn the attack into training data

Adversarial training alternates between finding a difficult nearby input and updating the network using that input. SmoothAdv changes the first part of this process: the difficult input is selected against the smoothed soft classifier.

The authors then add Gaussian noise to the adversarial input and update the underlying network using those noisy examples. Therefore, the attack searches for a harmful center, and training addresses corrupted samples around that center. The procedure aims to improve the network’s behavior in the distribution that will determine the smoothed decision.

The implementation reuses the same noise samples across attack steps and during the ensuing augmentation. The authors suggest that this stabilizes the attack. It also means that simply describing the method as repeatedly sampling fresh noisy inputs would miss a deliberate implementation choice.

The attack budget is introduced gradually. During the first epoch it is zero, then increases linearly over the first ten epochs before remaining fixed. The noise and adversarial perturbations are applied before channel-wise normalization. That ordering keeps the reported radius tied to the original input coordinates, rather than to a standardized representation whose coordinate scales differ.

Random horizontal flips and random crops supplement the Gaussian augmentation. The paper also emphasizes batching: attacks for the examples in a minibatch should be computed together rather than through a literal, inefficient reading of the individual-example procedure.

#### Add more training data

The pretraining experiments begin with ResNet-110 classifiers trained on ImageNet32, a downsampled ImageNet collection with 32x32 images. The authors then replace the 1000-dimensional output layer with a randomly initialized 10-dimensional layer and fine-tune all weights on CIFAR-10.

Pretraining uses SmoothAdv-PGD with T = 2 and m_train = 1. The subsequent CIFAR-10 [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) runs for 30 epochs at a constant learning rate of 0.001, with batch size 256. The experiments vary attack steps and training noise samples during fine-tuning.

The semisupervised experiments use a 500K collection of unlabeled images obtained from the work by Carmon and colleagues. A standard classifier trained on CIFAR-10 supplies pseudo-labels. Training alternates randomly between labeled minibatches and pseudo-labeled minibatches, applying SmoothAdv in both cases.

For pseudo-labeled inputs, the cross-entropy contribution is scaled by η, with η selected from {0.1, 0.5, 1.0}. This reduces or preserves the influence of the automatically assigned labels depending on the chosen setting. The combined experiment starts from the ImageNet32-pretrained networks and then fine-tunes with semi-supervision.

These procedures change the data available for learning. They do not alter the smoothing certificate. Their role is to improve the underlying classifier so that its smoothed counterpart can meet that certificate more often.

#### Understand the alternative proof

The appendix offers another derivation of the existing robustness bound. It begins by convolving a bounded function with Gaussian noise, a construction identified as the Weierstrass transform. Gaussian averaging makes the function smooth, but a simple bound on the smoothed function’s slope does not capture the strongest available certificate.

The more informative statement concerns a transformed probability:

```
h(x) = Φ⁻¹(f̂(x))
```

The function f̂ is the Gaussian-smoothed version of a function taking values in [0,1]. The function Φ⁻¹ is the inverse standard Gaussian cumulative distribution function. The new function h expresses the smoothed value on the inverse-Gaussian probability scale.

For unit Gaussian variance, the appendix establishes:

```
|h(x + δ) − h(x)| ≤ ‖δ‖₂
```

The vectors x and δ identify the original input and its perturbation. The absolute-value expression measures the change in the transformed function, while ‖δ‖₂ measures input distance. This is the stated 1-Lipschitz property.

Apply this control separately to the leading class and a competitor. Before the competitor can overtake the leader, the transformed probability gap must close. Bounding how rapidly each side can move yields the same radius used by the existing certificate, with σ supplying the scale for general Gaussian noise.

The proof is an alternative explanation of why the certificate holds, not a stronger certificate created by adversarial training. Its conceptual value is to connect probability separation with a precise smoothness property.

### Experiments and results

#### What is measured

The experiments distinguish clean classification, empirical robustness, and certified robustness. Clean classification concerns unaltered test inputs. Empirical robust accuracy concerns inputs attacked by the chosen search procedure. Certified accuracy requires both a correct prediction and a certificate covering the requested radius.

Abstentions count against the latter metrics. A classifier cannot receive certified credit merely because its most likely answer appears plausible; the procedure must return that answer and establish the specified robustness. Likewise, the empirical metric counts successful non-abstaining predictions after attack.

For prediction, the paper uses the earlier Predict procedure. It samples noisy classifications, applies a binomial hypothesis test to the observed votes, and either returns a class or abstains. Certification uses the earlier Certify procedure, which estimates enough separation between class probabilities to support a robustness claim.

The default certification settings are n = 100,000, n₀ = 100, and α = 0.001. The first sample count supports the main certification estimate, while the additional preliminary count belongs to the certification procedure. Prediction defaults to n = 100,000 and α = 0.001. The authors explain α as the failure parameter and describe the corresponding probability of an incorrect prediction or invalid certificate as at most 0.1%.

These sampling settings are separate from m_train and m_test. The latter control gradient estimation inside the attack. Prediction and certification samples estimate the classifier’s decision behavior. Keeping these quantities distinct is necessary to understand both computational cost and the sample-count analyses.

#### Datasets, architectures, and the principal baseline

The main image-classification experiments use ImageNet and CIFAR-10. The underlying architecture is ResNet-50 for ImageNet and ResNet-110 for CIFAR-10. These match the architectures used in the randomized-smoothing baseline from Cohen and colleagues.

The full CIFAR-10 test set is certified. For ImageNet, certification uses a subsample of 500 test examples. As a consequence, the numerical ImageNet findings describe that evaluation sample; they should not be described as a certification run across the entire test collection.

The principal baseline is earlier Gaussian-noise training followed by randomized smoothing. The authors select it because, in their account of the preceding work, it had already substantially outperformed other scalable certified ℓ₂ defenses. Their experiments therefore focus on improving a strong existing smoothing system.

Training comparisons preserve several important choices, including architecture, batch size, and learning-rate schedule. The number of training epochs changes for CIFAR-10, while ImageNet retains the earlier duration. This supports a focused comparison, although it is not a claim that every aspect of the training process is identical.

#### The numerical ImageNet comparison

The clearest explicitly reported comparison concerns certified top-1 accuracy at an ℓ₂ perturbation bound of 127/255:

ImageNet certified top-1 accuracy at ℓ₂ bound 127/255 SmoothAdv training improves the accuracy supported by the smoothing certificate.

**The numbers**

| System or setting | certified top-1 accuracy % |
| --- | --- |
| Previous best randomized smoothing | 49 |
| SmoothAdv ResNet-50 (this paper) | 56 |

This result illustrates the meaning of the paper’s improvement. The architecture remains a practical image-classification network, and the certificate remains the existing randomized-smoothing certificate. The gain comes from learning an underlying decision function whose noisy predictions support correct, certifiable decisions more often.

The ImageNet training search uses m_train = 1 and noise levels σ in {0.25, 0.5, 1.0}. Attack budgets ε come from {0.5, 1.0, 2.0, 4.0}. The attack settings include 1-step SmoothAdv-PGD and 2-step SmoothAdv-DDN.

The authors report improvements both across the overall collection of settings and within comparisons that hold the noise level fixed. This matters because changing σ changes the operating tradeoff. A stronger overall envelope could otherwise arise in part from selecting different noise levels rather than from better training at a comparable noise level.

The paper also displays representative individual classifiers. Those comparisons help connect the best-achievable curves to concrete trained systems, although they do not eliminate the distinction between a selected system and an envelope assembled across many systems.

#### CIFAR-10 and additional data

For CIFAR-10, the parameter search is broader. The training sample count m_train varies over {1, 2, 4, 8}. The smoothing noise levels are {0.12, 0.25, 0.5, 1.0}, and ε varies over {0.25, 0.5, 1.0, 2.0}. Both SmoothAdv-PGD and SmoothAdv-DDN are considered, with attack-step counts selected from {2, 4, 6, 8, 10}.

The paper reports improvements reaching 16% over the earlier certified results. When pretraining and semisupervised learning are incorporated, it reports improvements reaching 22%. These are the authors’ summary statements about improvement; they are not a complete set of certified accuracies indexed by radius. They should therefore remain distinct from a chart comparing actual accuracy values at a named radius.

The authors describe consistent gains from pretraining or semi-supervision. The important experimental point is that the SmoothAdv objective remains useful when the available training information changes. Better use of labeled or pseudo-labeled data complements the attack-based training procedure instead of replacing it.

The CIFAR-10 figures compare certified performance with empirical performance obtained using SmoothAdv-PGD at m_test = 128. The authors report that their certified curve exceeds the empirical curve of the earlier baseline. This is a stronger comparison than saying only that a new certificate rises above an old certificate: it places a guarantee for the new system above performance observed under attack for the earlier one.

It remains a comparison under specified evaluation procedures. The empirical curve depends on the attack and prediction settings, while the certified curve depends on the certificate and sampling procedure. Neither curve alone gives a universal characterization of all possible failures.

#### Reading upper envelopes correctly

Several main figures report upper envelopes. At each radius, the plotted value selects the best certified accuracy among the trained settings. The classifier supplying the strongest result can therefore change as the requested radius changes.

This presentation is useful when asking what the training framework can achieve across a range of robustness targets. It does not establish that a single trained classifier simultaneously achieves every point on the envelope. A deployment comparison needs either a selected classifier or an explicit rule for choosing among classifiers.

The paper partly addresses this interpretive issue by also showing comparisons per noise level and representative individual systems. Those views reveal how the gains interact with σ. Low-noise systems tend to favor accuracy at smaller radii, whereas stronger noise allows larger certificates at the cost of accuracy nearer the original input.

Adversarial training introduces another cost. The authors report occasional reductions in standard accuracy, visible at r = 0 in the discussed curves. The improvement is therefore not a universal increase in every performance measure. It is a better tradeoff for certified robustness, with some settings sacrificing clean accuracy.

#### Converting the guarantee to another norm

The paper also converts ℓ₂ certificates into ℓ∞ certificates using the containment relationship between the corresponding balls:

```
r_∞ = r₂ / √d
```

The quantity r₂ is an ℓ₂ robustness radius, r_∞ is the implied ℓ∞ radius, and d is the input dimension. The square root accounts for the largest Euclidean distance associated with a coordinatewise bounded perturbation.

For CIFAR-10, the paper evaluates this conversion at an ℓ∞ radius of 2/255, using an ℓ₂ radius of 0.435. It reports an improvement of at least 3.9% over the earlier certified ℓ∞ results. For ImageNet, it considers an ℓ∞ radius of 1/255, associated in the paper with an ℓ₂ radius of 1.5, and reports an improvement around 8.2%.

These findings come from a geometric conversion of the original certificate. They do not establish that SmoothAdv directly optimizes the best possible ℓ∞ certificate or that the conversion is equally attractive at every dimension and radius.

#### Training resources and reproducibility

The CIFAR-10 runs use SGD on one NVIDIA P100 [GPU](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/) for 150 epochs. The batch size is 256, and the initial learning rate is 0. Starting at 1, the value is divided by 10 every 50 epochs. Depending on attack steps and noise samples, training takes from a few hours to a few days.

For ImageNet, the authors use synchronous SGD on four NVIDIA V100 GPUs for 90 epochs. The batch size is 400, and the initial learning rate is 0.1, with a factor-of-10 reduction every 30 epochs. Reported training durations range from 2 to 6 days across the compared training procedures.

The authors release their implementation under the smoothing-adversarial repository name, together with trained classifiers and training and certification logs. These materials support checking the experimental claims and recovering details behind the plotted comparisons. They also underline that the apparent simplicity of wrapping a network with smoothing does not make training and certification computationally free.

### What the ablations show

#### Attacking the aggregate matters

The most direct controlled comparison replaces SmoothAdv training with attacks on the underlying classifier. The authors consider ordinary PGD adversarial training and a variant that adds Gaussian noise after finding the adversarial input. These are called Vanilla PGD and Vanilla PGD+noise in the paper.

The comparison uses T = 2 and m_train = 1, while varying the same families of attack budgets and noise levels. The resulting certified curves favor SmoothAdv overall. Adding noise to examples obtained from an unsmoothed attack does not recover the same certified robustness.

This supports the paper’s mechanism-level explanation. The advantage is not adequately described as the presence of both adversarial examples and Gaussian augmentation. How the adversarial example is selected matters. SmoothAdv directs the search towards weaknesses of the aggregate that will define the eventual smoothed prediction.

The comparison is still empirical. It demonstrates the superiority of the reported procedure over the specified alternatives, not a theorem that every possible attack on an underlying classifier must be inferior.

#### More training samples usually help

The training-sample analysis varies the number of Gaussian vectors used to approximate the attack objective. Across the explored attack procedures, step counts, noise levels, and budgets, larger m_train tends to yield higher certified accuracy.

This is consistent with the interpretation that a better approximation exposes more useful adversarial training examples. A poorly estimated direction may fail to damage the smoothed classifier, leaving training to address an easier problem than intended. More samples can improve that direction.

The qualifier “tends” matters. The reported analysis supports a broad experimental pattern, not a monotonic guarantee for every individual setting. More samples also require more network evaluations. The results identify a quality–cost tradeoff instead of making the largest sample count an unconditional recommendation.

#### A larger training radius shifts the tradeoff

The ε analysis changes how far the training attack may move from the original input. As ε increases, certified accuracy declines at small evaluation radii and improves at larger ones in the reported comparisons.

This shows that the training radius is not interchangeable with the eventual evaluation radius. It shapes what kind of local behavior the network learns, but a training budget does not itself certify the same radius at test time. Only the final noisy class probabilities and the certification procedure determine the reported certificate.

The result also helps explain why the authors search over multiple training budgets when drawing their main envelopes. Different training choices occupy different parts of the accuracy–robustness tradeoff. Reporting only the strongest large-radius result would conceal costs at smaller radii.

#### Attack evaluation needs enough samples

The attack-sample analysis evaluates the earlier randomized-smoothing classifiers using SmoothAdv-PGD with varying m_test. With m_test = 1, SmoothAdv is weaker than ordinary PGD applied to the underlying classifier. As the number of samples grows, SmoothAdv produces stronger attacks.

The authors use 20 attack steps in the relevant CIFAR-10 comparison. They report no noticeable improvement beyond m_test = 128. This observation explains their use of that sample budget for demanding empirical evaluations.

The finding is important because it prevents an overly simple reading of objective alignment. Choosing the right mathematical target is necessary to the paper’s argument, but an inaccurate approximation of that target can still produce a weak attack. The training and evaluation procedure must make the objective operational.

The absence of observed improvement beyond the reported sample budget is also limited to these experiments. It does not prove that the attack has found the strongest possible adversarial example or that every remaining gap to certification is unavoidable.

#### Prediction sampling changes observed accuracy

The authors separately vary n, the number of noisy classifications used by Predict. Increasing n improves empirical accuracy because the procedure abstains less often.

This effect differs from increasing m_test. More attack samples help the attacker estimate a damaging direction, tending to lower observed accuracy. More prediction samples help the classifier determine its own likely class with greater confidence, tending to raise observed accuracy by reducing abstention.

The distinction shows why stochastic robustness experiments need a careful accounting of sampling on both sides. An apparent performance change may result from a better attack, a more reliable prediction procedure, or both. Treating all sample counts as one generic computational parameter would obscure those mechanisms.

#### Unbiasedness does not settle attack quality

The gradient-free comparison tests the estimator derived through Stein’s lemma against the plug-in estimator. Despite the gradient-free method’s appealing theoretical properties, its attacks are weak in the reported evaluation.

The authors suggest high variance as a possible explanation. They do not establish that diagnosis through a complete decomposition of estimator error or an exhaustive search for improved variants. The supported conclusion is narrower: the tested gradient-free implementation does not match the plug-in approach in attack effectiveness.

This comparison is particularly useful because it separates the mathematical validity of an estimator from its role inside an optimizer. An unbiased estimate can still be too noisy to guide a constrained search well under the available sampling budget.

#### Certification abstention also improves

The paper compares certification abstention rates for its best CIFAR-10 classifiers with those of the earlier smoothing baseline. It reports substantially lower abstention across the examined radii.

This complements the certified-accuracy results. The gains involve not only what the classifiers predict, but also how frequently the sampling procedure can support a certificate. Better-separated noisy class probabilities can make more inputs eligible for a confident conclusion.

The authors also distinguish certification abstention from prediction abstention. Earlier reported prediction abstention rates are not directly interchangeable with the certification rates analyzed here. Predicting a likely label and establishing a robustness radius impose different evidential demands, so their refusal rates answer different questions.

### Limitations

#### What the authors explicitly acknowledge

The authors are clear that SmoothAdv does not introduce a new certification method. The formal guarantee is inherited from randomized smoothing. Adversarial training improves the underlying classifier, but does not independently prove that classifier robust.

They also acknowledge the heuristic nature of the attack optimization. The SmoothAdv objective is non-convex, and its gradients are approximated. PGD or DDN can find useful adversarial examples without establishing that the strongest permitted example has been found.

The plug-in gradient estimator is biased. The paper reports strong empirical behavior and convergence under suitable smoothness as the sample count grows, but those properties do not make a finite-sample attack exact. The practical success of the method should not be restated as a guarantee about its optimization trajectory.

The authors identify computational expense as another constraint. Each additional noise sample requires another network evaluation, and adversarial training already performs repeated input-gradient calculations. The reported training times reflect choices that balance stronger attacks against feasible computation.

They also discuss reductions in standard accuracy. Improving performance at meaningful robustness radii can reduce accuracy on unaltered inputs. The paper’s results therefore require an operating-point judgment; they do not support a claim that stronger adversarial training improves every measure simultaneously.

Finally, the gradient-free alternative remains unresolved. Its poor practical performance is observed, while the explanation based on variance is speculative. The authors present improvements to that approach, and investigation of the softmax temperature in the alternative derivation, as directions rather than completed achievements.

#### What the guarantee actually covers

The certificate concerns the smoothed hard classifier. It does not automatically certify the underlying network’s direct prediction at the same input. Removing the smoothing procedure would change the object to which the guarantee applies.

The perturbation set is also essential. The main theorem concerns ℓ₂-bounded input changes under Gaussian smoothing. It does not claim protection against arbitrary semantic changes, unrestricted image transformations, or every adversarial threat that could arise around an image-processing application.

Correctness and stability remain separate. A prediction can be stable while incorrect. Certified accuracy avoids rewarding that case by requiring the returned label to match the test label, but the local mathematical guarantee itself concerns constancy of the prediction.

The procedure also includes statistical uncertainty. The target smoothed classifier is defined through exact probabilities, while prediction and certification estimate those probabilities from samples. The failure parameter quantifies the possibility that the sampling procedure returns an incorrect conclusion. Calling the guarantee probabilistic does not make it merely an attack test, but it does mean the stated confidence belongs in the claim.

Abstention is another practical boundary. A system that cannot support a confident answer may decline to provide one. This is counted in the reported metrics, but an application must still decide whether abstention is acceptable and what should happen afterward.

#### Limits visible in the experimental design

A careful reader should separate the main architectural evidence from architectural generality. Randomized smoothing can wrap different kinds of classifiers, but the principal experiments use the stated residual-network architectures on image-classification datasets. The paper does not experimentally establish the same training gains for every architecture or application.

The ImageNet evaluation is based on a subsample of 500 examples. That is the population directly assessed by the reported certification run. It supports the comparison presented by the authors, while leaving ordinary questions about sample representativeness and broader evaluation.

The upper-envelope presentation introduces selection across settings. It describes the strongest observed result at each radius among the available classifiers. It should not be treated as the performance curve of an unspecified single deployed classifier. The per-noise and representative-system views help, but the distinction remains.

The additional-data experiments change the resources available for learning. Comparisons involving pretraining or pseudo-labeled images answer a different question from comparisons restricted to the original labeled training data. They demonstrate that the framework can benefit from more data; they do not isolate every contribution of data quantity, initialization, pseudo-label quality, and training objective.

The pseudo-labeled collection also had an access limitation at the time of writing. The authors state that it was not then public and that they obtained it and its pseudo-labels from Carmon and colleagues. Their code and logs support reproducibility, but those materials alone do not remove that data dependency.

#### Limits of empirical and converted robustness

A remaining gap between certified and attacked accuracy has no single established explanation. The attack may fail to find existing adversarial examples. The certificate may fail to establish robustness that is actually present. Both mechanisms can contribute, and the paper’s plots do not fully resolve their relative importance.

Similarly, stronger attack performance as m_test increases does not prove that the chosen final budget is universally sufficient. It establishes a useful practical saturation observation in the tested setting. New objectives, optimization choices, or evaluation conditions could change what the attack finds.

The ℓ∞ results inherit the limitations of converting from an ℓ₂ certificate. The containment argument is mathematically meaningful, but it need not provide the most favorable certificate for a different threat geometry. Those results should remain identified as converted guarantees.

The paper’s experiments also do not establish robustness to natural distribution shifts. A certificate around a particular input answers a local, explicitly bounded question. Performance on images drawn from a changed distribution is a different empirical question, even when both are discussed under the broad heading of robustness.

For language systems, the boundary is sharper still. The paper supplies no certificate for adversarial prompts, token substitutions, or generated text. Those applications require definitions and arguments suited to discrete sequences and their intended meaning. Borrowing the principle of attacking an aggregate is reasonable; borrowing the image certificate without rebuilding its assumptions is not supported.

### What came after

The later citing works place this paper near several different robustness questions. The available connections establish that those works cite it and identify their subjects. They do not establish, on their own, which training equations, implementations, or experimental settings were adopted. The most useful reading is therefore to distinguish the lines of inquiry without assigning undocumented mechanisms to them.

[Measuring Robustness to Natural Distribution Shifts](https://md.research.elamur.ai/free/en/papers/taori-2020-measuring-robustness-natural-distribution-shifts/) addresses image classification under naturally changing distributions. Its connection is useful because the word “robustness” can otherwise blur distinct evaluation targets. SmoothAdv studies bounded adversarial neighborhoods around inputs. Natural distribution shifts concern a different way that test conditions can change. The citation places the paper in that broader discussion, but does not establish that local smoothing certificates resolve distribution-shift performance.

[SmoothLLM](https://md.research.elamur.ai/free/en/papers/robey-2023-smoothllm-defending-large-language-models/) concerns defending language systems against jailbreaking. It brings the discussion toward [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/) and adversarial prompting rather than image labels. The relationship makes the aggregate-decision perspective worth examining in a new setting. However, the citation information does not establish that SmoothLLM uses SmoothAdv’s training objective, Gaussian image perturbations, or the same certification theorem. Those details cannot be inferred from a shared robustness vocabulary.

[Certifying LLM Safety](https://md.research.elamur.ai/free/en/papers/kumar-2023-certifying-llm-safety-against-adversarial/) places certification in the context of adversarial prompting and language-system safety. The connection highlights a question already central to Salman and colleagues: what separates observed resistance to attacks from a guarantee over an explicitly defined attack set? The later work’s subject concerns that distinction in another domain. Its citation does not, by itself, establish that a safety certificate for prompts has the same assumptions or meaning as an ℓ₂ image-classification certificate.

[Jailbreaking Black Box](https://md.research.elamur.ai/free/en/papers/chao-2023-jailbreaking-black-box-large-language/) studies attacks on language systems with restricted access and a limited query budget. That subject connects to the attack side of robustness research. SmoothAdv demonstrates that an attack must target the decision procedure actually being evaluated and that approximation quality can determine attack strength. The later citation situates it within a continuing attacker–defender conversation, without establishing that the black-box attack uses SmoothAdv’s gradient estimator or any particular smoothing construction.

Together, these connections show why the paper’s conceptual distinctions remain useful beyond its image experiments. The deployed decision, the allowed perturbations, the attack’s access, and the evidence supporting a robustness claim must be specified separately. In Salman and colleagues’ own results, those pieces fit together concretely: an attack against an averaged probability function improves training, and an existing randomized-smoothing certificate verifies the resulting hard classifier. Later applications can borrow that discipline while requiring different mathematics and different evidence.

## Cite

Cite as Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn and Sébastien Bubeck. 2019. Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1906.04584](https://doi.org/10.48550/arxiv.1906.04584) · [arXiv 1906.04584](https://arxiv.org/abs/1906.04584)

```bibtex
@misc{salman2019provably,
  title = {{Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers}},
  author = {Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn and Sébastien Bubeck},
  year = {2019},
  doi = {10.48550/arxiv.1906.04584},
  eprint = {1906.04584},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1906.04584}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
