Affiliation:
1. School of Mathematical Sciences Tongji University Shanghai China
2. Key Laboratory of Intelligent Computing and Applications (Ministry of Education) Tongji University Shanghai China
3. Beijing International Center for Mathematical Research Peking University Beijing China
4. Huawei Noah's Ark Lab Shenzhen China
5. Center for Data Science Peking University Beijing China
Abstract
AbstractGradient‐based methods for training residual networks (ResNets) typically require a forward pass of input data, followed by back‐propagating the error gradient to update model parameters, which becomes time‐consuming as the network structure goes deeper. To break the algorithmic locking and exploit synchronous module parallelism in both forward and backward modes, auxiliary‐variable methods have emerged but suffer from communication overhead and a lack of data augmentation. By trading off the recomputation and storage of auxiliary variables, a joint learning framework is proposed in this work for training realistic ResNets across multiple compute devices. Specifically, the input data of each processor is generated from its low‐capacity auxiliary network (AuxNet), which permits the use of data augmentation and realizes forward unlocking. Backward passes are then executed in parallel, each with a local loss function derived from the penalty or augmented Lagrangian (AL) method. Finally, the AuxNet is adjusted to reproduce updated auxiliary variables through an end‐to‐end training process. We demonstrate the effectiveness of our method on ResNets and WideResNets across CIFAR‐10, CIFAR‐100, and ImageNet datasets, achieving speedup over the traditional layer‐serial training approach while maintaining comparable testing accuracy.
Funder
National Natural Science Foundation of China
Science and Technology Commission of Shanghai Municipality
Reference60 articles.
1. E.Belilovsky L.Leconte L.Caccia M.Eickenberg andE.Oyallon.Decoupled greedy learning of CNNs for synchronous and asynchronous distributed learning. arXiv preprint arXiv:2106.064012021.
2. Machine Learning for Fluid Mechanics
3. Direct and Indirect Multiple Shooting for Parabolic Optimal Control Problems