Abstract
We introduce Inner Ensemble Networks (IENs) which reduce the variance within the neural network itself without an increase in the model complexity. IENs utilize ensemble parameters during the training phase to reduce the network variance. While in the testing phase, these parameters are removed without a change in the enhanced performance. IENs reduce the variance of an ordinary deep model by a factor of $1/m^{L-1}$, where $m$ is the number of inner ensembles and $L$ is the depth of the model. Also, we show empirically and theoretically that IENs lead to a greater variance reduction in comparison with other similar approaches such as dropout and maxout. Our results show a decrease of error rates between 1.7% and 17.3% in comparison with an ordinary deep model. We also show that IEN was preferred by Neural Architecture Search (NAS) methods over prior approaches.
Introduction
Ensembling—training multiple models and averaging their predictions—is a robust technique for reducing variance and improving generalization in deep learning. However, the computational and storage costs of maintaining multiple models during inference are often prohibitive. Existing regularizers like Dropout and Maxout attempt to capture ensemble-like benefits within a single model. Dropout approximates an ensemble of sub-networks but can be difficult to tune for Convolutional Neural Networks (CNNs). Maxout employs multiple weight replicas but retains them during inference, significantly increasing model complexity.
Inner Ensemble Networks (IENs) address this "parameter tax" by providing the variance-reduction benefits of an ensemble during training while collapsing into a standard single-model architecture for inference.
Methodology
The core mechanism of an IEN layer involves using $m$ independent weight matrices ($w_1, w_2, \dots, w_m$) during the training phase. The output of the layer is the average of these inner ensembles: $y = \frac{1}{m} \sum_{i=1}^{m} w_i x$. During the inference phase, the linearity of matrix multiplication allows these weights to be averaged into a single matrix: $\bar{w} = \frac{1}{m} \sum w_i$. The testing output becomes $y = \bar{w}x$, resulting in a model with the same parameter count as the base architecture.
Theoretical Variance Reduction
Theoretically, IENs reduce the variance of a deep model by a factor of $1/m^{L-1}$, where $L$ is the model depth. This reduction is significantly more aggressive than Dropout, which reduces variance by at most $1/2^{L-1}$. As shown in the figure below, IEN (referred to as IEA in the plot) achieves a much lower variance gain as the number of ensemble components $m$ increases compared to Maxout and Dropout.
Experimental Results and Insights
The effectiveness of IENs was evaluated on CIFAR-10, CIFAR-100, and ImageNet-16-120 using architectures such as ResNet, DenseNet, and VGG. IENs consistently outperformed base models and Maxout alternatives. For instance, on CIFAR-10 with ResNet110, IEN achieved a 5.94% error rate, compared to 8.38% for the base model and 6.32% for Maxout. Notably, while Maxout required 8.60M parameters to achieve its result, IEN maintained the base parameter count of 1.73M during inference.
Key insights from the study include:
- Linearity Advantage: The ability to collapse the ensemble into a single layer for inference provides a "free lunch" in terms of performance vs. complexity.
- Depth Synergy: The exponential nature of variance reduction suggests that IENs become increasingly effective as network depth increases.
- NAS Preference: In Neural Architecture Search experiments, IEN layers were frequently selected over standard convolutions, particularly in the early stages of the network.
Conclusion
IENs offer a powerful regularization technique that reduces network variance without increasing inference-time overhead. While training requires more memory to store ensemble weights, the resulting models achieve significant error reductions (1.7% to 17.3%). Future work may explore non-linear ensemble combinations, though maintaining the weight-downsizing property remains a key challenge.
Summary updated