Verification of Neural Networks against Convolutional Perturbations via Parameterised Kernels

Benedikt Brückner, Alessio Lomuscio

TL;DR

This paper introduces a novel method to formally verify neural network robustness against realistic image corruptions like camera shake, box blur, and sharpening. By linearly parameterizing convolution kernels and prepending them as a simple linear layer, the authors reduce a complex, high-dimensional perturbation problem into a low-dimensional one, enabling tight verification bounds even on large models like ResNet18.

What Problem Does This Paper Address?

Real-world neural networks deployed in safety-critical applications like autonomous vehicles or robotics face environmental hazards such as camera shake, motion blur, or lens defocusing. While traditional formal verification ensures safety against abstract mathematical noise (like $l_\infty$-norm bounded white noise), it struggles with these structured, semantic spatial perturbations.

Previous attempts to verify convolutional perturbations treated pixel variations independently within a neighborhood. This assumption ignores the spatial coupling of a blur effect, leading to massive over-approximation ("loose bounds") and a high-dimensional search space that completely breaks down on realistic network architectures.

Methods

The authors propose linearly parameterised kernels to model the transition from a clean image to a perturbed one. Instead of letting every pixel vary independently, they define the perturbation kernel $K$ as a linear function of a low-dimensional control variable $z \in [0,1]$ (where $z=0$ represents the identity/clean image and $z=1$ represents the full perturbation strength).

Visualisation of the basic kernels used for box blur, sharpening, and motion blur.

By exploiting the mathematical linearity of convolution, they prove that convolving an image with this parameterised kernel is equivalent to a linear combination of constant convolutions:

$$I * K = \sum_{i=1}^m (I * A_i) z_i + I * B$$

This elegant formulation allows them to prepend a single linear layer to the existing neural network being verified. Because the input perturbation space is reduced to just a few dimensions (often just 1D for a single blur effect), standard verification toolkits can use highly efficient input splitting branch-and-bound strategies to compute exceptionally tight safety bounds.

Datasets

The method was evaluated using standard verification benchmarks and datasets:

  • MNIST: Evaluated via the mnist_fc benchmark, consisting of fully connected networks with 2, 4, and 6 layers.
  • CIFAR10: Evaluated via three distinct benchmarks: Oval21 (convolutional networks), sri_resnet_a (an adversarially trained ResNet), and a standard resnet18 model containing 11.7 million parameters.

Key Insights and Ideas

  • Dimensionality Reduction is King: Shifting the problem from "how much can each pixel change independently" to "how much does the global blur parameter change" drops the perturbation dimensionality from thousands to one. This makes branch-and-bound verification blazing fast.
  • Sharpening vs. Blurring: Networks are remarkably robust to sharpening filters compared to blurring filters. Blurring inherently destroys high-frequency information, making it fundamentally harder for a network to recover correct classifications, whereas sharpening enhances edges and textures.
  • Directional Vulnerability: For motion blur (camera shake), networks exhibit strong directional preferences. For example, on the MNIST benchmark, models were highly vulnerable to diagonal blur ($45^\circ$ and $135^\circ$) but remarkably resilient to vertical or horizontal blur ($0^\circ$ and $90^\circ$).

Key Results

  • Scalability to ResNet18: The proposed method successfully scales to a full ResNet18 architecture with 11.7 million parameters—a feat previously impossible for convolutional perturbation verifiers.
  • Defeating the Baseline: In an ablation study against the state-of-the-art interval baseline (Mziou-Sallami and Adjed, 2022), the baseline failed to verify a single property across any of the benchmarks due to loose bounds. In contrast, the new method certified the majority of properties for small-to-medium perturbation strengths.
  • High Efficiency: For a filter size of 3 on mnist_fc, the method verified 45/45 instances across almost all blur and sharpen types, averaging under 90 seconds per query.

Limitations and Future Work

  • Single-Variable Focus: While the mathematical theory supports multi-variable parameterization, the current experimental evaluation primarily focuses on single-parameter perturbations (e.g., varying the intensity of one specific blur angle at a time).
  • Even Kernel Sizes: The method currently omits even-sized kernels (like $2\times2$ or $4\times4$) because a perfect "identity" kernel cannot be centered cleanly without introducing a slight artificial blur.
  • Future Directions: The authors suggest extending this framework to more complex, multi-parameter image transformations and exploring how these parameterised layers can be integrated directly into robust training loops to train networks that are provably immune to camera shake.

Summary updated

BibTeX
@inproceedings{bruckner2025verification,
  author = {Benedikt Brückner and Alessio Lomuscio},
  title = {{Verification of Neural Networks against Convolutional Perturbations via Parameterised Kernels}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i26.34930},
}
Figure