A combination of noise and bilateral filters achieve supralinear and scalable adversarial robustness in CNNs

Nicolas Stalder, Benjamin F. Grewe, Matteo Saponati, Pau Vilimelis Aceituno

TL;DR

By combining simple Gaussian noise injection with iterative bilateral filtering as an image preprocessing step, this paper achieves a "supralinear" (greater than the sum of its parts) boost in CNN adversarial robustness. This lightweight defense achieves state-of-the-art robustness on RobustBench while slashing training compute costs by up to 2-8× compared to standard adversarial training methods.

What Problem Does This Paper Address?

Deep neural networks are notoriously vulnerable to adversarial attacks—tiny, human-imperceptible pixel perturbations that trick a model into misclassification. While Adversarial Training (AT) is currently the most effective defense, it is computationally ruinous, often requiring up to 9× more floating-point operations (FLOPs) during training and scaling poorly with model size. Furthermore, AT is typically overfitted to the specific attacks encountered during training.

Alternative lightweight defenses, such as adding random noise or applying image filters, have been explored in isolation. However, their individual benefits are modest, and they have historically lacked a unifying theoretical framework. This paper addresses this gap by asking: Can we combine noise and filtering in a principled way to achieve high robustness without the massive computational overhead of standard adversarial training?

Methods

The authors introduce a simple, two-step image preprocessor applied during both training and inference:

  1. Gaussian Noise Injection: Zero-mean Gaussian noise is added independently to each pixel channel.
  2. Iterative Bilateral Filtering: The noisy image is passed through multiple iterations of a bilateral filter, an edge-preserving smoothing filter that reduces noise while keeping sharp image structures intact.
Figure 1. Illustration of the mathematical analysis. (a) Concepts used in our analysis: An image (black rhombus) lies on a class manifold (blue line). The neural network separates these classes with a decision boundary (black line). An adversarial attack (red arrow) is a small perturbation of the image within a specified ra- dius (red circle) that pushes it across this boundary. (b-c) Adver- sarial attacks in the presence of a filter (green arrows). The filter attenuates perturbations from the image manifold, including those introduced by adversarial attacks. In (b), the adversarial pertur- bation lies far from the image manifold, so the filter effectively cancels it. In (c), the attack is close to the image manifold and cannot be fully suppressed by the filter. (d-e) Adversarial attacks against noise (green area). Noise introduces random deviations unknown to the attacker, which can disrupt adversarial perturba- tions. The attack that fails against the filter can succeed with high probability in the presence of noise, as the noise covers a broad region around the attack (d). Conversely, the attack that succeeds against the filter is likely to fail when noise is added, since it is not spatially clustered (e).

To rigorously test their defense against attackers attempting to bypass the filter, the authors also developed a custom gradient-based attack called TABPDA (True Average Backward Pass Differentiable Approximation). TABPDA acts as a hybrid of Backward Pass Differentiable Approximation (BPDA) and Expectation over Transformation (EoT), designed specifically to handle the deterministic filtering and stochastic noise components of their preprocessor efficiently.

Datasets

The approach was evaluated using two standard image classification benchmarks:

  • CIFAR-10: Used for the primary ablation studies, sensitivity analyses, and large-scale scaling evaluations.
  • Imagenet10: A 10-class subset of ImageNet used to demonstrate the generalizability of the preprocessor to different image resolutions and datasets.

Key Insights and Ideas

The core "aha!" moment of the paper is geometric. Through mathematical modeling of decision boundaries, the authors prove that noise and filtering defend against fundamentally different shapes of adversarial attacks:

  • Filters excel against "filamentary" attacks: These are thin, elongated adversarial regions that stretch out toward the decision boundary. Filters push these perturbations back toward the true image manifold.
  • Noise excels against "spherical" attacks: These are broad, clustered regions of adversarial space. Random noise easily knocks the perturbed image out of these localized zones.

Because these two mechanisms target entirely distinct attack geometries, combining them creates a powerful synergy. Instead of a linear addition of benefits, the combination yields supralinear robustness—the joint defense is significantly more effective than the sum of its individual parts.

Key Results

  • Supralinear Gains: In ablation studies on CIFAR-10 using a standard EfficientNet-B0, the actual robust accuracy gain of the combined preprocessor exceeded the sum of individual gains for four out of six tested attack types (including FGSM and $L_\infty$ attacks).
  • RobustBench Leaderboard Success: When integrated with state-of-the-art Wide Residual Networks (WRNs), the method ranked second on AutoAttack and third overall on the RobustBench leaderboard.
  • Massive Compute Efficiency: The top-tier performance was achieved using only ~35% of the training FLOPs, a model with 50% fewer parameters, ~33% of the training epochs, and ~15% of the synthetic data required by competing state-of-the-art models.
Figure 2. a) Test accuracy (in %) under AutoAttack in function of the number of training FLOPs (proportional to the number of training epochs, see Appendix 10). Our WRN models trained with and without the preprocessor are shown in orange and green, respectively (see legend). Results from prior work [4, 14, 51] are shown in blue. The results of the linear fit for models with our preprocessor are slope a = 3.25 ± 0.47, intercept b = 8.53 ± 5.05, and for prior work, slope a = 4.21 ± 0.23, intercept b = −14.98 ± 4.56 (see Appendix 10). b) Test accuracy of our WRN-28-4, WRN-28-10, and WRN-82-12 models, along with the corresponding models from [14, 51], as highlighted by boxes in panel a. Models are color-coded according to the legend in panel a.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Diminishing Returns on Scale: The relative improvement over standard adversarial training shrinks slightly as model size and training resources reach extreme scales, suggesting a potential saturation effect.
  • Gradient Masking: A portion of the bilateral filter's defense relies on implicit gradient masking, which can sometimes give a false sense of security, though the preprocessor still demonstrated solid intrinsic robustness when evaluated against their custom TABPDA attack.

For future work, the authors suggest exploring biologically inspired noise and filtering mechanisms (mimicking early human visual processing) and adapting this preprocessing framework to non-CNN architectures like Vision Transformers (ViTs).

Summary updated

BibTeX
@inproceedings{stalder2026combination,
  author = {Nicolas Stalder and Benjamin F. Grewe and Matteo Saponati and Pau Vilimelis Aceituno},
  title = {{A combination of noise and bilateral filters achieve supralinear and scalable adversarial robustness in CNNs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dfYN6mAvSe},
}
Figure