Certifying Adapters: Enabling and Enhancing the Certification of Classifier Adversarial Robustness

Jieren Deng, Hanbin Hong, Aaron Palmer, Xin Zhou, Jinbo Bi, Kaleel Mahmood, Yuan Hong, Derek Aguiar

TL;DR

The Certifying Adapters Framework (CAF) allows researchers to add theoretical "certified robustness" to pre-trained image classifiers without the massive computational cost of retraining them from scratch. By training lightweight adapters to bridge the gap between clean and noisy data, CAF achieves state-of-the-art certified accuracy on CIFAR-10 and enables a single model to defend against multiple levels of adversarial noise.

What Problem Does This Paper Address?

Deep learning models are notoriously fragile; small, imperceptible "adversarial perturbations" can trick them into misclassifying images. Randomized smoothing is a popular defense that provides a mathematical guarantee (certification) that a model's prediction won't change within a certain "radius" of noise.

However, randomized smoothing has a major bottleneck: to work well, a model must be trained on data heavily corrupted by noise. This means you cannot easily use high-performance, "clean" pre-trained models (like those found on Hugging Face). Instead, researchers have to spend enormous amounts of GPU time retraining massive models from scratch for every specific noise level they want to defend against. CAF addresses this by making certification "plug-and-play" via lightweight adapters.

Methods

The authors introduce the Certifying Adapters Framework (CAF), which consists of three parts:

  1. A Frozen Feature Extractor: A high-performance pre-trained model (like a ViT or ResNet) whose weights are never changed.
  2. A Certifying Adapter: A small, trainable module that takes the noisy input and produces a latent representation.
  3. A Linear Prediction Head: A simple layer that combines the features from the frozen extractor and the adapter to make a final prediction.

The core idea is that the adapter learns to "correct" the latent features of a noisy image so they fit back into the space the original model understands.

The paper also introduces Ensemble Adapters. Since different noise levels (radii) usually require different models, the authors developed a hierarchical scheme where multiple adapters—each trained for a different noise scale—can be attached to the same frozen feature extractor simultaneously.

Datasets

The framework was evaluated on two standard computer vision benchmarks:

  • CIFAR-10: Used for extensive comparisons against existing certified defense methods.
  • ImageNet: Used to demonstrate the scalability of the approach to large-scale, real-world data.

The authors used both Convolutional Neural Networks (ResNet-110, ResNet-18) and Vision Transformers (ViT-B/16, ViT-L/16) as the underlying architectures.

Key Insights and Ideas

  • Certification for the "Uncertified": Perhaps the most striking finding is that CAF can take a model trained only on clean data and make it certifiably robust. This bridges the gap between high-accuracy "clean" models and robust "noisy" models.
  • Efficiency via Modularity: Because the main feature extractor is frozen, training a CAF adapter is significantly faster and less resource-intensive than traditional adversarial training or randomized smoothing.
  • The "Upper Envelope" Success: CAF doesn't just match existing methods; it often exceeds them. On CIFAR-10, CAF produced an "upper envelope" of certified accuracy, meaning it performed better across almost all noise radii compared to previous gold-standard methods like SmoothAdv.
  • Robustness to Hyperparameters: The authors found that the specific size or "rank" of the adapter didn't drastically change the results, suggesting the framework is stable and easy to tune.

Key Results

  • State-of-the-Art on CIFAR-10: CAF achieved the highest certified accuracies across selected radii. Most notably, at a large radius ($r=2.25$), CAF showed a 2.31x improvement in certified accuracy over the previous best method (DiffSmooth).
  • ImageNet Performance: For ViT models on ImageNet, CAF outperformed standard randomized smoothing and competitive diffusion-based purification methods at various noise scales.
  • Multi-Scale Defense: The ensemble approach allowed a single ViT-B/16 model to maintain high accuracy across a range of noise levels ($\sigma = 0.25$ to $1.00$), whereas a single-adapter model would typically fail if the testing noise didn't match its training noise.

Limitations and Future Work

  • White-Box Requirement: Unlike standard randomized smoothing, which only needs the model's output (black-box), CAF requires access to the internal latent representations of the feature extractor (white-box) to "plug in" the adapter.
  • Inference Overhead: While training is much faster, adding an adapter and a hierarchical ensemble adds a small amount of computational overhead during the actual prediction (inference) phase.
  • Future Directions: The authors suggest exploring how this adapter framework could be applied to other domains beyond image classification, such as natural language processing or object detection, where certification is equally critical but computationally daunting.

Summary updated

BibTeX
@inproceedings{deng2025certifying,
  author = {Jieren Deng and Hanbin Hong and Aaron Palmer and Xin Zhou and Jinbo Bi and Kaleel Mahmood and Yuan Hong and Derek Aguiar},
  title = {{Certifying Adapters: Enabling and Enhancing the Certification of Classifier Adversarial Robustness}},
  booktitle = {IJCNN},
  year = {2025},
  doi = {10.1109/ijcnn64981.2025.11228719},
}

Loading related content...

Figure