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

为端侧视觉任务设计极致内存高效的CNN

Designing Extremely Memory-Efficient CNNs for On-device Vision Tasks

Ulsan National Institue of Science and Technology (UNIST)(蔚山科学技术院)

Jaewook Lee, Yoel Park, Seulki Lee

AI总结:

本文提出三项CNN设计原则(输入分割、补丁隧道、瓶颈重排),使低端设备仅需63KB内存即可执行视觉任务,在ImageNet上实现61.58%准确率,内存占用远低于现有网络。

摘要:

本文提出了一种内存高效的CNN(卷积神经网络),使资源受限的低端嵌入式和IoT设备能够使用极低内存(即在ImageNet分类上仅需63 KB)执行图像分类和目标检测等端侧视觉任务。基于MobileNet的bottleneck block,我们提出了三项设计原则,显著减少了CNN的峰值内存使用,使其能够适应低端设备有限的KB级内存。首先,“input segmentation”将输入图像划分为多个patch,包括与其他patch重叠的中心patch,从而减小大输入图像的尺寸(及内存需求)。其次,“patch tunneling”为每个patch构建独立的隧道状路径,每条路径由多个bottleneck block组成,从输入patch贯穿至网络最后一层,在全网络维持轻量级内存使用。最后,“bottleneck reordering”重新排列bottleneck block内卷积操作的执行顺序,使内存使用量保持恒定,不受卷积输出通道尺寸的影响。实验结果表明,所提网络以极低内存(即63 KB)对ImageNet进行分类,同时实现了有竞争力的top-1准确率(即61.58%)。据我们所知,所提网络的内存使用远小于最先进的内存高效网络,分别比MobileNet(即5.6 MB)和MCUNet(即196 KB)小达89倍和3.1倍。

英文摘要:

In this paper, we introduce a memory-efficient CNN (convolutional neural network), which enables resource-constrained low-end embedded and IoT devices to perform on-device vision tasks, such as image classification and object detection, using extremely low memory, i.e., only 63 KB on ImageNet classification. Based on the bottleneck block of MobileNet, we propose three design principles that significantly curtail the peak memory usage of a CNN so that it can fit the limited KB memory of the low-end device. First, 'input segmentation' divides an input image into a set of patches, including the central patch overlapped with the others, reducing the size (and memory requirement) of a large input image. Second, 'patch tunneling' builds independent tunnel-like paths consisting of multiple bottleneck blocks per patch, penetrating through the entire model from an input patch to the last layer of the network, maintaining lightweight memory usage throughout the whole network. Lastly, 'bottleneck reordering' rearranges the execution order of convolution operations inside the bottleneck block such that the memory usage remains constant regardless of the size of the convolution output channels. The experiment result shows that the proposed network classifies ImageNet with extremely low memory (i.e., 63 KB) while achieving competitive top-1 accuracy (i.e., 61.58\%). To the best of our knowledge, the memory usage of the proposed network is far smaller than state-of-the-art memory-efficient networks, i.e., up to 89x and 3.1x smaller than MobileNet (i.e., 5.6 MB) and MCUNet (i.e., 196 KB), respectively.

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

↑