@article{1155, author = {Quchen Fu and Ramesh Chukka and Keith Achorn and Thomas Atta-fosu and Deepak Canchi and Zhongwei Teng and Jules White and Doug Schmidt}, title = {Deep Learning Models on CPUs: A Methodology for Efficient Training}, abstract = {

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 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 utilize existing infrastructure.

This paper makes three 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.

}, year = {2023}, journal = {Journal of Machine Learning Theory, Applications and Practice}, volume = {1}, month = {04/2023}, url = {https://www.journal.riverpublishers.com/index.php/JMLTAP/article/view/268}, doi = {https://doi.org/10.13052/jmltapissn.2022.003}, }