Should We Pay This Much for Robustness? Efficient Proxy Certificates with Marginal Guarantees

Soroush H. Zargarbashi, Mohammad Sadegh Akhondzadeh, Aleksandar BojchevskiNeurIPS 2026

TL;DR

Proving that a deep neural network won't be fooled by tiny adversarial perturbations usually requires running the model thousands of times for every single input—a non-starter for real-world deployment. This paper introduces Proxy Certificates (ProxC), a statistical framework that slashes test-time certification down to a single forward pass by trading strict, every-input guarantees for a tightly controlled average error rate (say, under 5%). Suddenly, rigorous robustness guarantees become practical even for massive Vision Transformers and language models.

What Problem Does This Paper Address?

Modern neural networks are notoriously brittle: imperceptible pixel tweaks or token edits can easily flip their predictions. To guarantee safety, researchers use robustness certificates—mathematical proofs that a model's prediction stays constant within a defined neighborhood (perturbation ball) around an input.

Currently, you have two main options. White-box exact verification uses a single forward pass, but breaks down on large or complex architectures. Alternatively, Randomized Smoothing (RS) treats any model as a black box by injecting random noise and taking a vote. RS scales to massive architectures, but there's a catch: estimating probabilities with high confidence requires thousands of Monte Carlo (MC) forward passes (e.g., 2,000) per test query.

Certified ratio of Randomized Smoothing drops sharply if you try to save compute by reducing Monte Carlo samples.

Paying a 2,000× compute tax on every input—especially when most real-world traffic is completely benign—is prohibitively wasteful. Can we avoid this bottleneck if we allow a tiny, statistically bounded risk of error?

Methods

Instead of demanding a pointwise guarantee (zero chance of certification failure on this exact input), the authors relax the requirement to a marginal guarantee: across future test inputs, the probability that an adversary flips a prediction and fools our certificate ("false approval") is capped below a user-chosen threshold $\alpha$ (e.g., 5%).

They achieve this by combining two standard tools—Randomized Smoothing and Conformal Risk Control (CRC)—in a novel way:

  • Cheap Test-Time Proxy: They replace expensive MC sampling with a lightweight proxy rule: add one draw of random noise to the input, run the model once, and approve the prediction if the top class score exceeds a calibrated threshold $\lambda^*$.
  • Anchored Robust Calibration: Standard CRC breaks under adversarial attacks because perturbed test inputs no longer match the clean calibration distribution. The authors solve this by anchoring the risk function to the latent clean data point during calibration (using 200–500 unlabeled examples) and applying smoothing bounds directly to the expected risk.

They offer three calibration flavors depending on offline compute budgets: ProxC-A (1 forward pass per calibration image, 1 end-to-end pass at test time), ProxC (runs the expensive RS certificate once per calibration image), and ProxC-H (uses heavy MC sampling offline to unlock larger perturbation radii). At deployment, ProxC can act standalone for maximum speed, or as a fallback filter that only triggers expensive RS when the cheap proxy rejects an input.

Datasets

The authors evaluate existing benchmarks without introducing new datasets:

  • Vision: CIFAR-10 and ImageNet evaluated against $\ell_2$-norm adversarial perturbations (using ResNets and a diffusion-denoised BEiT-L Vision Transformer).
  • NLP: AG-News (4-class topic classification with RoBERTa-base) evaluated against token-level edit/insertion perturbations.

Key Insights and Ideas

  • Soundness as a Tunable Knob: Traditionally, robustness forces a binary choice between white-box rigidity (fast) and black-box generality (slow). Treating soundness as a statistical dial unlocks black-box scalability at white-box inference speeds.
  • Clean Calibration Defends Against Dirty Inputs: Because the risk is mathematically anchored to the clean data point and extended via smoothing bounds, you only ever need clean, unlabeled data during calibration—yet the $\le \alpha$ false-approval guarantee holds against worst-case white-box adversaries at test time.
  • Pay Offline, Save Forever: With ProxC-H, spending heavy compute once during offline calibration sharpens the statistical bounds (avoiding looseness from single-sample calibration), letting a 1-sample test-time proxy certify much larger perturbation radii.

Key Results

Across image and text tasks—even under adaptive PGD-RS attacks—the empirical false-approval rate consistently stays safely below the $\alpha = 5\%$ target.

On ImageNet (ResNet-50, radius $r=0.14$, $\alpha=0.05$):

  • Standalone Speedup: ProxC cuts certification-only cost from 1,950 forward passes to 1 (1950× speedup), or 39.2× end-to-end when including the 50 passes used by the base model's majority-vote prediction. It retains 48.53% certified accuracy (vs. 56.08% for full RS).
  • Fallback Mode: Invoking full RS only when ProxC abstains recovers the full 57.3% certified accuracy while still delivering a 2.41× end-to-end speedup.
  • Scaling to Giant Models & NLP: On a BEiT-L Vision Transformer ($r=0.25$), ProxC achieves 46.96% certified accuracy (vs. 55.23% for 10,000-sample RS). On AG-News text classification, ProxC certifies 66.3% accuracy against 1-token insertions while keeping empirical risk at 4.5%.

Limitations and Future Work

  • Marginal, Not Individual: Like all conformal methods, the guarantee holds on average over the distribution. Rare classes or specific subpopulations can experience error rates above $\alpha$.
  • Distribution Shift: The guarantee assumes clean test inputs come from the same distribution as the calibration set (though unlabeled recalibration is relatively easy).
  • Label Prediction Overhead: For standard ProxC, while the certificate takes 1 pass, inheriting the smoothed classifier's label still takes 50 passes (unless using the 1-pass ProxC-A variant, which trades off some certified accuracy).

Future directions include designing richer proxy functions, developing localized/class-conditional risk guarantees, handling distribution shifts in latent clean space, and cutting the label-prediction overhead.

Summary updated

Abstract

Modern classifiers remain sensitive to small input perturbations, while strong model-agnostic robustness certificates such as randomized smoothing are often too expensive for deployment, requiring an extensive number (e.g. 2000) of model forward passes per input. We propose a framework that delegates certification to a cheap proxy function while statistically controlling its deviation from the original sound certificate. Given an exchangeable unlabeled calibration set, we tune the proxy via robust conformal risk control to guarantee a bounded marginal (rather than pointwise) false-approval rate: the probability, over future inputs, that the proxy accepts an input whose prediction is flipped due to perturbation. The resulting proxy certificate can be used either as a standalone marginal certificate or as a fallback mechanism that invokes the expensive certificate only when the proxy rejects. We provide both single-sample and sample-heavy calibration recipes. Empirically, as a standalone certificate our method reduces the test-time certification cost to a single model forward while retaining much of the certified performance of randomized smoothing at small radii, and as a fallback it recovers the certified ratio of randomized smoothing at a more modest speedup. This enables cheap yet effective robustness guarantees for larger architectures such as vision transformers and language models.
BibTeX
@inproceedings{zargarbashi2026should,
  author = {Soroush H. Zargarbashi and Mohammad Sadegh Akhondzadeh and Aleksandar Bojchevski},
  title = {{Should We Pay This Much for Robustness? Efficient Proxy Certificates with Marginal Guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KfO6qMzPTr},
}
Figure