IEEE Trans Neural Netw Learn Syst. 2022 Sep;33(9):4635-4647. doi: 10.1109/TNNLS.2021.3059529. Epub 2022 Aug 31.
Neural networks have been demonstrated to be trainable even with hundreds of layers, which exhibit remarkable improvement on expressive power and provide significant performance gains in a variety of tasks. However, the prohibitive computational cost has become a severe challenge for deploying them on resource-constrained platforms. Meanwhile, widely adopted deep neural network architectures, for example, ResNets or DenseNets, are manually crafted on benchmark datasets, which hamper their generalization ability to other domains. To cope with these issues, we propose an evolutionary algorithm-based method for shallowing deep neural networks (DNNs) at block levels, which is termed as ESNB. Different from existing studies, ESNB utilizes the ensemble view of block-wise DNNs and employs the multiobjective optimization paradigm to reduce the number of blocks while avoiding performance degradation. It automatically discovers shallower network architectures by pruning less informative blocks, and employs knowledge distillation to recover the performance. Moreover, a novel prior knowledge incorporation strategy is proposed to improve the exploration ability of the evolutionary search process, and a correctness-aware knowledge distillation strategy is designed for better knowledge transferring. Experimental results show that the proposed method can effectively accelerate the inference of DNNs while achieving superior performance when compared with the state-of-the-art competing methods.
神经网络已经被证明即使具有数百层也可以进行训练,这在表现力上有显著的提高,并在各种任务中提供了显著的性能提升。然而,极高的计算成本已成为在资源受限的平台上部署它们的严峻挑战。同时,广泛采用的深度神经网络架构,例如 ResNets 或 DenseNets,是在基准数据集上手动设计的,这限制了它们在其他领域的泛化能力。为了解决这些问题,我们提出了一种基于进化算法的方法,用于在块级别上对深度神经网络(DNN)进行浅化,称为 ESNB。与现有研究不同,ESNB 利用了块级 DNN 的集成视图,并采用多目标优化范例来减少块的数量,同时避免性能下降。它通过剪枝信息量较少的块自动发现更浅的网络架构,并采用知识蒸馏来恢复性能。此外,还提出了一种新的先验知识纳入策略,以提高进化搜索过程的探索能力,并设计了一种正确性感知的知识蒸馏策略,以更好地进行知识迁移。实验结果表明,与最先进的竞争方法相比,所提出的方法可以有效地加速 DNN 的推断,同时实现卓越的性能。