Unlocking Deterministic Robustness Certification on ImageNet

Kai Hu, Andy Zou, Zifan Wang, Klas Leino, Matt Fredrikson

TL;DR

This paper breaks through the scalability barrier of deterministic robustness certification, moving beyond small convolutional networks on low-dimensional data to deep architectures on ImageNet. By introducing a novel linear residual block (LiResNet) and a multi-class margin maximization loss (EMMA), the authors achieve new state-of-the-art certified robust accuracy and demonstrate fast, deterministic guarantees on a real-world scale.

What Problem Does This Paper Address?

Deep neural networks are notoriously vulnerable to adversarial attacks—tiny, imperceptible perturbations that completely flip a model's prediction. To deploy deep learning safely in mission-critical applications (like autonomous driving or malware detection), we need robustness certification, which guarantees a network’s prediction remains constant within a certain norm-bounded perturbation ball ($\epsilon$-ball).

Currently, certification methods fall into two camps:

  1. Probabilistic (e.g., Randomized Smoothing): Scales well to large datasets like ImageNet but is computationally expensive at test time and can suffer from false positives (certifying an unsafe point up to 0.1% of the time).
  2. Deterministic (e.g., Lipschitz-based methods): Provides absolute, fast guarantees but has been historically stuck on small, shallow feed-forward Convolutional Networks (ConvNets) trained on low-dimensional datasets like CIFAR-10.

When researchers try to scale deterministic methods to deeper architectures like ResNets, they hit a wall. Bounding the Lipschitz constant of standard residual blocks ($x + g(x)$) yields loose bounds ($1 + K_g$), leading to severe over-regularization. Furthermore, standard robust loss functions suffer from severe training instability when dealing with a large number of classes. This paper tackles both bottlenecks to finally bring deterministic certification to ImageNet.

Methods

The authors introduce two key innovations to GloRo (Globally-Robust) Nets, a leading framework that incorporates Lipschitz regularization directly into the loss function:

  • Linear-Residual Networks (LiResNet): In a conventional ResNet block, the residual path contains non-linear activations, making a tight Lipschitz bound mathematically difficult to estimate. The authors propose a Linear Residual Block: $$r_{\text{linear}}(x) = x + \text{Conv}(x)$$ Because the entire block is a purely linear transformation, it can be mathematically collapsed into a single equivalent convolution ($W + \Delta$). This allows the exact Lipschitz constant to be tightly and efficiently estimated using the power method. Non-linear activations (like MinMax) are simply placed after the residual block.
Figure 2: (a) An illustration of the LiResNet Architecture. (b) Plot of the percentage of instances at each epoch during training for which the threatening class (the one with the second-highest logit value) differs compared to the previous epoch (on the same instance). Numbers are reported on three datasets with 10, 100, and 200 classes using a GloRo LiResNet with GloRo TRADES [32] loss.
  • Efficient Margin MAximization (EMMA) Loss: Standard GloRo training optimizes against the single closest adversarial class (the "threatening class"). However, in datasets with many classes, the identity of this threatening class constantly shifts from epoch to epoch, creating a "whack-a-mole" instability that stalls training. EMMA solves this by dynamically adjusting and penalizing worst-case adversarial examples from all classes simultaneously using an adaptive radius ($\tilde{\epsilon}_i$).
Figure 3: Comparison between the standard GloRo loss and our proposed GloRo EMMA loss (Definition 3). The standard GloRo loss constructs a ⊥class to push the nearest decision boundary away while EMMA adds the perturbations to all rest classes (i.e. considering class 1 is the ground truth) to efficiently push all boundaries away. Another difference is that EMMA uses the adaptive ˜ϵi instead of ϵ in the training. At iteration t + 1, the network using EMMA loss is already robust while standard GloRo loss may take more iterations to become robust.

Datasets

The architecture and loss function were evaluated on standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100
  • Tiny-ImageNet (200 classes)
  • ImageNet (1000 classes) — used to demonstrate large-scale deterministic certification for the first time.
  • The authors also leveraged data augmentation via DDPM (Denoising Diffusion Probabilistic Models) generators to boost performance on the smaller datasets.

Key Insights and Ideas

  • The High-Dimensional Orthogonality Trap: The standard Lipschitz bound for a residual block ($1 + K_g$) is only tight if the input and the residual output point in the exact same direction. In high-dimensional spaces, random vectors are almost always orthogonal, meaning the standard bound is inherently loose and unnecessarily handicaps deep models.
  • The "Whack-a-Mole" Phenomenon: The authors discovered that in the first 100 epochs of training Tiny-ImageNet, more than 30% of instances changed their "threatening class" every single epoch. Optimizing all class margins simultaneously via EMMA stabilizes the decision boundaries.
  • Unlocking Depth: Prior Lipschitz-constrained methods saw their Verifiable Robust Accuracy (VRA) degrade as networks grew deeper. LiResNet is the first architecture where increasing depth consistently translates to better robust performance.
Figure 1: Plot of VRA—the % of points where the model is both correct and certifiably robust— against the depth of the model. We compare our proposed architecture with BCOP [33], SOC [43] and Cayley layers [48] on CIFAR-100, finding our architecture scales more favorably to deeper nets. See Appendix E for plot implementation details.

Key Results

The combination of LiResNet and EMMA loss achieved new state-of-the-art Verifiable Robust Accuracy (VRA) under $\ell_2$ perturbations ($\epsilon = 36/255$):

  • CIFAR-10: Reached 70.1% VRA (with DDPM augmentation), outperforming previous ResNet baselines like SLL (65.8%).
  • CIFAR-100: Reached 41.5% VRA, a significant jump over prior methods.
  • Tiny-ImageNet: Reached 33.6% VRA, up from the previous best of 23.4%.
  • ImageNet Milestone: For the first time, the authors scaled deterministic certification to full ImageNet, achieving a 35.0% VRA. Crucially, while probabilistic methods take hours or days to evaluate on ImageNet, this Lipschitz-based approach certified the entire 50,000-image validation set in less than one minute.

Limitations and Future Work

  • The Transformer Bottleneck: While the linear residual block helps with feed-forward paths, it doesn't solve the certification bottleneck in Vision Transformers (ViTs). Self-attention mechanisms are inherently non-Lipschitz, and current Lipschitz-continuous attention alternatives remain non-competitive with LiResNets.
  • The Multi-Class Scaling Penalty: Even with EMMA, there is a steep drop-off in VRA as the number of classes scales up (e.g., from CIFAR-10 to ImageNet). Pushing decision boundaries to maintain a $2\epsilon$ margin between hundreds of intersecting classes remains an open geometric challenge.
  • Label Noise Sensitivity: Large-scale datasets like ImageNet contain mislabeled images and multi-object scenes, which severely penalize robust single-label classification metrics. Future work may need to explore alternate objectives like robust top-$k$ accuracy or robust segmentation.

Summary updated

BibTeX
@inproceedings{hu2023unlocking,
  author = {Kai Hu and Andy Zou and Zifan Wang and Klas Leino and Matt Fredrikson},
  title = {{Unlocking Deterministic Robustness Certification on ImageNet}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=SHyVaWGTO4},
}
Figure