Lune

NeurIPS2021顶会

Memory-efficient Patch-based Inference for Tiny Deep Learning

Ji Lin, Wei-Ming Chen, Han Cai, Chuang Gan, Song Han

摘要

Tiny deep learning on microcontroller units (MCUs) is challenging due to the limited memory size. We find that the memory bottleneck is due to the imbalanced memory distribution in convolutional neural network (CNN) designs: the first several blocks have an order of magnitude larger memory usage than the rest of the network. To alleviate this issue, we propose a generic patch-by-patch inference scheduling, which operates only on a small spatial region of the feature map and significantly cuts down the peak memory. However, naive implementation brings overlapping patches and computation overhead. We further propose receptive field redistribution to shift the receptive field and FLOPs to the later stage and reduce the computation overhead. Manually redistributing the receptive field is difficult. We automate the process with neural architecture search to jointly optimize the neural architecture and inference scheduling, leading to MCUNetV2. Patch-based inference effectively reduces the peak memory usage of existing networks by 4-8×. Co-designed with neural networks, MCUNetV2 sets a record ImageNet accuracy on MCU (71.8%), and achieves >90% accuracy on the visual wake words dataset under only 32kB SRAM. MCUNetV2 also unblocks object detection on tiny devices, achieving 16.9% higher mAP on Pascal VOC compared to the stateof-the-art result. Our study largely addressed the memory bottleneck in tinyML and paved the way for various vision applications beyond image classification. A video demo can be found here. * some CNN designs have highly complicated branching structure (e.g., NASNet [59]), but they are generally less efficient for inference [37, 47, 6] ; thus not widely used for edge computing.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Re-thinking computation offload for efficient inference on IoT devices with duty-cycled radios 引用了 Searching for MobileNetV3
  • PockEngine: Sparse and Efficient Fine-tuning in a Pocket 引用了 MCUNet: Tiny Deep Learning on IoT Devices
  • MCUNet: Tiny Deep Learning on IoT Devices 引用了 Searching for MobileNetV3
  • MCUNet: Tiny Deep Learning on IoT Devices 引用了 Once-for-All: Train One Network and Specialize it for Efficient Deployment
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Once-for-All: Train One Network and Specialize it for Efficient Deployment 引用了 Searching for MobileNetV3
  • Demand Layering for Real-Time DNN Inference with Minimized Memory Usage 引用了 MCUNet: Tiny Deep Learning on IoT Devices
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. FedImpro: Measuring and Improving Client Update in Federated LearningZhenheng Tang, Yonggang Zhang, Shaohuai Shi, Xinmei Tian 等ICLR 2024 · 25 次引用
  2. Demand Layering for Real-Time DNN Inference with Minimized Memory UsageMingoo Ji, Saehanseul Yi, Changjin Koo, Sol Ahn 等RTSS 2022 · 21 次引用
  3. PockEngine: Sparse and Efficient Fine-tuning in a PocketLigeng Zhu, Lanxiang Hu, Ji Lin, Wei-Ming Chen 等MICRO 2023 · 14 次引用
  4. PROS: an efficient pattern-driven compressive sensing framework for low-power biopotential-based wearables with on-chip intelligenceNhat Pham, Hong Jia, Minh Tran, Tuan Dinh 等MobiCom 2022 · 12 次引用
  5. Re-thinking computation offload for efficient inference on IoT devices with duty-cycled radiosJin Huang, Hui Guan, Deepak GanesanMobiCom 2023 · 11 次引用

它引用的 Paper8

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  3. Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le 等ICCV 2019 · 9,163 次引用
  4. Once-for-All: Train One Network and Specialize it for Efficient DeploymentHan Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang 等ICLR 2020 · 1,522 次引用
  5. MCUNet: Tiny Deep Learning on IoT DevicesJi Lin, Wei-Ming Chen, Yujun Lin, John Cohn 等NeurIPS 2020 · 827 次引用

相关 Paper

  1. msf-CNN: Patch-based Multi-Stage Fusion with Convolutional Neural Networks for TinyMLZhaolan Huang, Emmanuel BaccelliNeurIPS 2025 · 4 次引用
  2. StreamNet: Memory-Efficient Streaming Tiny Deep Learning Inference on the MicrocontrollerHong-Sheng Zheng, Yu-Yuan Liu, Chen-Fong Hsu, Tsung Tai YehNeurIPS 2023 · 17 次引用
  3. TinyTS: Memory-Efficient TinyML Model Compiler Framework on MicrocontrollersYu-Yuan Liu, Hong-Sheng Zheng, Yu Fang Hu, Chen-Fong Hsu 等HPCA 2024 · 10 次引用
  4. AtomNet: Designing Tiny Models from Operators Under Extreme MCU ConstraintsZhiwei Dong, Mingzhu Shen, Shihao Bai, Xiuying Wei 等AAAI 2025
  5. RaScaNet: Learning Tiny Models by Raster-Scanning ImagesJaehyoung Yoo, Dongwook Lee, Changyong Son, Sangil Jung 等CVPR 2021
黄昏的海面,两侧是细线勾勒的悬崖