arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.14683cs.LGstat.ML
收藏

MTAdam:多个训练损失项的自动平衡

MTAdam: Automatic Balancing of Multiple Training Loss Terms

Tel Aviv University(特拉维夫大学);Facebook AI Research(Facebook人工智能研究院)

Itzik Malkiel, Lior Wolf

摘要:

在训练神经模型时,通常会合并多个损失项。这些项的平衡需要相当大的人力,并且需要计算。此外,损失项之间的最佳权衡可以随着训练的进行而改变,特别是对于对抗性项。在这项工作中,我们推广亚当优化算法来处理多个损失项。指导原则是,对于每一层,项的梯度幅度应该平衡。为此,多项Adam(MTAdam)分别计算每个损失项的导数,推断每个参数和损失项的一阶矩和二阶矩,并计算每个损失引起的梯度的每层幅度的一阶矩。此幅度用于连续平衡所有层上的梯度,其方式是从一个层到下一个层变化并随时间动态变化。我们的研究结果表明,使用新方法进行训练可以从次优初始损失加权中快速恢复,并使训练结果与常规训练相匹配,并具有每种方法的规定超参数。

英文摘要:

When training neural models, it is common to combine multiple loss terms. The balancing of these terms requires considerable human effort and is computationally demanding. Moreover, the optimal trade-off between the loss term can change as training progresses, especially for adversarial terms. In this work, we generalize the Adam optimization algorithm to handle multiple loss terms. The guiding principle is that for every layer, the gradient magnitude of the terms should be balanced. To this end, the Multi-Term Adam (MTAdam) computes the derivative of each loss term separately, infers the first and second moments per parameter and loss term, and calculates a first moment for the magnitude per layer of the gradients arising from each loss. This magnitude is used to continuously balance the gradients across all layers, in a manner that both varies from one layer to the next and dynamically changes over time. Our results show that training with the new method leads to fast recovery from suboptimal initial loss weighting and to training outcomes that match conventional training with the prescribed hyperparameters of each method.

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

↑