Abstract
A memory efficient approach to ensembling neural networks is to share most weights among the ensembled models by means of a single reference network. We refer to this strategy as Embedded Ensembling (EE); its particular examples are BatchEnsembles and Monte-Carlo dropout ensembles. In this paper we perform a systematic theoretical and empirical analysis of embedded ensembles with different number of models. Theoretically, we use a Neural-Tangent-Kernel-based approach to derive the wide network limit of the gradient descent dynamics. In this limit, we identify two ensemble regimes - independent and collective - depending on the architecture and initialization strategy of ensemble models. We prove that in the independent regime the embedded ensemble behaves as an ensemble of independent models. We confirm our theoretical prediction with a wide range of experiments with finite networks, and further study empirically various effects such as transition between the two regimes, scaling of ensemble performance with the network width and number of models, and dependence of performance on a number of architecture and hyperparameter choices.
Introduction
Ensembling neural networks is a powerful technique for boosting accuracy and robustness, but it typically incurs a linear increase in computational and memory costs. Embedded Ensembling (EE), exemplified by methods like BatchEnsemble and Monte-Carlo (MC) Dropout, attempts to mitigate these costs by sharing a "reference" network's weights across all ensemble members, using only small individual perturbations to differentiate them. Despite their efficiency, EEs often exhibit complex scaling behaviors where adding more models does not always lead to better performance. This paper provides a theoretical and empirical framework to understand these dynamics.
Theoretical Framework and Operating Regimes
Using the Neural Tangent Kernel (NTK) framework in the infinite-width limit, the authors derive the conditions for "dynamic independence." They identify two distinct operating regimes:
- Independent Regime: Models are uncorrelated at initialization and remain independent throughout training, behaving like a standard ensemble of separate networks.
- Collective Regime: Models are highly correlated, behaving more like minor perturbations of a single shared model.
A critical finding is the "Zero-Mean Rule": model independence is primarily determined by the last layer. If final-layer modulations have a mean of zero at initialization, the ensemble can achieve dynamic independence. The transition between these regimes is sharp and can be controlled by an initialization shift parameter $p$.
Scaling Laws and the Width Bottleneck
The research highlights that in the independent regime, network width acts as a fundamental bottleneck. For a given width, there exists an optimal number of models; exceeding this limit causes models to "crowd" each other, leading to performance degradation. Increasing the network width allows the ensemble to support more members effectively.
Empirical validation on the CIFAR100 dataset using convolutional architectures shows that BatchEnsembles in the independent regime can match the performance of fully independent ensembles. Furthermore, when compared at the same total parameter count, BatchEnsembles with an optimized number of models can even slightly outperform their independent counterparts.
Practical Implications
The authors also note that gradient scaling is essential: in the independent regime, the learning rate should be scaled by the number of models ($M$) to maintain consistent training dynamics. Additionally, Last Layer Dropout (LLD) is identified as a highly efficient special case of EE, providing significant ensembling benefits with minimal computational overhead (roughly 10%).
Conclusion
This work establishes a rigorous foundation for understanding lightweight ensembles. While the theoretical proofs rely on a sequential infinite-width limit and assume a "lazy training" regime, the insights provide clear guidance for practitioners on how to initialize and scale embedded ensembles to achieve maximum efficiency and accuracy. Future work may explore "feature learning" regimes where weights move significantly from their starting points.
Summary updated