张量流中操作放置的一种有效方法

Junnan Liu, Chengfan Jia, Junshi Chen, Han Lin, Xu Jin, Hong An
{"title":"张量流中操作放置的一种有效方法","authors":"Junnan Liu, Chengfan Jia, Junshi Chen, Han Lin, Xu Jin, Hong An","doi":"10.1145/3318265.3318270","DOIUrl":null,"url":null,"abstract":"Recent works in deep learning have shown that large neural networks can dramatically improve performance, followed by is the growth of computational requirements for hardware. To address those requirements, a common approach is to train those models on heterogeneous systems with a mixture of hardware devices such as CPUs and GPUs. Normally, the decision of putting parts of neural networks on devices is made by researchers based on heuristics algorithm. In this paper, we introduce an effective method to optimize operations placement for TensorFlow computational graphs on heterogeneous systems by using deep neural networks to predict devices for each operation in a target computational graph. Based on reinforcement learning, our method learns to group operations and assign each group to a corresponding device. To take advantage of the information of operations, we use a fully-connected network to group operations. In addition, we use the actual running time of the predictive placement as rewards to train the predictive network by using policy gradients. By executing the most widely used models in computer vision and machine translation, our method finds an optimized placement which outperforms human experts. When applying our method to the Neural Machine Translation model on the WMT14 German-English dataset, the execution time of per single training step reduces up to 28.41%.","PeriodicalId":241692,"journal":{"name":"Proceedings of the 3rd International Conference on High Performance Compilation, Computing and Communications","volume":"30 4 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-03-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"An effective method for operations placement in Tensor Flow\",\"authors\":\"Junnan Liu, Chengfan Jia, Junshi Chen, Han Lin, Xu Jin, Hong An\",\"doi\":\"10.1145/3318265.3318270\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Recent works in deep learning have shown that large neural networks can dramatically improve performance, followed by is the growth of computational requirements for hardware. To address those requirements, a common approach is to train those models on heterogeneous systems with a mixture of hardware devices such as CPUs and GPUs. Normally, the decision of putting parts of neural networks on devices is made by researchers based on heuristics algorithm. In this paper, we introduce an effective method to optimize operations placement for TensorFlow computational graphs on heterogeneous systems by using deep neural networks to predict devices for each operation in a target computational graph. Based on reinforcement learning, our method learns to group operations and assign each group to a corresponding device. To take advantage of the information of operations, we use a fully-connected network to group operations. In addition, we use the actual running time of the predictive placement as rewards to train the predictive network by using policy gradients. By executing the most widely used models in computer vision and machine translation, our method finds an optimized placement which outperforms human experts. When applying our method to the Neural Machine Translation model on the WMT14 German-English dataset, the execution time of per single training step reduces up to 28.41%.\",\"PeriodicalId\":241692,\"journal\":{\"name\":\"Proceedings of the 3rd International Conference on High Performance Compilation, Computing and Communications\",\"volume\":\"30 4 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2019-03-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 3rd International Conference on High Performance Compilation, Computing and Communications\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3318265.3318270\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 3rd International Conference on High Performance Compilation, Computing and Communications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3318265.3318270","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

最近在深度学习方面的研究表明,大型神经网络可以显著提高性能,其次是硬件计算需求的增长。为了满足这些需求,一种常见的方法是在混合了cpu和gpu等硬件设备的异构系统上训练这些模型。通常情况下,神经网络部件在设备上的放置是由研究人员基于启发式算法来决定的。在本文中,我们介绍了一种有效的方法,通过使用深度神经网络来预测目标计算图中每个操作的设备,来优化异构系统上TensorFlow计算图的操作放置。基于强化学习,我们的方法学习分组操作,并将每组操作分配给相应的设备。为了充分利用操作信息,我们采用全连接网络对操作进行分组。此外,我们使用预测放置的实际运行时间作为奖励,通过使用策略梯度来训练预测网络。通过执行计算机视觉和机器翻译中最广泛使用的模型,我们的方法找到了优于人类专家的优化放置。将该方法应用于WMT14德语-英语数据集上的神经机器翻译模型,单个训练步骤的执行时间减少了28.41%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
An effective method for operations placement in Tensor Flow
Recent works in deep learning have shown that large neural networks can dramatically improve performance, followed by is the growth of computational requirements for hardware. To address those requirements, a common approach is to train those models on heterogeneous systems with a mixture of hardware devices such as CPUs and GPUs. Normally, the decision of putting parts of neural networks on devices is made by researchers based on heuristics algorithm. In this paper, we introduce an effective method to optimize operations placement for TensorFlow computational graphs on heterogeneous systems by using deep neural networks to predict devices for each operation in a target computational graph. Based on reinforcement learning, our method learns to group operations and assign each group to a corresponding device. To take advantage of the information of operations, we use a fully-connected network to group operations. In addition, we use the actual running time of the predictive placement as rewards to train the predictive network by using policy gradients. By executing the most widely used models in computer vision and machine translation, our method finds an optimized placement which outperforms human experts. When applying our method to the Neural Machine Translation model on the WMT14 German-English dataset, the execution time of per single training step reduces up to 28.41%.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信