SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.16898 · NeurIPS · 2023

MCUFormer: Deploying Vision Transformers on Microcontrollers with Limited Memory

Jiwen Lu, Jie Zhou, Ziwei Wang, Yansong Tang, Yinan Liang, Xiuwei Xu

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.16898.json · badge: /api/ran/2310.16898.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
liangyn22/MCUFormer canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
liangyn22/mcuformer community
Papers with Code archive
9 ran · 4 no recorded run
FunctionStatusWhere it lives
LinearSuper Ran
ran on a synthesized input · constructed an object; no result was computed
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("46ae2d4f3fc0bdd6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PatchembedSuper Ran
ran on a synthesized input · constructed an object; no result was computed
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("a137a6efb264aa07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

RelativePosition2D_super Ran
ran on a synthesized input · constructed an object; no result was computed
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("701ac4868b3a9368")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_ntuple Ran
ran; our contract draft was wrong, not the code
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("e2c1a7dffcdbe918")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calc_dropout Ran
ran, honoured the contract we drafted
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("72a860a9aff50105")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

decode_cand_tuple Ran
ran; our contract draft was wrong, not the code
liangyn22/MCUFormer/evolution.py
pointer only (licence: NONE) · get_code("b328ce4411979624")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/MCUFormer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gelu Ran
ran, honoured the contract we drafted
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("08a5be1ffa0676e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

qkv_super Ran
ran on a synthesized input · constructed an object; no result was computed
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("c356588a20cf831d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_bias Ran
ran; our contract draft was wrong, not the code
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("963bc33b77cf8148")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_weight Ran
ran; our contract draft was wrong, not the code
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("1d3488a4b38ea75d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AttentionSuper Not yet run
unverified (harvested, no recorded run)
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("765f54d24658a76a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

LayerNormSuper Not yet run
unverified (harvested, no recorded run)
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("e4f3e6207e219ef8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TransformerEncoderLayer Not yet run
unverified (harvested, no recorded run)
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("a115d422c7fbcbe2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Vision_TransformerSuper Not yet run
unverified (harvested, no recorded run)
liangyn22/mcuformer/model/supernet_transformer.py
pointer only (licence: NONE) · get_code("09a88c3ccde67487")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangyn22/mcuformer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 0 the same month, 6 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
_ntuple
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 3 only as an assembly brick
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2308.03322 (2023-08)
Part-Aware Transformer for Generalizable Person Re-identification
2405.19775 (2024-05)
Puff-Net: Efficient Style Transfer with Pure Content and Style Feature Fusion Network
and 1 more not named here
calc_dropout
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2206.04673 (2022-06)
Neural Prompt Search
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2312.09059 (2023-12)
Auto-Prox: Training-Free Vision Transformer Architecture Search via Automatic Proxy Discovery
and 1 more not named here
gelu
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2206.04673 (2022-06)
Neural Prompt Search
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2312.09059 (2023-12)
Auto-Prox: Training-Free Vision Transformer Architecture Search via Automatic Proxy Discovery
and 1 more not named here
sample_bias
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 2 only as an assembly brick
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2312.09059 (2023-12)
Auto-Prox: Training-Free Vision Transformer Architecture Search via Automatic Proxy Discovery
and 1 more not named here
sample_weight
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later · 2 only as an assembly brick
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2312.09059 (2023-12)
Auto-Prox: Training-Free Vision Transformer Architecture Search via Automatic Proxy Discovery
and 1 more not named here
LinearSuper
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
decode_cand_tuple 2 other papers
1 dated earlier, 1 later
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
2501.03782 (2025-01)
Vision Transformer Neural Architecture Search for Out-of-Distribution Generalization: Benchmark and Insights
LayerNormSuper
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
RelativePosition2D_super
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search
qkv_super
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2304.14636 (2023-04)
PreNAS: Preferred One-Shot Learning Towards Efficient Neural Architecture Search

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.16898")
get_code_for_paper("2310.16898")
have("2310.16898")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.16898.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.16898.svg)](https://syntology.ai/paper/2310.16898)

Connect an agent — have() is free.