Optimizing BFloat16 Deployment of Tiny Transformers on Ultra-Low Power Extreme Edge SoCs
Journal of Low Power Electronics and Applications · 05.02.2025 · 15 (1) · 8
DOI: 10.3390/jlpea15010008 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Low Power Electronics and Applications, online erschienen am 05.02.2025. Verfasst von Alberto Dequino und 3 weiteren Autor:innen. Die Arbeit wurde bisher 14-mal zitiert (Crossref) und nennt 41 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Transformers have emerged as the central backbone architecture for modern generative AI. However, most ML applications targeting low-power, low-cost SoCs (TinyML apps) do not employ Transformers as these models are thought to be challenging to quantize and deploy on small devices. This work proposes a methodology to reduce Transformer dimensions with an extensive pruning search. We exploit the intrinsic redundancy of these models to fit them on resource-constrained devices with a well-controlled accuracy tradeoff. We then propose an optimized library to deploy the reduced models using BFLoat16 with no accuracy loss on Commercial Off-The-Shelf (COTS) RISC-V multi-core micro-controllers, enabling the execution of these models at the extreme edge, without the need for complex and accuracy-critical quantization schemes. Our solution achieves up to 220× speedup with respect to a naïve C port of the Multi-Head Self Attention PyTorch kernel: we reduced MobileBert and TinyViT memory footprint up to ∼94% and ∼57%, respectively, and we deployed a tinyLLAMA SLM on microcontroller, achieving a throughput of 1219 tokens/s with an average power of just 57 mW.
Zitieren
APA
Dequino, A., Bompani, L., Benini, L., & Conti, F. (2025). Optimizing BFloat16 Deployment of Tiny Transformers on Ultra-Low Power Extreme Edge SoCs. Journal of Low Power Electronics and Applications, 15(1), 8. https://doi.org/10.3390/jlpea15010008
Vancouver
Dequino A, Bompani L, Benini L, Conti F. Optimizing BFloat16 Deployment of Tiny Transformers on Ultra-Low Power Extreme Edge SoCs. Journal of Low Power Electronics and Applications. 2025;15(1):8. doi:10.3390/jlpea15010008
BibTeX
@article{Dequino2025,
author = {Dequino, Alberto and Bompani, Luca and Benini, Luca and Conti, Francesco},
title = {Optimizing BFloat16 Deployment of Tiny Transformers on Ultra-Low Power Extreme Edge SoCs},
journal = {Journal of Low Power Electronics and Applications},
year = {2025},
volume = {15},
number = {1},
pages = {8},
doi = {10.3390/jlpea15010008}
}
EUVIMED