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

小心那把手术刀:用 EMA 改进梯度手术

Careful with that Scalpel: Improving Gradient Surgery with an EMA

Apple(苹果公司)

Yu-Guan Hsieh, James Thornton, Eugene Ndiaye, Michal Klein, Marco Cuturi, Pierre Ablin

AI总结:

提出基于 EMA 的梯度手术方法 Bloop,通过正交投影结合训练与辅助梯度解决双层约束优化,在 NLP 和视觉实验中显著优于无 EMA 的方法。

摘要:

除了最小化单一训练损失外,许多深度学习估计流程依赖辅助目标来量化和鼓励模型的理想特性(例如在另一个数据集上的表现、鲁棒性、与先验的一致性)。尽管将辅助损失与训练损失相加作为正则化是最简单的引入方式,但最近的研究表明,通过超越简单求和来混合梯度可以提升性能;这被称为梯度手术。我们将该问题转化为一个约束最小化问题,其中辅助目标在训练损失极小化集合中被最小化。为求解此双层问题,我们采用结合训练损失梯度与辅助梯度在训练梯度上正交投影的参数更新方向。在梯度来自小批量的设定下,我们说明如何利用训练损失梯度的移动平均,谨慎地维持这一关键正交性质。我们证明,我们的方法 Bloop 在 NLP 和视觉实验中能取得比其他无 EMA 梯度手术方法好得多的性能。

英文摘要:

Beyond minimizing a single training loss, many deep learning estimation pipelines rely on an auxiliary objective to quantify and encourage desirable properties of the model (e.g. performance on another dataset, robustness, agreement with a prior). Although the simplest approach to incorporating an auxiliary loss is to sum it with the training loss as a regularizer, recent works have shown that one can improve performance by blending the gradients beyond a simple sum; this is known as gradient surgery. We cast the problem as a constrained minimization problem where the auxiliary objective is minimized among the set of minimizers of the training loss. To solve this bilevel problem, we follow a parameter update direction that combines the training loss gradient and the orthogonal projection of the auxiliary gradient to the training gradient. In a setting where gradients come from mini-batches, we explain how, using a moving average of the training loss gradients, we can carefully maintain this critical orthogonality property. We demonstrate that our method, Bloop, can lead to much better performances on NLP and vision experiments than other gradient surgery methods without EMA.

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

↑