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

DepthShrinker:一种提升紧凑神经网络真实硬件效率的新压缩范式

DepthShrinker: A New Compression Paradigm Towards Boosting Real-Hardware Efficiency of Compact Neural Networks

Rice University(莱斯大学);Meta Inc(元公司)

Yonggan Fu, Haichuan Yang, Jiayi Yuan, Meng Li, Cheng Wan, Raghuraman Krishnamoorthi, Vikas Chandra, Yingyan Celine Lin

AI总结:

本文提出DepthShrinker框架,通过训练后移除激活函数并将不规则紧凑算子收缩为密集算子,在保持精度的同时显著提升紧凑DNN的真实硬件效率与吞吐量。

摘要:

配备紧凑算子(例如深度卷积)的高效深度神经网络(DNN)模型,已在降低DNN理论复杂度(例如权重/操作总数)的同时保持良好模型精度方面展现出巨大潜力。然而,现有高效DNN在兑现其提升真实硬件效率的承诺方面仍受到限制,原因在于它们普遍采用的紧凑算子硬件利用率较低。在本工作中,我们开辟了一种开发真实硬件高效DNN的新压缩范式,可在保持模型精度的同时提升硬件效率。有趣的是,我们观察到,尽管某些DNN层的激活函数有助于DNN的训练优化和可达到的精度,但它们可以在训练后被适当移除,而不会损害模型精度。受此观察启发,我们提出了一个名为DepthShrinker的框架,该框架通过将现有高效DNN中具有不规则计算模式的基本构建块收缩为密集构建块,来开发硬件友好的紧凑网络,从而大幅提高硬件利用率及真实硬件效率。令人振奋的是,我们的DepthShrinker框架提供的硬件友好紧凑网络优于最先进的高效DNN和压缩技术,例如,与SOTA的逐通道剪枝方法MetaPruning相比,在Tesla V100上精度高3.06%,吞吐量为其1.53倍。我们的代码可在https://github.com/facebookresearch/DepthShrinker获取。

英文摘要:

Efficient deep neural network (DNN) models equipped with compact operators (e.g., depthwise convolutions) have shown great potential in reducing DNNs' theoretical complexity (e.g., the total number of weights/operations) while maintaining a decent model accuracy. However, existing efficient DNNs are still limited in fulfilling their promise in boosting real-hardware efficiency, due to their commonly adopted compact operators' low hardware utilization. In this work, we open up a new compression paradigm for developing real-hardware efficient DNNs, leading to boosted hardware efficiency while maintaining model accuracy. Interestingly, we observe that while some DNN layers' activation functions help DNNs' training optimization and achievable accuracy, they can be properly removed after training without compromising the model accuracy. Inspired by this observation, we propose a framework dubbed DepthShrinker, which develops hardware-friendly compact networks via shrinking the basic building blocks of existing efficient DNNs that feature irregular computation patterns into dense ones with much improved hardware utilization and thus real-hardware efficiency. Excitingly, our DepthShrinker framework delivers hardware-friendly compact networks that outperform both state-of-the-art efficient DNNs and compression techniques, e.g., a 3.06% higher accuracy and 1.53$\times$ throughput on Tesla V100 over SOTA channel-wise pruning method MetaPruning. Our codes are available at: https://github.com/facebookresearch/DepthShrinker.

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

↑