arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.14185cs.LGcs.PF
收藏

一种用于在计算图上学习设备放置的结构感知框架

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

University of Southern California(南加州大学);Meta;Cisco Outshift(思科奥特希夫部门);Intel Labs(英特尔实验室)
Shukai Duan, Heng Ping, Nikos Kanakaris, Xiongye Xiao, Panagiotis Kyriakis, Nesreen K. Ahmed, Peiyu Zhang, Guixiang Ma, Mihai Capota, Shahin Nazarian, Theodore … 展开作者

Shukai Duan, Heng Ping, Nikos Kanakaris, Xiongye Xiao, Panagiotis Kyriakis, Nesreen K. Ahmed, Peiyu Zhang, Guixiang Ma, Mihai Capota, Shahin Nazarian, Theodore L. Willke, Paul Bogdan

AI总结:

针对计算图设备放置问题,提出融合两类架构的结构感知框架及变体,采用强化学习训练,在多个基准模型上实现推理速度的显著提升。

摘要:

计算图是有向无环图(Directed Acyclic Graphs,DAGs),其节点对应数学运算,被广泛用作神经网络优化中的抽象表示。设备放置问题旨在确定将这些节点分配到一组(可能是异构的)设备上的最优方案。现有方法依赖两类架构,分别称为grouper-placer(分组-放置器)和encoder-placer(编码-放置器)。\n在本研究中,我们填补了encoder-placer和grouper-placer技术之间的空白,针对设备放置任务提出了一种新颖的框架,该框架基于从OpenVINO工具包提取的更小的计算图构建。该框架包含五个步骤,包括图粗化、节点表示学习和策略优化,支持端到端训练,同时考虑了计算图的有向无环图(DAG)特性。我们还提出了一种模型变体,其灵感来自图解析网络和复杂网络分析,能够实现图表示学习以及联合的个性化图划分,且分组数量不做预设。为训练整个框架,我们使用强化学习方法,将放置方案的执行时间作为奖励信号。\n我们通过使用三个基准模型(即Inception-V3、ResNet和BERT)开展的多项实验,证明了所提方法的灵活性和有效性。消融研究也进一步凸显了该框架的鲁棒性。与CPU执行相比,所提出的放置方案将基准模型的推理速度提升了高达58.2%;与其他常用基线方法相比,推理速度提升了高达60.24%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑