Large pretrained vision models are easy to fool with tiny, carefully chosen pixel changes. The two standard fixes are both expensive. Adversarial training retrains the whole network against attacks generated inside every training step. Randomized smoothing gives a provable guarantee: it classifies thousands of noisy copies of the input and takes a majority vote, and it needs a base network that still works on very noisy images. We propose a cheap middle path. Keep a pretrained Vision Transformer (ViT, an image model that processes an image as a sequence of patch tokens) completely frozen. Prepend a handful of learned input vectors, "noise tokens", trained only so that the frozen model classifies Gaussian-noised images correctly and consistently. Then certify the combined model with standard randomized smoothing.
The certificate does not depend on keeping the tokens secret, because the guarantee holds for any fixed base classifier. That removes the main weakness of the closest prior method. Training needs no attack loop, only noise sampling, so it avoids the cost of adversarial training. The main hypothesis we test is whether a large frozen backbone, adapted this lightly, keeps accuracy on hard classes where smoothed classifiers are known to collapse. A second hypothesis is whether it reaches useful certified accuracy with far fewer Monte Carlo samples per input.
Core Claim
Randomized smoothing, introduced in Certified Adversarial Robustness via Randomized Smoothing, turns any base classifier $f$ into a smoothed classifier. The smoothed classifier returns the class $f$ most often predicts under Gaussian noise of scale $\sigma$. It is provably constant within an $\ell_2$ radius
$$R = \sigma\,\Phi^{-1}(\underline{p_A}),$$
where $\underline{p_A}$ is a high-confidence lower bound, estimated from $N$ noisy samples, on the probability that $f$ outputs the top class, and $\Phi^{-1}$ is the inverse standard normal CDF. Two things make this bound useful. First, $f$ must be accurate under noise. Second, $p_A$ must sit well above one half, so that a small $N$ already gives a nonzero radius.
Our claim is that roughly ten tokens, a few thousand parameters' worth of vectors for a ViT-Giant, can make a frozen foundation model accurate and confident under noise. We expect this to produce a certified accuracy–radius curve competitive with or better than denoiser-based smoothing of frozen models, at a fraction of the adaptation cost. The claim fails if tokens cannot move $p_A$ far enough on noisy inputs, or if a slightly larger low-rank update is needed for the effect.
Where This Sits
The method is borrowed from Robustness Tokens. That paper freezes DINOv2, DeiT-III or OpenCLIP, learns 10 prepended tokens in about 200 steps, and recovers ImageNet white-box accuracy on DINOv2-G from 0.3% to 63.1%, with clean accuracy at 85.2% against 85.6% before adaptation. Its robustness is empirical, and its authors treat the tokens as a private key. If the tokens leak, the frozen backbone is exposed. We keep the parameterization and change both the training signal and the guarantee: the tokens are trained against random noise rather than PGD attacks, and security comes from a certificate rather than secrecy.
The closest certified competitor is Denoised Smoothing. It prepends a trained image denoiser to a frozen classifier and certifies the pair. Its authors report a remaining gap to end-to-end noise-trained models, and some denoisers produce visible artifacts. We adapt inside the backbone instead of cleaning pixels in front of it. This avoids running a second network on every Monte Carlo sample.
Feature-Space Adversarial Robustness Certification for MLLMs also avoids retraining a large model. It smooths in the feature space of a frozen CLIP encoder with a U-Net denoiser and certifies a feature cosine-similarity bound, adding about 0.28 s per image. We certify the final class label end to end, and we add no denoiser.
Two papers constrain the design and supply its central risk. Hidden Cost of Randomized Smoothing shows that smoothing shrinks and erases narrow decision regions. On ImageNet at $\sigma=0.5$, more than 75% of classes reach zero accuracy, and noise-augmented training does not fix this, because training expands regions under noise while smoothing at inference contracts them. Analyzing Accuracy Loss in Randomized Smoothing Defenses proves that above a critical noise level the set of functions a smoothed model can represent strictly shrinks.
Neither result rules out our approach. Both analyses concern models trained under noise from limited capacity, not a very large model pretrained on clean data and then lightly steered. The approach is only interesting if it measurably reduces class-wise collapse relative to these reported numbers. That is the main falsifiable prediction.
Insta-RS motivates, but does not supply, a later extension. It shows that per-instance noise levels help accuracy, at the cost of a test-time search. Because the backbone is shared, several token sets tuned for different $\sigma$ can be kept for the price of a few vectors each. Any such selection must be made in a way that keeps the certificate sound, and we treat it as secondary.
Research Program
We will train noise tokens for DINOv2 (base through giant), DeiT-III and OpenCLIP ViTs. Each $\sigma$ in {0.25, 0.5, 1.0} gets its own token set, trained on ImageNet-1k. CIFAR-10 is upsampled to the ViT input size as a second benchmark. The backbone and a linear classification head fitted on clean features stay frozen; only the tokens are optimized.
We compare two token objectives. The first is plain cross-entropy on noisy images. The second adds a consistency term that pushes the predicted class distribution under noise toward that on the clean image, which directly targets a larger $p_A$.
Certification follows the Cohen et al. procedure: 100 selection samples, then a certification budget swept over $N \in \{100, 1{,}000, 10{,}000, 100{,}000\}$, with failure probability 0.001. At every point we record three costs: GPU-hours for adaptation, forward passes per certified input, and wall-clock time per certified input. Beyond aggregate certified accuracy, we report the full per-class accuracy distribution of the smoothed classifier at each $\sigma$. This includes the fraction of classes at zero accuracy, the quantity reported by Mohapatra et al.
Baselines
The naive reference is the frozen backbone with its clean linear head, smoothed directly with no adaptation. It measures how noise-fragile the pretrained model is and bounds from below what the tokens add.
The strongest existing competitor for a frozen model is Denoised Smoothing (Salman et al.). The file reports ImageNet ResNet-50 certified accuracy at $\ell_2$ radius 0.5 of 31% black-box and 33% white-box, against 4% undefended. We will reproduce it on the same ViT backbones by training their stability-objective denoiser on ImageNet, with a GPU-hour budget matched to or exceeding token training. The comparison will use identical $\sigma$, $N$ and confidence level. Beating it means higher certified accuracy at radii 0.25, 0.5 and 1.0 for the same backbone. A secondary win is equal certified accuracy at fewer total network evaluations, since each denoised sample costs a denoiser pass plus a classifier pass.
The upper reference is full fine-tuning of the same ViT with Gaussian noise augmentation, as in Cohen et al. No reported result was found on Lacuna for Cohen-style training of these ViT backbones on ImageNet. We will therefore run it ourselves and report its compute alongside its accuracy. Coming within a few points of it at one to two orders of magnitude less adaptation compute would count as success.
To isolate the key ingredient, we run three ablations under the same data, steps and tuning sweep. The first is a linear head retrained on noisy features with no tokens, which asks whether the tokens matter at all. The second is a low-rank (LoRA-style) weight update, which asks whether tokens are the right minimal parameterization. The third is the consistency term removed, which asks whether it is what raises $p_A$ at small $N$.
Finally, we include ROB tokens themselves (Pulfer et al.), both as an empirical reference under AutoAttack via RobustBench and smoothed as-is. This shows whether attack-trained tokens transfer to noise.
Why not just…?
Why not just use Robustness Tokens without smoothing? They are cheap and single-pass, but their 63.1% ImageNet figure is empirical and depends on the tokens staying secret. A leaked or estimated token set leaves the frozen backbone with no protection. Our certificate is stated for a public model, so leakage is irrelevant. We also report ROB tokens under AutoAttack so readers can see what the certificate costs relative to empirical accuracy.
Why not just use Denoised Smoothing? This is the most direct threat. It already certifies frozen classifiers, and the file reports 33% at radius 0.5 on ImageNet. Its denoiser adds a full network pass to every Monte Carlo sample, and its authors acknowledge an accuracy gap to noise-trained models. The matched comparison above settles whether internal adaptation beats pixel-space cleaning. If it does not, the result is still informative: it would mean frozen ViTs cannot be steered toward noise robustness through their inputs alone.
Why not just fine-tune the backbone, or a LoRA update, with noise augmentation? This may work as well or better, and we do not assume otherwise. Full fine-tuning is the upper reference, and LoRA is an explicit ablation at matched compute. If LoRA clearly dominates tokens, we will report the cost–accuracy curve across parameterizations rather than defend tokens. The token-specific advantages that would remain are a single shared backbone and swappable per-$\sigma$ modules.
Why not just use random resizing and padding or JPEG compression? Xie et al. report large empirical gains from random resizing and padding but acknowledge vulnerability to attacks averaged over the transformation. APBench and MetaCloak show that transformation-aware perturbations survive filtering. Neither kind of preprocessing yields an $\ell_2$ certificate. A tempting variant, compressing before smoothing so that smaller noise suffices, would need the compression step to have a bounded sensitivity to input changes (a bounded Lipschitz constant), which JPEG does not. We therefore exclude it on soundness grounds.
Proposed Experiments
The first decisive check is on ImageNet at $\sigma=0.5$. There, Mohapatra et al. report that more than three quarters of classes collapse to zero accuracy under smoothing. We measure the zero-accuracy class fraction and per-class accuracy spread for noise tokens, the noise-augmented linear head, Denoised Smoothing and full fine-tuning on the same DINOv2 backbone. The claim is supported if tokens on a large frozen backbone cut the zero-accuracy class fraction substantially below that figure while matching Denoised Smoothing's certified accuracy. It is refuted if collapse persists at similar levels, which would suggest the shrinkage results bind even for large frozen models.
The second check is certified accuracy as a function of forward passes. For each method we plot certified accuracy at radius 0.5 against total network evaluations per input, counting the denoiser passes for the Denoised Smoothing baseline. The consistency objective should shift this curve left, meaning useful certificates at around $N=1{,}000$ rather than $100{,}000$, if it really pushes $p_A$ away from one half.
The third check is a scaling sweep from ViT-B to ViT-G. It tests whether backbone size, not the tokens, explains any reduction in collapse. The noise-augmented linear-head ablation separates the two.
All adaptation costs are reported in GPU-hours next to accuracy, so the comparison with the attack-based inner loop of adversarial training rests on measured cost rather than argument.
References
- Certified Adversarial Robustness via Randomized Smoothing.
- Robustness Tokens: Towards Adversarial Robustness of Transformers
- Denoised Smoothing: A Provable Defense for Pretrained Classifiers
- Feature-Space Adversarial Robustness Certification for Multimodal Large Language Models
- Hidden Cost of Randomized Smoothing
- Analyzing Accuracy Loss in Randomized Smoothing Defenses
- Insta-RS: Instance-wise Randomized Smoothing for Improved Robustness and Accuracy
- RobustBench: a standardized adversarial robustness benchmark
- Mitigating Adversarial Effects Through Randomization
- APBench: A Unified Availability Poisoning Attack and Defenses Benchmark
- MetaCloak: Preventing Unauthorized Subject-Driven Text-to-Image Diffusion-Based Synthesis via Meta-Learning