Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium

Two time-scale updates let GAN training converge to local Nash equilibria

  • Problem Earlier convergence proofs for GANs assumed averaged or infinite data, so they did not cover the mini-batch gradients used in practice. Gradient descent on the GAN game may also fail to converge.
  • Method TTUR gives the discriminator and the generator separate learning rates, with the discriminator on the faster time scale. Unlike a shared rate, this lets the discriminator settle before the generator moves much.
  • Results The authors prove that TTUR converges almost surely to a stationary local Nash equilibrium under their assumptions. The proof also covers Adam, which they show prefers flat minima.

Why mini-batch GAN training lacked a convergence proof

A GAN sets up a game in which the generator turns random inputs into synthetic samples and the discriminator tries to separate them from real data. Because the solution is a Nash equilibrium, gradient descent may not converge on this game, and it can only reach local equilibria. Earlier convergence proofs for GANs averaged over training samples or assumed infinitely many examples, so they didn't cover the mini-batch gradients used in practice.

Actor-critic learning had a stronger result: with a critic that adapts faster than the actor, a two time-scale rule reaches a stationary local Nash equilibrium.

What was missing was a proof for GANs trained on mini-batches with a two time-scale rule. The authors take this on by following the stochastic approximation approach that was used for actor-critic learning.

Giving the discriminator and generator separate rates

The core idea is to give the discriminator and the generator their own learning rates, with the discriminator on the faster time scale. The intuition is that the discriminator should settle to a local minimum before a slowly moving generator changes the problem much. A generator that moves too fast pushes the discriminator into new regions before it has learned from the old ones, so a shared rate can leave the discriminator behind.

The authors note that recent GAN implementations often let the discriminator learn faster than the generator, and the Wasserstein GAN uses more discriminator steps.

Each step draws m real samples and m synthetic samples at random, and both gradients are computed on these mini-batches. The true gradients are g for the discriminator and h for the generator, and the noisy versions add a random error term M. The two updates read as follows. \[ w_{n+1} = w_n + b(n)\,\bigl(g(\theta_n,w_n) + M^{(w)}_n\bigr),\qquad \theta_{n+1} = \theta_n + a(n)\,\bigl(h(\theta_n,w_n) + M^{(\theta)}_n\bigr) \] The discriminator's step is b(n) and the generator's step is a(n), and the assumption \(a(n) = o(b(n))\) keeps the generator the slower one.

Learning rates don't translate directly into how strongly one network perturbs the other, so the authors tune the two rates by experiment.

The rule isn't restricted to min-max GANs, because the discriminator's loss needn't be tied to the generator's loss.

Why the two rates lead to convergence

The proof treats the discriminator as the fast process and the generator as the slow one. For each fixed generator, the discriminator must settle to a minimum, and then the generator must settle to a minimum for that discriminator. The GAN objectives may serve as Lyapunov functions in this argument.

The result rests on assumptions A1 to A5, which require Lipschitz gradients, bounded iterates and locally stable attractors. The step sizes must satisfy that the sum of a(n) diverges, the sum of a(n) squared converges, and the same holds for b(n). The stochastic errors must be martingale differences with bounded second moments, which the authors say holds for randomly sampled mini-batches with bounded gradients.

Under these conditions Theorem 1 says the updates converge almost surely to the point (θ*, λ(θ*)). That point is a stationary local Nash equilibrium, because both gradients vanish there and both attractors are locally stable.

The argument uses perturbed ODEs: at some time the slow generator moves little enough for the fast discriminator to converge. Experiments therefore aim at learning rates where the generator is slow enough to let the discriminator converge.

Adam as a heavy ball with friction

The authors use Adam in the experiments to reduce mode collapsing, where large probability mass lands on a few small regions and the variety of the data is lost. Adam averages past gradients, which the authors read as a velocity that keeps the generator from being pushed into small regions. They argue that this heavy ball with friction (HBF) overshoots small minima and settles in flat ones, and flat minima can generalize well.

Adam keeps an average m_n of the gradient with factor β1, and a second moment v_n of the squared gradient with factor β2. The step divides m_n componentwise by the square root of v_n plus ε, and the learning rate is replaced by a damping coefficient a(n) = a n^{-τ} with τ in (0, 1]. \[ \theta_n \leftarrow \theta_{n-1} - a\,\frac{m_n}{\sqrt{v_n}+\epsilon} \] Theorem 2 fixes the memory of Adam through β1 = 1 − a(n+1) r(n) and β2 = 1 − α a(n+1) r(n).

For a lower bounded, continuously differentiable objective f and stationary second moments of the gradient, Theorem 2 says Adam follows a second-order ODE. \[ \ddot{\theta}_t + a(t)\,\dot{\theta}_t + \nabla f(\theta_t) = 0 \] Here the velocity term is the first derivative of θ, a(t) acts as friction, and ∇f pulls the trajectory toward minima.

Convergence for L-Lipschitz gradients rests on earlier results for this ODE, by Attouch et al. and Goudou and Munier.

With stationary second moments, the normalization by the square root of v acts as random noise around its mean, and in the heavy ball view it plays the role of gravity. The authors linearize the change in the second moment and fold the resulting term into the martingale noise, so the update keeps the form of the HBF rule. The energy \(E(t)=\tfrac{1}{2}|\dot\theta(t)|^2+f(\theta(t))\) decreases along the flow, which links Adam to the perturbed-ODE argument used for TTUR.

\[ \dot E(t) = -a\,|\dot\theta(t)|^2 < 0 \]

Scoring GANs with FID

The Inception Score uses the label entropy of an ImageNet-trained inception model, but it doesn't compare generated images with real-world statistics. Likelihood is the best known measure, yet the authors say it depends heavily on the noise assumptions and can be dominated by single samples. Instead, the authors match the first two moments of Inception-v3 coding-layer features, so the mean and covariance of real and generated images are compared.

Treating the features as Gaussian, they measure the Fréchet distance between the two Gaussians, also known as the Wasserstein-2 distance.

The Fréchet Inception Distance (FID) is the squared distance between the Gaussians fitted to the model and to the real data. \[ d^2\bigl((m,C),(m_w,C_w)\bigr) = \lVert m-m_w\rVert_2^2 + \mathrm{Tr}\!\left(C + C_w - 2(C C_w)^{1/2}\right) \] Here (m, C) come from the model distribution and (m_w, C_w) from the real-world distribution, so the first term compares the means and the trace term compares the covariances.

For real data the statistics come from the training images, while the model's statistics come from 50,000 generated images.

To check the metric, the authors disturbed images with Gaussian noise, Gaussian blur, black rectangles, swirls, salt-and-pepper noise and ImageNet contamination of CelebA. FID rose monotonically as the disturbance level increased, which the authors read as capturing the disturbance well. The fuller comparison with the Inception Score is deferred to an appendix.

A toy saddle point isolates the rate effect

To isolate the timescale effect, the authors use a toy min/max problem with a known saddle point at (0, 0). \[ f(x,y) = (1+x^2)(100-y^2) \] The updates use gradient descent in x and gradient ascent in y, with additive Gaussian noise to simulate stochastic feedback.

With equal learning rates of 0.01 the run diverges with large fluctuations, and at 0.001 it converges but slowly. TTUR with a learning rate of 0.0001 for x and 0.01 for y converges faster than the equal-rate runs and moves directly to the saddle point. The run with slow y-updates, using 0.01 for x and 0.0001 for y, also converges but more slowly.

This is a toy case with a known optimum, so it tests the timescale effect in isolation rather than GAN training.

DCGAN on four image datasets

The authors trained DCGAN on CelebA, CIFAR-10, SVHN and LSUN Bedrooms, and each learning rate setting was repeated eight times. Learning rates were chosen as large as possible while the FID or JSD kept decreasing, and training stopped when the best models stopped improving. The plots show the mean FID with the minimum and maximum over runs as a band.

Original training starts faster, but the authors report that TTUR reaches a lower FID later on. On LSUN Bedrooms the values were 57.5 for TTUR and 70.4 for original training, and on CIFAR-10 the gap is smaller, at 36.9 compared to 37.7. The SVHN row also lists 12.5 for TTUR and 21.4 for original training, at different learning rates.

The authors also report that all one time-scale runs diverged on CelebA and LSUN Bedrooms. The DCGAN generator used a larger learning rate than the discriminator, which the authors say doesn't contradict the TTUR theory.

WGAN-GP on image data

WGAN-GP's original code trains the discriminator five times per generator update, while TTUR trains it once, so the runs are aligned by wall-clock time. The authors argue TTUR can use a higher discriminator learning rate, since it stabilizes learning.

On CIFAR-10 the best FID was 24.8 for TTUR, compared to 29.3 for original training. On LSUN Bedrooms it was 9.5 for TTUR, compared to 20.5 for original training. The curves show the mean over eight runs, and the TTUR runs vary much less than the original ones.

WGAN-GP on the One Billion Word Benchmark

The One Billion Word Benchmark tests WGAN-GP on character sequences, where a 1D convolutional generator maps a latent vector to 32 one-hot character vectors. Because FID only works for images, the authors measure the Jensen-Shannon-divergence (JSD) between model and real n-gram statistics. The original code trains the critic ten times per generator update, while TTUR trains it once, so the comparison is aligned by wall-clock time.

On 4-gram statistics the normalized JSD was 0.35 for TTUR, compared to 0.38 for original training, and lower JSD is better. On 6-gram statistics it was 0.74 for TTUR, compared to 0.77 for original training. The authors read the 6-gram result as TTUR learning to produce more subtle pseudo-words that resemble real words.

The figure plots ten runs per method against wall-clock time, and the TTUR curves lie lower.

Limits of the proofs and experiments

Assumption A1 requires Lipschitz gradients, which networks with Lipschitz-smooth activations such as ELUs meet, but ReLU networks don't. The Adam result needs the second moment of the gradient to be stationary, and the normalization is treated as noise only under that condition.

For equal time scales, the paper can only show that the iterates revisit a neighborhood of the solution infinitely often, and that neighborhood may be very large. Learning rates were optimized for each experiment, so the TTUR advantage depends on that search.

The reported GAN training runs cover DCGAN and WGAN-GP only. The MNIST evidence for Adam's reduction of mode collapsing appears in one sentence of the text. The conclusion's claim that TTUR wins in all experiments covers only the DCGAN, WGAN-GP and One Billion Word runs reported here.

Paper info

Authors
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Sepp Hochreiter
Venue
arXiv · Preprint
First published
2017-6-26
Added
2026-11-11
Updated
2018-1-12
Version
v6
arXiv
1706.08500
Category
cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Sepp Hochreiter (2017). GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. arXiv:1706.08500v6. https://arxiv.org/abs/1706.08500v6

BibTeX
@misc{heusel2017gans,
  title = {{GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium}},
  author = {Martin Heusel and Hubert Ramsauer and Thomas Unterthiner and Bernhard Nessler and Sepp Hochreiter},
  year = {2017},
  eprint = {1706.08500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.08500v6}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up