Optimal Model Partitioning with Low-Overhead Profiling on the PIM-based Platform for Deep Learning Inference

Author:

Kim Seok Young1,Lee Jaewook1,Paik Yoonah1,Kim Chang Hyun1,Lee Won Jun1,Kim Seon Wook1

Affiliation:

1. Korea University, Korea

Abstract

Recently Processing-in-Memory (PIM) has become a promising solution to achieve energy-efficient computation in data-intensive applications by placing computation near or inside the memory. In most Deep Learning (DL) frameworks, a user manually partitions a model’s computational graph (CG) onto the computing devices by considering the devices’ capability and the data transfer. The Deep Neural Network (DNN) models become increasingly complex for improving accuracy; thus, it is exceptionally challenging to partition the execution to achieve the best performance, especially on a PIM-based platform requiring frequent offloading of large amounts of data. This paper proposes two novel algorithms for DL inference to resolve the challenge: low-overhead profiling and optimal model partitioning. First, we reconstruct CG by considering the devices’ capability to represent all the possible scheduling paths. Second, we develop a profiling algorithm to find the required minimum profiling paths to measure all the node and edge costs of the reconstructed CG. Finally, we devise the model partitioning algorithm to get the optimal minimum execution time using the dynamic programming technique with the profiled data. We evaluated our work by executing the BERT, RoBERTa, and GPT-2 models on the ARM multicores with the PIM-modeled FPGA platform with various sequence lengths. For three computing devices in the platform, i.e., CPU serial/parallel and PIM executions, we could find all the costs only in four profile runs, three for node costs and one for edge costs. Also, our model partitioning algorithm achieved the highest performance in all the experiments over the execution with manually assigned device priority and the state-of-the-art greedy approach.

Publisher

Association for Computing Machinery (ACM)

Subject

Electrical and Electronic Engineering,Computer Graphics and Computer-Aided Design,Computer Science Applications

Reference40 articles.

1. Martín Abadi , Paul Barham , Jianmin Chen , Zhifeng Chen , Andy Davis , Jeffrey Dean , Matthieu Devin , Sanjay Ghemawat , Geoffrey Irving , Michael Isard , Manjunath Kudlur , Josh Levenberg , Rajat Monga , Sherry Moore , Derek  G. Murray , Benoit Steiner , Paul Tucker , Vijay Vasudevan , Pete Warden , Martin Wicke , Yuan Yu , and Xiaoqiang Zhen . 2016 . Tensorflow: A System for Large-Scale Machine Learning . In Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI’16) . Savannah, GA, USA, 265–283. Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zhen. 2016. Tensorflow: A System for Large-Scale Machine Learning. In Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI’16). Savannah, GA, USA, 265–283.

2. Omer Erdil Albayrak , Ismail Akturk , and Ozcan Ozturk . 2012 . Effective Kernel Mapping for OpenCL Applications in Heterogeneous Platforms . In Proceedings of the 41st International Conference on Parallel Processing Workshops (ICPPW’12) . Pittsburgh, PA, USA, 81–88. Omer Erdil Albayrak, Ismail Akturk, and Ozcan Ozturk. 2012. Effective Kernel Mapping for OpenCL Applications in Heterogeneous Platforms. In Proceedings of the 41st International Conference on Parallel Processing Workshops (ICPPW’12). Pittsburgh, PA, USA, 81–88.

3. A Dynamic Self-scheduling Scheme for Heterogeneous Multiprocessor Architectures;Belviranli E.;ACM Transactions on Architecture and Code Optimization,2013

4. Michael Boyer , Kevin Skadron , Shuai Che , and Nuwan Jayasena . 2013 . Load Balancing in a Changing World: Dealing with Heterogeneity and Performance Variability . In Proceedings of the 10th ACM International Conference on Computing Frontiers (CF’13) . Ischia, Italy, 1–10. Michael Boyer, Kevin Skadron, Shuai Che, and Nuwan Jayasena. 2013. Load Balancing in a Changing World: Dealing with Heterogeneity and Performance Variability. In Proceedings of the 10th ACM International Conference on Computing Frontiers (CF’13). Ischia, Italy, 1–10.

5. Thomas  H. Cormen , Charles  E. Leiserson , Ronald  L. Rivest , and Clifford Stein . 2001. Introduction to Algorithms(2nd. ed.) . MIT Press . Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. 2001. Introduction to Algorithms(2nd. ed.). MIT Press.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. SwiftRL: Towards Efficient Reinforcement Learning on Real Processing-In-Memory Systems;2024 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS);2024-05-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3