Memory-Efficient Neural Network Deployment Methodology for Low-RAM Microcontrollers Using Quantization and Layer-Wise Model Partitioning

This paper introduces a memory-efficient methodology for deploying neural networks (NNs) on low-RAM microcontrollers. The work utilizes a compact multilayer perceptron (MLP) with 50 neurons and 716 trainable parameters, achieving a classification accuracy of 97.22% on the MNIST-10 dataset. The trained MLP is split into separate, fully connected submodels to conserve RAM, each representing a specific layer. The submodels are sequentially executed in the order they appear in the original MLP, with only the active submodel in RAM at any given time, drastically reducing the RAM requirements. These submodels utilize the weights and biases of the pre-trained MLP, eliminating the need for additional training. Following this methodology, the trained model only requires a maximum of 1.3kB of RAM (along with the whole infrastructure) to process one MNIST image. In contrast, initially, the model parameters alone would have a cost 2.8 kB of RAM. The model parameters are integer quantized to save on flash memory and converted to floating-point during runtime with minimal accuracy loss. The RAM based execution also enables low-latency inference, primarily for batch processing tasks, and can be adapted to deploy a wider range of pretrained neural networks on low-RAM microcontrollers. A proofof-concept is demonstrated on an Atmega328p Arduino board with two kB RAM and 32 kB flash memory.

Authors

Institutions

Publication Details

Published
2024-12-13
DOI
https://doi.org/10.1109/punecon63413.2024.10895526
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Memory-Efficient Neural Network Deployment Methodology for Low-RAM Microcontrollers Using Quantization and Layer-Wise Model Partitioning

Vibhutesh Kumar Singh
Neural Networks and Applications
article

Memory-Efficient Neural Network Deployment Methodology for Low-RAM Microcontrollers Using Quantization and Layer-Wise Model Partitioning

Vibhutesh Kumar Singh
article en

Abstract

This paper introduces a memory-efficient methodology for deploying neural networks (NNs) on low-RAM microcontrollers. The work utilizes a compact multilayer perceptron (MLP) with 50 neurons and 716 trainable parameters, achieving a classification accuracy of 97.22% on the MNIST-10 dataset. The trained MLP is split into separate, fully connected submodels to conserve RAM, each representing a specific layer. The submodels are sequentially executed in the order they appear in the original MLP, with only the active submodel in RAM at any given time, drastically reducing the RAM requirements. These submodels utilize the weights and biases of the pre-trained MLP, eliminating the need for additional training. Following this methodology, the trained model only requires a maximum of 1.3kB of RAM (along with the whole infrastructure) to process one MNIST image. In contrast, initially, the model parameters alone would have a cost 2.8 kB of RAM. The model parameters are integer quantized to save on flash memory and converted to floating-point during runtime with minimal accuracy loss. The RAM based execution also enables low-latency inference, primarily for batch processing tasks, and can be adapted to deploy a wider range of pretrained neural networks on low-RAM microcontrollers. A proofof-concept is demonstrated on an Atmega328p Arduino board with two kB RAM and 32 kB flash memory.

Technological University Dublin (IE), South East Technological University (IE)
Affordable and clean energy
Openalex Percentile: Top 75%
Neural Networks and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.