SimNets: A Generalization of Convolutional Networks

Nadav Cohen, Amnon ShashuaarXiv 2014

Abstract

We present a deep layered architecture that generalizes classical convolutional neural networks (ConvNets). The architecture, called SimNets, is driven by two operators, one being a similarity function whose family contains the convolution operator used in ConvNets, and the other is a new soft max-min-mean operator called MEX that realizes classical operators like ReLU and max pooling, but has additional capabilities that make SimNets a powerful generalization of ConvNets. Three interesting properties emerge from the architecture: (i) the basic input to hidden layer to output machinery contains as special cases kernel machines with the Exponential and Generalized Gaussian kernels, the output units being "neurons in feature space" (ii) in its general form, the basic machinery has a higher abstraction level than kernel machines, and (iii) initializing networks using unsupervised learning is natural. Experiments demonstrate the capability of achieving state of the art accuracy with networks that are an order of magnitude smaller than comparable ConvNets.

Introduction

In the world of computer vision, Convolutional Neural Networks (ConvNets) have reigned supreme for decades. However, their success often feels like a "brute force" victory—driven by massive datasets and ever-increasing compute power rather than fundamental algorithmic shifts. SimNets (Similarity Networks) introduce a deep architecture that generalizes ConvNets while providing a rigorous theoretical bridge to the world of kernel machines and statistical learning. By replacing standard convolutions with similarity functions and pooling with a novel "MEX" operator, SimNets achieve state-of-the-art accuracy on benchmarks like CIFAR-10 using up to 9x fewer parameters than comparable ConvNets.

The SimNet Architecture

The SimNet architecture is built on two core operators that generalize the standard building blocks of deep learning:

  1. The Similarity Operator: This generalizes the standard convolution. While a convolution is essentially a dot product (linear similarity), SimNets can use more complex mappings, such as weighted $l_p$ distances. If weights are set to one and linear similarity is used, the layer reduces to a standard convolutional layer.
  2. The MEX Operator (Maximum-minimum-Expectation Collapsing Smooth): This is a flexible, "soft" operator that can behave like ReLU, max-pooling, or average-pooling depending on a single parameter ($\xi$). Crucially, MEX has a "collapsing" property: a MEX of multiple MEX operations is itself a MEX operation. This allows for the mathematical proof that deep SimNet layers are equivalent to "neurons in feature space."
Overview of SimNet operators and architectures, including similarity functions, MEX operations, and patch-labeling configurations.

By combining these, the authors create a "patch labeling" SimNet that processes local image patches, classifies them in a high-dimensional feature space, and then pools the results to make a final prediction.

Theoretical Foundations and Abstraction

A key insight of this work is that a similarity layer followed by a MEX layer is equivalent to an SVM using Exponential or Generalized Gaussian kernels. This means SimNets are essentially deep kernel machines.

Furthermore, in a standard ConvNet, learning a "weight" for a pixel in a kernel is just part of the convolution. In SimNets, using weighted $l_p$ similarities allows the network to create non-convex, complex decision regions that a standard linear convolution cannot replicate. This higher level of abstraction allows the network to represent complex patterns more efficiently.

Decision boundaries between templates under various weight settings, demonstrating the ability to form non-convex regions.

Unsupervised Initialization and Efficiency

Because the similarity layer can be viewed as a mixture of Generalized Gaussians, SimNets offer a principled way to initialize templates and weights from unlabeled data using standard statistical estimation (like GMM clustering). This provides a much better starting point than random noise, especially for smaller networks where random initialization often fails to converge.

In evaluations on the CIFAR-10 dataset, SimNets demonstrated remarkable compactness:

  • Parameter Efficiency: A SimNet with only 400 templates achieved ~77% accuracy, requiring roughly 9 times fewer parameters than a standard ConvNet to reach the same performance.
  • Comparison to State-of-the-Art: Compared to highly optimized single-layer unsupervised networks, SimNets achieved similar accuracy with only 1/5th the parameters.

Conclusion

SimNets provide a powerful generalization of ConvNets that is more compact, more abstract, and naturally compatible with unsupervised learning. While current experiments focus on relatively shallow architectures, the theoretical framework suggests that scaling to deeper SimNets could offer significant advantages in efficiency and representational power over traditional deep learning models.

Summary updated

BibTeX
@misc{cohen2014simnets,
  author = {Nadav Cohen and Amnon Shashua},
  title = {{SimNets: A Generalization of Convolutional Networks}},
  year = {2014},
  eprint = {1410.0781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.0781},
}
Figure