Runtime Task Scheduling Using Imitation Learning for Heterogeneous Many-Core Systems

Anish Krishnakumar, Samet E. Arda, A. Alper Goksoy, Sumit K. Mandal, Ümit Y. Ogras, Anderson L. Sartor, Radu MarculescuIEEE TCAD 2020 · DOI

Abstract

Domain-specific systems-on-chip (DSSoCs), a class of heterogeneous many-core systems, are recognized as a key approach to narrow down the performance and energy-efficiency gap between custom hardware accelerators and programmable processors. Reaching the full potential of these architectures depends critically on optimally scheduling applications to available resources at runtime. Existing optimization-based techniques cannot achieve this objective at runtime due to the combinatorial nature of the task scheduling problem. This paper poses scheduling as a classification problem and proposes a hierarchical imitation learning (IL)-based scheduler that learns from an Oracle to maximize the performance of multiple domain-specific applications. Extensive evaluations with six streaming applications from wireless communications and radar domains show that the proposed IL-based scheduler approximates an offline Oracle policy with more than 99% accuracy for performance- and energy-based optimization objectives. Furthermore, it achieves almost identical performance to the Oracle with a low runtime overhead and successfully adapts to new applications, many-core system configurations, and runtime variations in application characteristics.

Introduction: The Scheduling Challenge in Heterogeneous Systems

Modern Domain-Specific Systems-on-Chip (DSSoCs) represent a significant shift in architecture, integrating a diverse array of processing elements (PEs) including general-purpose CPUs (e.g., ARM big.LITTLE) and specialized hardware accelerators (e.g., FFT, Viterbi). While this heterogeneity offers immense potential for performance and energy efficiency, it introduces a complex runtime management problem: task scheduling.

The scheduler must decide in real-time which task from an application’s task graph should be mapped to which PE. This problem is inherently NP-complete. Traditional mathematical optimization techniques, such as Mixed-Integer Programming, can find optimal schedules but require computation times (minutes to hours) that are orders of magnitude too slow for runtime decision-making. Conversely, standard heuristics like "Shortest Job First" or the Linux "Completely Fair Scheduler" (CFS) are fast but lack the hardware-awareness needed to exploit specialized accelerators effectively, leading to significant performance gaps.

Task graph, resource capabilities, and sample schedule illustrating DSSoC scheduling complexity.

As illustrated in Figure 1, tasks have specific dependencies and varying levels of support across different processing clusters. Bridging the gap between optimal offline solvers and fast runtime heuristics is the primary goal of this work.

Methodology: Hierarchical Imitation Learning

The proposed framework redefines scheduling as a classification problem rather than a mathematical optimization. By employing Imitation Learning (IL), the system trains a lightweight model to mimic the behavior of an "Oracle"—an offline expert that generates near-optimal schedules using heavy-duty optimization or high-quality heuristics like Earliest Task First (ETF).

The IL Framework and DAgger

The framework consists of an offline training phase and an online runtime evaluation phase. During the offline phase, a simulator uses platform configurations and task profiling to generate training data from the Oracle. To address the issue of "error propagation"—where small model errors lead to unfamiliar states—the researchers utilized the Dataset Aggregation (DAgger) algorithm. DAgger iteratively runs the model, identifies failure points, queries the Oracle for the correct action in those specific states, and retrains the model.

The overall framework showing offline Oracle generation and IL-policy training using DAgger, followed by online runtime evaluation.

Hierarchical Policy Design

A key innovation is the use of a two-level hierarchical policy. Instead of a single model attempting to map a task directly to a specific PE, the decision is split into two levels:

  1. Cluster Level: The first level selects the appropriate cluster of cores (e.g., the "big" CPU cluster or a specific accelerator group).
  2. PE Level: The second level selects the specific processing element within that cluster.

This hierarchy mirrors the physical layout of modern chips and significantly improves learning efficiency. For complex clusters, this approach boosted classification accuracy from 55% in a flat model to over 93%. The model utilizes 45 features, encompassing both static task data (type, execution time) and dynamic system state (core occupancy, queue lengths).

Experimental Evaluation

The framework was evaluated using six real-world streaming applications from wireless communication and radar domains: WiFi-TX/RX, Range Detection (RangeDet), Single-Carrier TX/RX (SC-TX/RX), and Temporal Mitigation (TempMit). A complex Pulse Doppler radar application involving 449 tasks served as a large-scale case study. Task profiles were derived from actual hardware platforms, including the Odroid-XU3 and Zynq Ultrascale+ ZCU102.

Key Results and Insights

The IL-based scheduler demonstrated remarkable performance across several metrics:

  • Near-Optimal Accuracy: The scheduler approximated the Oracle's policy with over 99% accuracy for both performance and energy objectives.
  • Microsecond-Level Overhead: Scheduling decisions were made in just 1.1µs on an ARM A53 core. Remarkably, this is faster than the default Linux CFS scheduler, which takes approximately 1.2µs.
  • Performance Gap: The resulting schedules were within 9.3% of the mathematically optimal offline schedules.
  • Generalization: The model showed a strong ability to generalize to unseen applications. In "leave-one-out" tests, a model trained on five applications could effectively schedule a sixth, previously unseen application, indicating it learns the underlying logic of the hardware rather than just memorizing patterns.
  • Efficiency vs. RL: Compared to Reinforcement Learning (RL), the IL approach trained 30x faster and exhibited greater stability by learning directly from expert demonstrations.

Conclusion

This research demonstrates that hierarchical imitation learning can effectively solve the complex runtime scheduling problem for heterogeneous many-core systems. By shifting the computational burden to an offline training phase, the IL scheduler provides the intelligence of an optimal solver with the speed required for real-time systems. Future work may involve using this IL model to "bootstrap" Reinforcement Learning, allowing the system to further refine its policy through real-world interaction after an initial fast training phase.

Summary updated

BibTeX
@article{krishnakumar2020runtime,
  author = {Anish Krishnakumar and Samet E. Arda and A. Alper Goksoy and Sumit K. Mandal and Ümit Y. Ogras and Anderson L. Sartor and Radu Marculescu},
  title = {{Runtime Task Scheduling Using Imitation Learning for Heterogeneous Many-Core Systems}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2020},
  doi = {10.1109/tcad.2020.3012861},
}
Figure