Skip to main content
QUICK REVIEW

[Paper Review] HyperNetworks with statistical filtering for defending adversarial examples

Zhun Sun, Mete Özay|arXiv (Cornell University)|Nov 6, 2017
Adversarial Robustness in Machine LearningComputer Science13 references13 citations
TL;DR

This paper proposes HyperNetworks with statistical filtering to enhance adversarial robustness in CNNs by dynamically generating data-dependent convolution kernels using input statistics (mean and variance). The method improves robustness against diverse attacks—such as FGSM, Gaussian noise, and black-box attacks—without additional training or detection modules, achieving spontaneous defense during standard training with no performance drop on clean data.

ABSTRACT

Deep learning algorithms have been known to be vulnerable to adversarial perturbations in various tasks such as image classification. This problem was addressed by employing several defense methods for detection and rejection of particular types of attacks. However, training and manipulating networks according to particular defense schemes increases computational complexity of the learning algorithms. In this work, we propose a simple yet effective method to improve robustness of convolutional neural networks (CNNs) to adversarial attacks by using data dependent adaptive convolution kernels. To this end, we propose a new type of HyperNetwork in order to employ statistical properties of input data and features for computation of statistical adaptive maps. Then, we filter convolution weights of CNNs with the learned statistical maps to compute dynamic kernels. Thereby, weights and kernels are collectively optimized for learning of image classification models robust to adversarial attacks without employment of additional target detection and rejection algorithms. We empirically demonstrate that the proposed method enables CNNs to spontaneously defend against different types of attacks, e.g. attacks generated by Gaussian noise, fast gradient sign methods (Goodfellow et al., 2014) and a black-box attack(Narodytska & Kasiviswanathan, 2016).

Motivation & Objective

  • Address the vulnerability of deep CNNs to adversarial perturbations that misclassify inputs while remaining imperceptible to humans.
  • Overcome the limitations of existing defense methods that increase computational complexity or require adversarial example generation during training.
  • Develop a lightweight, end-to-end defense mechanism that enhances robustness through adaptive, data-dependent convolution kernels.
  • Enable robustness without relying on external detection or rejection modules, maintaining performance on clean data.

Proposed method

  • Introduce a HyperNetwork that computes statistical adaptive maps using the mean and variance of input data and feature maps for each channel.
  • Use the HyperNetwork's output to perform a Hadamard (element-wise) product with standard convolutional weights, generating dynamic, data-adaptive kernels.
  • Train the main CNN and HyperNetwork jointly, allowing the kernels to adapt per input based on its statistical properties.
  • Ensure the HyperNetwork's output is sensitive to input distribution changes, enabling robustness to small perturbations.
  • Leverage the statistical properties of features to filter and reweight convolution kernels in real time during inference.
  • Optimize the entire system end-to-end, without requiring additional adversarial examples or detection heads.

Experimental results

Research questions

  • RQ1Can statistical properties of input data and features be used to generate adaptive convolution kernels that improve adversarial robustness?
  • RQ2Does the proposed HyperNetwork-based filtering mechanism enhance robustness against white-box and black-box attacks without increasing training complexity?
  • RQ3How does the dynamic kernel adaptation affect the gradient flow and adversarial attack success rate compared to standard CNNs?
  • RQ4Can the defense be achieved spontaneously during normal training without adversarial example augmentation or specialized detection networks?
  • RQ5To what extent does the HyperNetwork's sensitivity to input statistics contribute to robustness against gradient-based attacks?

Key findings

  • The proposed method achieves spontaneous robustness against FGSM, Gaussian noise, and black-box attacks (e.g., Narodytska & Kasiviswanathan, 2016) without adversarial example training.
  • ResNet-50-SHC maintains high clean accuracy while showing improved robustness under various attacks, demonstrating generalization across architectures.
  • The HyperNetwork's statistical filtering effectively disperses adversarial gradients, as shown by higher confidence predictions on adversarial examples when gradients are routed through the HyperNetwork.
  • When attacked via the main network path (SHC-W), the model performs similarly to a vanilla CNN, but when attacked via the HyperNetwork path (SHC-T), it maintains high accuracy with only a small drop in confidence.
  • The method does not degrade performance on clean images, confirming that robustness is achieved without trade-off in standard accuracy.
  • The quasi-decision boundary formed by the HyperNetwork's adaptive kernels is stable within the neighborhood of clean inputs, but breaks under large perturbations, suggesting a localized defense mechanism.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.