Machine learning models based on the aggregated outputs of submodels—either at the activation or prediction levels—consistently lead to strong performance. However, scaling these models efficiently remains a challenge. This paper explores the interplay of two popular classes of such models: ensembles of neural networks and sparse mixture of experts (sparse MoEs).
The authors introduce Efficient Ensemble of Experts ($E^3$), also referred to as partitioned batch ensembles. This hybrid architecture combines the computational efficiency of Sparse MoEs with the predictive power and reliability of neural network ensembles. By cleverly partitioning experts and sharing the rest of the model's backbone, $E^3$ matches the performance of deep ensembles while using up to 45% fewer FLOPs.
The Problem: The Scaling Wall vs. Reliability
Modern deep learning faces a "scaling wall." While massive models with hundreds of billions of parameters achieve state-of-the-art results, their computational and environmental costs are staggering. Two popular solutions have emerged to address different facets of this problem:
- Sparse Mixture of Experts (MoEs): These models use "conditional computation" to activate only a small subset of the network (the "experts") for any given input. This keeps inference costs relatively constant even as the total parameter count grows.
- Ensembles: Running multiple independent models and averaging their predictions is the gold standard for accuracy and "uncertainty estimation" (knowing when the model is unsure). However, this approach multiplies the computational cost by the number of models in the ensemble.
Until now, these two approaches rarely intersected. Sparse MoEs were primarily used for raw scaling, while ensembles were reserved for reliability. This paper asks a critical question: Can we build a model that is as efficient as a Sparse MoE but as reliable as an ensemble?
Methodology: Efficient Ensemble of Experts ($E^3$)
The core idea behind $E^3$ is to take a Vision Transformer (ViT) and replace specific standard layers with specialized MoE layers. The innovation lies in two key components that force the model to develop diverse internal representations:
- Disjoint Subsets of Experts: Instead of allowing all inputs access to all experts, the total pool of experts is partitioned into $M$ distinct groups. Each group acts as a member of an internal ensemble.
- Tiled Representations: Inspired by "Batch Ensembles," $E^3$ tiles the input data $M$ times. These $M$ versions of the input share the same "backbone" (like self-attention layers) but are routed to different disjoint subsets of experts in the MoE layers.
This architecture allows the model to produce $M$ different predictions for a single image in one forward pass. It effectively creates an ensemble "inside" a single model without the massive overhead of running $M$ completely separate networks. Simply tiling the input isn't enough; without partitioning the experts into disjoint sets, different ensemble members tend to pick the same experts, leading to redundant predictions. The combination of partitioning and tiling is the secret sauce.
Key Results and Insights
The researchers conducted an exhaustive evaluation across a wide array of benchmarks, including JFT-300M for pre-training, standard downstream tasks (ImageNet, CIFAR), robustness checks (ImageNet-C, ImageNet-A), and few-shot learning.
- Compute Savings & Pareto Efficiency: $E^3$ matches the accuracy and log-likelihood of traditional deep ensembles while using 30% to 45% fewer FLOPs. In almost every test, $E^3$ sat on the "Pareto frontier," offering the best possible trade-off between computational cost and predictive performance.
- Complementarity is Real: The authors prove that the benefits of adaptive computation (MoEs) and static ensembling are orthogonal. Combining them provides additive gains in both performance and reliability.
- Better Calibration: Standard Sparse MoEs often struggle with "Expected Calibration Error" (ECE), tending to be overconfident. $E^3$ significantly improves ECE, making the model's confidence scores much more trustworthy.
- Robustness: On shifted datasets like ImageNet-C (corrupted images), $E^3$ outperformed standard Vision Transformers and V-MoEs, showing up to an 8.33% improvement in log-likelihood at the largest scales.
- Efficiency at Scale: $E^3$ scales gracefully. Tests on models up to 2.7 billion parameters revealed that the relative performance gap between $E^3$ and standard models actually increases as the models get larger.
Limitations and Future Work
While $E^3$ generally performs exceptionally well, its performance on Out-of-Distribution (OOD) detection was somewhat inconsistent for smaller model sizes, only becoming clearly superior at the largest scales. Additionally, the majority of the study focused on fine-tuning pre-trained models. Training large-scale MoEs from scratch remains notoriously difficult and requires further research into regularization.
Finally, the current work is focused on computer vision. Given the massive success of MoEs in Natural Language Processing (NLP), extending partitioned batch ensembles to large language models is a highly promising next step.
Summary updated