arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1811.01476cs.NEcs.CVcs.LG
收藏

通过决策门在深度神经网络上实现高效推理的动态表示

Dynamic Representations Toward Efficient Inference on Deep Neural Networks by Decision Gates

Shahid Rajee University(沙希德·拉贾伊大学);University of Waterloo(滑铁卢大学);DarwinAI Corp.(DarwinAI公司)

Mohammad Saeed Shafiee, Mohammad Javad Shafiee, Alexander Wong

摘要:

虽然深度神经网络从输入数据中提取了丰富的特征,但目前深度和计算成本之间的权衡使得很难将深度神经网络用于许多工业应用,特别是当计算能力有限时。在这里,我们受到这样一个想法的启发,即虽然需要更深的嵌入来区分困难的样本(即,细粒度鉴别),大量的样本可以经由浅得多的嵌入来很好地鉴别(即,粗粒度的歧视)。在这项研究中,我们引入了简单而有效的决策门(d-gate)概念,这些模块被训练来决定是否需要将样本投影到更深的嵌入中,或者是否可以在d-gate进行早期预测,从而能够计算不同深度的动态表示。所提出的d门模块可以与任何深度神经网络集成,并在保持建模精度的同时降低了深度神经网络的平均计算成本。通过不同的网络架构和数据集检查了所提出的d-gate框架,实验结果表明,利用所提出的d-gate模块,在ResNet-101上实现了约43%的加速和44%的FLOP减少,在CIFAR 10数据集上训练的DenseNet-201上实现了55%的加速和39%的FLOP减少,准确度仅下降了约2%。此外,将d-gate模块集成到在ImageNet数据集上训练的ResNet-101中的实验表明,可以将网络的计算成本降低1.5 GFLOPs,而不会降低建模精度。

英文摘要:

While deep neural networks extract rich features from the input data, the current trade-off between depth and computational cost makes it difficult to adopt deep neural networks for many industrial applications, especially when computing power is limited. Here, we are inspired by the idea that, while deeper embeddings are needed to discriminate difficult samples (i.e., fine-grained discrimination), a large number of samples can be well discriminated via much shallower embeddings (i.e., coarse-grained discrimination). In this study, we introduce the simple yet effective concept of decision gates (d-gate), modules trained to decide whether a sample needs to be projected into a deeper embedding or if an early prediction can be made at the d-gate, thus enabling the computation of dynamic representations at different depths. The proposed d-gate modules can be integrated with any deep neural network and reduces the average computational cost of the deep neural networks while maintaining modeling accuracy. The proposed d-gate framework is examined via different network architectures and datasets, with experimental results showing that leveraging the proposed d-gate modules led to a ~43% speed-up and 44% FLOPs reduction on ResNet-101 and 55% speed-up and 39% FLOPs reduction on DenseNet-201 trained on the CIFAR10 dataset with only ~2% drop in accuracy. Furthermore, experiments where d-gate modules are integrated into ResNet-101 trained on the ImageNet dataset demonstrate that it is possible to reduce the computational cost of the network by 1.5 GFLOPs without any drop in the modeling accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑