Skip to main content
QUICK REVIEW

[论文解读] Efficient Inference on Deep Neural Networks by Dynamic Representations and Decision Gates.

Mohammad Saeed Shafiee, Mohammad Javad Shafiee|arXiv (Cornell University)|Oct 16, 2018
Advanced Neural Network ApplicationsComputer Science参考文献 25被引用 3
一句话总结

本文提出决策门(d-gates),通过在深度神经网络中动态地将样本路由至浅层或深层路径,以在不显著损失准确率的情况下降低计算成本。通过为简单样本实现早期预测,为困难样本提供更深层次的推理,该方法在ResNet-101上实现了约38%的加速和约39%的FLOPS减少,同时仅造成约2%的准确率下降。

ABSTRACT

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, a large number of samples can be well discriminated via much shallower embeddings. In this study, we introduce the 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. Experimental results show that leveraging the proposed d-gate modules led to a ~38% speed-up and ~39% FLOPS reduction on ResNet-101 and ~46% speed-up and ~36% FLOPS reduction on DenseNet-201 trained on the CIFAR10 dataset with only ~2\% drop in accuracy.

研究动机与目标

  • 解决深度神经网络在资源受限的工业应用中的高计算成本问题。
  • 通过实现样本特定的深度自适应,突破固定深度推理的瓶颈。
  • 在保持高模型准确率的同时,降低多样化样本上的平均计算成本。
  • 设计一种模块化、即插即用的组件,可兼容任意深度神经网络架构。

提出的方法

  • 引入d-gate模块,作为可学习的决策机制,以确定样本是否需要更深的网络层,或可提前预测。
  • 端到端训练d-gates与主网络,以同时优化准确率和计算效率。
  • 对简单样本在d-gate处实现早期预测,跳过深层网络层,从而减少FLOPS。
  • 仅对难以分类的样本允许使用更深的特征表示,从而在需要时保持模型容量。
  • 将d-gates作为轻量级可训练模块集成于中间层,实现动态表示计算。
  • 将该方法应用于现有架构(如ResNet-101和DenseNet-201),无需重新训练或修改网络结构。

实验结果

研究问题

  • RQ1通过在不同网络深度间动态路由样本,能否在不降低准确率的情况下减少计算成本?
  • RQ2d-gate机制在识别仅需浅层推理的样本方面有多高效?
  • RQ3在标准深度网络中,使用d-gates能将FLOPS和推理速度减少到何种程度?
  • RQ4在不同架构上应用d-gates时,计算节省与准确率损失之间的权衡如何?

主要发现

  • 在CIFAR10上训练的ResNet-101上,d-gate方法实现了约38%的加速和约39%的FLOPS减少。
  • 在DenseNet-201上,该方法实现了约46%的加速和约36%的FLOPS减少,且准确率仅下降约2%。
  • 通过为困难样本保留深层表示,动态推理策略有效维持了高模型准确率。
  • d-gate模块在不同架构中均表现有效,证明其在ResNet和DenseNet变体中的泛化能力。
  • 计算节省以极小的准确率退化实现,表明该方法在效率与准确率之间具有优异的权衡性能。
  • 该方法可实现即插即用的集成,无需对现有深度神经网络进行重新训练或结构修改。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。