arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.04319cs.LG
收藏

剖析GANs中的自适应方法

Dissecting adaptive methods in GANs

Princeton University(普林斯顿大学);Mila(米拉人工智能研究所);Université de Montréal(蒙特利尔大学);Deepmind(深度思维);Carnegie Mellon University(卡内基梅隆大学)

Samy Jelassi, David Dobre, Arthur Mensch, Yuanzhi Li, Gauthier Gidel

摘要:

自适应方法是广泛用于训练生成对抗网络(GANs)的关键组成部分。虽然已经有一些工作来确定标准任务中“自适应方法的边际价值”,但仍不清楚为什么它们对GAN训练仍然至关重要。在本文中,我们正式研究自适应方法如何帮助训练GANs;受arXiv:2002.11803 [cs.LG]中提出的嫁接方法的启发,我们分离Adam更新的幅度和方向分量,并将它们分别嫁接到SGDA更新的方向和幅度上。通过考虑Adam更新的幅度和SGD的归一化方向的更新规则,我们经验地表明Adam的自适应幅度是GAN训练的关键。这促使我们在GAN训练的背景下仔细研究一类归一化随机梯度下降上升(nSGDA)方法。我们提出了一个综合的理论框架来比较nSGDA和SGDA的性能与神经网络的GAN训练。我们证明,在这种情况下,使用nSGDA训练的GANs可以恢复真实分布的所有模式,而使用SGDA(以及任何学习率配置)训练的相同网络会遭受模式坍塌。在我们的分析中,关键的见解是,对梯度进行标准化会强制同步器和生成器以相同的速度进行更新。我们还通过实验表明,对于几个数据集,Adam的性能可以用nSGDA方法恢复。

英文摘要:

Adaptive methods are a crucial component widely used for training generative adversarial networks (GANs). While there has been some work to pinpoint the "marginal value of adaptive methods" in standard tasks, it remains unclear why they are still critical for GAN training. In this paper, we formally study how adaptive methods help train GANs; inspired by the grafting method proposed in arXiv:2002.11803 [cs.LG], we separate the magnitude and direction components of the Adam updates, and graft them to the direction and magnitude of SGDA updates respectively. By considering an update rule with the magnitude of the Adam update and the normalized direction of SGD, we empirically show that the adaptive magnitude of Adam is key for GAN training. This motivates us to have a closer look at the class of normalized stochastic gradient descent ascent (nSGDA) methods in the context of GAN training. We propose a synthetic theoretical framework to compare the performance of nSGDA and SGDA for GAN training with neural networks. We prove that in that setting, GANs trained with nSGDA recover all the modes of the true distribution, whereas the same networks trained with SGDA (and any learning rate configuration) suffer from mode collapse. The critical insight in our analysis is that normalizing the gradients forces the discriminator and generator to be updated at the same pace. We also experimentally show that for several datasets, Adam's performance can be recovered with nSGDA methods.

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

↑