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

Wasserstein GAN

  • Problem Maximum likelihood needs a model density, and the KL distance it implicitly targets is undefined when the model and data supports barely overlap, as happens for distributions on low-dimensional manifolds.
  • Method Trains a critic to approximate the Earth-Mover distance through the Kantorovich-Rubinstein duality, clips its weights to a fixed box, and updates the generator with the gradient of the critic's estimate.
  • Results With α = 0.00005, c = 0.01, m = 64 and n_critic = 5 held fixed across all experiments, the WGAN critic's estimate of the EM distance tracks sample quality on LSUN-Bedrooms.

Why likelihood struggles on low-dimensional data

Maximum likelihood needs a model density, and the KL distance it implicitly targets is undefined when the model and data supports barely overlap. When the true distribution sits on a low-dimensional manifold, the model manifold and the data support rarely intersect in a set of non-negligible measure, so the KL distance is infinite or undefined.

The usual remedy adds a noise term to the model, typically a Gaussian with high bandwidth, but this noise degrades image samples and makes them blurry. The noise needed is large: a recent study cited by the authors finds the optimal standard deviation for maximum likelihood is around 0.1 per pixel for images normalized to [0, 1], which is why papers report their samples without it.

The alternative fixes a random variable Z with distribution p(z) and passes it through a parametric function gθ, which produces samples from Pθ directly. This can represent distributions confined to a low-dimensional manifold, and it makes sampling easy, which matters for tasks such as image super-resolution and conditional segmentation. Variational Auto-Encoders and GANs follow this route.

VAEs still depend on additional noise terms, while GANs allow flexible objectives but are hard to train stably. The open question is which distance ρ(Pθ, Pr) to use, because that choice decides whether the loss θ ↦ ρ(Pθ, Pr) is continuous and therefore usable for gradient descent.

How the candidate distances compare

The total variation distance takes the supremum over Borel sets of the gap between the two probabilities. The KL divergence needs both distributions to have densities against a common measure, is asymmetric, and becomes infinite where the model density is zero while the real density is positive. The JS divergence averages two KL terms taken against the mixture of the two distributions, which makes it symmetric and always defined.

The Earth-Mover distance is the infimum over joint distributions with the two given marginals of the expected cost ‖x−y‖, which is the cost of the cheapest transport plan.

Example 1 places P0 on a vertical line through the origin and takes Pθ as the image of Z under gθ(z) = (θ, z). Here W(P0, Pθ) equals |θ|, while the JS divergence is log 2 for θ ≠ 0 and 0 at θ = 0. Both KL directions are +∞ for θ ≠ 0, and the TV distance equals 1 for θ ≠ 0. As θ tends to 0, the distributions converge to P0 under the EM distance but do not converge under JS, KL, reverse KL or TV.

Figure 1 contrasts the EM curve, which is continuous and gives usable gradients, with the discontinuous JS curve.

Why EM is continuous in the parameters

If gθ is continuous in θ, then W(Pr, Pθ) is continuous in θ. If gθ is locally Lipschitz and satisfies the regularity assumption on the expected local Lipschitz constants, W(Pr, Pθ) is continuous everywhere and differentiable almost everywhere. The same statements fail for the JS divergence and for every KL, as the parallel-lines example already shows.

Corollary 1 applies this to feedforward networks built from affine maps and smooth Lipschitz nonlinearities such as sigmoid, tanh, elu and softplus, with a prior p(z) whose expected norm is finite. The authors say the result also holds for rectifier nonlinearities but omit that proof because it is more technical. Under this corollary the regularity assumption holds, so the EM distance is continuous everywhere and differentiable almost everywhere.

On a compact space, Theorem 2 orders the topologies induced by these distances: KL is the strongest, JS and TV follow, and EM is the weakest. Convergence under EM is equivalent to convergence in distribution, and JS and TV convergence are equivalent to each other and imply EM convergence. The authors read this as showing that JS, KL and TV are poor loss functions when the distributions lie on low-dimensional manifolds, while EM remains sensible in that setting.

Estimating EM with a critic

The infimum that defines EM is intractable, so the paper uses the Kantorovich-Rubinstein duality, which writes W as a supremum over 1-Lipschitz functions f of the difference between the expectation of f under Pr and under Pθ. If the 1-Lipschitz bound is replaced by K, the supremum becomes K times W, so a family of K-Lipschitz functions yields EM up to a multiplicative constant.

The critic is a parameterized family fw with weights w, all K-Lipschitz, and training maximizes the difference between the mean of fw on real samples and the mean of fw on generated samples. If the supremum is attained, differentiating this value through the generator gives the gradient of W with respect to θ up to a constant.

To approximate the optimal f, a neural network with weights w in a compact set is trained, and its gradient is backpropagated to θ as in a typical GAN. The paper keeps the weights in a compact set by clamping each one to a fixed box, for example [−0.01, 0.01], after each gradient update, so that the family is K-Lipschitz with K depending on the box and not on the individual weights.

The authors also tried projecting the weights onto a sphere, which made little difference, and kept clipping for its simplicity.

The WGAN training loop

Each WGAN iteration runs n_critic critic steps before one generator step, with n_critic set to 5 by default. In each critic step, a batch of m real samples and a batch of m prior samples give the gradient of the mean critic output on real data minus the mean on generated data, which RMSProp applies to the critic weights. After each update the critic weights are clipped to the interval [−c, c].

The generator then takes one step on a fresh batch of prior samples, minimizing the negative mean critic output with RMSProp on θ. The learning rate α = 0.00005, clipping parameter c = 0.01, batch size m = 64 and n_critic = 5 are the defaults used in all experiments.

Training the critic close to optimality before each generator step is central to the method, because EM is continuous and differentiable almost everywhere, so a better critic gives a more reliable gradient. For the JS divergence, a better discriminator saturates, its true gradient is zero, and the gradients vanish, as Figure 1 and Theorem 2.4 of [1] show.

Figure 2 trains a GAN discriminator and a WGAN critic to optimality on two Gaussians. The discriminator separates real from fake and gives no reliable gradient, whereas the critic approaches a linear function with clean gradients across the space. The authors attribute the critic's smooth behaviour to the weight constraint, which limits growth to at most linear in different parts of the space.

The authors also argue that training the critic to optimality prevents mode collapse.

Does the critic loss track sample quality?

Because the critic is trained relatively well before each generator update, the loss at that point estimates the EM distance up to constant factors tied to the Lipschitz constraint.

Figure 3 plots the WGAN estimate of EM over training for these architectures, and the curves track the visual quality of the samples. In the upper panels, where the critic is a DCGAN without the sigmoid, the loss falls as training proceeds and the samples improve, for both the MLP generator and the DCGAN generator. The lower panels use MLP generator and discriminator with substantially high learning rates; training failed, and the loss and samples stayed constant.

The authors say that, to their knowledge, no earlier GAN paper showed a loss with this convergence-like behaviour, and they find it useful because runs can be compared without inspecting samples. They do not present the estimate as a new quantitative evaluation method, because the scaling constant depends on the critic's architecture and a finite-capacity critic does not reach the EM distance exactly.

The JS estimate during standard GAN training

During standard GAN training the discriminator maximizes L(D, gθ) = E_Pr[log D(x)] + E_Pθ[log(1−D(x))], which is a lower bound of 2JS(Pr, Pθ) − 2 log 2.

Figure 4 shows that this quantity correlates poorly with sample quality for an MLP generator and for a DCGAN generator, both with a DCGAN discriminator, and the caption reports rising error for both curves.

The JS estimate usually stays flat or rises rather than falls, and it often sits close to log 2 ≈ 0.69, the highest value the JS distance takes. The authors read this as the discriminator reaching zero loss and the JS distance saturating, with DCGAN samples sometimes meaningful and in other runs collapsing to a single image; they tie that collapse to [1] and [11].

With the −log D trick the generator and discriminator losses differ, and Figure 8 in Appendix E uses the generator loss and reaches the same conclusion.

Optimizer choice for the critic

WGAN training became unstable at times with Adam on the critic when β1 > 0, and also at high learning rates. They switched to RMSProp, which the authors note is known to perform well on very non-stationary problems.

Robustness to generator architecture

Three generator architectures are compared: a DCGAN generator, a DCGAN generator without batch normalization and with a constant number of filters, and a 4-layer ReLU-MLP with 512 hidden units. The last two are known to perform poorly with standard GANs, and in every case the WGAN critic or the GAN discriminator is a DCGAN.

Figure 5 shows the DCGAN generator, where both algorithms produce high-quality samples. Figure 6 shows the generator without batch normalization and with constant filters, which has more than an order of magnitude fewer parameters; the standard GAN failed to learn, while WGAN still produced samples. The authors say they saw no evidence of mode collapse for WGAN in any experiment, and the samples were not cherry-picked.

Figure 7 shows the 4-layer ReLU-MLP generator, which has a parameter count similar to a DCGAN but lacks a strong inductive bias for images. WGAN produced samples of lower quality than the DCGAN run and of higher quality than the standard GAN with the same MLP, where the authors note a significant degree of mode collapse.

How other distances and generative models relate

Integral probability metrics take the supremum of the difference of expectations of Pr and Pθ over a function class F, and the class determines the resulting metric. Restricting F to 1-Lipschitz functions recovers W, and K-Lipschitz functions give K·W. Restricting F to functions bounded between -1 and 1 recovers the TV distance, which the authors say changes the topology drastically.

EBGANs have a non-negative discriminator capped at m, and under an optimal discriminator their generator cost is proportional to the TV distance. Because TV has the same regularity as JS, EBGANs face the same problem of being unable to train the discriminator to optimality. MMD is an IPM whose function class is the unit ball of a reproducing kernel Hilbert space, and it is a proper metric when the kernel is universal.

The authors argue that low-bandwidth Gaussian kernels can enter a saturating regime similar to TV or JS, but whether this holds for every kernel is left as a research question.

GMMNs optimize the MMD distance by backpropagating through the kernelized formula without a separate critic, but they have had limited applicability, which the authors partly attribute to quadratic cost and vanishing gradients for low-bandwidth kernels. MMD estimation costs grow quadratically with the number of samples, and linear-cost estimates have worse sample complexity.

For 64x64 images the authors estimate that a reliable Gaussian MMD test needs minibatches of at least 4096 samples, far above the batch size of 64 used for GAN training. The authors acknowledge that this comparison is partly unfair, since it contrasts empirical GAN sample complexity with theoretical MMD bounds, and the original GMMN work used a minibatch of 1000.

The work of [14] uses Wasserstein distances to train Restricted Boltzmann Machines on discrete spaces, and the work of [3] gives new algorithms for computing Wasserstein distances.

Limitations

The authors describe weight clipping as a poor way to enforce the Lipschitz constraint. A large clipping value slows the critic toward its limit, and a small one can cause vanishing gradients in deep networks or where batch normalization is not used; enforcing Lipschitz constraints in networks is left for further work.

The loss estimate carries a constant that depends on the critic's architecture, so models with different critics are hard to compare. Because the critic has finite capacity, how close the estimate is to the EM distance is unknown. The authors do not present the estimate as a new quantitative evaluation method.

The image experiments use LSUN-Bedrooms with 64x64 samples, DCGAN baselines and the three generator setups described for the architecture comparison. WGAN training was unstable at times with Adam on the critic when β1 > 0 or at high learning rates.

Paper info

Authors
Martin Arjovsky, Soumith Chintala, Léon Bottou
Venue
arXiv · Preprint
First published
2017-1-26
Added
2026-10-20
Updated
2017-12-6
Version
v3
arXiv
1701.07875
Category
stat.ML · cs.LG
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 Arjovsky, Soumith Chintala, Léon Bottou (2017). Wasserstein GAN. arXiv:1701.07875v3. https://arxiv.org/abs/1701.07875v3

BibTeX
@misc{arjovsky2017wasserstein,
  title = {{Wasserstein GAN}},
  author = {Martin Arjovsky and Soumith Chintala and Léon Bottou},
  year = {2017},
  eprint = {1701.07875},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.07875v3}
}

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