arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.07099cs.LGcs.AI
收藏

基于EENet的自适应深度神经网络推理优化

Adaptive Deep Neural Network Inference Optimization with EENet

Georgia Institute of Technology(佐治亚理工学院);CISCO Research(思科研究院)

Fatih Ilhan, Ka-Ho Chow, Sihao Hu, Tiansheng Huang, Selim Tekin, Wenqi Wei, Yanzhao Wu, Myungjin Lee, Ramana Kompella, Hugo Latapie, Gaowen Liu, Ling Liu

AI总结:

本文提出EENet早退调度框架,通过学习最优早退策略,在满足每样本平均推理预算的前提下最大化多出口DNN模型准确率,并在多个视觉和NLP数据集上验证其优于现有早退方法。

摘要:

训练良好的深度神经网络(DNN)在预测过程中对所有测试样本一视同仁。基于早退机制的自适应DNN推理利用了一个观察:某些测试样本比其他样本更容易预测。本文提出了EENet,一种面向多出口DNN模型的新型早退调度框架。EENet并非让每个样本在预测时都经过所有DNN层,而是学习一个早退调度器,该调度器能够对模型具有高置信度的某些预测智能地提前终止推理。与以往基于启发式方法的早退方案不同,我们的EENet框架优化早退策略,在满足给定的每样本平均推理预算的同时最大化模型准确率。在四个计算机视觉数据集(CIFAR-10、CIFAR-100、ImageNet、Cityscapes)和两个NLP数据集(SST-2、AgNews)上进行了大量实验。结果表明,EENet的自适应推理能够优于具有代表性的现有早退技术。我们还对比较结果进行了详细的可视化分析,以解释EENet的优势。

英文摘要:

Well-trained deep neural networks (DNNs) treat all test samples equally during prediction. Adaptive DNN inference with early exiting leverages the observation that some test examples can be easier to predict than others. This paper presents EENet, a novel early-exiting scheduling framework for multi-exit DNN models. Instead of having every sample go through all DNN layers during prediction, EENet learns an early exit scheduler, which can intelligently terminate the inference earlier for certain predictions, which the model has high confidence of early exit. As opposed to previous early-exiting solutions with heuristics-based methods, our EENet framework optimizes an early-exiting policy to maximize model accuracy while satisfying the given per-sample average inference budget. Extensive experiments are conducted on four computer vision datasets (CIFAR-10, CIFAR-100, ImageNet, Cityscapes) and two NLP datasets (SST-2, AgNews). The results demonstrate that the adaptive inference by EENet can outperform the representative existing early exit techniques. We also perform a detailed visualization analysis of the comparison results to interpret the benefits of EENet.

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

↑