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

Tight Certificates of Adversarial Robustness for Randomly Smoothed Classifiers

Guang-He Lee, Yang Yuan, Shiyu Chang, Tommi S. Jaakkola

In the high-stakes world of machine learning, "adversarial examples"—tiny, often invisible perturbations that trick a model into making a wrong prediction—remain a persistent thorn in the side of researchers. While many defenses exist, most are empirical, meaning they work only until a cleverer attacker finds a new way around them. The NeurIPS 2019 paper, "Tight Certificates of Adversarial Robustness for Randomly Smoothed Classifiers," pushes the boundaries of certified robustness, providing mathematical guarantees that no attacker, no matter how clever, can break a model within a specific "safety radius."

By generalizing "randomized smoothing" to work across diverse noise distributions and discrete data, the authors provide mathematically optimal (or "tight") robustness certificates for $L_0$ distances. This approach significantly outperforms previous methods on both image and molecular datasets.

The Challenge of Discrete Data

Most research into certified robustness has focused on continuous data (like high-resolution images) and $L_2$ (Euclidean) distance. The standard tool for this is adding Gaussian noise to inputs during inference, a process known as randomized smoothing.

However, many real-world problems involve discrete data, such as binarized pixels, text tokens, or molecular fingerprints. In these cases, we care about $L_0$ robustness—the absolute number of features an adversary can "flip" or change. Previous attempts to adapt continuous smoothing techniques to discrete spaces resulted in "loose" certificates: guarantees that were technically true but so conservative they were practically useless. The authors set out to find the tightest possible guarantees for these discrete scenarios.

A Likelihood Ratio Framework

The core innovation of this paper is treating the robustness problem as a likelihood ratio test.

  1. Generalized Smoothing: Instead of relying solely on Gaussian noise, the authors develop a framework that accommodates any noise distribution, including uniform or discrete noise.
  2. The $L_0$ Certificate: For discrete spaces, they introduce a specific randomization scheme. Each feature has a high probability $\alpha$ of remaining the same and a small probability $\beta$ of changing to any other possible value.
  3. Likelihood Ratio Partitioning: To find the tight bound, the authors partition the input space into regions where the likelihood ratio between the original input and a perturbed input is constant. Using the Neyman-Pearson Lemma, they identify the worst-case classifier, which precisely defines the boundary of the certified radius.
  4. Scalable Computation: Calculating these certificates involves extremely small probabilities that can cause standard floating-point math to underflow. The authors provide a robust algorithm using large integer arithmetic to ensure computational accuracy.
  5. Classifier-Awareness: While most smoothing treats the model as a "black box," the authors demonstrate that incorporating knowledge of the model's structure (like a decision tree) allows for dynamic programming to find even tighter, "exact" certificates.

Key Insights and Results

The authors evaluated their framework on three distinct types of data: Binarized MNIST (pixels are 0 or 1), ImageNet (testing $L_0$ robustness at scale), and Bace (a chemical property dataset using binary molecular fingerprints).

A crucial takeaway is that tightness is key. A "tight" certificate means that for a given amount of noise, it is the best possible guarantee. The authors prove that their discrete smoothing approach is inherently superior to simply "projecting" continuous Gaussian noise onto discrete data because it respects the discrete nature of the data to capture more "robustness budget."

The quantitative improvements are substantial:

Binarized MNIST: Their discrete $L_0$ certificate achieved an average certified radius of 3.456, compared to only 1.799 when using the previous state-of-the-art Gaussian-based method.

MNIST Certified Accuracy

ImageNet: When scaled to ImageNet to test $L_0$ robustness (the number of pixels changed), the method provided a certified accuracy of 53.8% at a radius of $r=1$. This is a massive jump over the 37.2% provided by previous methods.

ImageNet Certified Accuracy

Molecules: On the Bace dataset, the randomly smoothed decision tree was consistently more robust than a standard decision tree, and the "classifier-aware" certificate was significantly tighter than the "black-box" version.

Limitations and Future Work

While groundbreaking, the approach has limitations. Computing the $L_0$ certificates for large datasets like ImageNet is computationally intensive, taking roughly four days for a given set of parameters (though this is a one-time cost per dataset/noise level). Additionally, there is an $L_0$ "cliff": as the radius $r$ increases, the certified accuracy eventually drops off sharply.

Future work will likely focus on maintaining high accuracy at larger $L_0$ distances and extending this framework to more complex discrete structures, such as graphs or natural language sequences.

Summary updated

BibTeX
@inproceedings{lee2019tight,
  author = {Guang-He Lee and Yang Yuan and Shiyu Chang and Tommi S. Jaakkola},
  title = {{Tight Certificates of Adversarial Robustness for Randomly Smoothed Classifiers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=XnhW0c-DtY},
}
Figure