arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2010.02838cs.LGcs.DCmath.OC
收藏

分布式训练的共蒸馏

A Closer Look at Codistillation for Distributed Training

Facebook AI Research(脸书人工智能研究院);Mila – Quebec AI Institute(米拉-魁北克人工智能研究所);McGill University(麦吉尔大学)

Shagun Sodhani, Olivier Delalleau, Mahmoud Assran, Koustuv Sinha, Nicolas Ballas, Michael Rabbat

摘要:

共蒸馏被提出作为一种机制,通过鼓励它们通过辅助损失来表示相同的函数,从而在并发训练的模型之间共享知识。这与更常用的完全同步数据并行随机梯度下降方法形成对比,其中不同的模型副本在每次迭代时对其梯度(或参数)进行平均,从而保持相同的参数。我们调查共蒸馏在一个分布式的训练设置,补充以前的工作,专注于非常大的批量。令人惊讶的是,我们发现,即使在中等批量的情况下,用共蒸馏训练的模型也可以表现得和用同步数据并行方法训练的模型一样好,尽管使用了弱得多的同步机制。这些发现适用于一系列批量大小和学习率调度,以及不同类型的模型和数据集。然而,获得这种水平的准确性,需要适当考虑共蒸馏的正则化效应,我们强调通过几个经验观察。总体而言,这项工作有助于更好地了解共蒸馏,以及如何最好地利用它在分布式计算环境。

英文摘要:

Codistillation has been proposed as a mechanism to share knowledge among concurrently trained models by encouraging them to represent the same function through an auxiliary loss. This contrasts with the more commonly used fully-synchronous data-parallel stochastic gradient descent methods, where different model replicas average their gradients (or parameters) at every iteration and thus maintain identical parameters. We investigate codistillation in a distributed training setup, complementing previous work which focused on extremely large batch sizes. Surprisingly, we find that even at moderate batch sizes, models trained with codistillation can perform as well as models trained with synchronous data-parallel methods, despite using a much weaker synchronization mechanism. These findings hold across a range of batch sizes and learning rate schedules, as well as different kinds of models and datasets. Obtaining this level of accuracy, however, requires properly accounting for the regularization effect of codistillation, which we highlight through several empirical observations. Overall, this work contributes to a better understanding of codistillation and how to best take advantage of it in a distributed computing environment.

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

↑