LGARDec 7, 2021

A Transferable Approach for Partitioning Machine Learning Models on Multi-Chip-Modules

arXiv:2112.04041v17 citations
Originality Incremental advance
AI Analysis

This addresses the challenge of efficiently compiling ML models for MCM accelerators, offering incremental improvements in partitioning optimization for hardware designers and compiler developers.

The paper tackles the problem of partitioning machine learning models on Multi-Chip-Modules (MCMs) to optimize performance, using a deep reinforcement learning approach combined with a constraint solver. The result is a 6.11% and 5.85% higher throughput compared to random search and simulated annealing for BERT, with fine-tuning reducing search time from 3 hours to 9 minutes.

Multi-Chip-Modules (MCMs) reduce the design and fabrication cost of machine learning (ML) accelerators while delivering performance and energy efficiency on par with a monolithic large chip. However, ML compilers targeting MCMs need to solve complex optimization problems optimally and efficiently to achieve this high performance. One such problem is the multi-chip partitioning problem where compilers determine the optimal partitioning and placement of operations in tensor computation graphs on chiplets in MCMs. Partitioning ML graphs for MCMs is particularly hard as the search space grows exponentially with the number of chiplets available and the number of nodes in the neural network. Furthermore, the constraints imposed by the underlying hardware produce a search space where valid solutions are extremely sparse. In this paper, we present a strategy using a deep reinforcement learning (RL) framework to emit a possibly invalid candidate partition that is then corrected by a constraint solver. Using the constraint solver ensures that RL encounters valid solutions in the sparse space frequently enough to converge with fewer samples as compared to non-learned strategies. The architectural choices we make for the policy network allow us to generalize across different ML graphs. Our evaluation of a production-scale model, BERT, on real hardware reveals that the partitioning generated using RL policy achieves 6.11% and 5.85% higher throughput than random search and simulated annealing. In addition, fine-tuning the pre-trained RL policy reduces the search time from 3 hours to only 9 minutes, while achieving the same throughput as training RL policy from scratch.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes