msf-CNN: Patch-based Multi-Stage Fusion with Convolutional Neural Networks for TinyML

Zhaolan Huang, Emmanuel Baccelli
5/16/2025
cs.LGcs.PF

No official code found. Best implementation: TinyPART/msf-CNN (31 stars, last commit 2025-05-26).

Abstract

AI spans from large language models to tiny models running on microcontrollers (MCUs). Extremely memory-efficient model architectures are decisive to fit within an MCU's tiny memory budget e.g., 128kB of RAM. However, inference latency must remain small to fit real-time constraints. An approach to tackle this is patch-based fusion, which aims to optimize data flows across neural network layers. In this paper, we introduce msf-CNN, a novel technique that efficiently finds optimal fusion settings for convolutional neural networks (CNNs) by walking through the fusion solution space represented as a directed acyclic graph. Compared to previous work on CNN fusion for MCUs, msf-CNN identifies a wider set of solutions. We published an implementation of msf-CNN running on various microcontrollers (ARM Cortex-M, RISC-V, ESP32). We show that msf-CNN can achieve inference using 50% less RAM compared to the prior art (MCUNetV2 and StreamNet). We thus demonstrate how msf-CNN offers additional flexibility for system designers.

View on arXivView PDF

Code Implementations(1)

TinyPART/msf-CNNCommunity100%
312C, PythonJan 28, 20251 years ago

Similar Papers

Cite this paper

@article{huang2025msfcnn,
  title  = {msf-CNN: Patch-based Multi-Stage Fusion with Convolutional Neural Networks for TinyML},
  author = {Zhaolan Huang and Emmanuel Baccelli},
  year   = {2025},
  eprint = {2505.11483},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.11483v3},
  journal = {NEURIPS 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.11483.svg)](https://codeofpaper.com/paper/2505.11483)

Discussion