Intermittent Inference with Nonuniformly Compressed Multi-Exit Neural Network for Energy Harvesting Powered Devices

Yawen Wu, Zhepeng Wang, Zhenge Jia, Yiyu Shi, Jingtong Hu

Introduction

The proliferation of Internet of Things (IoT) devices has led to a growing demand for "set-and-forget" sensors that operate without batteries. Energy harvesting (EH) from sources like solar, kinetic, or thermal energy offers a sustainable alternative. However, EH power is often weak and highly unpredictable, posing significant challenges for Deep Neural Network (DNN) inference. Standard DNNs are typically too resource-intensive for the microcontrollers (MCUs) found in these devices. This often results in "indefinite waiting," where an inference task requires multiple power cycles to complete, causing the system to miss transient events.

This paper presents a framework designed to make battery-less AI practical by integrating multi-exit architectures with nonuniform, reinforcement-learning-based compression. By prioritizing the accuracy of early exits and dynamically adapting to real-time energy availability, the proposed system significantly improves the efficiency of intermittent computing.

Methodology: Multi-Exit Architecture and Nonuniform Compression

The core of the proposed approach is a two-phase strategy that balances high-accuracy inference with the constraints of low-power intermittent computing.

Multi-Exit Neural Networks

Unlike traditional sequential DNNs, a multi-exit architecture allows the system to produce results at various depths of the network. This flexibility is crucial for EH-powered devices; if energy levels are low, the system can terminate processing at an "early exit" to provide a "good enough" result rather than failing to complete a full inference.

Overview of event-triggered inference and multi-exit architecture.

Exit-Guided Nonuniform Compression

Standard model compression techniques often treat all layers uniformly. However, in an intermittent environment, shallow layers (early exits) are utilized more frequently when power is scarce. To address this, the authors employ two Reinforcement Learning (RL) agents—one for channel pruning and another for quantization—to compress the network non-uniformly. These agents are "exit-guided," meaning they are rewarded for maintaining high accuracy in the early exits, ensuring that the most energy-efficient paths remain effective.

Runtime Strategy: Adaptive Exit Selection

At runtime, the system must decide which exit to target for a given input. This is handled by a lightweight Q-learning algorithm that considers three primary factors:

  1. Current Energy Level: The amount of stored energy in the device's capacitor.
  2. Charging Rate: The predicted rate of energy harvesting.
  3. Input Difficulty: Measured by the entropy of the early exit results.

If an early exit provides a low-confidence result and sufficient energy is available, the system proceeds to a deeper, more accurate exit. Conversely, if energy is low or the harvesting rate is poor, the system may choose to output the current result immediately, "reserving" energy for potential future events.

Experimental Evaluation

The framework was evaluated using the CIFAR-10 dataset and real-world solar power profiles to simulate an unpredictable energy environment. The backbone architecture was a modified LeNet deployed on a TI MSP432 MCU.

Key Performance Metrics

The primary metric used for evaluation is Interesting Events per milliJoule (IEpmJ). This metric is particularly relevant for intermittent systems as it accounts for both the accuracy of processed events and the penalty for events missed due to energy depletion.

Comparison of Interesting Events per milliJoule (IEpmJ) across different frameworks.

As shown in the results, the proposed approach achieved 0.89 IEpmJ, representing a 3.6x improvement over SonicNet (0.25) and an 18.9x improvement over SpArSeNet. Furthermore, the system reduced per-event latency by 7.8x to 10.2x compared to baselines that often required multiple power cycles to reach a final output.

Conclusion

This research demonstrates that for intermittent, battery-less AI, average accuracy across all events is a more critical metric than peak accuracy on a subset of events. By leveraging multi-exit networks and nonuniform compression, the proposed framework ensures that EH-powered devices remain responsive and accurate even under fluctuating power conditions. Future work will focus on scaling these techniques to more complex architectures and exploring their performance under more erratic energy sources like kinetic or RF harvesting.

Summary updated

Abstract

This work aims to enable persistent, event-driven sensing and decision capabilities for energy-harvesting (EH)-powered devices by deploying lightweight DNNs onto EH-powered devices. However, harvested energy is usually weak and unpredictable and even lightweight DNNs take multiple power cycles to finish one inference. To eliminate the indefinite long wait to accumulate energy for one inference and to optimize the accuracy, we developed a power trace-aware and exit-guided network compression algorithm to compress and deploy multi-exit neural networks to EH-powered microcontrollers (MCUs) and select exits during execution according to available energy. The experimental results show superior accuracy and latency compared with state-of-the-art techniques.
BibTeX
@inproceedings{wu2020intermittent,
  author = {Yawen Wu and Zhepeng Wang and Zhenge Jia and Yiyu Shi and Jingtong Hu},
  title = {{Intermittent Inference with Nonuniformly Compressed Multi-Exit Neural Network for Energy Harvesting Powered Devices}},
  booktitle = {DAC},
  year = {2020},
  url = {https://openreview.net/forum?id=gGLu0igOiJ},
}
Figure