Tin-Tin: Towards Tiny Learning on Tiny Devices with Integer-based Neural Network Training
Yi Hu, Jinhang Zuo, Eddie Zhang, Bob Iannucci, Carlee Joe-Wong
TL;DR
The paper tackles on-device lifelong learning on resource-constrained MCUs lacking floating-point units by introducing Tin-Tin, an integer-based training framework that replaces FP computations with 8-bit and 32-bit integer arithmetic. It presents a novel dynamic range strategy (integer rescaling and compound exponentiation) along with gradient-aligned weight updates to maintain stability and accuracy without FPUs. The approach is validated on real MCU hardware across motor bearing fault detection and spectrum sensing, and on MNIST, showing substantial energy savings (up to 82%) and memory reductions (up to 40%) with competitive accuracy. The work demonstrates the practicality of energy-efficient, continual learning on edge devices, enabling sustainable ML-enabled sensing and adaptive systems on tiny MCUs.
Abstract
Recent advancements in machine learning (ML) have enabled its deployment on resource-constrained edge devices, fostering innovative applications such as intelligent environmental sensing. However, these devices, particularly microcontrollers (MCUs), face substantial challenges due to limited memory, computing capabilities, and the absence of dedicated floating-point units (FPUs). These constraints hinder the deployment of complex ML models, especially those requiring lifelong learning capabilities. To address these challenges, we propose Tin-Tin, an integer-based on-device training framework designed specifically for low-power MCUs. Tin-Tin introduces novel integer rescaling techniques to efficiently manage dynamic ranges and facilitate efficient weight updates using integer data types. Unlike existing methods optimized for devices with FPUs, GPUs, or FPGAs, Tin-Tin addresses the unique demands of tiny MCUs, prioritizing energy efficiency and optimized memory utilization. We validate the effectiveness of Tin-Tin through end-to-end application examples on real-world tiny devices, demonstrating its potential to support energy-efficient and sustainable ML applications on edge platforms.
