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

跑,不要走:追求更高 FLOPS 以实现更快的神经网络

Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks

HKUST(香港科技大学);Rutgers University(罗格斯大学);Texas State University(德克萨斯州立大学)

Jierun Chen, Shiu-hong Kao, Hao He, Weipeng Zhuo, Song Wen, Chul-Ho Lee, S. -H. Gary Chan

AI总结:

针对减少FLOPs未必降低延迟的问题,提出部分卷积PConv以减少内存访问和冗余计算,构建FasterNet网络,在多种设备上实现更高速度且保持高精度。

摘要:

为了设计快速的神经网络,许多工作一直致力于减少浮点运算数(FLOPs)。然而,我们观察到,FLOPs 的减少并不一定会导致延迟的同等程度降低。这主要源于低效的每秒浮点运算次数(FLOPS)。为了实现更快的网络,我们重新审视了流行的算子,并证明这种低 FLOPS 主要是由于算子频繁的内存访问造成的,尤其是深度卷积。因此,我们提出了一种新颖的部分卷积(PConv),它通过同时减少冗余计算和内存访问,更高效地提取空间特征。基于我们的 PConv,我们进一步提出了 FasterNet,一种新的神经网络家族,它在广泛的设备上实现了比其他网络高得多的运行速度,同时在各种视觉任务上不妥协准确性。例如,在 ImageNet-1k 上,我们微小的 FasterNet-T0 在 GPU、CPU 和 ARM 处理器上分别比 MobileViT-XXS 快 2.8 倍、3.3 倍和 2.4 倍,同时准确率高出 2.9%。我们大型的 FasterNet-L 实现了令人印象深刻的 83.5% 的 top-1 准确率,与新兴的 Swin-B 相当,同时在 GPU 上推理吞吐量高出 36%,并在 CPU 上节省 37% 的计算时间。代码可在 https://github.com/JierunChen/FasterNet 获取。

英文摘要:

To design fast neural networks, many works have been focusing on reducing the number of floating-point operations (FLOPs). We observe that such reduction in FLOPs, however, does not necessarily lead to a similar level of reduction in latency. This mainly stems from inefficiently low floating-point operations per second (FLOPS). To achieve faster networks, we revisit popular operators and demonstrate that such low FLOPS is mainly due to frequent memory access of the operators, especially the depthwise convolution. We hence propose a novel partial convolution (PConv) that extracts spatial features more efficiently, by cutting down redundant computation and memory access simultaneously. Building upon our PConv, we further propose FasterNet, a new family of neural networks, which attains substantially higher running speed than others on a wide range of devices, without compromising on accuracy for various vision tasks. For example, on ImageNet-1k, our tiny FasterNet-T0 is $2.8\times$, $3.3\times$, and $2.4\times$ faster than MobileViT-XXS on GPU, CPU, and ARM processors, respectively, while being $2.9\%$ more accurate. Our large FasterNet-L achieves impressive $83.5\%$ top-1 accuracy, on par with the emerging Swin-B, while having $36\%$ higher inference throughput on GPU, as well as saving $37\%$ compute time on CPU. Code is available at \url{https://github.com/JierunChen/FasterNet}.

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

↑