arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.05387cs.LGcs.AImath.DS
收藏

带可变网络的残差网络的分层并行训练

Layer-Parallel Training of Residual Networks with Auxiliary-Variable Networks

Beijing International Center for Mathematical Research, Peking University(北京大学北京国际数学研究中心);School of Mathematical Sciences, Tongji University(同济大学数学科学学院);Center for Data Science, Peking University(北京大学数据科学中心);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Qi Sun, Hexin Dong, Zewei Chen, Jiacheng Sun, Zhenguo Li, Bin Dong

摘要:

用于残差网络(ResNets)的分布式训练的基于递归的方法通常需要输入数据的前向传递,然后反向传播误差梯度以更新模型参数,随着网络的深入,这变得耗时。为了打破算法锁定并在前向和后向模式下利用同步模块并行性,最近,变量方法引起了人们的极大兴趣,但存在显著的通信开销和缺乏数据增强的问题。在这项工作中,通过权衡外部辅助变量的存储和重新计算,建立了一种新的联合学习框架,用于在多个计算设备上训练逼真的ResNet。更具体地说,每个独立处理器的输入数据都是从其低容量辅助网络(AuxNet)生成的,允许使用数据增强并实现前向解锁。然后并行执行向后传递,每个传递具有源自惩罚或增广拉格朗日(AL)方法的局部损失函数。最后,建议的神经网络是用来重现更新的辅助变量,通过一个端到端的训练过程。我们在CIFAR-10、CIFAR-100和ImageNet数据集上展示了我们的方法在ResNets和WideResNets上的有效性,在保持相当的测试准确性的同时,实现了比传统层序列训练方法更快的速度。

英文摘要:

Gradient-based methods for the distributed training of residual networks (ResNets) typically require a forward pass of the input data, followed by back-propagating the error gradient to update model parameters, which becomes time-consuming as the network goes deeper. To break the algorithmic locking and exploit synchronous module parallelism in both the forward and backward modes, auxiliary-variable methods have attracted much interest lately but suffer from significant communication overhead and lack of data augmentation. In this work, a novel joint learning framework for training realistic ResNets across multiple compute devices is established by trading off the storage and recomputation of external auxiliary variables. More specifically, the input data of each independent processor is generated from its low-capacity auxiliary network (AuxNet), which permits the use of data augmentation and realizes forward unlocking. The backward passes are then executed in parallel, each with a local loss function that originates from the penalty or augmented Lagrangian (AL) methods. Finally, the proposed AuxNet is employed to reproduce the updated auxiliary variables through an end-to-end training process. We demonstrate the effectiveness of our methods on ResNets and WideResNets across CIFAR-10, CIFAR-100, and ImageNet datasets, achieving speedup over the traditional layer-serial training method while maintaining comparable testing accuracy.

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

↑