[Paper Review] Ensemble-Compression: A New Method for Parallel Training of Deep Neural Networks
This paper proposes EC-DNN, a novel parallel training framework for deep neural networks that replaces parameter averaging with output ensemble averaging to ensure global model performance is at least as good as the average of local models. By combining ensemble-based aggregation with knowledge distillation for model compression, EC-DNN achieves higher accuracy and faster convergence than MA-DNN, with up to 2.24x speedup on ImageNet and consistent improvements on CIFAR-10/100.
Parallelization framework has become a necessity to speed up the training of deep neural networks (DNN) recently. Such framework typically employs the Model Average approach, denoted as MA-DNN, in which parallel workers conduct respective training based on their own local data while the parameters of local models are periodically communicated and averaged to obtain a global model which serves as the new start of local models. However, since DNN is a highly non-convex model, averaging parameters cannot ensure that such global model can perform better than those local models. To tackle this problem, we introduce a new parallel training framework called Ensemble-Compression, denoted as EC-DNN. In this framework, we propose to aggregate the local models by ensemble, i.e., averaging the outputs of local models instead of the parameters. As most of prevalent loss functions are convex to the output of DNN, the performance of ensemble-based global model is guaranteed to be at least as good as the average performance of local models. However, a big challenge lies in the explosion of model size since each round of ensemble can give rise to multiple times size increment. Thus, we carry out model compression after each ensemble, specialized by a distillation based method in this paper, to reduce the size of the global model to be the same as the local ones. Our experimental results demonstrate the prominent advantage of EC-DNN over MA-DNN in terms of both accuracy and speedup.
Motivation & Objective
- To address the instability of model averaging in parallel DNN training, where the global model can underperform local models due to the non-convex nature of DNNs.
- To develop a training framework that guarantees global model performance is bounded by the average of local models, ensuring consistent improvement.
- To reduce the model size explosion caused by ensemble aggregation through efficient compression after each ensemble step.
- To integrate compression into local training via a combination loss, minimizing additional training time.
- To demonstrate EC-DNN's superiority in accuracy, convergence speed, and communication efficiency over existing methods like MA-DNN and E-DNN.
Proposed method
- EC-DNN aggregates local models by averaging their outputs rather than their parameters, forming a global model as an ensemble of local networks with equal weights.
- The global model is a larger network with an additional layer that takes the outputs of K local models as input, with each branch weighted by 1/K.
- Model compression is applied after each ensemble using knowledge distillation, where the compressed model is trained to mimic the ensemble's predictions.
- A novel combination loss is introduced that blends the loss from true labels and pseudo-labels from the global model, enabling compression during local training without extra time.
- Communication frequency is reduced in EC-DNN compared to MA-DNN, as the ensemble method allows longer training intervals between synchronization steps.
- The framework is evaluated on CIFAR-10, CIFAR-100, and ImageNet with varying numbers of workers and communication frequencies.
Experimental results
Research questions
- RQ1Can output ensemble aggregation outperform parameter averaging in terms of global model accuracy and convergence stability?
- RQ2Does the ensemble-based global model guarantee performance improvement over the average of local models?
- RQ3Can model compression effectively control the size explosion caused by ensemble aggregation without sacrificing performance?
- RQ4Can compression be integrated into local training with minimal computational overhead?
- RQ5Does EC-DNN achieve better speedup and robustness compared to MA-DNN and E-DNN, especially under limited bandwidth?
Key findings
- On CIFAR-10, EC-DNN achieved test errors of 8.43% (K=4) and 8.19% (K=8), significantly outperforming MA-DNN's 10.3% and 9.99% respectively.
- On CIFAR-100, EC-DNN achieved 30.26% (K=4) and 29.31% (K=8) test error, compared to MA-DNN's 36.18% and 35.55%.
- EC-DNN G achieved up to 2.24x speedup over MA-DNN G on ImageNet, with better performance even at early training stages.
- EC-DNN L achieved 1.36x and 1.26x speedup over MA-DNN L on CIFAR-10 with K=4 and K=8, respectively, while maintaining better accuracy.
- The communication frequency τ for EC-DNN was 4k for CIFAR-10 and 2k for CIFAR-100, significantly higher than MA-DNN’s 16, indicating reduced communication cost.
- E-DNN (without compression) failed to match MA-DNN’s performance on CIFAR-100, while EC-DNN L achieved 34.8% and 35.1% error, outperforming MA-DNN L’s 36.39% and 35.56%.
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.