arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.09029cs.LG
收藏

用于低资源设备自适应推理的二元早退出网络

Binary Early-Exit Network for Adaptive Inference on Low-Resource Devices

University of Cambridge(剑桥大学)

Aaqib Saeed

摘要:

深度神经网络显著提高了一系列任务的性能,同时对计算资源的需求不断增加,使得在低资源设备(内存和电池电量有限)上的部署变得不可行。与实值模型相比,二进制神经网络(BNN)在一定程度上以极大的压缩和加速增益来解决这个问题。我们提出了一种简单但有效的方法来加速推理,通过统一BNN与早期退出策略。我们的方法允许简单的实例根据决策阈值提前退出,并利用添加到不同中间层的输出层来避免执行整个二进制模型。我们在三个音频分类任务和四个BNN架构上广泛评估了我们的方法。我们的方法表现出良好的质量效率的权衡,同时与系统用户指定的基于熵的阈值可控。它还可以通过基于现有BNN架构的单个模型实现更好的加速(延迟小于6 ms),而无需针对不同的效率水平进行重新训练。它还提供了一种简单的方法来估计样本难度,并更好地理解数据集中某些类别的不确定性。

英文摘要:

Deep neural networks have significantly improved performance on a range of tasks with the increasing demand for computational resources, leaving deployment on low-resource devices (with limited memory and battery power) infeasible. Binary neural networks (BNNs) tackle the issue to an extent with extreme compression and speed-up gains compared to real-valued models. We propose a simple but effective method to accelerate inference through unifying BNNs with an early-exiting strategy. Our approach allows simple instances to exit early based on a decision threshold and utilizes output layers added to different intermediate layers to avoid executing the entire binary model. We extensively evaluate our method on three audio classification tasks and across four BNNs architectures. Our method demonstrates favorable quality-efficiency trade-offs while being controllable with an entropy-based threshold specified by the system user. It also results in better speed-ups (latency less than 6ms) with a single model based on existing BNN architectures without retraining for different efficiency levels. It also provides a straightforward way to estimate sample difficulty and better understanding of uncertainty around certain classes within the dataset.

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

↑