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

Overview

This paper introduces a new theoretical framework for certifying the robustness of top-$k$ predictions against $\ell_0$-norm adversarial attacks (where an attacker modifies a specific number of pixels or features). By using a technique called randomized ablation, the authors derive an "almost tight" certified robustness guarantee that significantly outperforms previous methods. Notably, it achieves a 69.2% certified top-3 accuracy on ImageNet even when 5 pixels are arbitrarily corrupted.

The Challenge: Top-k Predictions under L0 Attacks

Most research into adversarial robustness focuses on "top-1" accuracy—ensuring the single most likely prediction remains correct under attack. However, many real-world systems like search engines, recommender systems, and "Machine Learning as a Service" (MLaaS) platforms provide top-$k$ predictions.

The core challenge lies in defending against the $\ell_0$-norm attack, which is highly interpretable and physically realizable (e.g., placing a small sticker on a stop sign to alter a few pixels). While previous work addressed $\ell_2$ (Gaussian) robustness for top-$k$ or $\ell_0$ robustness for top-1, there was a significant gap in providing tight, provable guarantees for $\ell_0$ robustness in top-$k$ settings. Existing methods often relied on converting $\ell_2$ bounds to $\ell_0$, which results in loose, suboptimal certificates.

Methodology: Randomized Ablation

The authors build their defense using randomized smoothing, specifically a variant called randomized ablation.

  1. Randomized Ablation: Given an input (like an image), the system randomly selects a small number of features ($e$) to keep and "ablates" (masks or sets to a neutral value) the rest.
  2. The Smoothed Classifier: This process is repeated many times. The "smoothed" classifier then outputs the $k$ classes that appeared most frequently across these random trials.
  3. Theoretical Innovation: The core contribution is the derivation of the certified radius. The authors used the Neyman-Pearson Lemma—a fundamental tool in statistics—adapted for the discrete space of ablated inputs.
  4. Tightness Proof: They prove that their derived radius is "tight" for $k=1$ and "almost tight" for $k > 1$. In this context, "almost tight" means that without further assumptions about the base model, it is mathematically impossible to guarantee a radius larger than the one they found plus one ($r_l + 1$).

Theoretical Insights

  • Discrete vs. Continuous: Unlike Gaussian smoothing (used for $\ell_2$ robustness), which operates in a continuous space, randomized ablation operates in a discrete space. This makes the math harder—you cannot use the Intermediate Value Theorem—but it allows for tighter bounds because label probabilities are restricted to being integer multiples of $1/\binom{d}{e}$.
  • Bridging the Gap: The authors show that $\ell_0$ robustness is best handled by "dropping" features rather than "adding noise."
  • The "Almost Tight" Nuance: For $k > 1$, the discrete nature of the input space prevents a perfectly tight bound. However, by showing that an attacker only needs to change one more pixel to potentially break the system, they demonstrate that their certificate is as close to optimal as theoretically possible.

Empirical Results

The method was evaluated on two standard computer vision benchmarks: CIFAR-10 (using $32\times32$ images) and ImageNet (using a ResNet-50 architecture). The empirical results show a massive leap over the previous state-of-the-art.

Certified Top-k Accuracy vs. Number of Perturbed Pixels
  • ImageNet Performance: On ImageNet, the proposed method achieves a 69.2% certified top-3 accuracy against an attacker who can change 5 pixels. For comparison, the previous best method achieved only 9.0% under the same conditions.
  • CIFAR-10 Performance: Against a 5-pixel attack, the method maintains an 88.6% certified top-3 accuracy.
  • Top-1 Superiority: Even when evaluated on standard top-1 tasks, this method matches or exceeds the performance of specialized $\ell_0$ top-1 certifiers.

Limitations and Future Directions

  • Computational Overhead: Like all randomized smoothing methods, this requires many forward passes (Monte Carlo sampling) to estimate label probabilities, which can be slow during inference.
  • Base Classifier Agnosticism: The certificate is "model-agnostic," meaning it doesn't use any specific information about the neural network's architecture. Incorporating internal model information could potentially lead to even larger certified radii.
  • Beyond Images: While the paper focuses on images, the framework is theoretically applicable to other discrete domains like graph neural networks and 3D point clouds, which remains an exciting area for further exploration.

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