RBNN: Memory-Efficient Reconfigurable Deep Binary Neural Network With IP Protection for Internet of Things

Huming Qiu, Hua Ma, Zhi Zhang, Yansong Gao, Yifeng Zheng, Anmin Fu, Pan Zhou, Derek Abbott, Said F. Al-SarawiIEEE TCAD 2021

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$).

The RBNN framework reconfigures the same set of binary weights to perform different tasks based on specific arrangements.

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.

Performance evaluation showing that RBNN maintains high accuracy across up to seven diverse tasks in vision and audio 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

BibTeX
@article{qiu2021rbnn,
  author = {Huming Qiu and Hua Ma and Zhi Zhang and Yansong Gao and Yifeng Zheng and Anmin Fu and Pan Zhou and Derek Abbott and Said F. Al-Sarawi},
  title = {{RBNN: Memory-Efficient Reconfigurable Deep Binary Neural Network With IP Protection for Internet of Things}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2021},
  url = {https://openreview.net/forum?id=9Hvu1kXT-r7},
}
Figure