Skip to main content
QUICK REVIEW

[Paper Review] SpArSe: Sparse Architecture Search for CNNs on Resource-Constrained Microcontrollers

Igor Fedorov, Ryan P. Adams|arXiv (Cornell University)|May 28, 2019
Advanced Neural Network ApplicationsComputer Science44 references82 citations
TL;DR

SpArSe combines neural architecture search with pruning to automatically design CNNs that fit memory-constrained microcontrollers while maintaining high accuracy, achieving up to 4.35x smaller models and better accuracy than prior MCU methods.

ABSTRACT

The vast majority of processors in the world are actually microcontroller units (MCUs), which find widespread use performing simple control tasks in applications ranging from automobiles to medical devices and office equipment. The Internet of Things (IoT) promises to inject machine learning into many of these every-day objects via tiny, cheap MCUs. However, these resource-impoverished hardware platforms severely limit the complexity of machine learning models that can be deployed. For example, although convolutional neural networks (CNNs) achieve state-of-the-art results on many visual recognition tasks, CNN inference on MCUs is challenging due to severe finite memory limitations. To circumvent the memory challenge associated with CNNs, various alternatives have been proposed that do fit within the memory budget of an MCU, albeit at the cost of prediction accuracy. This paper challenges the idea that CNNs are not suitable for deployment on MCUs. We demonstrate that it is possible to automatically design CNNs which generalize well, while also being small enough to fit onto memory-limited MCUs. Our Sparse Architecture Search method combines neural architecture search with pruning in a single, unified approach, which learns superior models on four popular IoT datasets. The CNNs we find are more accurate and up to $4.35 imes$ smaller than previous approaches, while meeting the strict MCU working memory constraint.

Motivation & Objective

  • Motivate deploying CNNs on memory-limited MCUs and address their strict RAM/ROM constraints (C1, C2).
  • Develop a unified framework (SpArSe) that searches architectures and prunes weights to meet memory limits.
  • Demonstrate multi-objective optimization to balance validation accuracy, model size, and working memory.
  • Show that pruning together with architecture search yields smaller, more accurate MCU CNNs across multiple datasets.

Proposed method

  • Define a multi-objective design space Omega = {alpha, theta, omega, theta} representing architecture, operations, weights, and training/pruning hyperparameters.
  • Formulate objectives: f1 = 1 - ValidationAccuracy, f2 = ModelSize (omega), f3 = max over layers of WorkingMemory(Omega).
  • Use a Pareto frontier approach to identify configurations Omega* that trade off accuracy, size, and memory.
  • Search space includes variable depth/width, convolution types, downsampling, residuals, multi-scale outputs, and training/pruning hyperparameters.
  • Apply pruning via Sparse Variational Dropout (unstructured) and Bayesian Compression (structured) to reduce omega and layer inputs.
  • Employ a three-stage multi-objective Bayesian optimizer (MOBO) with random scalarizations to sample configurations and use network morphism to reuse trained weights across morphs.
  • Leverage pruning as part of the optimization to reveal high-performing subgraphs and accelerate convergence.

Experimental results

Research questions

  • RQ1Can CNNs be designed to meet strict MCU memory constraints (RAM/ROM) while maintaining competitive accuracy?
  • RQ2Does jointly optimizing architecture and weight sparsity via SpArSe outperform pruning or NAS in isolation for MCU deployment?
  • RQ3What are the effects of memory-oriented objectives (ModelSize and WorkingMemory) on resulting architectures and performance?
  • RQ4How does pruning influence the relationship between network edges and nonzero weights in ultra-small CNNs?

Key findings

  • SpArSe discovers CNNs that are more accurate and smaller than previous MCU-specific methods across MNIST, CIFAR10-binary, CUReT-binary, and Chars4k-binary.
  • When optimized for memory footprint, SpArSe yields models that exceed Bonsai in accuracy while using less memory, and can achieve working memory well below 2 KB in some cases.
  • Pruning significantly reduces parameter counts (e.g., up to ~80x fewer parameters) and enables uncovering high-performing subgraphs not evident from edge count alone.
  • Structured pruning and quantization enable memory measurements (MS and WM) to be realistic for MCU deployment; SpArSe-produced models outperform Bonsai on most datasets under WM/ MS constraints.
  • Network morphism and staged search considerably accelerate convergence, with pruning providing substantial gains in search efficiency and final model quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.