Although more layers and more parameters generally improve the accuracy of the models, such big models generally have high computational complexity and require big memory, which exceed the capacity of small devices for inference and incurs long training time. In addition, it is difficult to afford long training time and inference time of big models even in high performance servers, as well. As an efficient approach to compress a large deep model (a teacher model) to a compact model (a student model), knowledge distillation emerges as a promising approach to deal with the big models. Existing knowledge distillation methods cannot exploit the elastic available computing resources and correspond to low efficiency. In this paper, we propose an Elastic Deep Learning framework for knowledge Distillation, i.e., EDL-Dist. The advantages of EDL-Dist are three-fold. First, the inference and the training process is separated. Second, elastic available computing resources can be utilized to improve the efficiency. Third, fault-tolerance of the training and inference processes is supported. We take extensive experimentation to show that the throughput of EDL-Dist is up to 3.125 times faster than the baseline method (online knowledge distillation) while the accuracy is similar or higher.
翻译:虽然更多的层次和更多的参数总体上提高了模型的准确性,但这类大模型一般具有很高的计算复杂性,需要很大的记忆,这超出了小推算装置的容量,需要很长的培训时间。此外,即使高性能服务器,也难以提供长长的培训时间和大模型的推论时间,即使是在高性能服务器上,也难以提供长长的培训时间和大模型的推论时间。作为将大型深层模型(教师模型)压缩为紧凑模型(学生模型)的一个有效方法,知识蒸馏作为处理大模型的一个有希望的方法出现。现有的知识蒸馏方法无法利用弹性的计算资源,而且效率低。在本文件中,我们提出了一个用于知识蒸馏的高级深层学习框架,即EDL-Dist。EDL-Dist的优点是三倍。首先,推断和培训过程是分开的。第二,可利用的弹性计算资源可用来提高效率。第三,培训和推导过程的过错容忍度是支持。我们进行了广泛的实验,以显示EDL-DDist的吞过量,而精度是比标准要更快地测到3.。