Abstract
Deep ensemble learning is a powerful technique for improving model accuracy, yet its high computational overhead often limits its practical deployment. This paper introduces IRENE (InfeRence EfficieNt Ensemble), a novel framework that treats ensembling as a sequential decision-making process. By integrating a learnable selector that dynamically determines the optimal number of models required for each input, IRENE achieves significant inference efficiency. Experimental results on CIFAR-10 and CIFAR-100 demonstrate that IRENE can reduce average inference costs by up to 56% without compromising accuracy, often outperforming traditional full ensembles.
Introduction
Ensemble learning—combining multiple models to make a single prediction—is the "gold standard" for boosting accuracy and generalization. However, it is notoriously expensive. In a standard ensemble of 10 models, the system pays 10x the inference cost for every single input, regardless of its complexity.
Research indicates a massive redundancy in this approach: over 77% of samples in the CIFAR-100 dataset can be correctly classified by a single ResNet-18 model. For these "easy" samples, running the remaining nine models is computationally wasteful. The challenge lies in building a system that can dynamically distinguish between "easy" and "hard" samples to justify the extra compute of an ensemble.
Methods: Sequential Halting with IRENE
IRENE shifts ensemble learning from a parallel process to a sequential halting problem. Unlike traditional methods that execute all base models simultaneously, IRENE processes models one by one.
The Learnable Selector
At each step in the sequence, a shared Recurrent Neural Network (RNN) selector analyzes the current model's output. It then decides whether to halt (output the current average) or continue (pass the sample to the next model).
Joint Optimization
Unlike previous heuristic methods that rely on simple confidence thresholds, IRENE is trained end-to-end. The loss function balances three critical objectives:
- Accuracy: Ensuring the final prediction is correct.
- Efficiency: Penalizing the system for excessive model usage.
- Specialization (Ranking Loss): A novel $L^{(rank)}$ loss encourages later models in the sequence to specifically address the errors of the preceding ensemble, forcing models to specialize on the "hard" samples that reach them.
Key Results and Insights
Experiments were conducted on CIFAR-10 and CIFAR-100 using ResNet-32 and ResNet-18 backbones. IRENE significantly outperformed traditional ensembles and existing efficiency methods like "Wisdom of Committees" (WoC).
- Cost Reduction: On CIFAR-10 with ResNet-18, IRENE reduced the average inference cost by 56% compared to a full ensemble.
- Accuracy Gains: IRENE often achieved higher accuracy than a full average ensemble (e.g., 95.81% vs 95.62% on CIFAR-10). This suggests that early halting can prevent "noise" from weaker models from corrupting correct early predictions.
- Pareto Optimality: As shown in the Accuracy vs. Cost plots, IRENE consistently defines the Pareto frontier, providing the highest accuracy for any given computational budget.
- The Law of Diminishing Returns: The paper quantifies that while adding models increases accuracy, the marginal benefit drops off rapidly after the initial models, a phenomenon IRENE exploits through hardness-aware inference.
Limitations and Future Work
While IRENE represents a significant step forward, several avenues for future research remain. Currently, the framework requires models to be processed in a fixed order; allowing the system to dynamically choose or skip models could further enhance efficiency. Additionally, while tested on ResNet architectures, exploring heterogeneous ensembles (e.g., mixing CNNs and Transformers) and scaling to massive datasets like ImageNet are logical next steps for the framework.
Summary updated