A Recipe for Improved Certifiable Robustness

Kai Hu, Klas Leino, Zifan Wang, Matt Fredrikson

Introduction

Researchers from Carnegie Mellon University have developed a new "recipe" to significantly boost the performance of neural networks that can mathematically prove their own robustness. By introducing a novel CHORD (Cholesky-orthogonalized residual dense) layer and a refined data augmentation pipeline using diffusion models, they have improved the state-of-the-art for deterministic robustness certification by up to 8.5 percentage points.

The Challenge of Certifiable Robustness

Deep learning models are notoriously vulnerable to adversarial attacks—tiny, invisible perturbations to an image that can cause a model to confidently misclassify it. To combat this, researchers use "robustness certification," which provides a mathematical guarantee that a model's prediction will remain constant within a certain radius (an $\ell_p$-norm ball) around an input.

Currently, there are two primary approaches to certification:

  1. Randomized Smoothing (RS): Offers high accuracy but is probabilistic (there is a tiny chance the "proof" is wrong) and incredibly slow, often requiring thousands of inferences for a single image.
  2. Lipschitz-based Methods: These provide deterministic, 100% certain proofs and are very fast. However, they historically suffer from a "performance gap," failing to reach the accuracy levels of RS methods.

The core challenge is that robust models require more "capacity" (more parameters and data) than standard models. But in Lipschitz-based networks, adding more layers often makes the mathematical bounds so loose that the model ends up underfitting. The authors set out to find a way to add network capacity without breaking the tight Lipschitz constraints needed for certification.

A Multi-Pronged Approach to Optimization

The authors propose a comprehensive strategy to optimize the design space of Lipschitz-controlled networks:

  • CHORD Layers: They introduce "Cholesky-orthogonalized residual dense" layers. These layers use a Cholesky decomposition to force the weight matrices to be orthogonal (meaning their Lipschitz constant is exactly 1). This prevents the "exploding" or "vanishing" gradient problems often associated with deep Lipschitz networks. Crucially, this method is highly efficient and stable compared to the standard "Cayley transform" used in prior work.
  • Architecture Optimization: They found that stacking these CHORD layers at the "neck" of a ResNet (the part between the feature extractor and the final classifier) is particularly effective for increasing capacity without losing certifiability.
  • Filtered Generative Augmentation: The authors used a high-quality diffusion model (EDM) to generate millions of synthetic images. To ensure quality, they used a "teacher" model to filter out the bottom 20% of generated images that had low-confidence labels.
  • GloRo Regularization: They combined these architectural changes with GloRo (Global Robustness) training, which incorporates the certification bound directly into the loss function.
Ablation study showing the step-by-step performance gains from adding dense layers, Cholesky orthogonalization, CHORD layers, and the improved data pipeline.

Key Insights

  • Underfitting is the Enemy: Unlike standard models that often overfit, Lipschitz-constrained models tend to underfit. Adding "cheap" capacity via orthogonal dense layers is a more effective way to scale than simply making the convolutional backbone deeper.
  • Orthogonality is More Stable: By using Cholesky-based orthogonalization, the authors achieved better numerical stability and faster training times compared to previous methods.
  • Synthetic Data as a "Buffer": The authors posit that generated data helps because it is "easier" to classify on average. This allows the model to use its limited capacity to learn a robust decision boundary rather than struggling to memorize "hard" outliers in the real training set.

State-of-the-Art Results

The proposed GloRo CHORD LiResNet set new records for Verified Robust Accuracy (VRA)—the percentage of images that are both correctly classified and mathematically proven to be robust. The researchers evaluated their "recipe" on several standard computer vision benchmarks, including CIFAR-10, CIFAR-100, Tiny-ImageNet, and the full-scale ImageNet dataset.

Comparison of the proposed GloRo CHORD LiResNet against prior state-of-the-art methods across multiple datasets, demonstrating significant improvements in Verified Robust Accuracy (VRA).

Highlights of the improvements include:

  • CIFAR-10: At a perturbation radius of $36/255$, VRA jumped from the previous best of 70.0% to 78.1%.
  • CIFAR-100: VRA improved significantly from 41.5% to 50.1%.
  • ImageNet: The model achieved a VRA of 38.3%, a 3.3 percentage point improvement over the previous state-of-the-art for deterministic certification. Notably, while RS methods are often only tested on a 1% subset of ImageNet due to speed constraints, this method was efficient enough to be evaluated on the full validation set.
  • Efficiency: The model maintains the high inference speed of standard neural networks, making it practical for real-time applications where Randomized Smoothing would be prohibitively slow.

Limitations and Future Work

While this work significantly narrows the gap between deterministic and probabilistic certification, some challenges remain:

  • Convolutional Constraints: The authors optimized the dense layers but still rely on standard regularization (GloRo) for the convolutional layers. Applying strict orthogonal constraints to convolutions is mathematically complex and computationally expensive (requiring Fast Fourier Transforms), which remains a hurdle for future scaling.
  • The RS Gap: Randomized Smoothing still holds the absolute crown for the highest robust accuracy, albeit at a massive computational cost.
  • Generative Dependency: The success of the data augmentation depends heavily on having a high-quality diffusion model for the target domain, which may not always be available for niche datasets.

Summary updated

BibTeX
@inproceedings{hu2024recipe,
  author = {Kai Hu and Klas Leino and Zifan Wang and Matt Fredrikson},
  title = {{A Recipe for Improved Certifiable Robustness}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=qz3mcn99cu},
}
Figure