A Push-Pull Layer Improves Robustness of Convolutional Neural Networks

Nicola Strisciuglio, Manuel Lopez-Antequera, Nicolai PetkovarXiv 2019

Abstract

Convolutional Neural Networks (CNNs) are often sensitive to image perturbations such as noise and contrast variations. This paper proposes a "push-pull" layer inspired by the inhibition mechanisms found in the biological visual cortex (area V1). By integrating an inhibitory "pull" component that suppresses responses to inconsistent local structures, the push-pull layer provides intrinsic robustness to unseen noise without increasing the model's parameter count. We evaluate this architecture on MNIST and CIFAR datasets, demonstrating substantial performance gains under various noise conditions compared to standard convolutional layers.

Introduction

While CNNs have achieved remarkable success in computer vision, they remain "brittle" when faced with out-of-distribution perturbations. Small amounts of Gaussian or Poisson noise, or significant changes in image contrast, can lead to drastic failures in models that perform perfectly on clean data. Traditionally, this is addressed via data augmentation—training the network on specific noise types. However, this approach is reactive and often fails to generalize to unseen distortions. This research explores a structural solution by mimicking the "push-pull inhibition" observed in biological neurons, creating a network that is inherently more stable.

The Push-Pull Layer

The proposed Push-Pull Layer is designed to replace standard convolutional layers, typically at the earliest stages of processing. It mimics the behavior of neurons that respond to a stimulus (the "push") but are inhibited by stimuli of opposite polarity in the surrounding area (the "pull").

Schematic of the push-pull inhibition mechanism.

Mathematically, the response $P(I)$ is defined as: $$P(I) = \text{ReLU}(k * I) - \alpha \cdot \text{ReLU}(-k_{\uparrow h} * I)$$

The "push" component is a standard convolution with kernel $k$. The "pull" component uses the same kernel $k$ but with inverted polarity and upsampled by a factor $h$ to cover a larger inhibitory field. The parameter $\alpha$ controls the strength of this inhibition. Because the pull weights are derived directly from the push weights, the layer introduces no additional trainable parameters.

Key Insights: Noise Suppression

The primary advantage of the push-pull mechanism is its ability to filter out spurious patterns. In a standard CNN, a noisy pixel might trigger a filter incorrectly. In the push-pull layer, if a signal does not match the expected local polarity of the kernel, the inhibitory "pull" component cancels out the false positive response.

Comparison of response maps for a standard convolutional kernel versus a push-pull layer across increasing noise levels.

As shown in the response maps, the push-pull layer maintains a much cleaner representation of the underlying structure (e.g., the digit '2') even as the input becomes heavily corrupted by noise.

Experimental Results

The researchers benchmarked the push-pull versions (denoted as -PP) against standard architectures like LeNet-5 and WideResNet (WRN) on MNIST, CIFAR-10, and CIFAR-100.

Robustness to Noise

On MNIST with high Gaussian noise ($\sigma^2 = 0.2$), a standard LeNet-5 accuracy dropped to 73.9%, whereas the LeNet-PP maintained 87.2%. Similar trends were observed with Poisson and speckle noise.

Contrast Invariance

The layer showed significant benefits in low-contrast scenarios. For CIFAR-10 images with Poisson noise at a contrast level of $C=0.5$, a WideResNet-28-10-PP achieved 42.8% accuracy, a 14.5% improvement over the standard version's 28.3%.

Parameter Efficiency

The push-pull architecture allows smaller models to punch above their weight. A WRN-28-1-PP (0.36M parameters) frequently outperformed a standard WRN-28-10 (36.4M parameters) under heavy noise conditions, demonstrating that structural robustness can be more effective than sheer model scale.

Conclusion

The push-pull layer offers a biologically-inspired method to improve CNN robustness "for free" in terms of parameter count. By incorporating inhibitory mechanisms, networks can better distinguish between meaningful structural features and random noise. Future work may explore making the inhibition parameters learnable or applying the layer deeper within neural architectures.

Summary updated

BibTeX
@misc{strisciuglio2019push,
  author = {Nicola Strisciuglio and Manuel Lopez-Antequera and Nicolai Petkov},
  title = {{A Push-Pull Layer Improves Robustness of Convolutional Neural Networks}},
  year = {2019},
  eprint = {1901.10208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.10208},
}
Figure