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

时延感知的空间动态网络

Latency-aware Spatial-wise Dynamic Networks

Tsinghua University(清华大学);Peking University(北京大学)

Yizeng Han, Zhihang Yuan, Yifan Pu, Chenhao Xue, Shiji Song, Guangyu Sun, Gao Huang

摘要:

空间动态卷积已经成为提高深度网络推理效率的一种很有前途的方法。通过将更多的计算分配给信息量最大的像素,这种自适应推理范式减少了图像特征中的空间冗余,并节省了大量不必要的计算。然而,以前的方法所实现的理论效率很难转化为现实的加速比,特别是在多核处理器(例如GPU)上。关键的挑战是,现有的文献只专注于设计具有最小计算量的算法,忽略了实际延迟也会受到调度策略和硬件属性的影响。为了弥合理论计算和实际效率之间的差距,我们提出了一个延迟感知的空间动态网络(LASNet),它执行粗粒度的空间自适应推理的指导下,一种新的延迟预测模型。延迟预测模型可以有效地估计推理延迟的动态网络,同时考虑算法,调度策略和硬件属性。我们使用延迟预测器来指导各种硬件平台上的算法设计和调度优化。图像分类、目标检测和实例分割实验表明,该框架显著提高了深度网络的实际推理效率。例如,ImageNet验证集上ResNet-101的平均延迟可以在服务器GPU(Nvidia Tesla-V100)和边缘设备(Nvidia Jetson TX 2 GPU)上分别减少36%和46%,而不会牺牲准确性。代码可在https://github.com/LeapLabTHU/LASNet上获得。

英文摘要:

Spatial-wise dynamic convolution has become a promising approach to improving the inference efficiency of deep networks. By allocating more computation to the most informative pixels, such an adaptive inference paradigm reduces the spatial redundancy in image features and saves a considerable amount of unnecessary computation. However, the theoretical efficiency achieved by previous methods can hardly translate into a realistic speedup, especially on the multi-core processors (e.g. GPUs). The key challenge is that the existing literature has only focused on designing algorithms with minimal computation, ignoring the fact that the practical latency can also be influenced by scheduling strategies and hardware properties. To bridge the gap between theoretical computation and practical efficiency, we propose a latency-aware spatial-wise dynamic network (LASNet), which performs coarse-grained spatially adaptive inference under the guidance of a novel latency prediction model. The latency prediction model can efficiently estimate the inference latency of dynamic networks by simultaneously considering algorithms, scheduling strategies, and hardware properties. We use the latency predictor to guide both the algorithm design and the scheduling optimization on various hardware platforms. Experiments on image classification, object detection and instance segmentation demonstrate that the proposed framework significantly improves the practical inference efficiency of deep networks. For example, the average latency of a ResNet-101 on the ImageNet validation set could be reduced by 36% and 46% on a server GPU (Nvidia Tesla-V100) and an edge device (Nvidia Jetson TX2 GPU) respectively without sacrificing the accuracy. Code is available at https://github.com/LeapLabTHU/LASNet.

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

↑