arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.09791cs.LGcs.CVcs.DCstat.ML
收藏

在边缘设备上优化分组卷积

Optimizing Grouped Convolutions on Edge Devices

University of Glasgow(格拉斯哥大学);University of Edinburgh(爱丁堡大学)

Perry Gibson, José Cano, Jack Turner, Elliot J. Crowley, Michael O'Boyle, Amos Storkey

摘要:

当在受限硬件上部署深度神经网络时,可以用分组卷积代替网络的标准卷积。这允许以最小的准确性损失大量节省内存。然而,现代深度学习框架中分组卷积的当前实现在速度方面远未达到最佳性能。在本文中,我们提出了分组空间包卷积(GSPC),这是一种新的分组卷积实现,其性能优于现有的解决方案。我们在TVM中实现GSPC,在边缘设备上提供最先进的性能。我们分析了一组利用不同类型的分组卷积的网络,并在几个边缘设备上的推理时间方面评估了它们的性能。我们观察到,我们的新实现可以很好地扩展组的数量,并在所有设置中提供最佳的推理时间,将TVM,PyTorch和TensorFlow Lite中分组卷积的现有实现平均分别提高了3.4倍,8倍和4倍。代码可在https://github.com/gecLAB/tvm-GSPC/上获得

英文摘要:

When deploying a deep neural network on constrained hardware, it is possible to replace the network's standard convolutions with grouped convolutions. This allows for substantial memory savings with minimal loss of accuracy. However, current implementations of grouped convolutions in modern deep learning frameworks are far from performing optimally in terms of speed. In this paper we propose Grouped Spatial Pack Convolutions (GSPC), a new implementation of grouped convolutions that outperforms existing solutions. We implement GSPC in TVM, which provides state-of-the-art performance on edge devices. We analyze a set of networks utilizing different types of grouped convolutions and evaluate their performance in terms of inference time on several edge devices. We observe that our new implementation scales well with the number of groups and provides the best inference times in all settings, improving the existing implementations of grouped convolutions in TVM, PyTorch and TensorFlow Lite by 3.4x, 8x and 4x on average respectively. Code is available at https://github.com/gecLAB/tvm-GSPC/

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

↑