Manuscript Offprint

arXiv:2611.08035

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

Soroush H. Zargarbashi, Mohammad Sadegh Akhondzadeh, Aleksandar Bojchevski

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

High accuracy alone is not sufficient for reliability in machine learning. Although modern neural networks achieve strong empirical performance, their predictions can be highly sensitive to small, often imperceptible, input perturbations [Goodfellow et al., 2014]. This sensitivity can be exploited by adversaries to easily degrade the model's performance. There are many empirical, and heuristic defenses proposed in the literature which have been circumvented by stronger or adaptive attacks [Athalye et al., 2018]. A principled way to address this issue is to use robustness certificates, which provide formal guarantees that the model prediction remains invariant within a predefined perturbation set. Certificates can be viewed as binary decision rules: when they certify an input at a sufficiently large radius, they signal that the prediction can be trusted with respect to the specified threat model, whether the input is clean or even if adversarially perturbed, the perturbation is not effective.

Existing robustness certificates typically obtain such guarantees through architecture-specific verification methods, such as convex relaxations, or mixed-integer programming [Wong and Kolter, 2018, Katz et al., 2017, Tjeng et al., 2019]. While powerful, these methods require white-box access to the model, and often need to be adapted when new architectures or layers are introduced. Alternatively, randomized smoothing (RS) [Cohen et al., 2019] wraps around any black-box classifier, and convolves it with a noise augmentation. The resulting smoothed classifier changes slowly with local perturbations. Hence, one can derive closed-form model-agnostic bounds on its change. This black-box nature is a major practical advantage, allowing it to easily apply to large modern networks, and even to API-accessible systems [Carlini et al., 2022]. However, randomized smoothing-based

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Table 1: Results on ImageNet/ResNet, r=0.14r=0.14, σ=0.5\sigma=0.5, α=0.05\alpha=0.05, Gaussian smoothing (2000 MC samples: 50 for the majority-vote label and 1950 for the certificate). The verification entry does not use smoothing (result directly reported from the reference); it gives a pointwise guarantee on a different architecture, so it is not directly comparable to the marginal guarantee of ProxC. Speedup is on forward calls and relative to randomized smoothing. Certification-only cost excludes the forwards for the label; end-to-end cost includes them.

MethodVariantGuaranteeCert. RatioCert. AccuracyError RateForwards / image
CalCert.-only (Speedup)End-to-end (Speedup)
Rand. Smoothing—Pointwise70.06%56.08%——19502000
VerificationHu et al. [2023]Pointwise—35.0%——11
ProxCStandaloneMarginal56.11%48.53%2.29%20001 (1950×)51 (39.2×)
FallbackMarginal72.35%57.3%2.29%2000779 (2.50×)829 (2.41×)

certificates require a large number of model forward passes (e.g. 2×1032 \times 10^3) to estimate the smoothed class probabilities with high confidence, which can be prohibitively expensive especially with limited resources, or when the model itself is expensive to evaluate.

This cost is especially wasteful because not every input received by a system is adversarial; indeed, most inputs are expected to be clean. Moreover, in many settings, it is cheap to obtain a relatively small set of unlabeled samples representative of the deployment distribution. These observations motivate a distributional relaxation of robustness certification: rather than requiring a local certificate for every individual input, it may suffice to guarantee that certification failure is controllable below an adjustable low probability over test inputs.

In light of the arguments above, we define Proxy Certificate (ProxC), a framework for delegating expensive certification to cheap proxy functions under calibrated statistical control. Through a variant of conformal risk control (CRC) that we define in § 2.2, we control how often the proxy deviates from the expensive function. Our proxy reduces the cost of the certification step to a single model forward. We define three variants for ProxC, tailored for various compute budgets:ProxC-A, that uses a single forward pass per calibration point, ProxC which computes an expensive backbone certificate on the small calibration set, and ProxC-H which can increase the certified ratio, in return for more Monte-Carlo (MC) sampling. All three variants use a single sample to certify each test point. We bound the risk anchored at the latent clean point, which lets a sound certificate computed only on clean calibration points calibrate a cheap proxy that remains valid under perturbation (see § F).

The resulting proxy can be used either as a standalone certificate or as a hybrid fallback mechanism that only calls the expensive certificate on inputs rejected by the proxy. These are two different operating regimes: the standalone proxy gives the largest saving, while the fallback recovers the certified ratio of the backbone at a smaller speedup. As we show in Table 1, by relaxing the soundness to bounded false approvals, we can reduce the cost of the certification step to a single forward, the same as verification-based approaches (importantly, the choice of label passed into the certificate is excluded from the cost evaluation. This can still follow the inference rule of the backbone). ProxC shows a higher certified accuracy compared to verification (note that our guarantee is marginal, and we use a slightly different architecture), and it is cheaper than randomized smoothing. In other words, in the trade-off between computational efficiency and applicability, we now propose a new dimension which is soundness. We propose smoothing-based guarantees with a realistic computational cost that is suitable for larger models like ViT, or language modeling in realistic time-sensitive scenarios.

References (60)

  • Conformal risk control (opens arXiv in a new tab)
  • Theoretical foundations of conformal prediction (opens arXiv in a new tab)
  • Learn then test: Calibrating predictive algorithms to achieve risk control
  • A gentle introduction to conformal prediction and distribution-free uncertainty quantification
  • Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples
  • BEiT: BERT Pre-Training of Image Transformers
  • Conformal prediction beyond exchangeability
  • Distribution-free, risk-controlling prediction sets
  • Probably approximately global robustness certification (opens arXiv in a new tab)
  • (certified!!) adversarial robustness for free! arXiv preprint arXiv:2206.10550, 2022 (opens arXiv in a new tab)
  • Certified adversarial robustness via randomized smoothing
  • Imagenet: A large-scale hierarchical image database
  • Scalable certified segmentation via randomized smoothing
  • Selective classification for deep neural networks
  • Selectivenet: A deep neural network with an integrated reject option
  • Adversarially robust conformal prediction
  • Probabilistically robust conformal prediction
  • Explaining and Harnessing Adversarial Examples
  • CertViT: Certified robustness of pre-trained vision transformers (opens arXiv in a new tab)
  • Unlocking deterministic robustness certification on imagenet
  • LipNeXt: Scaling up Lipschitz-based certified robustness to billion-parameter models
  • Cert-ed: Certifiably robust text classification for edit distance
  • Verifiably robust conformal prediction
  • Reluplex: An efficient smt solver for verifying deep neural networks
  • Certifying confidence via randomized smoothing
  • Tight certificates of adversarial robustness for randomly smoothed classifiers
  • Efficient robust conformal prediction via lipschitz-bounded networks
  • Robustness between the worst and average case
  • Classification with valid and adaptive coverage
  • Least ambiguous set-valued classifiers with bounded error levels
  • Provably robust deep learning via adversarially trained smoothed classifiers
  • Denoised smoothing: A provable defense for pretrained classifiers
  • Evaluating robustness of neural networks with mixed integer programming
  • Algorithmic learning in a random world
  • Towards fast computation of certified robustness for relu networks
  • Provable defenses against adversarial examples via the convex outer adversarial polytope
  • Provably robust conformal prediction with improved efficiency (opens arXiv in a new tab)
  • Randomized smoothing of all shapes and sizes
  • Robust conformal prediction with a single binary certificate
  • Robust yet efficient conformal prediction sets
  • One sample is enough to make conformal prediction robust
  • Efficient neural network robustness certification with general activation functions
  • The class $y$ can be determined by any arbitrary inference rule
  • majority vote over 50 noisy samples) 11: Draw $\epsilon \sim \psi$ and return $y$ if $\hat{h}(\tilde{x}+\epsilon,\lambda^*;y)=1$; otherwise abstain 12: return $\hat{\text{cert}}_{f,r}(\tilde{x}) = \hat{h}(\tilde{x}+\epsilon,\lambda^*;y)$
  • Use PROXC when a trusted certificate can be afforded once on the calibration set and deployment must be cheap
  • Let $\lambda_{\text{cand}} = g(\boldsymbol{x}_{1:n}, \xi_0)$ be the output of the tuning phase, where $\xi_0$ denotes the tuning noise
  • If the validation fails, $\lambda^* = 1 \geq \lambda_{\text{or}}$
  • For a classifier $f: \mathcal{X} \to \mathcal{Y}$ and a perturbation set $\mathcal{B}(x)$, pointwise adversarial robustness requires $f(\tilde{x}) = f(x)$ for all $\tilde{x} \in \mathcal{B}(x)$
  • \mathcal{Y} \times \mathcal{Y} \to \{0,1\}$ denotes the zero-one loss, the worst-case robust error of $f$ at $(x,y)$ is $\sup_{\tilde{x} \in \mathcal{B}(x)} \ell(f(\tilde{x}), y)$
  • the inner maximization ranges over a continuous, high-dimensional perturbation set, while the outer minimization ranges over a non-convex class of classifiers
  • For any measurable function $h: \mathcal{X} \to [0,1]$, define its smoothed value
  • Geometrically, $h^*$ accepts precisely the half-space where the noise-shifted distribution is more likely to have originated from $\tilde{x}$ than from $x$
  • They are estimated by Monte Carlo:
  • Defining $\beta_{n+1} = \Pr_{\epsilon_{n+1}}\left[L(\boldsymbol{x}_{n+1} + \epsilon_{n+1}, \hat{\lambda}) = 1\right]$ we have
  • Through randomized smoothing we have
  • Similarly, Lemma 1 shows that $\mathrm{c}^{\uparrow}(\beta_{n+1}, \mathcal{B})$ is a concave function of $\beta_{n+1}$
  • Therefore, for all $\tilde{\boldsymbol{x}}_{n+1} \in \mathcal{B}(\boldsymbol{x}_{n+1})$
  • Replacing this loss with an upper bound (e.g
  • Using the union bound, the failure probability over the $n$ calibration points, each with confidence $1 - \frac{\delta}{n}$, accumulates to $\delta$
  • This coupling introduces an undesirable dependence on the quality of the underlying classifier