StochasticNet: Forming Deep Neural Networks via Stochastic Connectivity

Mohammad Javad Shafiee, Parthipan Siva, Alexander Wong

Abstract

StochasticNet reimagines neural network design by replacing dense, deterministic connections with sparse, random ones inspired by the biological formation of rat brains. By leveraging random graph theory to "pre-wire" networks before training, the authors achieve comparable or superior accuracy to standard ConvNets while using less than half the neural connections, leading to faster inference and inherent resistance to overfitting.

Introduction

In traditional deep learning, architectures are typically designed with dense, pre-defined connectivity—every neuron in one layer often connects to every neuron in the next. While effective, this approach is computationally expensive and often leads to highly redundant parameters, which can cause overfitting.

A random graph representation where connections are formed with probability $p_{ij}$.

The authors point to a fascinating discovery in neuroscience: the synaptic connections in the neocortical microcircuits of rats are surprisingly well-modled as random formations. This suggests that "structured" intelligence can emerge from "stochastic" (random) wiring. StochasticNet investigates whether we can replicate this efficiency in artificial intelligence by moving away from deterministic "all-to-all" connectivity toward a leaner, stochastic model.

Methodology

The core innovation is the StochasticNet, where the network architecture is treated as a specific "realization" of a random graph.

Stochastic connectivity between layers in a feed-forward network, where $p$ represents the probability of a connection between nodes $k$ and $h$.

Random Graph Theory and Structural Constraints

The authors use generalized random graph models to determine if a connection exists between two neurons based on a probability $p$. To ensure the resulting graph functions as a deep feed-forward or convolutional network, they enforce specific constraints: connections can only exist between adjacent layers, and there are no intra-layer connections.

Stochastic Convolutional Layers

For CNNs, randomness is applied at the local receptive field level. Instead of a dense $5\times5$ filter, the "filter" is a sparse collection of connections chosen via a probability distribution. Two distributions were tested:

  • Uniform: Every potential connection has an equal chance of existing.
  • Gaussian: Connections are more likely to form near the center of the receptive field and less likely at the edges.

Unlike Dropout or DropConnect, which randomly disable neurons during training, StochasticNet’s connections are chosen before training starts and remain fixed. The network is inherently sparse from day one.

Experimental Results

The authors evaluated StochasticNet across four standard computer vision benchmarks: MNIST, CIFAR-10, SVHN, and STL-10.

Performance and Efficiency

On MNIST, CIFAR-10, and SVHN, StochasticNets with less than 50% connectivity achieved accuracy levels nearly identical to their dense counterparts. A StochasticNet with only 39% of the connections of a standard ConvNet performed just as well. Furthermore, there is a near-linear relationship between the number of connections and operational speed; reducing connectivity by 60% results in a significant boost in classification speed.

Natural Regularization and Small Data

Because the networks are inherently sparse, they have a lower capacity to "memorize" training data, which naturally reduces overfitting. On the STL-10 dataset (which has fewer training samples), StochasticNet actually outperformed the dense ConvNet, achieving a ~6% relative improvement in test error rate.

Discussion and Future Work

The spatial distribution of randomness matters: Gaussian-distributed connectivity performed better than uniform randomness, likely because it preserves the "spatial locality" that makes convolutions effective.

While promising, several areas remain for future exploration:

  • Scaling: Testing stochastic connectivity in deeper modern architectures like ResNets or Transformers.
  • Hardware Optimization: Realizing the full speed potential may require specialized kernels for sparse operations, as standard GPUs are optimized for dense matrix multiplications.
  • Hyperparameters: The choice of probability distribution adds new hyperparameters that require tuning.

Conclusion

StochasticNet demonstrates that "full" connectivity is not required to learn complex features. By embracing sparsity as a design principle rather than a post-processing step, we can create more efficient, robust neural networks inspired by biological systems.

Summary updated

BibTeX
@inproceedings{shafiee2016stochasticnet,
  author = {Mohammad Javad Shafiee and Parthipan Siva and Alexander Wong},
  title = {{StochasticNet: Forming Deep Neural Networks via Stochastic Connectivity}},
  booktitle = {IEEE Access},
  year = {2016},
  url = {https://openreview.net/forum?id=8oLZE6taOI},
}
Figure