MCUFormer: Deploying Vision Transformers on Microcontrollers with Limited Memory
Not on the map. Why?
Abstract (arXiv)
Due to the high price and heavy energy consumption of GPUs, deploying deep models on IoT devices such as microcontrollers makes significant contributions for ecological AI. Conventional methods successfully enable convolutional neural network inference of high resolution images on microcontrollers, while the framework for vision transformers that achieve the state-of-the-art performance in many vision applications still remains unexplored. In this paper, we propose a hardware-algorithm co-optimizations method called MCUFormer to deploy vision transformers on microcontrollers with extremely limited memory, where we jointly design transformer architecture and construct the inference operator library to fit the memory resource constraint. More specifically, we generalize the one-shot network architecture search (NAS) to discover the optimal architecture with highest task performance given the memory budget from the microcontrollers, where we enlarge the existing search space of vision transformers by considering the low-rank decomposition dimensions and patch resolution for memory reduction. For the construction of the inference operator library of vision transformers, we schedule the memory buffer during inference through operator integration, patch embedding decomposition, and token overwriting, allowing the memory buffer to be fully utilized to adapt to the forward pass of the vision transformer. Experimental results demonstrate that our MCUFormer achieves 73.62% top-1 accuracy on ImageNet for image classification with 320KB memory on STM32F746 microcontroller. Code is available at https://github.com/liangyn22/MCUFormer.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 35 of its 45 references that are in the map. First posted on arXiv 25 Oct 2023.
Builds on
35 of 45 references.
References · 35
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2018DARTS: Differentiable Architecture Searchcited by 1,798
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2021Multiscale Vision Transformerscited by 897
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 673
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
23 more
- 2022LM-Nav: Robotic Navigation with Large Pre-Trained Models of Language, Vision, and Actioncited by 439
- 2023Tri-Perspective View for Vision-Based 3D Semantic Occupancy Predictioncited by 409
- 2021Multi-Modal Fusion Transformer for End-to-End Autonomous Drivingcited by 377
- 2023SurroundOcc: Multi-Camera 3D Occupancy Prediction for Autonomous Drivingcited by 316
- 2021Post-Training Quantization for Vision Transformercited by 278
- 2020MCUNet: Tiny Deep Learning on IoT Devicescited by 273
- 2019PC-DARTS: Partial Channel Connections for Memory-Efficient Architecture Searchcited by 265
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 188
- 2021Vision-Only Robot Navigation in a Neural Radiance Worldcited by 155
- 2018CMSIS-NN: Efficient Neural Network Kernels for Arm Cortex-M CPUscited by 121
- 2021MCUNetV2: Memory-Efficient Patch-based Inference for Tiny Deep Learningcited by 89
- 2023Embodied Task Planning with Large Language Modelscited by 84
- 2021SeaDronesSee: A Maritime Benchmark for Detecting Humans in Open Watercited by 61
- 2021GLiT: Neural Architecture Search for Global and Local Image Transformercited by 53
- 2021GANav: Efficient Terrain Segmentation for Robot Navigation in Unstructured Outdoor Environmentscited by 51
- 2021VTNet: Visual Transformer Network for Object Goal Navigationcited by 51
- 2021Searching the Search Space of Vision Transformercited by 41
- 2022Shapley-NAS: Discovering Operation Contribution for Neural Architecture Searchcited by 23
- 2020RNNPool: Efficient Non-linear Pooling for RAM Constrained Inferencecited by 21
- 2021PSViT: Better Vision Transformer via Token Pooling and Attention Sharingcited by 21
- 2022SemAffiNet: Semantic-Affine Transformation for Point Cloud Segmentationcited by 11
- 2023Anyview: Generalizable Indoor 3D Object Detection with Variable Framescited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 2; 2026: 2.
9 papers.
- 2024ATP-LLaVA: Adaptive Token Pruning for Large Vision Language Modelscited by 89
- 2024TinyChirp: Bird Song Recognition Using TinyML Models on Low-power Wireless Acoustic Sensorscited by 4
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollerscited by 3
- 2024Transformer-Based Fault-Tolerant Control for Fixed-Wing UAVs Using Knowledge Distillation and In-Context Adaptationcited by 3
- 2025ELASTIC: Efficient Once For All Iterative Search for Object Detection on Microcontrollerscited by 3
- 2023TinyFormer: Efficient Transformer Design and Deployment on Tiny Devicescited by 2
- 2025Designing Object Detection Models for TinyML: Foundations, Comparative Analysis, Challenges, and Emerging Solutionscited by 1
- 2026Towards Real-Time ECG and EMG Modeling on μNPUscited by 0
- 2026FTerViT: Fully Ternary Vision Transformercited by 0
- 2026FTerViT: Fully Ternary Vision Transformer20 May 2026
- 2026Towards Real-Time ECG and EMG Modeling on μNPUs20 Apr 2026
- 2025Designing Object Detection Models for TinyML: Foundations, Comparative Analysis, Challenges, and Emerging Solutions11 Aug 2025
- 2025ELASTIC: Efficient Once For All Iterative Search for Object Detection on Microcontrollers27 Mar 2025
- 2024ATP-LLaVA: Adaptive Token Pruning for Large Vision Language Models30 Nov 2024
- 2024Transformer-Based Fault-Tolerant Control for Fixed-Wing UAVs Using Knowledge Distillation and In-Context Adaptation5 Nov 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024TinyChirp: Bird Song Recognition Using TinyML Models on Low-power Wireless Acoustic Sensors31 Jul 2024
- 2023TinyFormer: Efficient Transformer Design and Deployment on Tiny Devices3 Nov 2023