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

Almost Tight L0-norm Certified Robustness of Top-k Predictions against Adversarial Perturbations

Jinyuan Jia, Binghui Wang, Xiaoyu Cao, Hongbin Liu, Neil Zhenqiang Gong

Introduction

Adversarial examples—inputs specifically designed to deceive machine learning models—represent a significant security challenge. While empirical defenses are frequently bypassed by adaptive attacks, certified defenses offer a mathematical guarantee: a model's prediction remains stable if the input perturbation stays within a defined "certified radius."

Most research in this field focuses on top-1 predictions. However, many practical systems, such as recommendation engines and web search, rely on top-$k$ predictions. Furthermore, while $L_2$ (Euclidean) robustness is well-documented, $L_0$ robustness—limiting the number of modified pixels—is highly relevant for real-world physical attacks but has lacked tight theoretical guarantees for top-$k$ scenarios. This paper addresses this gap by introducing a framework for "almost tight" $L_0$ certified robustness.

Methodology: Randomized Ablation

The authors employ a strategy called randomized ablation, a discrete variant of randomized smoothing.

  1. Ablation Process: For a given input image, the system randomly selects a fixed number of pixels ($e$) to retain, while "ablates" (removing or neutralizing) the rest.
  2. Smoothed Classifier: This process is repeated many times. The final "smoothed" classifier outputs the $k$ labels that appear most frequently across these random samples.
  3. Hyperparameter Tuning: The choice of $e$ is critical. A smaller $e$ (more ablation) can sometimes provide a larger certified radius but may lower the base accuracy of the classifier.
Certified Top-k Accuracy vs. Number of Perturbed Pixels for different values of kept pixels (e).

Theoretical Contributions

The core innovation is a mathematical proof deriving the $L_0$ certified radius for this top-$k$ smoothed classifier. By applying the Neyman-Pearson Lemma, the authors bound the probabilities of label shifts when pixels are modified.

A key challenge was working in discrete spaces. Unlike Gaussian noise (continuous), randomized ablation operates in a discrete space where the Intermediate Value Theorem does not apply. The authors developed new techniques to construct discrete regions to maintain tightness. They prove their radius is perfectly tight for $k=1$ and "almost tight" for $k > 1$.

Experimental Results

The method was evaluated on CIFAR-10 and ImageNet. The results demonstrate that designing specifically for $L_0$ via ablation is significantly more effective than converting $L_2$ guarantees to $L_0$.

On ImageNet, the proposed method achieved a 69.2% certified top-3 accuracy against an attacker changing 5 pixels. In contrast, previous state-of-the-art methods that transformed $L_2$ robustness to $L_0$ achieved only 9.0% under the same conditions. As expected, certified accuracy increases as $k$ increases, making the defense particularly effective for applications where a "correct" result within the top few suggestions is acceptable.

Certified Top-k Accuracy on ImageNet across different values of k.

Conclusion

This work provides a robust theoretical and empirical foundation for $L_0$ certified robustness in top-$k$ classification. By leveraging randomized ablation and discrete probability bounding, the authors achieve substantial improvements over existing benchmarks. Future work may involve reducing the computational cost of the smoothing process or incorporating base-model-specific information to further expand the certified radius.

Summary updated

BibTeX
@inproceedings{jia2022almost,
  author = {Jinyuan Jia and Binghui Wang and Xiaoyu Cao and Hongbin Liu and Neil Zhenqiang Gong},
  title = {{Almost Tight L0-norm Certified Robustness of Top-k Predictions against Adversarial Perturbations}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=gJLEXy3ySpu},
}
Figure