Skip to main navigation Skip to search Skip to main content

TinyGen: Portable and Compact Code Generation for Tiny Machine Learning

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Tiny machine learning (TinyML) enables low-power microcontrollers to leverage the power of artificial intelligence without relying on remote computing resources. Typically, developing a TinyML application relies primarily on existing TinyML frameworks, which provide runtime APIs for loading and executing machine learning models. However, such framework-based TinyML development has limitations in terms of portability, programmability, and resource efficiency, motivating the need for a new approach to the TinyML development and deployment process. To address these challenges, this work introduces TinyGen, a new code generation framework for TinyML. TinyGen generates portable high-level code directly from a target model without depending on external runtime APIs. It statically analyzes the tensor and operator usage of the target model to enable compact code generation. This work demonstrates that TinyGen reduces binary code size by 31.2% on average compared to an existing TinyML framework while requiring fewer lines of code to write TinyML applications.

Original languageEnglish
Title of host publicationCC 2026 - Proceedings of the 35th ACM SIGPLAN International Conference on Compiler Construction
EditorsMartin Kong, Uday Bondhugula, Tobias Grosser
PublisherAssociation for Computing Machinery, Inc
Pages131-142
Number of pages12
ISBN (Electronic)9798400722745
DOIs
Publication statusPublished - 28 Jan 2026
Event35th ACM SIGPLAN International Conference on Compiler Construction, CC 2026 - Sydney, Australia
Duration: 31 Jan 20261 Feb 2026

Publication series

NameCC 2026 - Proceedings of the 35th ACM SIGPLAN International Conference on Compiler Construction

Conference

Conference35th ACM SIGPLAN International Conference on Compiler Construction, CC 2026
Country/TerritoryAustralia
CitySydney
Period31/01/261/02/26

Bibliographical note

Publisher Copyright:
© 2026 Owner/Author.

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth
  2. SDG 12 - Responsible Consumption and Production
    SDG 12 Responsible Consumption and Production

Keywords

  • automatic code generation
  • multi-level intermediate representation
  • systems for machine learning
  • Tiny machine learning

Fingerprint

Dive into the research topics of 'TinyGen: Portable and Compact Code Generation for Tiny Machine Learning'. Together they form a unique fingerprint.

Cite this