[Paper Review] EnsembleNet: End-to-End Optimization of Multi-headed Models
EnsembleNet proposes an end-to-end, single-stage training framework for multi-headed neural networks that jointly optimize multiple prediction heads using a co-distillation loss, achieving superior performance over single models with comparable size. It demonstrates state-of-the-art results on ImageNet, YouTube-8M, and Kinetics with smaller models and no manual intervention.
Ensembling is a universally useful approach to boost the performance of machine learning models. However, individual models in an ensemble were traditionally trained independently in separate stages without information access about the overall ensemble. Many co-distillation approaches were proposed in order to treat model ensembling as first-class citizens. In this paper, we reveal a deeper connection between ensembling and distillation, and come up with a simpler yet more effective co-distillation architecture. On large-scale datasets including ImageNet, YouTube-8M, and Kinetics, we demonstrate a general procedure that can convert a single deep neural network to a multi-headed model that has not only a smaller size but also better performance. The model can be optimized end-to-end with our proposed co-distillation loss in a single stage without human intervention.
Motivation & Objective
- To address the inefficiency and suboptimal performance of traditional ensemble training, where models are trained independently without awareness of the ensemble.
- To eliminate the need for manual hyperparameter tuning and separate training stages in model ensembling.
- To achieve better accuracy than single models while maintaining or reducing model size and FLOPs.
- To unify ensembling and distillation through a simpler, more effective co-distillation loss that does not require explicit regression to ground truth.
Proposed method
- Proposes a multi-headed neural network architecture with shared base features and lightweight prediction heads.
- Uses a co-distillation loss that encourages each head to predict the ensemble output, rather than regressing directly to ground truth.
- Employs a single-stage training procedure where all heads and the ensemble head are optimized jointly using the co-distillation loss.
- The co-distillation loss is defined as $ \mathcal{L}_{\text{co-distill}} = \sum_{i=1}^{N} \ell(\mathbf{p}_{\text{ens}}, \mathbf{p}_i) $, where $ \mathbf{p}_{\text{ens}} $ is the ensemble prediction and $ \mathbf{p}_i $ is the prediction of head $ i $.
- The ensemble output $ \mathbf{p}_{\text{ens}} $ is computed as the average of all individual head predictions during inference.
- The method avoids explicit ground-truth supervision on individual heads, relying solely on knowledge distillation from the ensemble.
Experimental results
Research questions
- RQ1Can a multi-headed model be trained end-to-end in a single stage to achieve better performance than a single model with comparable size?
- RQ2How does co-distillation compare to traditional ensembling or mixed ensembling/co-distillation losses in terms of accuracy and efficiency?
- RQ3Can a model ensemble be smaller than a single model yet still outperform it in accuracy?
- RQ4Is there a theoretical and empirical connection between ensembling and knowledge distillation that can be exploited for better training?
- RQ5Can the proposed method be generalized across diverse large-scale vision benchmarks like ImageNet, YouTube-8M, and Kinetics?
Key findings
- On ImageNet, EnsembleNet with 2 branches and $ \mu = 2 $ achieved 88.36% top-1 accuracy with 226M parameters and 410M FLOPs, outperforming a single model with similar size.
- On YouTube-8M, the co-distillation loss with $ \mu = 2 $ achieved 60.07% mAP, a 0.42% improvement over the baseline and 0.1% over the $ \lambda = 0 $ variant.
- On Kinetics, the multi-headed S3D-G model with $ \mu = 2 $ reached 75.9% top-1 accuracy and 92.3% top-5 accuracy, surpassing the baseline S3D-G (74.6% top-1) with identical parameter and FLOP counts.
- The co-distillation loss consistently outperformed the ensembling loss structure, especially when $ \mu = 2 $, indicating that distillation from the ensemble is more effective than direct supervision.
- The method achieved state-of-the-art performance on all three benchmarks without increasing model size, demonstrating that ensembling can be more efficient than single-model training.
- The ablation study showed minimal run-to-run variation, confirming the robustness of the method across training runs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.