On Binary Classification with Single-Layer Convolutional Neural Networks

Soroush MehriarXiv 2015

Introduction

In the landscape of 2015 computer vision research, the prevailing trend was a relentless push toward deeper architectures. However, Soroush Mehri’s work investigates an alternative path: the potential of shallow, single-layer convolutional neural networks (CNNs). This paper explores how wide, single-layer networks can achieve competitive performance on binary classification tasks when optimized through specific design choices, such as unsupervised pre-training and large kernel sizes.

Architecture and Methodology

The core of the proposed approach is a "shallow but wide" framework. The architecture consists of a single convolutional layer containing 512 kernels. This is followed by an 8x8 pooling layer, a 1024-dimension fully-connected layer, and a final softmax output for classification.

Large Kernels and Spatial Context

A significant departure from standard deep learning practices of the time—which favored 3x3 or 5x5 kernels—is the use of much larger kernels, specifically 16x16, 24x24, and 32x32. The rationale is that larger kernels can capture more complex spatial context in a single pass, compensating for the lack of hierarchical feature extraction found in deeper models.

Unsupervised Pre-training with ZAE

To manage the high parameter count associated with large kernels and prevent overfitting, the author employs unsupervised pre-training. Using Zero-Bias Autoencoders (ZAE), one million patches are extracted from raw images to initialize the kernels. This process allows the network to learn fundamental visual features—such as edges, gradients, and textures—before supervised training begins.

Visualizations of 16x16, 24x24, and 32x32 kernels learned via unsupervised pre-training.

Experimental Setup

The study utilizes the Asirra CAPTCHA dataset, comprising 25,000 RGB images of cats and dogs. The dataset is split into 20,000 images for training, 2,500 for validation, and 2,500 for testing. At the time of publication, the state-of-the-art (SOTA) performance on this dataset was approximately 98.9% accuracy using deep libraries like OverFeat, while traditional SVMs using hand-crafted features reached about 82.7% accuracy (17.3% error).

Key Insights and Results

The Impact of Regularization and Freezing

The experiments revealed several counter-intuitive findings regarding regularization in shallow models:

  • The Dropout Disaster: While Dropout is a standard tool for deep networks, it proved "devastating" for this shallow model, resulting in an error rate of ~47% (near random guessing). The author suggests that shallow models rely on unit co-adaptation to capture structure, which Dropout disrupts.
  • Kernel Freezing: Keeping pre-trained kernels "frozen" during supervised training yielded better results than fine-tuning them. Fine-tuning appeared to introduce noise that degraded the high-quality features learned during the unsupervised phase.
  • Pooling as a Regularizer: Larger pooling sizes were found to act as a structural regularizer, helping the model ignore irrelevant local variations and significantly improving performance.

Performance Metrics

The baseline model without pre-training failed significantly, highlighting the necessity of the ZAE initialization. The best single-layer configuration achieved a 22.60% test error.

Comparison of test error rates across different model configurations and training strategies.

By averaging eight different models, the error was further reduced to 21.56%. Interestingly, adding a small second convolutional layer with a large pooling size ($p=16$) brought the error down to 19.32%. While this does not surpass the SOTA of deep models, it is remarkably close to the performance of complex SVMs using hand-crafted features.

Conclusion

This research demonstrates that shallow CNNs are not inherently incapable but require a different set of "rules" compared to deep architectures. By prioritizing unsupervised pre-training, large kernels, and strategic freezing over standard deep-learning tricks like Dropout, shallow models can achieve respectable accuracy. This work serves as a reminder of the importance of fundamental structural components in neural network design.

Summary updated

BibTeX
@misc{mehri2015binary,
  author = {Soroush Mehri},
  title = {{On Binary Classification with Single-Layer Convolutional Neural Networks}},
  year = {2015},
  eprint = {1509.03891},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.03891},
}
Figure