PTEENet:用于推理成本优化的训练后早退神经网络增强
PTEENet: Post-Trained Early-Exit Neural Networks Augmentation for Inference Cost Optimization
AI总结:
本文提出 PTEENet,通过向预训练 DNN 附加卷积早退分支和置信度阈值,在不改动原权重的情况下降低推理成本,并实时调节准确率与速度权衡。
摘要:
对于许多实际应用而言,在深度网络架构上进行推理的高计算成本可能是不可接受的。整体推理准确率的小幅下降,或许可以作为大幅削减所需计算资源的合理代价。在本文中,我们描述了一种在 DNN 前馈推理过程中引入“捷径”的方法,即在可能时跳过代价高昂的前馈计算。所提方法基于此前提出的 BranchyNet(Teerapittayanon 等,2016)与 EEnet(Demir,2019)架构,二者会联合训练主网络和早退分支。我们对这些方法进行了扩展,将分支附加到预训练模型上,从而无需更改网络的原始权重。我们还提出了一种基于卷积构建块的新型分支架构,以便在应用于大型 DNN 时具备充足的训练容量。所提架构包含置信度头,用于预测相应早退出口的置信度水平。通过在这些置信度扩展上设定调整后的阈值,我们可以实时控制从每个分支退出的数据量,以及模型在速度与准确率之间的总体权衡。实验中,我们使用图像数据集(SVHN 和 CIFAR10)以及多种不同深度的 DNN 架构(ResNet、DenseNet、VGG)评估该方法。结果表明,所提方法使我们能够降低平均推理计算成本,并进一步控制模型准确率与计算成本之间的权衡。
英文摘要:
For many practical applications, a high computational cost of inference over deep network architectures might be unacceptable. A small degradation in the overall inference accuracy might be a reasonable price to pay for a significant reduction in the required computational resources. In this work, we describe a method for introducing "shortcuts" into the DNN feedforward inference process by skipping costly feedforward computations whenever possible. The proposed method is based on the previously described BranchyNet (Teerapittayanon et al., 2016) and the EEnet (Demir, 2019) architectures that jointly train the main network and early exit branches. We extend those methods by attaching branches to pre-trained models and, thus, eliminating the need to alter the original weights of the network. We also suggest a new branch architecture based on convolutional building blocks to allow enough training capacity when applied on large DNNs. The proposed architecture includes confidence heads that are used for predicting the confidence level in the corresponding early exits. By defining adjusted thresholds on these confidence extensions, we can control in real-time the amount of data exiting from each branch and the overall tradeoff between speed and accuracy of our model. In our experiments, we evaluate our method using image datasets (SVHN and CIFAR10) and several DNN architectures (ResNet, DenseNet, VGG) with varied depth. Our results demonstrate that the proposed method enables us to reduce the average inference computational cost and further controlling the tradeoff between the model accuracy and the computation cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。