Skip to main content
QUICK REVIEW

[论文解读] TinyissimoYOLO: A Quantized, Low-Memory Footprint, TinyML Object Detection Network for Low Power Microcontrollers

Julian Moosmann, Marco Giordano|arXiv (Cornell University)|May 22, 2023
CCD and CMOS Imaging SensorsEngineering被引用 3
一句话总结

TinyissimoYOLO 是一种针对内存小于 0.5 MB 的超低功耗微控制器设计的量化模型,参数量仅为 422k,可在 MAX78000 微控制器上实现高达 180 fps 的实时推理速度和每推理 196 µJ 的低功耗,采用 8 位量化和专用 CNN 加速器,展示了边缘人工智能应用中的高效率与低功耗特性。

ABSTRACT

This paper introduces a highly flexible, quantized, memory-efficient, and ultra-lightweight object detection network, called TinyissimoYOLO. It aims to enable object detection on microcontrollers in the power domain of milliwatts, with less than 0.5MB memory available for storing convolutional neural network (CNN) weights. The proposed quantized network architecture with 422k parameters, enables real-time object detection on embedded microcontrollers, and it has been evaluated to exploit CNN accelerators. In particular, the proposed network has been deployed on the MAX78000 microcontroller achieving high frame-rate of up to 180fps and an ultra-low energy consumption of only 196μJ per inference with an inference efficiency of more than 106 MAC/Cycle. TinyissimoYOLO can be trained for any multi-object detection. However, considering the small network size, adding object detection classes will increase the size and memory consumption of the network, thus object detection with up to 3 classes is demonstrated. Furthermore, the network is trained using quantization-aware training and deployed with 8-bit quantization on different microcontrollers, such as STM32H7A3, STM32L4R9, Apollo4b and on the MAX78000's CNN accelerator. Performance evaluations are presented in this paper.

研究动机与目标

  • 解决在内存限制(<0.5 MB)和毫瓦级功耗预算下的微控制器上部署实时目标检测的挑战。
  • 设计一种高度内存高效的量化神经网络架构,适用于资源受限设备的边缘 AI。
  • 在保持极小模型尺寸和高推理效率的同时,实现最多三类目标的多目标检测。
  • 在包含具备和不具专用 CNN 加速器的多种微控制器平台上评估性能。
  • 优化网络训练与部署,以在严格硬件约束下最大化推理速度、能效和精度。

提出的方法

  • 提出一种基于轻量级 YOLO 的 CNN 架构,采用 3x3 卷积核和单个全连接层,以最小化参数数量。
  • 应用量化感知训练(QAT),随后进行 8 位权重量化,以减少内存占用并加速推理。
  • 将量化后的网络部署在多个微控制器平台上,包括 STM32H7A3、STM32L4R9、Apollo4b 和配备硬件 CNN 加速器的 MAX78000。
  • 使用 88×88×3 尺寸的输入图像,在分辨率与内存效率之间取得平衡,额外消耗约 25 kB 内存。
  • 通过将输入图像限制为每幅图像最多 5–10 个目标,优化训练数据,以提升对小目标的检测性能。
  • 测量并比较所有平台的关键指标:推理延迟、每推理能耗、功耗效率以及推理效率(每周期 MAC 数)。

实验结果

研究问题

  • RQ1高度量化的小规模目标检测网络是否能在重量内存小于 0.5 MB 的微控制器上实现实时推理?
  • RQ2在超低功耗微控制器中,硬件 CNN 加速器的引入如何影响推理速度和能效?
  • RQ3为在保持低模型复杂度的同时最大化 mAP,最优的目标尺寸和数据集限制(如每幅图像最多 5–10 个目标)是什么?
  • RQ4TinyissimoYOLO 在具备和不具专用加速器的不同微控制器架构上的性能表现如何?
  • RQ5在边缘设备上,将 8 位量化应用于极小且轻量的网络时,对检测精度的影响程度如何?

主要发现

  • TinyissimoYOLO 在 MAX78000 微控制器上实现了高达 180 fps 的峰值推理速度,其延迟性能优于其他微控制器超过 65 倍。
  • MAX78000 微控制器的推理效率达到 107 MAC/周期,显著优于无需加速的设备(每 MAC 需要 2–4 个周期)。
  • 在 MAX78000 上,每推理能耗最低,仅为 196 µJ,比第二好的设备 Apollo4b 高出 32 倍的能效。
  • 在 PascalVOC 上训练三类目标(人、椅子、车)时,模型仅消耗 398 kB 内存;在 WiderFace 上进行单类检测时,内存占用为 422 kB。
  • 在 PascalVOC(3 类)上 mAP 达到 58.5%,在 WiderFace 上当训练数据限制为每幅图像 ≤10 个目标时,mAP 最高可达 45%,表现出改进的泛化能力。
  • 尽管模型尺寸极小且内存占用极低,网络在 8 位量化下仍保持高精度,实现了接近当前最先进水平的性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。