Abstract
This paper introduces a unifying framework for stochastic training techniques in Multi-Layer Perceptrons (MLPs) by augmenting standard hidden neurons with "auxiliary independent stochastic neurons" (AISNs). By formalizing methods like dropout, noise injection, and semantic hashing as specific instances of this framework, we gain a deeper understanding of their mathematical foundations. Empirical results on the MNIST dataset demonstrate that while standard heuristics like 50% dropout are robust, layer-specific tuning of stochastic parameters can further optimize model performance and generalization.
Introduction
In the early 2010s, stochastic training methods—most notably dropout—became essential techniques for preventing overfitting in deep neural networks. Despite their empirical success, these methods were often treated as disparate heuristics. This work addresses the need for a single mathematical framework that encompasses these various methods. By creating a generalized model, we can better understand the synergy between specific activation functions (such as ReLU) and stochasticity, moving toward more principled hyperparameter tuning beyond the standard "drop 50%" rule.
The Auxiliary Independent Stochastic Neuron (AISN) Framework
The core of the proposed method is the augmentation of each hidden neuron $h_j$ with its own private, stochastic neuron $r_j$. In a standard MLP, a neuron's activation is determined by the weighted sum of the previous layer. In the AISN framework, the activation is also influenced by $r_j$ via a fixed, non-learned weight $u_j$.
The framework is defined by three key properties:
- Stochasticity: The value of $r_j$ is sampled from a predefined distribution (e.g., Bernoulli or Gaussian) during every forward pass.
- Independence: $r_j$ has no incoming edges, ensuring it remains independent of all other network variables.
- Training and Inference: Training proceeds via standard backpropagation. During inference, the network approximates the "expected" activation, which for dropout justifies the common practice of scaling weights by the retention probability.
Unifying Stochastic Training Techniques
The AISN framework demonstrates that several popular training methods are special cases of a single underlying mechanism:
- Dropout: Represented by an auxiliary neuron following a Bernoulli distribution with a connection weight $u_j$ set to negative infinity, effectively forcing the hidden neuron to zero when the auxiliary neuron fires.
- Noise Injection: Represented by auxiliary neurons following a Gaussian distribution, adding stochastic variance to the activations.
- Semantic Hashing: Interpreted as adding Gaussian noise to a bottleneck layer to push activations toward binary values.
Furthermore, the framework suggests that piece-wise linear functions like ReLU or Maxout are particularly well-suited for dropout because their "weight-averaging" approximation at test time is more accurate than for highly non-linear functions like max-pooling.
Experimental Results and Layer Sensitivity
The framework was evaluated using the MNIST dataset on MLPs with two hidden layers of 2000 ReLU neurons each. A primary goal was to investigate the sensitivity of different layers to stochasticity.
Key findings include:
- Layer-Specific Sensitivity: The first hidden layer ($p_1$) exhibited significantly higher sensitivity than the second ($p_2$). Extreme dropout rates on the first layer led to substantial performance degradation, regardless of the settings in the second layer.
- Optimality of the 0.5 Rule: While a dropout probability of 0.5 remains a robust baseline, the contour plots reveal that it is not universally optimal for every layer.
- Deep Noise Injection: While noise is traditionally added to inputs (as in denoising autoencoders), injecting Gaussian noise into higher hidden layers was found to effectively improve generalization.
Conclusion
The AISN framework provides a robust mathematical foundation for understanding and extending stochastic training methods. While this study focuses on MLPs and the MNIST dataset, it opens the door for more granular control over network regularization. Future work should explore these dynamics in more complex architectures and investigate the theoretical reasons why such randomness prevents co-adaptation among neurons.
Summary updated