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

CPU上的深度学习模型:一种高效训练的方法论

Deep Learning Models on CPUs: A Methodology for Efficient Training

Vanderbilt University(范德堡大学);Intel Corporation(英特尔公司)

Quchen Fu, Ramesh Chukka, Keith Achorn, Thomas Atta-fosu, Deepak R. Canchi, Zhongwei Teng, Jules White, Douglas C. Schmidt

AI总结:

本文提出一种在Intel CPU上高效训练深度学习模型的方法,并开发ProfileDNN工具包,通过优化Intel Extension for PyTorch实现2倍训练性能提升,同时利用可视化功能创建比官方实现快两倍的focal loss内核。

摘要:

由于GPU具有高度并行的架构,它们一直备受青睐,被用于训练深度学习模型。因此,大多数关于训练优化的研究都集中在GPU上。然而,在决定如何为训练选择合适的硬件时,通常需要在成本和效率之间进行权衡。特别是,如果CPU上的训练更加高效,那么CPU服务器将是有益的,因为它们能减少硬件更新成本,并更好地利用现有基础设施。本文对使用CPU训练深度学习模型的研究做出了多项贡献。首先,它提出了一种在Intel CPU上优化深度学习模型训练的方法,以及一个名为ProfileDNN的工具包,我们开发该工具包是为了改进性能分析。其次,我们描述了一种通用的训练优化方法,该方法指导我们的工作流程,并探讨了几个案例研究,在这些案例中我们识别了性能问题,然后优化了Intel Extension for PyTorch,最终使RetinaNet-ResNext50模型的整体训练性能提升了2倍。第三,我们展示了如何利用ProfileDNN的可视化功能,这使我们能够精确定位瓶颈,并创建一个自定义的focal loss内核,其速度是官方参考PyTorch实现的两倍。

英文摘要:

GPUs have been favored for training deep learning models due to their highly parallelized architecture. As a result, most studies on training optimization focus on GPUs. There is often a trade-off, however, between cost and efficiency when deciding on how to choose the proper hardware for training. In particular, CPU servers can be beneficial if training on CPUs was more efficient, as they incur fewer hardware update costs and better utilizing existing infrastructure. This paper makes several contributions to research on training deep learning models using CPUs. First, it presents a method for optimizing the training of deep learning models on Intel CPUs and a toolkit called ProfileDNN, which we developed to improve performance profiling. Second, we describe a generic training optimization method that guides our workflow and explores several case studies where we identified performance issues and then optimized the Intel Extension for PyTorch, resulting in an overall 2x training performance increase for the RetinaNet-ResNext50 model. Third, we show how to leverage the visualization capabilities of ProfileDNN, which enabled us to pinpoint bottlenecks and create a custom focal loss kernel that was two times faster than the official reference PyTorch implementation.

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

↑