Multi-scale Diffusion Denoised Smoothing

Jongheon Jeong, Jinwoo Shin

Introduction

Deep learning models are notoriously fragile when faced with adversarial attacks—carefully crafted, often imperceptible perturbations designed to mislead a model's prediction. To address this, researchers have turned to randomized smoothing, a defense mechanism that provides "certified robustness." This technique mathematically guarantees that a model's prediction will remain constant within a specific noise radius.

However, randomized smoothing is plagued by a fundamental trade-off known as the "$\sigma$ dilemma." To protect against large-scale adversarial attacks, high levels of noise (represented by $\sigma$) must be added during training and inference. This high noise often obscures critical image features, causing the model’s accuracy on clean (non-attacked) images to plummet. Conversely, low noise levels preserve accuracy but offer minimal protection. This paper introduces Multi-scale Diffusion Denoised Smoothing, a framework designed to break this bottleneck by optimizing the interaction between diffusion-based denoisers and classifiers.

Methodology

The authors propose two primary innovations to improve the accuracy-robustness trade-off: Cascaded Randomized Smoothing and Diffusion Calibration.

1. Cascaded Randomized Smoothing

Rather than relying on a single fixed noise level, the proposed framework utilizes a "predict-or-abstain" pipeline across multiple scales ($0 < \sigma_1 < \dots < \sigma_K$). The process begins at the highest noise scale, which offers the most protection. If the model’s prediction confidence exceeds a predefined threshold ($p_0$), it outputs the result. If the confidence is too low, the model "cascades" down to a lower, more accurate noise scale. This hierarchical approach allows the system to apply high-protection scales to difficult or attacked samples while defaulting to high-accuracy scales for easier, clean images.

2. Diffusion Calibration

Errors in denoised smoothing typically stem from two sources: over-smoothing (loss of information due to noise) and over-confidence (where the denoiser "hallucinates" features that lead to an incorrect class). To mitigate over-confidence, the authors fine-tune the diffusion denoiser using two specific loss functions:

  • Brier Loss: This encourages the model to be highly confident only when its predictions are correct.
  • Anti-consistency Loss: This novel loss function penalizes the denoiser if different noise samples of the same image result in the same incorrect prediction. By forcing the denoiser to produce diverse, uncertain outputs when it cannot accurately recover the original image, the model is more likely to "abstain" rather than provide a confident, incorrect guess.

Experimental Evaluation

The researchers evaluated the framework on several standard computer vision benchmarks, including CIFAR-10 and ImageNet. They also tested the models against robustness benchmarks such as CIFAR-10-C, ImageNet-R, and ImageNet-A to observe performance against common corruptions and naturally occurring hard examples.

Key Results

The multi-scale approach yielded significant improvements in Average Certified Radius (ACR), a metric representing the overall strength of the defense:

  • ImageNet: On a classifier that previously achieved only 30.6% clean accuracy at a high noise scale, the cascaded approach boosted accuracy to 72.5%. Simultaneously, it improved certified robustness at high radii (e.g., at $\epsilon=2.0$, robustness rose from 12.6% to 14.1%).
  • CIFAR-10: The model achieved an ACR of 0.645, significantly outperforming the previous state-of-the-art of 0.530.
  • Efficiency: While checking multiple scales adds complexity, the cascaded approach only increased average inference time by approximately 1.5x. This is because many samples reach the confidence threshold early and "early-stop" at the first scale.

Discussion and Insights

A core insight of this work is the strategic use of "abstention." In traditional randomized smoothing, abstaining is a statistical requirement; here, it is a functional signal that triggers a shift in noise scales. Furthermore, the authors demonstrate that the denoiser—rather than the classifier—is often the primary bottleneck in robustness. By fine-tuning the diffusion model to balance consistency and diversity, the framework prevents the "over-confidence trap."

Limitations and Future Work

Despite its success, the framework faces challenges regarding the high computational cost of randomized smoothing, which requires numerous Monte Carlo samples per image. This makes real-time application difficult. Additionally, the system's performance is sensitive to hyperparameters like the confidence threshold ($p_0$) and the selection of noise scales. Future research may focus on automating these selections or extending the fine-tuning process to purely black-box classifiers where internal model access is limited.

Summary updated

BibTeX
@inproceedings{jeong2023multi,
  author = {Jongheon Jeong and Jinwoo Shin},
  title = {{Multi-scale Diffusion Denoised Smoothing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zQ4yraDiRe},
}
Figure