Year: 2021
Type: dissertation
Abstract: In the last decades, deep learning technology has attracted substantial research interests.Deep learning has been empowered by the advance of network architecture and training algorithms, such as the growth of available data to train deep neural networks, and the increase of the computation capability of high-performance GPUs and supercomputers.Specifically, many studies successfully have adopted data-parallelism to distribute their training workloads among dozens and even hundreds of accelerators due to its simple parallelization design.As the demand for training deep learning models with complex and massive data increases continuously, these improvements must take place in parallel to keep up research speed.However, trends in hardware, software, and model architecture for deep learning are changing rapidly.For example, recent accelerators equip specialized hardware in matrix multiplication operations that are frequently used in deep learning, but their performance is not fully investigated for various deep learning workloads.Another change is the emergence of high-resolution, large-scale models that perform end-to-end learning on scientific data, which cannot be trained with conventional data-parallel methods.For these reasons, there is a strong demand for a general-purpose method of accelerating and saving memory for more diverse model architectures, computational precisions, and large-scale models on multiple levels of parallelism.In this thesis, we propose acceleration algorithms that maximize the parallel efficiency of CNNs at two different levels, intra-processor and inter-processor parallelism.For intra-processor optimization, we present the µ-cuDNN library, which applies loop optimization and adaptively uses different algorithms and computational precisions for convolution kernels.This library replaces the cuDNN library transparently to optimize the convolution performance, which is the de-facto standard kernel library for deep learning frameworks, and thus, our library is widely applicable for such frameworks.Since convolution is one of the most computationally-intensive parts of deep learning training and inference, accelerating convolutional computation plays a crucial role in accelerating such jobs in many fields.Our loop optimization method allows users to select a broader range of convolutional algorithms without changing computation semantics.We combine the µ-cuDNN library into two frameworks, Caffe and TensorFlow, and show that it achieves reasonable performance improvements in several different CNNs; we achieve speedups of 1.60x for AlexNet and 1.30x for ResNet-18 on an NVIDIA V100 GPU.We also show that µ-cuDNN achieves speedups of up to 4.54x, and 1.60x on average for DeepBench convolutional layers, and demonstrate that NVIDIA GPU's single-precision arithmetic units are still beneficial to accelerate convolution on half-precision float data.These results indicate that micro-batching can seamlessly increase deep learning performance while using the same overall memory footprint.Moreover, we propose an interface to use this information for multi-node training using the property that µ-cuDNN can obtain layer parameters via the cuDNN interface.Furthermore, we show that the ONNX data format can be combined with our algorithm to apply the loop optimization algorithm without changing the framework itself.We also discuss whether µ-cuDNN's algorithm can be extended to layer types other than convolution and different memory layouts.For inter-processor optimization, we present an end-to-end hybrid-parallel training approach for strong-scaling training large-sample 3D CNNs, which applies spatial partitioning.Since data-parallel training frameworks cannot train large models beyond the memory capability of a single GPU, this approach enables users to improve the inference accuracy of such CNNs by increasing the input dimensions.Specifically, we propose various techniques to optimize the performance for better scalability; we show GPU kernels designed for 2D CNNs can be inefficient, and thus, implementation of custom kernels for high-dimensional layers are necessary.Moreover, we propose a spatial-partitioned sample I/O method to mitigate the data read overhead, which is essential to achieve practical strong scaling, such as spatial-partitioned sample I/O.We demonstrate training on full-resolution samples for the CosmoFlow network (512 3 ) and the 3D U-Net (256 3 ).Our performance results show good strong and weak scaling on up to 2048 NVIDIA V100 GPUs; we achieve 1.77x of speedup on 2048 GPUs over 512 GPUs with the same mini-batch size of 64 for the CosmoFlow network and achieve 1.42x of speedup on 512 GPUs over 256 GPUs with the same mini-batch size of 16 for the 3D U-Net.We also propose a performance model for the hybrid-parallel training framework to demonstrate that its performance is predictable with benchmark results using a limited number of compute nodes.Besides, we present a significant improvement in prediction accuracy by using full-resolution data of the CosmoFlow cosmological data.This thesis provides a means to accelerate the training of CNNs across multiple levels of parallelism extremely through our proposed approaches.We expect this to discover new scientific knowledge by training large-scale, high-dimensional, and high-resolution CNNs in highly parallel environments.
Authors: 大山, 洋介, Oyama, Yosuke
Institution: ETH Zurich
Language: English
Subfield: Hardware and Architecture
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
Funders: U.S. Department of Energy, National Institute of Advanced Industrial Science and Technology, National Energy Research Scientific Computing Center, Eidgenössische Technische Hochschule Zürich, Tokyo Institute of Technology, Office of Science, Japan Society for the Promotion of Science, Lawrence Livermore National Laboratory
OpenAlex ID: W7054128659
