NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Input-Specific Robustness Certification for Randomized Smoothing

Ruoxin Chen, Jie Li, Junchi Yan, Ping Li, Bin Sheng

Introduction

Neural networks are increasingly deployed in critical applications, yet they remain notoriously vulnerable to adversarial attacks—small, carefully crafted perturbations that can cause a model to misclassify an input. Randomized Smoothing (RS) has emerged as a state-of-the-art defense mechanism, providing a mathematically "certified radius." This radius guarantees that a model's prediction will remain constant within a specific distance of the original input. However, the primary bottleneck for RS is its computational cost: calculating this radius typically requires tens of thousands of model evaluations per image, making it impractical for real-time or large-scale use.

The Efficiency Gap in Randomized Smoothing

The standard approach to RS, often referred to as Input-Agnostic Sampling (IAS), uses a fixed number of samples for every input regardless of its complexity. This is inherently inefficient. For instance, a model might be highly confident about a clear image of a horse, requiring only a few thousand samples to certify its robustness. Conversely, an ambiguous or noisy image might require a much larger sample size to reach the same level of statistical certainty. Previous attempts to speed up RS by simply reducing the global sample size often lead to a significant and unpredictable degradation in the quality of the certified robustness.

Methodology: Adaptive Input-Specific Sampling (ISS)

To address this inefficiency, this paper introduces Input-Specific Sampling (ISS). The core philosophy of ISS is to adapt the computational effort to the difficulty of the specific input being certified. By intelligently reducing the number of samples for "easier" inputs, ISS can maintain high-quality certificates while drastically reducing total certification time.

The two-stage ISS workflow: Stage 1 precomputes the mapping, and Stage 2 performs adaptive certification based on input confidence.

As illustrated in the workflow above, ISS operates in two distinct stages:

  1. Precomputation (Stage 1): The authors develop a mapping function, $\psi_{ISS}(\cdot)$, which determines the minimum number of samples needed for a given confidence level. This mapping is designed to keep the "radius decline"—the difference between the ideal radius and the estimated radius—below a user-defined threshold. The paper defines two control strategies: Absolute Decline (AD), which limits the raw decrease in the radius, and Relative Decline (RD), which limits the percentage decrease.
  2. Adaptive Certification (Stage 2): For a new input, the system first takes a small "pilot" sample (e.g., 1,000 samples) to obtain an initial estimate of the model's confidence. This estimate is then passed through the precomputed mapping to determine the optimal sample size ($\hat{k}$) for that specific image. Finally, the full certification is performed using only those $\hat{k}$ samples.

Experimental Evaluation

The researchers evaluated ISS on standard benchmarks, including CIFAR-10 and ImageNet. The results demonstrate that ISS provides a significantly better trade-off between certification speed and robustness compared to traditional fixed-sampling methods.

Average certified radius vs. certification time on ImageNet, comparing ISS against the standard IAS method.

On the ImageNet dataset, ISS achieved a speedup of over 3x while maintaining a certified radius within 0.05 of the full-sample baseline. As shown in the figure above, for any given time budget, ISS consistently yields a higher Average Certified Radius (ACR) than IAS. For example, within a 250-minute window, ISS achieved an ACR of 0.958, whereas the standard IAS method only reached 0.917. On smaller datasets like CIFAR-10, the efficiency gains were even more pronounced, with ISS often requiring only 1/5th to 1/10th of the original sample budget to produce high-quality certificates.

Key Insights and Future Directions

One of the most compelling aspects of ISS is its "plug-and-play" nature. Because it acts as a wrapper around the certification process rather than requiring model retraining, it can be applied to any existing randomized smoothing architecture. Furthermore, it empowers practitioners with "Universal Control," allowing them to set a specific budget for robustness loss in exchange for predictable speed gains.

While ISS significantly reduces overhead, future work could further optimize the process. The current "pilot" sample represents a fixed cost for every image, and the precomputation stage, while fast, adds an extra step to the pipeline. Future research may explore making the statistical confidence intervals themselves adaptive to the input, potentially unlocking even greater computational savings.

Conclusion

Input-Specific Sampling (ISS) represents a significant step toward making certified robustness practical for real-world applications. By recognizing that not all inputs are created equal, ISS breaks the computational bottleneck of randomized smoothing, offering a flexible and efficient framework for securing neural networks against adversarial threats.

Summary updated

BibTeX
@inproceedings{chen2022input,
  author = {Ruoxin Chen and Jie Li and Junchi Yan and Ping Li and Bin Sheng},
  title = {{Input-Specific Robustness Certification for Randomized Smoothing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20579},
}
Figure