SSCNets: A Selective Sobel Convolution-based Technique to Enhance the Robustness of Deep Neural Networks against Security Attacks

Hammad Tariq, Hassan Ali, Muhammad Abdullah Hanif, Faiq Khalid, Semeen Rehman, Rehan Ahmed, Muhammad Shafique · DOI

Abstract

In this paper, we introduce a novel technique based on the Secure Selective Convolutional (SSC) techniques in the training loop that increases the robustness of a given DNN by allowing it to learn the data distribution based on the important edges in the input image. We validate our technique on Convolutional DNNs against the state-of-the-art attacks from the open-source Cleverhans library using the MNIST, the CIFAR-10, and the CIFAR-100 datasets. Our experimental results show that the attack success rate, as well as the imperceptibility of the adversarial images, can be significantly reduced by adding effective pre-processing functions, i.e., Sobel filtering.

Introduction

Deep Neural Networks (DNNs) have demonstrated remarkable performance across various domains but remain notoriously brittle to adversarial attacks. In a "white-box" scenario, an attacker with knowledge of the model's weights can craft adversarial examples—images with tiny, pixel-level changes that are invisible to humans but cause the AI to confidently misclassify objects. Existing defenses often face a trade-off between computational expense (e.g., adversarial retraining) and vulnerability to informed attackers. SSCNets addresses this by introducing a lightweight, versatile preprocessing defense that maintains high accuracy on clean images while significantly hardening the model against malicious noise.

Methods: The Secure Selective Convolutional (SSC) Layer

The core innovation of this work is the Secure Selective Convolutional (SSC) Layer, which serves as a gatekeeper for the DNN. This layer forces the network to focus on robust structural features—edges—while filtering out uniform background noise. The process involves three primary stages:

  1. Edge Extraction: The input image is processed through a high-pass filter to identify structural edges.
  2. Selective Thresholding: A sigmoid activation function with a specific threshold ($t_k$) is applied. This step zeroes out weak edges (likely noise) and saturates strong edges, creating a binary-like feature mask.
  3. Masking: The resulting mask is multiplied back onto the original image, suppressing uniform background areas and highlighting prominent geometric features.
High-pass filter configurations used in the SSC layer for edge extraction.

By training the DNN from scratch on these processed images, the model learns to rely on stable geometric distributions rather than easily manipulated pixel intensities.

Experimental Setup and Results

The proposed technique was validated using standard benchmarks: MNIST, CIFAR-10, and CIFAR-100. The experimental pipeline compared standard CNNs with those utilizing High-Pass Filtering (HPF) and Selective Filtering (SF).

Overview of the experimental dataflow and top-1 accuracy results for MNIST and CIFAR-10 datasets under adversarial attack.

Key Findings

  • Enhanced Robustness: In black-box scenarios, SSCNets showed a massive decrease in attack success rates for both FGSM and JSMA attacks. For the VGG-16 architecture on CIFAR-10, the SSC layer nearly doubled accuracy against white-box attacks (from 16% to 30%) and significantly boosted it against black-box attacks (from 28% to 44%).
  • Increased Attack Effort and Perceptibility: One of the most significant results is the impact on the "perceptibility" of successful attacks. For the Boundary Attack, the $L_2$-norm of successful adversarial images was 443% higher for SSCNets compared to undefended models. This forces attackers to create much more distorted, human-visible perturbations, making the attacks easier to detect via visual inspection.
  • The Threshold Trade-off: The authors identified an optimal threshold ($t_k = 0.11$) that balances noise suppression with the preservation of essential image information.

Conclusion and Future Work

SSCNets provide a robust defense mechanism by stripping away the "attack surface" provided by high-dimensional background noise. While there is a minor "robustness tax" on clean-image accuracy (e.g., a drop from 93.7% to 89.9% on CIFAR-10), the gains in security are substantial. Future work will explore more sophisticated filters and adaptive thresholding techniques to further enhance resilience against iterative white-box attacks.

Summary updated

BibTeX
@article{tariq2020sscnets,
  author = {Hammad Tariq and Hassan Ali and Muhammad Abdullah Hanif and Faiq Khalid and Semeen Rehman and Rehan Ahmed and Muhammad Shafique},
  title = {{SSCNets: A Selective Sobel Convolution-based Technique to Enhance the Robustness of Deep Neural Networks against Security Attacks}},
  journal = {IEEE Des. Test},
  year = {2020},
  doi = {10.1109/mdat.2019.2961325},
}
Figure