arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1911.07346cs.LGcs.CVstat.ML
收藏

任意精度深度神经网络

Any-Precision Deep Neural Networks

UIUC(伊利诺伊大学厄巴纳-香槟分校);Wormpex AI Research;University of Oregon(俄勒冈大学)

Haichao Yu, Haoxiang Li, Honghui Shi, Thomas S. Huang, Gang Hua

摘要:

我们提出了任何精度的深度神经网络(DNN),它是用一种新的方法训练的,这种方法允许学习的DNN在推理过程中在数值精度上是灵活的。通过截断最低有效位,可以灵活地直接将运行时的相同模型设置为不同的位宽,以支持动态速度和精度权衡。当所有层都设置为低位时,我们表明该模型的精度与以相同精度训练的专用模型相当。这个良好的属性有助于在现实世界的应用程序中灵活部署深度学习模型,在实践中,模型准确性和运行时效率之间的权衡往往是寻求的。以前的文献提出了解决方案,训练模型在每个单独的固定效率/精度权衡点。但是,如何产生一个在运行时精度灵活的模型在很大程度上是未探索的。当效率/准确性权衡的需求随时间变化甚至在运行时动态变化时,相应地重新训练模型是不可行的,并且存储预算可能禁止保持多个模型。我们提出的框架实现了这种灵活性,而不会降低性能。更重要的是,我们证明了这一成就是不可知的模型架构和适用于多个视觉任务。我们的代码发布在https://github.com/SHI-Labs/Any-Precision-DNNs。

英文摘要:

We present any-precision deep neural networks (DNNs), which are trained with a new method that allows the learned DNNs to be flexible in numerical precision during inference. The same model in runtime can be flexibly and directly set to different bit-widths, by truncating the least significant bits, to support dynamic speed and accuracy trade-off. When all layers are set to low-bits, we show that the model achieved accuracy comparable to dedicated models trained at the same precision. This nice property facilitates flexible deployment of deep learning models in real-world applications, where in practice trade-offs between model accuracy and runtime efficiency are often sought. Previous literature presents solutions to train models at each individual fixed efficiency/accuracy trade-off point. But how to produce a model flexible in runtime precision is largely unexplored. When the demand of efficiency/accuracy trade-off varies from time to time or even dynamically changes in runtime, it is infeasible to re-train models accordingly, and the storage budget may forbid keeping multiple models. Our proposed framework achieves this flexibility without performance degradation. More importantly, we demonstrate that this achievement is agnostic to model architectures and applicable to multiple vision tasks. Our code is released at https://github.com/SHI-Labs/Any-Precision-DNNs.

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

↑