Domain-specific Genetic Algorithm for Multi-tenant DNNAccelerator Scheduling

Sheng-Chun Kao, Tushar Krishna

Abstract

As Deep Learning continues to drive a variety of applications in edge and cloud data centers, there is a growing trend towards building large accelerators with several sub-accelerator cores/chiplets. This work looks at the problem of supporting multi-tenancy on such accelerators. In particular, we focus on the problem of mapping jobs from several DNNs simultaneously on an accelerator. Given the extremely large search space, we formulate the search as an optimization problem and develop an optimization framework called M3E. In addition, we develop a specialized optimization algorithm called MAGMA with custom operators to enable structured sample-efficient exploration. We quantitatively compare MAGMA with several state-of-the-art methods, black-box optimization, and reinforcement learning methods across different accelerator settings (large/small accelerators) and different sub-accelerator configurations (homogeneous/heterogeneous), and observe MAGMA can consistently find better mappings.

Introduction

As AI workloads scale, hardware designers are moving toward "scale-out" architectures—large chips containing many smaller "sub-accelerator" cores, such as chiplets or systolic arrays. To maximize the utilization of these expensive resources, data centers employ multi-tenancy, running multiple neural networks (e.g., vision and language models) simultaneously.

System overview of the multi-tenant batched-job system and the mapping problem.

The core challenge lies in mapping: deciding which job goes to which core and in what order. For a typical setup, the number of possible schedules is approximately $10^{81}$, a search space comparable to the number of atoms in the observable universe. Existing approaches, such as manual heuristics or standard Reinforcement Learning (RL), often struggle with scalability or get trapped in local optima.

The M3E Framework and MAGMA Algorithm

To address this, the authors propose M3E (Multi-workload Multi-accelerator Mapping Explorer), a framework that takes job descriptions and hardware configurations as input and uses a cost model (MAESTRO) to estimate performance. A critical component of M3E is the BW Allocator, which dynamically shifts system bandwidth to the cores that need it most, preventing memory-hungry models from stalling the entire system.

At the heart of M3E is MAGMA, a Genetic Algorithm (GA) customized with "domain-aware" operators. Unlike standard GAs that perform random mutations, MAGMA utilizes three specialized operators to respect the hierarchical structure of scheduling:

  • Crossover-gen: Swaps entire categories of decisions (e.g., core assignments) while preserving others (e.g., job order).
  • Crossover-rg (Range): Swaps specific time-windows of a schedule to preserve local dependencies.
  • Crossover-accel: Passes an entire optimized job sequence for a specific sub-accelerator to the next generation.

Experimental Evaluation and Results

The system was evaluated using a diverse benchmark of modern DNNs (Vision, Language, and Recommendation models) across six hardware configurations (S1-S6) ranging from 4 to 16 cores.

Comparison of MAGMA with Reinforcement Learning and standard population-based methods regarding sample efficiency and optimality.

Key results include:

  • Throughput Gains: MAGMA achieved 1.4x to 2.3x higher throughput than state-of-the-art manual heuristics like Herald and AI-MT.
  • Efficiency: Compared to RL methods like PPO2 and A2C, MAGMA found superior solutions with orders of magnitude fewer samples. In heterogeneous settings, it outperformed standard black-box optimization by 10x to 13x.
  • Exploiting Heterogeneity: The study found that heterogeneous core configurations allow the optimizer to "hide" the weaknesses of one model using the strengths of another, provided the mapping is sufficiently intelligent.

Conclusion

MAGMA demonstrates that domain-specific knowledge is essential for navigating the massive search spaces of multi-tenant accelerator scheduling. While the current framework focuses on batched high-throughput, future work could adapt the fitness functions to address real-time latency constraints and complex model pipelines with internal dependencies.

Summary updated

BibTeX
@inproceedings{kao2021domain,
  author = {Sheng-Chun Kao and Tushar Krishna},
  title = {{Domain-specific Genetic Algorithm for Multi-tenant DNNAccelerator Scheduling}},
  booktitle = {HPCA},
  year = {2021},
  doi = {10.48550/arxiv.2104.13997},
}
Figure