NPU-Accelerated Imitation Learning for Thermal Optimization of QoS-Constrained Heterogeneous Multi-Cores

Martin Rapp, Heba Khdr, Nikita Krohmer, Jörg HenkelACM Trans. Design Autom. Electr. Syst 2022 · DOI

Abstract

Application migration and dynamic voltage and frequency scaling (DVFS) are indispensable means for fully exploiting the available potential in thermal optimization of a heterogeneous clustered multi-core processor under user-defined quality of service (QoS) targets. However, selecting the core to execute each application and the voltage/frequency (V/f) levels of each cluster is a complex problem because 1) the diverse characteristics and QoS targets of applications require different optimizations, and 2) per-cluster DVFS requires a global optimization considering all running applications. State-of-the-art resource management techniques for power or temperature minimization either rely on measurements that are often not available (such as power) or fail to consider all the dimensions of the problem. Imitation learning (IL) enables to use the optimality of an oracle policy, yet at low run-time overhead, by training a model from oracle demonstrations. We are the first to employ IL for temperature minimization under QoS targets. We tackle the complexity by training a neural network (NN) and accelerate the NN inference using a neural processing unit (NPU). Our evaluation on a HiKey 970 board shows significant temperature reductions at a negligible run-time overhead.

The Challenge of Heterogeneous Management

Modern mobile and embedded devices often utilize heterogeneous architectures, such as the ARM big.LITTLE system, which pairs high-performance "big" cores with energy-efficient "LITTLE" cores. Managing these chips requires a delicate balance: minimizing on-chip temperature to prevent hardware aging and user discomfort while ensuring applications meet strict Quality of Service (QoS) targets, typically measured in instructions per second (IPS).

This management is difficult due to:

  • Application Diversity: Different tasks respond uniquely to core types and frequency scaling.
  • Global DVFS Constraints: Most chips use per-cluster DVFS, where all cores in a cluster share the same voltage and frequency. A decision for one application inevitably impacts all others in that cluster.
  • Overhead: Sophisticated AI-based managers often consume significant CPU cycles, potentially negating the thermal benefits they provide.

Methodology: TOP-IL

The proposed framework, TOP-IL (Thermal Optimization Policy via Imitation Learning), shifts the computational burden from runtime to design time.

Imitation Learning (IL)

Unlike Reinforcement Learning (RL), which can be unstable due to runtime trial-and-error, TOP-IL uses Imitation Learning. The process begins by creating an "oracle" policy through exhaustive searching of optimal core mappings and frequencies for various benchmarks. A deep neural network is then trained to mimic this optimal behavior.

Overview of the training data generation process for the Imitation Learning model.

NPU Acceleration

A key innovation is the use of the on-chip Neural Processing Unit (NPU) for management logic. While NPUs are usually reserved for user-facing AI tasks, TOP-IL leverages the HiKey 970's NPU to run its neural network. This allows for parallel inference—determining the best mapping for all active applications simultaneously—without competing for CPU resources.

Key Insights: The "Big Core" Paradox

A significant finding is that "LITTLE" cores are not always the thermally optimal choice. If an application struggles to meet its QoS on a LITTLE core, it may require a very high voltage/frequency, generating more heat than if it were running efficiently at a lower frequency on a "big" core.

Thermal behavior of applications on big.LITTLE cores under different scenarios, demonstrating that big cores can sometimes be cooler than LITTLE cores.

As shown in Scenario 1 of the figure above, the application adi actually runs cooler on a "big" core (45.7°C) than on a "LITTLE" core (48.1°C) when meeting the same performance target.

Evaluation and Results

TOP-IL was evaluated using the Polybench and PARSEC benchmark suites on a HiKey 970 board.

  • Thermal Efficiency: TOP-IL reduced average temperatures by up to 17°C compared to the standard Linux GTS/ondemand governor.
  • QoS Stability: The system achieved 63% to 89% fewer QoS violations than state-of-the-art RL approaches.
  • Low Overhead: Total runtime overhead was less than 1.7% of a single core's capacity.
  • Robustness: The model generalized effectively to unseen applications and maintained performance even when switching from active (fan) to passive cooling.

Conclusion

TOP-IL demonstrates that NPU-accelerated Imitation Learning is a powerful tool for system-level resource management. By treating the NPU as a system co-processor, researchers can implement complex, optimal policies that keep modern heterogeneous chips cool and performant with minimal overhead.

Summary updated

BibTeX
@article{rapp2022npu,
  author = {Martin Rapp and Heba Khdr and Nikita Krohmer and Jörg Henkel},
  title = {{NPU-Accelerated Imitation Learning for Thermal Optimization of QoS-Constrained Heterogeneous Multi-Cores}},
  journal = {ACM Trans. Design Autom. Electr. Syst.},
  year = {2022},
  doi = {10.1145/3626320},
}
Figure