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.
翻译:对剩余网络(ResNets)进行分布式培训的渐进式渐进式方法通常要求先发制人,先是提供输入数据,然后是反向宣传错误梯度,以更新模型参数,随着网络深度的加深,这种模型参数将耗时。为了打破算法锁定和利用前向和后向模式中同步模块平行现象,辅助可变方法最近引起了很大的兴趣,但因通信管理费巨大和缺乏数据增强而受到影响。在这项工作中,通过交换外部辅助变量的储存和重新计算,建立了一个在多个计算设备中培训现实的ResNet的新的联合学习框架。更具体地说,每个独立处理器的输入数据来自其低容量辅助网络(AuxNet),允许使用数据增强和实现前向和后向模式的前向解锁。然后,后向传递的方法都是由罚款或增强Lagrangian(AL)方法产生的当地损失功能。最后,拟议的AuxNet通过终端至终端培训过程复制更新的辅助变量。我们展示了我们关于ResNet和广域网的可比较性数据测试方法的有效性,同时实现传统FAR-10级的S-CRAS-CS-CRS-10的升级方法。