PreprintCited by 13IoT and Edge/Fog ComputingAdvanced Neural Network ApplicationsParallel Computing and Optimization Techniques

Enabling Large Neural Networks on Tiny Microcontrollers with Swapping

Open access
Miao, Hongyu, Lin, Felix Xiaozhu·2021·arXiv

Abstract

Running neural networks (NNs) on microcontroller units (MCUs) is becoming increasingly important, but is very difficult due to the tiny SRAM size of MCU. Prior work proposes many algorithm-level techniques to reduce NN memory footprints, but all at the cost of sacrificing accuracy and generality, which disqualifies MCUs for many important use cases. We investigate a system solution for MCUs to execute NNs out of core: dynamically swapping NN data chunks between an MCU's tiny SRAM and its large, low-cost external flash. Out-of-core NNs on MCUs raise multiple concerns: execution slowdown, storage wear out, energy consumption, and data security. We present a study showing that none is a showstopper; the key benefit -- MCUs being able to run large NNs with full accuracy and generality -- triumphs the overheads. Our findings suggest that MCUs can play a much greater role in edge intelligence.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2101.08744

Cites

26 of 26 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • SwapNN adds more energy efficiency to the IoT device by minimizing overall power drop for the microcontroller unit.

    “SwapNN adds more energy efficiency to the IoT device by minimizing overall power drop for the microcontroller unit.”

    From A review on TinyML: State-of-the-art and prospects (2022) · cites this paper as Miao and Lin, 2021

    Section 5.5 (pp. 11–12) says swapping adds energy consumption to an MCU already performing computation. Its measured system energy rose by 42%, from 0.07 Wh to 0.10 Wh, rather than falling. The paper describes this as a modest overhead, not an energy-efficiency gain. (LLM, conf=0.88)

    Checked by a reasoning model — may be wrong.

    Experimental — accuracy not yet measured
  • The microcontroller can use Tile0 to compute the next Tile1 while swapping tiles between on-board memory and external flash.

    “Microcontroller can then use this Tile0 to compute the next Tile1 while swapping the tiles between the on-board memory and the external flash.”

    From A review on TinyML: State-of-the-art and prospects (2022) · cites this paper as Miao and Lin, 2021

    Section 2.2 (p. 4) says the MCU can compute Tile1 while writing the completed Tile0 to external flash, and can preload Tile1’s inputs while computing Tile0. It does not say the MCU uses Tile0 to compute Tile1; it describes them as separate output tiles. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • The SwapNN method hides swapping delays with improved parallelism at minute granular levels.

    “For example, hiding swapping delays with improved parallelism at minute granular levels.”

    From A review on TinyML: State-of-the-art and prospects (2022) · cites this paper as Miao and Lin, 2021

    Section 3 (p. 5) says SwapNN schedules I/O and computation across tiles, layers, and frames in parallel to reduce swapping overhead. But the Introduction (p. 2) says that although small tiles provide finer-grained parallelism, their added I/O costs outweigh that benefit on typical hardware; it does not support fine granularity as the means of hiding delays. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • The benefit of SwapNN is to compute both memory and IO bound layers in parallel for different frames.

    “The benefit of this method is to compute both memory and IO bound layers in parallel for different frames.”

    From A review on TinyML: State-of-the-art and prospects (2022) · cites this paper as Miao and Lin, 2021

    Section 2.2 (p. 4) says SwapNN can execute compute-bound and IO-bound layers for different frames in parallel, giving the example of swapping one frame’s FC layer while computing another frame’s Conv layer. The claim says “memory-bound” rather than “compute-bound”; our copy does not establish that those terms are interchangeable. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Large tile size allows the IO-bound layers to increase delay.

    “Moreover, the large tile size allows the IO-bound layers to increase delay.”

    From A review on TinyML: State-of-the-art and prospects (2022) · cites this paper as Miao and Lin, 2021

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

2 of the 28 references couldn’t be matched to a known paper.

Research works printed but not linked: 9

  1. [16][16] Performance of state-of-the-art cryptography on arm-based microprocessors. https://csrc . nist . gov/csrc/media/events/lightweightcryptography-workshop-2015/documents/presentations/session7vincent . pdf, 2020. -
  2. [21][21] Manoj Alwani, Han Chen, Michael Ferdman, and Peter Milder. Fusedlayer cnn accelerators. In The 49th Annual IEEE/ACM International Symposium on Microarchitecture , page 22. IEEE Press, 2016. -
  3. [28][28] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149 , 2015. - · arXiv
  4. [33][33] Tian Jin and Seokin Hong. Split-cnn: Splitting window-based operations in convolutional neural networks for memory system optimization. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems , pages 835-847, 2019. -
  5. [34][34] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems , pages 1097-1105, 2012. -
  6. [40][40] Haichen Shen, Seungyeop Han, Matthai Philipose, and Arvind Krishnamurthy. Fast video classification via adaptive cascading of deep models. In Proceedings of the IEEE conference on computer vision and pattern recognition , pages 3646-3654, 2017. -
  7. [44][44] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition , pages 1-9, 2015. -
  8. [45][45] Mengwei Xu, Feng Qian, Qiaozhu Mei, Kang Huang, and Xuanzhe Liu. Deeptype: On-device deep learning for input personalization service with minimal privacy concern. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies , 2(4):1-26, 2018. -
  9. [47][47] Haojin Yang, Martin Fritzsche, Christian Bartz, and Christoph Meinel. Bmxnet: An open-source binary neural network implementation based on mxnet. In Proceedings of the 25th ACM international conference on Multimedia , pages 1209-1212. ACM, 2017. -

Cited by

Sorted by citations

Authors
Miao, H., & Lin, F. X.
Affiliations
  • Purdue University West Lafayette (US)
  • University of Virginia (US)
Venue
arXiv
Publisher
arXiv
Published
2021
ISSN
2331-8422 (ISSN-L)
OpenAlex
W3128736549
Cited by
12
References
28
Citations by year
2025: 1 · 2024: 5 · 2023: 3 · 2022: 2 · 2021: 1
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Computer Networks and Communications › IoT and Edge/Fog Computing
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
Keywords
energy consumption, data security, edge AI, large-scale neural networks

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review