A Structure-Aware Framework for Learning Device Placements on Computation Graphs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Duan, Shukai, Ping, Heng, Kanakaris, Nikos, Xiao, Xiongye, Kyriakis, Panagiotis, Ahmed, Nesreen K., Zhang, Peiyu, Ma, Guixiang, Capota, Mihai, Nazarian, Shahin, Willke, Theodore L., Bogdan, Paul
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912183760191488
author Duan, Shukai
Ping, Heng
Kanakaris, Nikos
Xiao, Xiongye
Kyriakis, Panagiotis
Ahmed, Nesreen K.
Zhang, Peiyu
Ma, Guixiang
Capota, Mihai
Nazarian, Shahin
Willke, Theodore L.
Bogdan, Paul
author_facet Duan, Shukai
Ping, Heng
Kanakaris, Nikos
Xiao, Xiongye
Kyriakis, Panagiotis
Ahmed, Nesreen K.
Zhang, Peiyu
Ma, Guixiang
Capota, Mihai
Nazarian, Shahin
Willke, Theodore L.
Bogdan, Paul
contents Computation graphs are Directed Acyclic Graphs (DAGs) where the nodes correspond to mathematical operations and are used widely as abstractions in optimizations of neural networks. The device placement problem aims to identify optimal allocations of those nodes to a set of (potentially heterogeneous) devices. Existing approaches rely on two types of architectures known as grouper-placer and encoder-placer, respectively. In this work, we bridge the gap between encoder-placer and grouper-placer techniques and propose a novel framework for the task of device placement, relying on smaller computation graphs extracted from the OpenVINO toolkit. The framework consists of five steps, including graph coarsening, node representation learning and policy optimization. It facilitates end-to-end training and takes into account the DAG nature of the computation graphs. We also propose a model variant, inspired by graph parsing networks and complex network analysis, enabling graph representation learning and jointed, personalized graph partitioning, using an unspecified number of groups. To train the entire framework, we use reinforcement learning using the execution time of the placement as a reward. We demonstrate the flexibility and effectiveness of our approach through multiple experiments with three benchmark models, namely Inception-V3, ResNet, and BERT. The robustness of the proposed framework is also highlighted through an ablation study. The suggested placements improve the inference speed for the benchmark models by up to 58.2% over CPU execution and by up to 60.24% compared to other commonly used baselines.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14185
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Structure-Aware Framework for Learning Device Placements on Computation Graphs
Duan, Shukai
Ping, Heng
Kanakaris, Nikos
Xiao, Xiongye
Kyriakis, Panagiotis
Ahmed, Nesreen K.
Zhang, Peiyu
Ma, Guixiang
Capota, Mihai
Nazarian, Shahin
Willke, Theodore L.
Bogdan, Paul
Machine Learning
Performance
Computation graphs are Directed Acyclic Graphs (DAGs) where the nodes correspond to mathematical operations and are used widely as abstractions in optimizations of neural networks. The device placement problem aims to identify optimal allocations of those nodes to a set of (potentially heterogeneous) devices. Existing approaches rely on two types of architectures known as grouper-placer and encoder-placer, respectively. In this work, we bridge the gap between encoder-placer and grouper-placer techniques and propose a novel framework for the task of device placement, relying on smaller computation graphs extracted from the OpenVINO toolkit. The framework consists of five steps, including graph coarsening, node representation learning and policy optimization. It facilitates end-to-end training and takes into account the DAG nature of the computation graphs. We also propose a model variant, inspired by graph parsing networks and complex network analysis, enabling graph representation learning and jointed, personalized graph partitioning, using an unspecified number of groups. To train the entire framework, we use reinforcement learning using the execution time of the placement as a reward. We demonstrate the flexibility and effectiveness of our approach through multiple experiments with three benchmark models, namely Inception-V3, ResNet, and BERT. The robustness of the proposed framework is also highlighted through an ablation study. The suggested placements improve the inference speed for the benchmark models by up to 58.2% over CPU execution and by up to 60.24% compared to other commonly used baselines.
title A Structure-Aware Framework for Learning Device Placements on Computation Graphs
topic Machine Learning
Performance
url https://arxiv.org/abs/2405.14185