Abstract
Though deep neural network models exhibit outstanding performance for various applications, their large model size and extensive floating-point operations render deployment on mobile computing platforms a major challenge, and, in particular, on Internet of Things devices. One appealing solution is model quantization that reduces the model size and uses integer operations commonly supported by microcontrollers. To this end, a 1-bit quantized DNN model or deep binary neural network maximizes the memory efficiency, where each parameter in a BNN model has only 1-bit. In this paper, we propose a reconfigurable BNN (RBNN) to further amplify the memory efficiency for resource-constrained IoT devices. Generally, the RBNN can be reconfigured on demand to achieve any one of M (M>1) distinct tasks with the same parameter set, thus only a single task determines the memory requirements. In other words, the memory utilization is improved by times M. Our extensive experiments corroborate that up to seven commonly used tasks can co-exist. These tasks with a varying number of classes have no or negligible accuracy drop-off on three binarized popular DNN architectures including VGG, ResNet, and ReActNet. To protect the intellectual property of an RBNN model, the reconfiguration can be controlled by both a user key and a device-unique root key generated by the intrinsic hardware fingerprint.
Introduction
Deploying Deep Neural Networks (DNNs) on Internet of Things (IoT) devices is a balancing act between three major hurdles: memory constraints, computational costs, and Intellectual Property (IP) theft. Standard models often require hundreds of megabytes, while many microcontrollers have less than 10MB of on-chip memory. While Binary Neural Networks (BNNs) reduce model size by ~30x, they typically only perform one task. If an IoT device requires multiple functionalities, storing separate models quickly exhausts available memory. RBNN addresses this by allowing a single 1-bit model to perform multiple distinct tasks by reshuffling its parameters.
Methodology: Reconfiguration and Security
The core innovation of RBNN is Parameter Permutation. Instead of training different layers for different tasks, RBNN uses the exact same set of binary weights for every task. To switch between tasks (e.g., from image classification to audio keyword spotting), the model reorders its weights based on a specific key ($k_m$).
To prevent "catastrophic forgetting," an interleaved training strategy is used, optimizing a joint loss function across different datasets. Furthermore, the reconfiguration key is cryptographically bound to the hardware using a Physical Unclonable Function (PUF). This "silicon fingerprint" ensures the model only functions on authorized devices with the correct user key, protecting the developer's IP.
Experimental Evaluation
The researchers evaluated RBNN across three architectures (VGG, ResNet, and ReActNet) using seven diverse datasets spanning vision (MNIST, Fashion-MNIST, SVHN, CIFAR-10/100, CelebA) and audio (Speech Command) domains.
Key Results
- Memory Efficiency: RBNN achieves a memory utilization improvement by a factor of $M$. For a 7-task model, this is effectively a 7x reduction in memory footprint compared to storing seven separate BNNs. A binarized VGG model in this framework takes up only 1.74 MiB, compared to 53.56 MiB for its float32 counterpart.
- Accuracy Preservation: Across most tests, the accuracy drop for an RBNN task compared to a standalone BNN was less than 1%. Even with challenging datasets like CIFAR-100, the model remained performant.
- Cross-Domain Versatility: The architecture successfully integrated six image tasks and one audio task into a single model, demonstrating robustness for multi-modal IoT applications.
Conclusion
RBNN provides a scalable solution for multi-tasking on resource-constrained edge devices. By combining the extreme compression of BNNs with a novel reconfiguration mechanism and hardware-locked security, it enables sophisticated AI applications on low-power microcontrollers. Future work will focus on reducing reconfiguration latency and benchmarking end-to-end power consumption on dedicated hardware like FPGAs.
Summary updated