We study two factors in neural network training: data parallelism and sparsity; here, data parallelism means processing training data in parallel using distributed systems (or equivalently increasing batch size), so that training can be accelerated; for sparsity, we refer to pruning parameters in a neural network model, so as to reduce computational and memory cost. Despite their promising benefits, however, understanding of their effects on neural network training remains elusive. In this work, we first measure these effects rigorously by conducting extensive experiments while tuning all metaparameters involved in the optimization. As a result, we find across various workloads of data set, network model, and optimization algorithm that there exists a general scaling trend between batch size and number of training steps to convergence for the effect of data parallelism, and further, difficulty of training under sparsity. Then, we develop a theoretical analysis based on the convergence properties of stochastic gradient methods and smoothness of the optimization landscape, which illustrates the observed phenomena precisely and generally, establishing a better account of the effects of data parallelism and sparsity on neural network training.
翻译:我们在神经网络培训中研究两个因素:数据平行和宽度;这里,数据平行意味着利用分布式系统(或同等增加批量规模)平行处理培训数据,从而加快培训速度;对于宽度,我们指的是神经网络模型中的修剪参数,以减少计算和记忆成本;尽管这些参数有希望,但了解其对神经网络培训的影响仍然遥不可及;在这项工作中,我们首先通过进行广泛的实验,同时调整优化所涉及的所有元参数,严格衡量这些效应;结果,我们发现在数据集、网络模型和优化算法的不同工作量中,在成批量规模和培训步骤数量之间存在总体的缩放趋势,以达到数据平行效应,进而在宽度下培训难度。然后,我们根据随机梯度梯度梯度方法的趋同特性和优化景观的光滑度进行理论分析,准确和全面地说明观察到的现象,更好地说明数据平行和孔径对神经网络培训的影响。