Metraipolis › archive › dc_2c7c1fe7561d

te-comp: A Complete MLIR Compiler Generating Self-Contained C Inference Engines for MCUs — arXiv:2611.03710

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.03710
License (as archived)
CC0-1.0
Archived
2026-11-04T19:05:21.971Z
SHA-256 of the archived text
a626878f0654bcd82336c57c85aaa426d2d584d614e904ba42b46314226ed563
Stable URL of this page
https://metraipolis.com/documento/dc_2c7c1fe7561d

How to cite

te-comp: A Complete MLIR Compiler Generating Self-Contained C Inference Engines for MCUs — arXiv:2611.03710 — arXiv (en), https://arxiv.org/abs/2611.03710 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2c7c1fe7561d (Metraipolis archive dc_2c7c1fe7561d, sha256 a626878f0654bcd82336c57c85aaa426d2d584d614e904ba42b46314226ed563)
BibTeX
@misc{dc2c7c1fe7561d,
  title = {te-comp: A Complete MLIR Compiler Generating Self-Contained C Inference Engines for MCUs — arXiv:2611.03710},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.03710},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2c7c1fe7561d; sha256 a626878f0654bcd82336c57c85aaa426d2d584d614e904ba42b46314226ed563},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.03710. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Deploying deep learning on microcontrollers (MCUs) requires fitting both the model weights and runtime activations within tens to hundreds of kilobytes of SRAM and Flash. Existing approaches either use an interpreter with a pre-written kernel library or combine a Python code generator with hand-written C kernels. This incurs dispatch overhead and requires framework dependencies. None produces self-contained, dependency-free C code specialized to a given model. In this paper, we present te-comp, the first complete MLIR-based compiler that takes a standard model in .tflite or .safetensors format and emits all C source files needed for deployment: the inference engine (kernels, weight arrays, memory layout) and the RTOS integration layer with zero runtime dependencies. On 10 MCUNet CNN benchmarks, te-comp outperforms MCUNet TinyEngine by using 38% less SRAM (up to 5.9$\times$) and 15% less Flash, while generating complete C code rather than linking a pre-written kernel library. To demonstrate, we use te-comp to compile an 8.3M-parameter GPT-Neo transformer (TinyStories-v2) and deploy it on a single-core Cortex-M7 at 160MHz. The full firmware uses 249KB of 512KB SRAM and 3.62MB of 4MB Flash and achieves approximately 1 token/s interactive text generation via Q4_0 weight quantization, a stateful int4 KV cache, and vocabulary pruning -- a capability no existing MCU inference framework supports.

Tema degli esploratori: statistica e scienza dei dati (elenco arXiv cs.RO, nuovi lavori del giorno).
Categorie arXiv: Programming Languages (cs.PL) ; Robotics (cs.RO).
Pagina del lavoro: https://arxiv.org/abs/2611.03710 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-04T18:39:52.434Z dalla pagina https://arxiv.org/list/cs.RO/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).