通过廉价的操作在异构设备上实现GhostNets
GhostNets on Heterogeneous Devices via Cheap Operations
摘要:
由于有限的存储器和计算资源,在移动设备上部署卷积神经网络(CNN)是困难的。我们的目标是设计高效的神经网络异构设备,包括CPU和GPU,利用特征图中的冗余,这在神经架构设计很少被调查。对于类似CPU的设备,我们提出了一种新的CPU高效的幽灵(C-Ghost)模块,以生成更多的特征图从廉价的操作。基于一组内在特征图,我们应用一系列的线性变换,以低廉的成本,产生许多鬼特征图,可以充分揭示信息的内在特征。所提出的C-Ghost模块可以作为一个即插即用的组件来升级现有的卷积神经网络。C-Ghost的瓶颈是为了堆叠C-Ghost模块,然后可以很容易地建立轻量级的C-GhostNet。我们进一步考虑GPU设备的高效网络。在不涉及太多GPU低效操作的情况下(例如,深度卷积),我们建议利用阶段特征冗余来制定GPU高效的Ghost(G-Ghost)阶段结构。一个阶段中的特征被分成两个部分,其中第一部分使用具有较少输出通道的原始块进行处理以生成内在特征,另一部分通过利用逐阶段冗余使用廉价操作生成。在基准测试平台上进行的实验验证了C-Ghost模块和G-Ghost级的有效性。C-GhostNet和G-GhostNet可以分别为CPU和GPU实现准确性和延迟的最佳权衡。代码可在https://github.com/huawei-noah/CV-Backbones上获得。
英文摘要:
Deploying convolutional neural networks (CNNs) on mobile devices is difficult due to the limited memory and computation resources. We aim to design efficient neural networks for heterogeneous devices including CPU and GPU, by exploiting the redundancy in feature maps, which has rarely been investigated in neural architecture design. For CPU-like devices, we propose a novel CPU-efficient Ghost (C-Ghost) module to generate more feature maps from cheap operations. Based on a set of intrinsic feature maps, we apply a series of linear transformations with cheap cost to generate many ghost feature maps that could fully reveal information underlying intrinsic features. The proposed C-Ghost module can be taken as a plug-and-play component to upgrade existing convolutional neural networks. C-Ghost bottlenecks are designed to stack C-Ghost modules, and then the lightweight C-GhostNet can be easily established. We further consider the efficient networks for GPU devices. Without involving too many GPU-inefficient operations (e.g.,, depth-wise convolution) in a building stage, we propose to utilize the stage-wise feature redundancy to formulate GPU-efficient Ghost (G-Ghost) stage structure. The features in a stage are split into two parts where the first part is processed using the original block with fewer output channels for generating intrinsic features, and the other are generated using cheap operations by exploiting stage-wise redundancy. Experiments conducted on benchmarks demonstrate the effectiveness of the proposed C-Ghost module and the G-Ghost stage. C-GhostNet and G-GhostNet can achieve the optimal trade-off of accuracy and latency for CPU and GPU, respectively. Code is available at https://github.com/huawei-noah/CV-Backbones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。