Original: W ASSERSTEIN A UTO -E NCODERS
Revised: W ASSERSTEIN A UTO -E NCODERS

Original: A BSTRACT
Revised: A BSTRACT

Original: We propose the Wasserstein Auto-Encoder (WAE)—a new algorithm for building a generative model of the data distribution.
Revised: We propose the Wasserstein Auto-Encoder (WAE)—a new algorithm for building a generative model of the data distribution.

Original: WAE minimizes a penalized form of the Wasserstein distance between the model distribution and the target distribution, which leads to a different regularizer than the one used by the Variational
Revised: WAE minimizes a penalized form of the Wasserstein distance between the model distribution and the target distribution, which leads to a different regularizer than the one used by the Variational

Original: Auto-Encoder (VAE) (Kingma & Welling, 2014).
Revised: Auto-Encoder (VAE) (Kingma & Welling, 2014).

Original: This regularizer encourages the encoded training distribution to match the prior.
Revised: This regularizer encourages the encoded training distribution to match the prior.

Original: We compare our algorithm with several other techniques and show that it is a generalization of adversarial auto-encoders (AAE)
Revised: We compare our algorithm with several other techniques and show that it is a generalization of adversarial auto-encoders (AAE)

Original: (Makhzani et al., 2016).
Revised: (Makhzani et al., 2016).

Original: Our experiments show that WAE shares many of the properties of VAEs (stable training, encoder-decoder architecture, nice latent manifold structure) while generating samples of better quality, as measured by the FID score
Revised: Our experiments show that WAE shares many of the properties of VAEs (stable training, encoder-decoder architecture, nice latent manifold structure) while generating samples of better quality, as measured by the FID score

Original:  I NTRODUCTION
Revised:  I NTRODUCTION

Original: The ﬁeld of representation learning was initially driven by supervised approaches, with impressive results using large labelled datasets.
Revised: The ﬁeld of representation learning was initially driven by supervised approaches, with impressive results using large labelled datasets.

Original: Unsupervised generative modeling, in contrast, used to be a domain governed by probabilistic approaches focusing on low-dimensional data.
Revised: Unsupervised generative modeling, in contrast, used to be a domain governed by probabilistic approaches focusing on low-dimensional data.

Original: Recent years have seen a convergence of those two approaches.
Revised: Recent years have seen a convergence of those two approaches.

Original: In the new ﬁeld that formed at the intersection, variational auto-encoders (VAEs) (Kingma & Welling, 2014) constitute one well-established approach, theoretically elegant yet with the drawback that they tend to generate blurry samples when applied to natural images.
Revised: In the new ﬁeld that formed at the intersection, variational auto-encoders (VAEs) (Kingma & Welling, 2014) constitute one well-established approach, theoretically elegant yet with the drawback that they tend to generate blurry samples when applied to natural images.

Original: In contrast, generative adversarial networks (GANs) (Goodfellow et al., 2014) turned out to be more impressive in terms of the visual quality of images sampled from the model, but come without an encoder, have been reported harder to train, and suffer from the “mode collapse” problem where the resulting model is unable to capture all the variability in the true data distribution.
Revised: In contrast, generative adversarial networks (GANs) (Goodfellow et al., 2014) turned out to be more impressive in terms of the visual quality of images sampled from the model, but come without an encoder, have been reported harder to train, and suffer from the “mode collapse” problem where the resulting model is unable to capture all the variability in the true data distribution.

Original: There has been a ﬂurry of activity in assaying numerous conﬁgurations of GANs as well as combinations of VAEs and GANs.
Revised: There has been a ﬂurry of activity in assaying numerous conﬁgurations of GANs as well as combinations of VAEs and GANs.

Original: A unifying framework combining the best of GANs and
Revised: A unifying framework combining the best of GANs and

Original: VAEs in a principled way is yet to be discovered.
Revised: VAEs in a principled way is yet to be discovered.

Original: This work builds up on the theoretical analysis presented in Bousquet et al.
Revised: This work builds up on the theoretical analysis presented in Bousquet et al.

Original: Following
Revised: Following

Original: Arjovsky et al.
Revised: Arjovsky et al.

Original: ; Bousquet et al.
Revised: ; Bousquet et al.

Original: (2017), we approach generative modeling from the optimal transport (OT) point of view.
Revised: (2017), we approach generative modeling from the optimal transport (OT) point of view.

Original: The OT cost (Villani, 2003) is a way to measure a distance between probability distributions and provides a much weaker topology than many others, including f -divergences associated with the original GAN algorithms (Nowozin et al., 2016).
Revised: The OT cost (Villani, 2003) is a way to measure a distance between probability distributions and provides a much weaker topology than many others, including f -divergences associated with the original GAN algorithms (Nowozin et al., 2016).

Original: This is particularly important in applications, where data is usually supported on low dimensional manifolds in the input space X .
Revised: This is particularly important in applications, where data is usually supported on low dimensional manifolds in the input space X .

Original: As a result, stronger notions of distances (such as f -divergences, which capture the density ratio between distributions) often max out, providing no useful gradients for training.
Revised: As a result, stronger notions of distances (such as f -divergences, which capture the density ratio between distributions) often max out, providing no useful gradients for training.

Original: In contrast, OT was claimed to have a nicer behaviour (Arjovsky et al., 2017; Gulrajani et al., 2017) although it requires, in its GAN-like implementation, the addition of a constraint or a regularization term into the objective.
Revised: In contrast, OT was claimed to have a nicer behaviour (Arjovsky et al., 2017; Gulrajani et al., 2017) although it requires, in its GAN-like implementation, the addition of a constraint or a regularization term into the objective.

Original: [Figure]
Revised: [Figure]

Original: In this work we aim at minimizing OT W c
Revised: In this work we aim at minimizing OT W c

Original: ( P X , P G ) between the true (but unknown) data distribution
Revised: ( P X , P G ) between the true (but unknown) data distribution

Original: P X and a latent variable model P G speciﬁed by the prior distribution P Z of latent codes Z ∈ Z and the generative model P G ( X | Z ) of the data points X ∈ X given Z .
Revised: P X and a latent variable model P G speciﬁed by the prior distribution P Z of latent codes Z ∈ Z and the generative model P G ( X | Z ) of the data points X ∈ X given Z .

Original: Our main contributions are listed below (cf.
Revised: Our main contributions are listed below (cf.

Original: also Figure 1):
Revised: also Figure 1):

Original: • A new family of regularized auto-encoders (Algorithms 1, 2 and Eq. 4), which we call Wasserstein Auto-Encoders (WAE), that minimize the optimal transport W c ( P X , P G ) for any cost function c .
Revised: • A new family of regularized auto-encoders (Algorithms 1, 2 and Eq. 4), which we call Wasserstein Auto-Encoders (WAE), that minimize the optimal transport W c ( P X , P G ) for any cost function c .

Original: Similarly to VAE, the objective of WAE is composed of two terms: the c -reconstruction cost and a regularizer
Revised: Similarly to VAE, the objective of WAE is composed of two terms: the c -reconstruction cost and a regularizer

Original: D Z ( P Z , Q Z ) penalizing a discrepancy between two distributions in Z : P Z and a distribution of encoded data points, i.e. Q Z :=
Revised: D Z ( P Z , Q Z ) penalizing a discrepancy between two distributions in Z : P Z and a distribution of encoded data points, i.e. Q Z :=

Original: E P X [ Q ( Z | X )] .
Revised: E P X [ Q ( Z | X )] .

Original: When c is the squared cost and D Z is the GAN objective, WAE coincides with adversarial auto-encoders of Makhzani et al.
Revised: When c is the squared cost and D Z is the GAN objective, WAE coincides with adversarial auto-encoders of Makhzani et al.

Original: • Empirical evaluation of WAE on MNIST and CelebA datasets with squared cost c ( x, y )
Revised: • Empirical evaluation of WAE on MNIST and CelebA datasets with squared cost c ( x, y )

Original: = (cid:107) x
Revised: = (cid:107) x

Original: − y (cid:107) 22 .
Revised: − y (cid:107) 22 .

Original: Our experiments show that WAE keeps the good properties of VAEs (stable training, encoder-decoder architecture, and a nice latent manifold structure) while generating samples of better quality , approaching those of GANs.
Revised: Our experiments show that WAE keeps the good properties of VAEs (stable training, encoder-decoder architecture, and a nice latent manifold structure) while generating samples of better quality , approaching those of GANs.

Original: • We propose and examine two different regularizers
Revised: • We propose and examine two different regularizers

Original: D Z ( P Z , Q Z ) .
Revised: D Z ( P Z , Q Z ) .

Original: One is based on GANs and adversarial training in the latent space Z .
Revised: One is based on GANs and adversarial training in the latent space Z .

Original: The other uses the maximum mean discrepancy, which is known to perform well when matching high-dimensional standard normal distributions P Z
Revised: The other uses the maximum mean discrepancy, which is known to perform well when matching high-dimensional standard normal distributions P Z

Original: (Gretton et al., 2012).
Revised: (Gretton et al., 2012).

Original: Importantly, the second option leads to a fully adversary-free min-min optimization problem.
Revised: Importantly, the second option leads to a fully adversary-free min-min optimization problem.

Original: Finally, the theoretical considerations presented in Bousquet et al.
Revised: Finally, the theoretical considerations presented in Bousquet et al.

Original: and used here to derive the WAE objective might be interesting in their own right.
Revised: and used here to derive the WAE objective might be interesting in their own right.

Original: In particular, Theoremshows that in the case of generative models, the primal form of W c ( P X , P G ) is equivalent to a problem involving the optimization of a probabilistic encoder Q ( Z | X ) .
Revised: In particular, Theoremshows that in the case of generative models, the primal form of W c ( P X , P G ) is equivalent to a problem involving the optimization of a probabilistic encoder Q ( Z | X ) .

Original: The paper is structured as follows.
Revised: The paper is structured as follows.

Original: In Section 2 we review a novel auto-encoder formulation for
Revised: In Section 2 we review a novel auto-encoder formulation for

Original: OT between P X and the latent variable model P G derived in Bousquet et al.
Revised: OT between P X and the latent variable model P G derived in Bousquet et al.

Original: Relaxing the resulting constrained optimization problem we arrive at an objective of Wasserstein auto-encoders.
Revised: Relaxing the resulting constrained optimization problem we arrive at an objective of Wasserstein auto-encoders.

Original: We propose two different regularizers, leading to WAE-GAN and WAE-MMD algorithms.
Revised: We propose two different regularizers, leading to WAE-GAN and WAE-MMD algorithms.

Original: Section 3 discusses the related work.
Revised: Section 3 discusses the related work.

Original: We present the experimental results in Section 4 and conclude by pointing out some promising directions for future work.
Revised: We present the experimental results in Section 4 and conclude by pointing out some promising directions for future work.

Original:  P ROPOSED METHOD
Revised:  P ROPOSED METHOD

Original: Our new method minimizes the optimal transport cost W c ( P X , P G ) based on the novel auto-encoder formulation (see Theorem 1 below).
Revised: Our new method minimizes the optimal transport cost W c ( P X , P G ) based on the novel auto-encoder formulation (see Theorem 1 below).

Original: In the resulting optimization problem the decoder tries to accurately reconstruct the encoded training examples as measured by the cost function c .
Revised: In the resulting optimization problem the decoder tries to accurately reconstruct the encoded training examples as measured by the cost function c .

Original: The encoder tries to simultaneously achieve two conﬂicting goals: it tries to match the encoded distribution of training examples Q Z := E P X [ Q ( Z | X )] to the prior P Z as measured by any speciﬁed divergence D Z ( Q Z , P Z ) , while making sure that the latent codes provided to the decoder are informative enough to reconstruct the encoded training examples.
Revised: The encoder tries to simultaneously achieve two conﬂicting goals: it tries to match the encoded distribution of training examples Q Z := E P X [ Q ( Z | X )] to the prior P Z as measured by any speciﬁed divergence D Z ( Q Z , P Z ) , while making sure that the latent codes provided to the decoder are informative enough to reconstruct the encoded training examples.

Original: This is schematically depicted on Fig. 1.
Revised: This is schematically depicted on Fig. 1.

Original: 2. P RELIMINARIES AND NOTATIONS
Revised: 2. P RELIMINARIES AND NOTATIONS

Original: We use calligraphic letters (i.e. X ) for sets, capital letters (i.e. X ) for random variables, and lower case letters (i.e. x ) for their values.
Revised: We use calligraphic letters (i.e. X ) for sets, capital letters (i.e. X ) for random variables, and lower case letters (i.e. x ) for their values.

Original: We denote probability distributions with capital letters (i.e. P ( X ) ) and corresponding densities with lower case letters (i.e. p ( x ) ).
Revised: We denote probability distributions with capital letters (i.e. P ( X ) ) and corresponding densities with lower case letters (i.e. p ( x ) ).

Original: In this work we will consider several measures of discrepancy between probability distributions P X and P G .
Revised: In this work we will consider several measures of discrepancy between probability distributions P X and P G .

Original: The class of f -divergences (Liese & Miescke, 2008) is deﬁned by D f ( P X (cid:107) P G ) :
Revised: The class of f -divergences (Liese & Miescke, 2008) is deﬁned by D f ( P X (cid:107) P G ) :

Original: = (cid:82) f (cid:0)
Revised: = (cid:82) f (cid:0)

Original: p X ( x ) p G ( x ) (cid:1) p G ( x ) dx , where f : (0 , ∞ ) → R is any convex function satisfying f (1) = 0 .
Revised: p X ( x ) p G ( x ) (cid:1) p G ( x ) dx , where f : (0 , ∞ ) → R is any convex function satisfying f (1) = 0 .

Original: Classical examples include the
Revised: Classical examples include the

Original: Kullback-Leibler D KL and Jensen-Shannon D JS divergences.
Revised: Kullback-Leibler D KL and Jensen-Shannon D JS divergences.

Original: 2. O PTIMAL TRANSPORT AND ITS DUAL FORMULATIONS
Revised: 2. O PTIMAL TRANSPORT AND ITS DUAL FORMULATIONS

Original: A rich class of divergences between probability distributions is induced by the optimal transport (OT) problem (Villani, 2003).
Revised: A rich class of divergences between probability distributions is induced by the optimal transport (OT) problem (Villani, 2003).

Original: Kantorovich’s formulation of the problem is given by
Revised: Kantorovich’s formulation of the problem is given by

Original: [Equation]
Revised: [Equation]

Original: where c ( x, y ): X × X → R + is any measurable cost function and P ( X ∼ P X , Y ∼ P G ) is a set of all joint distributions of ( X, Y ) with marginals P X and P G respectively.
Revised: where c ( x, y ): X × X → R + is any measurable cost function and P ( X ∼ P X , Y ∼ P G ) is a set of all joint distributions of ( X, Y ) with marginals P X and P G respectively.

Original: A particularly interesting case is when ( X , d ) is a metric space and c ( x, y )
Revised: A particularly interesting case is when ( X , d ) is a metric space and c ( x, y )

Original: =
Revised: =

Original: d p ( x, y ) for p ≥ 1 .
Revised: d p ( x, y ) for p ≥ 1 .

Original: In this case W p , the p -th root of W c , is called the p -Wasserstein distance .
Revised: In this case W p , the p -th root of W c , is called the p -Wasserstein distance .

Original: When c ( x, y )
Revised: When c ( x, y )

Original: =
Revised: =

Original: d ( x, y ) the following Kantorovich-Rubinstein duality holds 1 :
Revised: d ( x, y ) the following Kantorovich-Rubinstein duality holds 1 :

Original: [Equation]
Revised: [Equation]

Original: where F L is the class of all bounded 1-Lipschitz functions on ( X , d ) .
Revised: where F L is the class of all bounded 1-Lipschitz functions on ( X , d ) .

Original: 2. A PPLICATION TO GENERATIVE MODELS : W ASSERSTEIN AUTO - ENCODERS
Revised: 2. A PPLICATION TO GENERATIVE MODELS : W ASSERSTEIN AUTO - ENCODERS

Original: One way to look at modern generative models like VAEs and GANs is to postulate that they are trying to minimize certain discrepancy measures between the data distribution P X and the model P G .
Revised: One way to look at modern generative models like VAEs and GANs is to postulate that they are trying to minimize certain discrepancy measures between the data distribution P X and the model P G .

Original: Unfortunately, most of the standard divergences known in the literature, including those listed above, are hard or even impossible to compute, especially when P X is unknown and P G is parametrized by deep neural networks.
Revised: Unfortunately, most of the standard divergences known in the literature, including those listed above, are hard or even impossible to compute, especially when P X is unknown and P G is parametrized by deep neural networks.

Original: Previous research provides several tricks to address this issue.
Revised: Previous research provides several tricks to address this issue.

Original: In case of minimizing the KL-divergence D KL ( P X , P G ) , or equivalently maximizing the marginal log-likelihood E P X [log p G ( X )] , the famous variational lower bound provides a theoretically grounded framework successfully employed by VAEs (Kingma & Welling, 2014; Mescheder et al., 2017).
Revised: In case of minimizing the KL-divergence D KL ( P X , P G ) , or equivalently maximizing the marginal log-likelihood E P X [log p G ( X )] , the famous variational lower bound provides a theoretically grounded framework successfully employed by VAEs (Kingma & Welling, 2014; Mescheder et al., 2017).

Original: More generally, if the goal is to minimize the f -divergence D f
Revised: More generally, if the goal is to minimize the f -divergence D f

Original: ( P X , P G ) (with one example being D KL ), one can resort to its dual formulation and make use of f -GANs and the adversarial training (Nowozin et al., 2016).
Revised: ( P X , P G ) (with one example being D KL ), one can resort to its dual formulation and make use of f -GANs and the adversarial training (Nowozin et al., 2016).

Original: Finally, OT cost W c ( P X , P G ) is yet another option, which can be, thanks to the celebrated Kantorovich-Rubinstein duality (2), expressed as an adversarial objective as implemented by the Wasserstein-GAN (Arjovsky et al., 2017).
Revised: Finally, OT cost W c ( P X , P G ) is yet another option, which can be, thanks to the celebrated Kantorovich-Rubinstein duality (2), expressed as an adversarial objective as implemented by the Wasserstein-GAN (Arjovsky et al., 2017).

Original: We include an extended review of all these methods in Supplementary A.
Revised: We include an extended review of all these methods in Supplementary A.

Original: In this work we will focus on latent variable models P G deﬁned by a two-step procedure, where ﬁrst a code Z is sampled from a ﬁxed distribution P Z on a latent space Z
Revised: In this work we will focus on latent variable models P G deﬁned by a two-step procedure, where ﬁrst a code Z is sampled from a ﬁxed distribution P Z on a latent space Z

Original: and then Z is mapped to the image X ∈ X
Revised: and then Z is mapped to the image X ∈ X

Original: = R d with a (possibly random) transformation.
Revised: = R d with a (possibly random) transformation.

Original: This results in a density of the form
Revised: This results in a density of the form

Original: [Equation]
Revised: [Equation]

Original: assuming all involved densities are properly deﬁned.
Revised: assuming all involved densities are properly deﬁned.

Original: For simplicity we will focus on non-random decoders, i.e. generative models P G ( X | Z ) deterministically mapping Z to X =
Revised: For simplicity we will focus on non-random decoders, i.e. generative models P G ( X | Z ) deterministically mapping Z to X =

Original: G ( Z ) for a given map
Revised: G ( Z ) for a given map

Original: G : Z → X .
Revised: G : Z → X .

Original: Similar results for random decoders can be found in Remark 1 and Appendix B. of Bousquet et al.
Revised: Similar results for random decoders can be found in Supplementary B.1.

Original: It turns out that under this model, the OT cost takes a simpler form as the transportation plan factors through the map G : instead of ﬁnding a coupling Γ in (1) between two random variables living in the X space, one distributed according to P X and the other one according to P G , it is sufﬁcient to ﬁnd a conditional distribution Q ( Z | X ) such that its Z marginal Q Z ( Z ) :
Revised: It turns out that under this model, the OT cost takes a simpler form as the transportation plan factors through the map G : instead of ﬁnding a coupling Γ in (1) between two random variables living in the X space, one distributed according to P X and the other one according to P G , it is sufﬁcient to ﬁnd a conditional distribution Q ( Z | X ) such that its Z marginal Q Z ( Z ) :

Original: =
Revised: =

Original: E X ∼ P X
Revised: E X ∼ P X

Original: [ Q ( Z | X )] is identical to the prior distribution P Z .
Revised: [ Q ( Z | X )] is identical to the prior distribution P Z .

Original: This is the content of the theorem below proved in Bousquet et al.
Revised: This is the content of the theorem below proved in Bousquet et al.

Revised: To make this paper self contained we repeat the proof in Supplementary B.

Original: Theorem 1 For P G as deﬁned above with deterministic P G ( X | Z ) and any function G : Z → X
Revised: Theorem 1 For P G as deﬁned above with deterministic P G ( X | Z ) and any function G : Z → X

Original: [Equation]
Revised: [Equation]

Original: where Q Z is the marginal distribution of Z when X ∼ P X and Z ∼ Q ( Z | X ) .
Revised: where Q Z is the marginal distribution of Z when X ∼ P X and Z ∼ Q ( Z | X ) .

Original: This result allows us to optimize over random encoders Q ( Z | X ) instead of optimizing over all couplings between X and Y .
Revised: This result allows us to optimize over random encoders Q ( Z | X ) instead of optimizing over all couplings between X and Y .

Original: Of course, both problems are still constrained.
Revised: Of course, both problems are still constrained.

Original: In order to implement a numerical solution we relax the constraints on Q Z by adding a penalty to the objective.
Revised: In order to implement a numerical solution we relax the constraints on Q Z by adding a penalty to the objective.

Original: This ﬁnally leads us to the WAE objective:
Revised: This ﬁnally leads us to the WAE objective:

Original: [Equation]
Revised: [Equation]

Original: where Q is any nonparametric set of probabilistic encoders, D Z is an arbitrary divergence between
Revised: where Q is any nonparametric set of probabilistic encoders, D Z is an arbitrary divergence between

Original: Q Z and P Z , and λ > 0 is a hyperparameter.
Revised: Q Z and P Z , and λ > 0 is a hyperparameter.

Original: Similarly to VAE, we propose to use deep neural networks to parametrize both encoders Q and decoders G .
Revised: Similarly to VAE, we propose to use deep neural networks to parametrize both encoders Q and decoders G .

Original: Note that as opposed to VAEs, the WAE formulation allows for non-random encoders deterministically mapping inputs to their latent codes.
Revised: Note that as opposed to VAEs, the WAE formulation allows for non-random encoders deterministically mapping inputs to their latent codes.

Original: We propose two different penalties D Z ( Q Z , P Z ) :
Revised: We propose two different penalties D Z ( Q Z , P Z ) :

Original: GAN-based D Z .
Revised: GAN-based D Z .

Original: The ﬁrst option is to choose D Z ( Q Z , P Z ) =
Revised: The ﬁrst option is to choose D Z ( Q Z , P Z ) =

Original: D JS ( Q Z , P Z ) and use the adversarial training to estimate it.
Revised: D JS ( Q Z , P Z ) and use the adversarial training to estimate it.

Original: Speciﬁcally, we introduce an adversary (discriminator) in the latent space
Revised: Speciﬁcally, we introduce an adversary (discriminator) in the latent space

Original: Z trying to separate 2 “true” points sampled from P Z and “fake” ones sampled from Q Z (Goodfellow et al., 2014).
Revised: Z trying to separate 2 “true” points sampled from P Z and “fake” ones sampled from Q Z (Goodfellow et al., 2014).

Original: This results in the WAE-GAN described in Algorithm 1.
Revised: This results in the WAE-GAN described in Algorithm 1.

Original: Even though WAE-GAN falls back to the min-max problem, we move the adversary from the input (pixel) space X to the latent space Z .
Revised: Even though WAE-GAN falls back to the min-max problem, we move the adversary from the input (pixel) space X to the latent space Z .

Original: On top of that, P Z may have a nice shape with a single mode (for a Gaussian prior), in which case the task should be easier than matching an unknown, complex, and possibly multi-modal distributions as usually done in GANs.
Revised: On top of that, P Z may have a nice shape with a single mode (for a Gaussian prior), in which case the task should be easier than matching an unknown, complex, and possibly multi-modal distributions as usually done in GANs.

Original: This is also a reason for our second penalty:
Revised: This is also a reason for our second penalty:

Original: MMD-based D Z .
Revised: MMD-based D Z .

Original: For a positive-deﬁnite reproducing kernel k : Z × Z → R the following expression is called the maximum mean discrepancy (MMD):
Revised: For a positive-deﬁnite reproducing kernel k : Z × Z → R the following expression is called the maximum mean discrepancy (MMD):

Original: [Equation]
Revised: [Equation]

Original: where H k is the RKHS of real-valued functions mapping Z to R .
Revised: where H k is the RKHS of real-valued functions mapping Z to R .

Original: If k is characteristic then MMD k deﬁnes a metric and can be used as a divergence measure.
Revised: If k is characteristic then MMD k deﬁnes a metric and can be used as a divergence measure.

Original: We propose to use D Z ( P Z , Q Z ) =
Revised: We propose to use D Z ( P Z , Q Z ) =

Original: MMD k ( P Z , Q Z ) .
Revised: MMD k ( P Z , Q Z ) .

Original: Fortunately, MMD has an unbiased U-statistic estimator, which can be used in conjunction with stochastic gradient descent (SGD) methods.
Revised: Fortunately, MMD has an unbiased U-statistic estimator, which can be used in conjunction with stochastic gradient descent (SGD) methods.

Original: This results in the WAE-MMD described in Algorithm 2.
Revised: This results in the WAE-MMD described in Algorithm 2.

Original: It is well known that the maximum mean discrepancy performs well when matching high-dimensional standard normal distributions (Gretton et al., 2012)
Revised: It is well known that the maximum mean discrepancy performs well when matching high-dimensional standard normal distributions (Gretton et al., 2012)

Original: so we expect this penalty to work especially well working with the Gaussian prior P Z .
Revised: so we expect this penalty to work especially well working with the Gaussian prior P Z .

Original: A LGORITHM 1 Wasserstein Auto-Encoder with GAN-based penalty (WAE-GAN).
Revised: A LGORITHM 1 Wasserstein Auto-Encoder with GAN-based penalty (WAE-GAN).

Original: Require: Regularization coefﬁcient λ > 0 .
Revised: Require: Regularization coefﬁcient λ > 0 .

Original: Initialize the parameters of the encoder Q φ , decoder G θ , and latent discriminator D γ .
Revised: Initialize the parameters of the encoder Q φ , decoder G θ , and latent discriminator D γ .

Original: while ( φ, θ ) not converged do
Revised: while ( φ, θ ) not converged do

Original: Sample { x 1 , . . .
Revised: Sample { x 1 , . . .

Original: , x n } from the training set
Revised: , x n } from the training set

Original: Sample { z 1 , . . .
Revised: Sample { z 1 , . . .

Original: , z n } from the prior P Z
Revised: , z n } from the prior P Z

Original: Sample ˜ z
Revised: Sample ˜ z

Original: i from Q φ ( Z | x i ) for i = 1 , . . . , n
Revised: i from Q φ ( Z | x i ) for i = 1 , . . . , n

Original: Update D γ by ascending: λ n n (cid:88)
Revised: Update D γ by ascending: λ n n (cid:88)

Original: i = log D
Revised: i = log D

Original: γ
Revised: γ

Original: ( z i ) + log (cid:0) 1 − D γ (˜ z i ) (cid:1)
Revised: ( z i ) + log (cid:0) 1 − D γ (˜ z i ) (cid:1)

Original: Update Q φ and G θ by descending: n n (cid:88) i
Revised: Update Q φ and G θ by descending: n n (cid:88) i

Original: =
Revised: =

Original: c (cid:0) x i , G θ (˜ z i ) (cid:1) − λ · log D γ (˜ z i ) end while
Revised: c (cid:0) x i , G θ (˜ z i ) (cid:1) − λ · log D γ (˜ z i ) end while

Original: A LGORITHM 2 Wasserstein Auto-Encoder with MMD-based penalty (WAE-MMD).
Revised: A LGORITHM 2 Wasserstein Auto-Encoder with MMD-based penalty (WAE-MMD).

Original: Require: Regularization coefﬁcient λ > 0 , characteristic positive-deﬁnite kernel k .
Revised: Require: Regularization coefﬁcient λ > 0 , characteristic positive-deﬁnite kernel k .

Original: Initialize the parameters of the encoder Q φ , decoder G θ , and latent discriminator D γ .
Revised: Initialize the parameters of the encoder Q φ , decoder G θ , and latent discriminator D γ .

Original: while ( φ, θ ) not converged do
Revised: while ( φ, θ ) not converged do

Original: Sample { x 1 , . . .
Revised: Sample { x 1 , . . .

Original: , x n } from the training set
Revised: , x n } from the training set

Original: Sample { z 1 , . . .
Revised: Sample { z 1 , . . .

Original: , z n } from the prior P Z
Revised: , z n } from the prior P Z

Original: Sample ˜ z
Revised: Sample ˜ z

Original: i from Q φ ( Z | x i ) for i = 1 , . . . , n
Revised: i from Q φ ( Z | x i ) for i = 1 , . . . , n

Original: Update Q φ and G θ by descending: n n (cid:88) i
Revised: Update Q φ and G θ by descending: n n (cid:88) i

Original: =
Revised: =

Original: c (cid:0) x i , G θ (˜ z i ) (cid:1) + λ n ( n − 1) (cid:88) (cid:96) (cid:54) =
Revised: c (cid:0) x i , G θ (˜ z i ) (cid:1) + λ n ( n − 1) (cid:88) (cid:96) (cid:54) =

Original: j k ( z (cid:96) , z j ) +
Revised: j k ( z (cid:96) , z j ) +

Original: [Table]
Revised: [Table]

Original: end while
Revised: end while

Original: We point out once again that the encoders Q φ ( Z | x ) in Algorithms 1 and 2 can be non-random, i.e. deterministically mapping input points to the latent codes.
Revised: We point out once again that the encoders Q φ ( Z | x ) in Algorithms 1 and 2 can be non-random, i.e. deterministically mapping input points to the latent codes.

Original: In this case Q φ ( Z | x ) =
Revised: In this case Q φ ( Z | x ) =

Original: δ µ φ ( x ) for a function µ φ : X → Z and in order to sample ˜
Revised: δ µ φ ( x ) for a function µ φ : X → Z and in order to sample ˜

Original: z
Revised: z

Original: i from Q φ ( Z | x i ) we just need to return µ φ ( x i ) .
Revised: i from Q φ ( Z | x i ) we just need to return µ φ ( x i ) .

Original:  R ELATED WORK
Revised:  R ELATED WORK

Original: Literature on auto-encoders Classical unregularized auto-encoders minimize only the reconstruction cost.
Revised: Literature on auto-encoders Classical unregularized auto-encoders minimize only the reconstruction cost.

Original: This results in different training points being encoded into non-overlapping zones chaotically scattered all across the Z space with “holes” in between where the decoder mapping P G ( X | Z ) has never been trained.
Revised: This results in different training points being encoded into non-overlapping zones chaotically scattered all across the Z space with “holes” in between where the decoder mapping P G ( X | Z ) has never been trained.

Original: Overall, the encoder Q ( Z | X ) trained in this way does not provide a useful representation and sampling from the latent space Z becomes hard (Bengio et al., 2013).
Revised: Overall, the encoder Q ( Z | X ) trained in this way does not provide a useful representation and sampling from the latent space Z becomes hard (Bengio et al., 2013).

Original: Variational auto-encoders (Kingma & Welling, 2014) minimize a variational bound on the KLdivergence D KL ( P X , P G ) which is composed of the reconstruction cost plus the regularizer E
Revised: Variational auto-encoders (Kingma & Welling, 2014) minimize a variational bound on the KLdivergence D KL ( P X , P G ) which is composed of the reconstruction cost plus the regularizer E

Original: P X [ D KL ( Q ( Z | X ) , P Z )] .
Revised: P X [ D KL ( Q ( Z | X ) , P Z )] .

Original: The regularizer captures how distinct the image by the encoder of each training example is from the prior P Z , which is not guaranteeing that the overall encoded distribution E P X [ Q ( Z | X )] matches P Z like WAE does.
Revised: The regularizer captures how distinct the image by the encoder of each training example is from the prior P Z , which is not guaranteeing that the overall encoded distribution E P X [ Q ( Z | X )] matches P Z like WAE does.

Original: Also, VAEs require non-degenerate (i.e. nondeterministic)
Revised: Also, VAEs require non-degenerate (i.e. nondeterministic)

Original: Gaussian encoders and random decoders for which the term log p G ( x | z ) can be computed and differentiated with respect to the parameters.
Revised: Gaussian encoders and random decoders for which the term log p G ( x | z ) can be computed and differentiated with respect to the parameters.

Original: Later Mescheder et al.
Revised: Later Mescheder et al.

Original: (2017) proposed a way to use VAE with non-Gaussian encoders.
Revised: (2017) proposed a way to use VAE with non-Gaussian encoders.

Original: WAE minimizes the optimal transport W c ( P X , P G ) and allows both probabilistic and deterministic encoder-decoder pairs of any kind.
Revised: WAE minimizes the optimal transport W c ( P X , P G ) and allows both probabilistic and deterministic encoder-decoder pairs of any kind.

Original: The VAE regularizer can be also equivalently written (Hoffman & Johnson, 2016) as a sum of
Revised: The VAE regularizer can be also equivalently written (Hoffman & Johnson, 2016) as a sum of

Original: D KL ( Q Z , P Z ) and a mutual information I Q ( X, Z ) between the images X and latent codes Z jointly distributed according to P X × Q ( Z | X ) .
Revised: D KL ( Q Z , P Z ) and a mutual information I Q ( X, Z ) between the images X and latent codes Z jointly distributed according to P X × Q ( Z | X ) .

Original: This observation provides another intuitive way to explain a difference between our algorithm and VAEs: WAEs simply drop the mutual information term
Revised: This observation provides another intuitive way to explain a difference between our algorithm and VAEs: WAEs simply drop the mutual information term

Original: I
Revised: I

Original: Q ( X, Z ) in the VAE regularizer.
Revised: Q ( X, Z ) in the VAE regularizer.

Original: When used with c ( x, y ) = (cid:107) x − y (cid:107) 

Revised: When used with c ( x, y ) = (cid:107) x − y (cid:107)

Original: WAE-GAN is equivalent to adversarial auto-encoders (AAE) proposed by Makhzani et al.
Revised: WAE-GAN is equivalent to adversarial auto-encoders (AAE) proposed by Makhzani et al.

Original: Theory of Bousquet et al.
Revised: Theory of Bousquet et al.

Original: (2017) (and in particular Theorem 1) thus suggests that AAEs minimize the 2-Wasserstein distance between P X and P G .
Revised: (2017) (and in particular Theorem 1) thus suggests that AAEs minimize the 2-Wasserstein distance between P X and P G .

Original: This provides the ﬁrst theoretical justiﬁcation for AAEs known to the authors.
Revised: This provides the ﬁrst theoretical justiﬁcation for AAEs known to the authors.

Original: WAE generalizes AAE in two ways: ﬁrst, it can use any cost function c in the input space X ; second, it can use any discrepancy measure
Revised: WAE generalizes AAE in two ways: ﬁrst, it can use any cost function c in the input space X ; second, it can use any discrepancy measure

Original: D Z in the latent space Z (for instance MMD), not necessarily the adversarial one of WAE-GAN.
Revised: D Z in the latent space Z (for instance MMD), not necessarily the adversarial one of WAE-GAN.

Original: Finally, Zhao et al.
Revised: Finally, Zhao et al.

Original: (2017b) independently proposed a regularized auto-encoder objective similar to
Revised: (2017b) independently proposed a regularized auto-encoder objective similar to

Original: Bousquet et al.
Revised: Bousquet et al.

Original: (2017) and our (4) based on very different motivations and arguments.
Revised: (2017) and our (4) based on very different motivations and arguments.

Original: Following
Revised: Following

Original: VAEs their objective (called InfoVAE) deﬁnes the reconstruction cost in the image space implicitly through the negative log likelihood term − log p G ( x | z ) , which should be properly normalized for all z ∈ Z .
Revised: VAEs their objective (called InfoVAE) deﬁnes the reconstruction cost in the image space implicitly through the negative log likelihood term − log p G ( x | z ) , which should be properly normalized for all z ∈ Z .

Original: In theory VAE and InfoVAE can both induce arbitrary cost functions, however in practice this may require an estimation of the normalizing constant (partition function) which can 3 be different for different values of z .
Revised: In theory VAE and InfoVAE can both induce arbitrary cost functions, however in practice this may require an estimation of the normalizing constant (partition function) which can 3 be different for different values of z .

Original: WAEs specify the cost c ( x, y ) explicitly and don’t constrain it in any way.
Revised: WAEs specify the cost c ( x, y ) explicitly and don’t constrain it in any way.

Original: Literature on OT Genevay et al.
Revised: Literature on OT Genevay et al.

Original: (2016) address computing the OT cost in large scale using SGD and sampling.
Revised: (2016) address computing the OT cost in large scale using SGD and sampling.

Original: They approach this task either through the dual formulation, or via a regularized version of the primal.
Revised: They approach this task either through the dual formulation, or via a regularized version of the primal.

Original: They do not discuss any implications for generative modeling.
Revised: They do not discuss any implications for generative modeling.

Original: Our approach is based on the primal form of OT, we arrive at regularizers which are very different, and our main focus is on generative modeling.
Revised: Our approach is based on the primal form of OT, we arrive at regularizers which are very different, and our main focus is on generative modeling.

Original: The WGAN (Arjovsky et al., 2017) minimizes the 1-Wasserstein distance W 1 ( P X , P G ) for generative modeling.
Revised: The WGAN (Arjovsky et al., 2017) minimizes the 1-Wasserstein distance W 1 ( P X , P G ) for generative modeling.

Original: The authors approach this task from the dual form.
Revised: The authors approach this task from the dual form.

Original: Their algorithm comes without an encoder and can not be readily applied to any other cost W c , because the neat form of the
Revised: Their algorithm comes without an encoder and can not be readily applied to any other cost W c , because the neat form of the

Original: Kantorovich-Rubinstein duality (2) holds only for W 1 .
Revised: Kantorovich-Rubinstein duality (2) holds only for W 1 .

Original: WAE approaches the same problem from the primal form, can be applied for any cost function c , and comes naturally with an encoder.
Revised: WAE approaches the same problem from the primal form, can be applied for any cost function c , and comes naturally with an encoder.

Original: In order to compute the values (1) or (2) of OT we need to handle non-trivial constraints, either on the coupling distribution Γ or on the function f being considered.
Revised: In order to compute the values (1) or (2) of OT we need to handle non-trivial constraints, either on the coupling distribution Γ or on the function f being considered.

Original: Various approaches have been proposed in the literature to circumvent this difﬁculty.
Revised: Various approaches have been proposed in the literature to circumvent this difﬁculty.

Original: For W 1 Arjovsky et al.
Revised: For W 1 Arjovsky et al.

Original: (2017) tried to implement the constraint in the dual formulation (2) by clipping the weights of the neural network f .
Revised: (2017) tried to implement the constraint in the dual formulation (2) by clipping the weights of the neural network f .

Original: Later Gulrajani et al.
Revised: Later Gulrajani et al.

Original: (2017) proposed to relax the same constraint by penalizing the objective of (2) with a term λ · E ( (cid:107)∇ f ( X ) (cid:107) − 1) 2 which should not be greater than 1 if f ∈ F L .
Revised: (2017) proposed to relax the same constraint by penalizing the objective of (2) with a term λ · E ( (cid:107)∇ f ( X ) (cid:107) − 1) 2 which should not be greater than 1 if f ∈ F L .

Original: In a more general OT setting of W c Cuturi (2013) proposed to penalize the objective of (1) with the KLdivergence λ · D KL (Γ , P ⊗ Q ) between the coupling distribution and the product of marginals.
Revised: In a more general OT setting of W c Cuturi (2013) proposed to penalize the objective of (1) with the KLdivergence λ · D KL (Γ , P ⊗ Q ) between the coupling distribution and the product of marginals.

Original: Genevay et al.
Revised: Genevay et al.

Original: (2016) showed that this entropic regularization drops the constraints on functions in the dual formulation as opposed to (2).
Revised: (2016) showed that this entropic regularization drops the constraints on functions in the dual formulation as opposed to (2).

Original: Finally, in the context of unbalanced optimal transport it has been proposed to relax the constraint in (1) by regularizing the objective with λ · (cid:0) D f
Revised: Finally, in the context of unbalanced optimal transport it has been proposed to relax the constraint in (1) by regularizing the objective with λ · (cid:0) D f

Original: (Γ X , P )
Revised: (Γ X , P )

Original: +
Revised: +

Original: D f
Revised: D f

Original: (Γ Y , Q ) (cid:1) (Chizat et al., 2015;
Revised: (Γ Y , Q ) (cid:1) (Chizat et al., 2015;

Original: Liero et al., 2015), where Γ X and Γ Y are marginals of Γ .
Revised: Liero et al., 2015), where Γ X and Γ Y are marginals of Γ .

Original: In this paper we propose to relax OT in a way similar to the unbalanced optimal transport, i.e. by adding additional divergences to the objective.
Revised: In this paper we propose to relax OT in a way similar to the unbalanced optimal transport, i.e. by adding additional divergences to the objective.

Original: However, we show that in the particular context of generative modeling, only one extra divergence is necessary.
Revised: However, we show that in the particular context of generative modeling, only one extra divergence is necessary.

Original: Literature on GANs Many of the GAN variations (including f -GAN and WGAN) come without an encoder.
Revised: Literature on GANs Many of the GAN variations (including f -GAN and WGAN) come without an encoder.

Original: Often it may be desirable to reconstruct the latent codes and use the learned manifold, in which cases these models are not applicable.
Revised: Often it may be desirable to reconstruct the latent codes and use the learned manifold, in which cases these models are not applicable.

Original: There have been many other approaches trying to blend the adversarial training of GANs with autoencoder architectures (Zhao et al., 2017a; Dumoulin et al., 2017; Ulyanov et al., 2017; Berthelot et al., 2017).
Revised: There have been many other approaches trying to blend the adversarial training of GANs with autoencoder architectures (Zhao et al., 2017a; Dumoulin et al., 2017; Ulyanov et al., 2017; Berthelot et al., 2017).

Original: The approach proposed by Ulyanov et al.
Revised: The approach proposed by Ulyanov et al.

Original: (2017) is perhaps the most relevant to our work.
Revised: (2017) is perhaps the most relevant to our work.

Original: The authors use the discrepancy between Q Z and the distribution E Z (cid:48) ∼ P Z [ Q (cid:0) Z | G ( Z (cid:48) )
Revised: The authors use the discrepancy between Q Z and the distribution E Z (cid:48) ∼ P Z [ Q (cid:0) Z | G ( Z (cid:48) )

Original: (cid:1) ] of auto-encoded noise vectors as the objective for the max-min game between the encoder and decoder respectively.
Revised: (cid:1) ] of auto-encoded noise vectors as the objective for the max-min game between the encoder and decoder respectively.

Original: While the authors showed that the saddle points correspond to P X
Revised: While the authors showed that the saddle points correspond to P X

Original: = P G , they admit that encoders and decoders trained in this way have no incentive to be reciprocal.
Revised: = P G , they admit that encoders and decoders trained in this way have no incentive to be reciprocal.

Original: As a workaround they propose to include an additional reconstruction term to the objective.
Revised: As a workaround they propose to include an additional reconstruction term to the objective.

Original: WAE does not necessarily lead to a min-max game, uses a different penalty, and has a clear theoretical foundation.
Revised: WAE does not necessarily lead to a min-max game, uses a different penalty, and has a clear theoretical foundation.

Original: Several works used reproducing kernels in context of GANs.
Revised: Several works used reproducing kernels in context of GANs.

Original: Li et al.
Revised: Li et al.

Original: ; Dziugaite et al.
Revised: ; Dziugaite et al.

Original: (2015) use MMD with a ﬁxed kernel k to match P X and P G directly in the input space X .
Revised: (2015) use MMD with a ﬁxed kernel k to match P X and P G directly in the input space X .

Original: These methods have been criticised to require larger mini-batches during training: estimating MMD k
Revised: These methods have been criticised to require larger mini-batches during training: estimating MMD k

Original: ( P X , P G ) requires number of samples roughly proportional to the dimensionality of the input space X
Revised: ( P X , P G ) requires number of samples roughly proportional to the dimensionality of the input space X

Original: (Reddi et al., 2015) which is typically larger than 10 3 .
Revised: (Reddi et al., 2015) which is typically larger than 10 3 .

Original: Li et al.
Revised: Li et al.

Original: (2017) take a similar approach but further train k adversarially so as to arrive at a meaningful loss function.
Revised: (2017) take a similar approach but further train k adversarially so as to arrive at a meaningful loss function.

Original: WAE-MMD uses MMD to match
Revised: WAE-MMD uses MMD to match

Original: Q Z to the prior P Z in the latent space Z .
Revised: Q Z to the prior P Z in the latent space Z .

Original: Typically Z has no more than 100 dimensions and P Z is
Revised: Typically Z has no more than 100 dimensions and P Z is

Original: Gaussian, which allows us to use regular mini-batch sizes to accurately estimate MMD.
Revised: Gaussian, which allows us to use regular mini-batch sizes to accurately estimate MMD.

Original: T e s t i n t e r po l a ti on s
Revised: T e s t i n t e r po l a ti on s

Original: T e s t r ec on s t r u c ti o n s
Revised: T e s t r ec on s t r u c ti o n s

Original: R a ndo m s a m p l e s
Revised: R a ndo m s a m p l e s

Original: VAE
Revised: VAE

Original: WAE-
Revised: WAE-

Original: GAN
Revised: GAN

Original:  E XPERIMENTS
Revised:  E XPERIMENTS

Original: In this section we empirically evaluate 4 the proposed WAE model.
Revised: In this section we empirically evaluate 4 the proposed WAE model.

Original: We would like to test if WAE can simultaneously achieve (i) accurate reconstructions of data points, (ii) reasonable geometry of the latent manifold, and (iii) random samples of good (visual) quality.
Revised: We would like to test if WAE can simultaneously achieve (i) accurate reconstructions of data points, (ii) reasonable geometry of the latent manifold, and (iii) random samples of good (visual) quality.

Original: Importantly, the model should generalize well: requirements (i) and (ii) should be met on both training and test data.
Revised: Importantly, the model should generalize well: requirements (i) and (ii) should be met on both training and test data.

Original: We trained
Revised: We trained

Original: WAE-GAN and WAE-MMD (Algorithms 1 and 2) on two real-world datasets: MNIST (LeCun et al., 1998) consisting of 70k images and CelebA (Liu et al., 2015) containing roughly 203k images.
Revised: WAE-GAN and WAE-MMD (Algorithms 1 and 2) on two real-world datasets: MNIST (LeCun et al., 1998) consisting of 70k images and CelebA (Liu et al., 2015) containing roughly 203k images.

Original: Experimental setup In all reported experiments we used Euclidian latent spaces Z = R d z for various d z depending on the complexity of the dataset, isotropic Gaussian prior distributions
Revised: Experimental setup In all reported experiments we used Euclidian latent spaces Z = R d z for various d z depending on the complexity of the dataset, isotropic Gaussian prior distributions

Original: P Z ( Z ) =
Revised: P Z ( Z ) =

Original: N ( Z ; 0 , σ 2 z · I d ) over Z , and a squared cost function c ( x, y ) =
Revised: N ( Z ; 0 , σ 2 z · I d ) over Z , and a squared cost function c ( x, y ) =

Original: (cid:107) x − y (cid:107) 22 for data points x, y ∈ X
Revised: (cid:107) x − y (cid:107) 22 for data points x, y ∈ X

Original: = R d x .
Revised: = R d x .

Original: We used deterministic encoder-decoder pairs, Adam (Kingma & Lei, 2014) with β 1 = 0 .
Revised: We used deterministic encoder-decoder pairs, Adam (Kingma & Lei, 2014) with β 1 = 0 .

Original: 5 , β 2 = 0 .
Revised: 5 , β 2 = 0 .

Original: 999 , and convolutional deep neural network architectures for encoder mapping µ φ : X → Z and decoder mapping G θ : Z → X similar to the DCGAN ones reported by Radford et al.
Revised: 999 , and convolutional deep neural network architectures for encoder mapping µ φ : X → Z and decoder mapping G θ : Z → X similar to the DCGAN ones reported by Radford et al.

Original: (2016) with batch normalization (Ioffe & Szegedy, 2015).
Revised: (2016) with batch normalization (Ioffe & Szegedy, 2015).

Original: We tried various values of λ and noticed that λ
Revised: We tried various values of λ and noticed that λ

Original: = 10 seems to work good across all datasets we considered.
Revised: = 10 seems to work good across all datasets we considered.

Original: Since we are using deterministic encoders, choosing d z larger than intrinsic dimensionality of the dataset would force the encoded distribution Q Z to live on a manifold in Z .
Revised: Since we are using deterministic encoders, choosing d z larger than intrinsic dimensionality of the dataset would force the encoded distribution Q Z to live on a manifold in Z .

Original: This would make matching Q Z to P Z impossible if P Z is Gaussian and may lead to numerical instabilities.
Revised: This would make matching Q Z to P Z impossible if P Z is Gaussian and may lead to numerical instabilities.

Original: We use d z = 8 for MNIST and d z = 64 for CelebA which seems to work reasonably well.
Revised: We use d z = 8 for MNIST and d z = 64 for CelebA which seems to work reasonably well.

Original: T e s t i n t e r po l a ti on s
Revised: T e s t i n t e r po l a ti on s

Original: T e s t r ec on s t r u c ti o n s
Revised: T e s t r ec on s t r u c ti o n s

Original: R a ndo m s a m p l e s
Revised: R a ndo m s a m p l e s

Original: We also report results of VAEs.
Revised: We also report results of VAEs.

Original: VAEs used the same latent spaces as discussed above and standard
Revised: VAEs used the same latent spaces as discussed above and standard

Original: Gaussian priors P Z = N ( 0 , I d ) .
Revised: Gaussian priors P Z = N ( 0 , I d ) .

Original: We used Gaussian encoders Q ( Z | X ) =
Revised: We used Gaussian encoders Q ( Z | X ) =

Original: N (cid:0) Z ; µ φ ( X ) , Σ( X ) (cid:1) with mean µ φ and diagonal covariance Σ .
Revised: N (cid:0) Z ; µ φ ( X ) , Σ( X ) (cid:1) with mean µ φ and diagonal covariance Σ .

Original: For both MNIST and CelebA we used Bernoulli decoders parametrized by G θ .
Revised: For both MNIST and CelebA we used Bernoulli decoders parametrized by G θ .

Original: Functions µ φ , Σ , and G θ were parametrized by deep nets of the same architectures as used in WAE.
Revised: Functions µ φ , Σ , and G θ were parametrized by deep nets of the same architectures as used in WAE.

Original: WAE-GAN and WAE-MMD speciﬁcs In WAE-GAN we used discriminator D composed of several fully connected layers with ReLu.
Revised: WAE-GAN and WAE-MMD speciﬁcs In WAE-GAN we used discriminator D composed of several fully connected layers with ReLu.

Original: We tried WAE-MMD with the RBF kernel but observed that it fails to penalize the outliers of Q Z because of the quick tail decay.
Revised: We tried WAE-MMD with the RBF kernel but observed that it fails to penalize the outliers of Q Z because of the quick tail decay.

Original: If the codes ˜ z
Revised: If the codes ˜ z

Original: = µ φ ( x ) for some of the training points x ∈ X end up far away from the support of P Z (which may happen in the early stages of training)
Revised: = µ φ ( x ) for some of the training points x ∈ X end up far away from the support of P Z (which may happen in the early stages of training)

Original: the corresponding terms in the U-statistic k ( z, ˜ z ) = e −(cid:107) ˜
Revised: the corresponding terms in the U-statistic k ( z, ˜ z ) = e −(cid:107) ˜

Original: z − z (cid:107) 

Revised: z − z (cid:107)

Original: /σ 2 k will quickly approach zero and provide no gradient for those outliers.
Revised: /σ 2 k will quickly approach zero and provide no gradient for those outliers.

Original: This could be avoided by choosing the kernel bandwidth σ 2 k in a data-dependent manner, however in this case per-minibatch U-statistic would not provide an unbiased estimate for the gradient.
Revised: This could be avoided by choosing the kernel bandwidth σ 2 k in a data-dependent manner, however in this case per-minibatch U-statistic would not provide an unbiased estimate for the gradient.

Original: Instead, we used the inverse multiquadratics kernel k ( x, y )
Revised: Instead, we used the inverse multiquadratics kernel k ( x, y )

Original: =
Revised: =

Original: C/ ( C + (cid:107) x
Revised: C/ ( C + (cid:107) x

Original: − y (cid:107) 22 ) which is also characteristic and has much heavier tails.
Revised: − y (cid:107) 22 ) which is also characteristic and has much heavier tails.

Original: In all experiments we used C = 

Revised: In all experiments we used C =

Original: d z σ 2 z , which is the expected squared distance between two multivariate Gaussian vectors drawn from P Z .
Revised: d z σ 2 z , which is the expected squared distance between two multivariate Gaussian vectors drawn from P Z .

Original: This signiﬁcantly improved the performance compared to the RBF kernel (even the one with σ 2 k = 

Revised: This signiﬁcantly improved the performance compared to the RBF kernel (even the one with σ 2 k =

Original: d z σ 2 z ).
Revised: d z σ 2 z ).

Original: Trained models are presented in Figures 2 and 3.
Revised: Trained models are presented in Figures 2 and 3.

Original: Further details are presented in Supplementary B.
Revised: Further details are presented in Supplementary C.

Original: Random samples are generated by sampling P Z and decoding the resulting noise vectors z into G θ ( z ) .
Revised: Random samples are generated by sampling P Z and decoding the resulting noise vectors z into G θ ( z ) .

Original: As expected, in our experiments we observed that for both WAE-GAN and
Revised: As expected, in our experiments we observed that for both WAE-GAN and

Original: WAE-MMD the quality of samples strongly depends on how accurately Q Z matches P Z .
Revised: WAE-MMD the quality of samples strongly depends on how accurately Q Z matches P Z .

Original: To see this, notice that during training the decoder function G θ is presented only with encoded versions µ φ ( X ) of the data points X ∼ P X .
Revised: To see this, notice that during training the decoder function G θ is presented only with encoded versions µ φ ( X ) of the data points X ∼ P X .

Original: Indeed, the decoder is trained on samples from Q Z and thus there is no reason to expect good results when feeding it with samples from P Z .
Revised: Indeed, the decoder is trained on samples from Q Z and thus there is no reason to expect good results when feeding it with samples from P Z .

Original: In our experiments we noticed that even slight differences between Q Z and
Revised: In our experiments we noticed that even slight differences between Q Z and

Original: P Z may affect the quality of samples.
Revised: P Z may affect the quality of samples.

Original: In some cases WAE-GAN seems to lead to a better matching and generates better samples than WAE-MMD.
Revised: In some cases WAE-GAN seems to lead to a better matching and generates better samples than WAE-MMD.

Original: However, due to adversarial training
Revised: However, due to adversarial training

Original: WAE-GAN is highly unstable, while WAE-MMD has a very stable training much like VAE.
Revised: WAE-GAN is highly unstable, while WAE-MMD has a very stable training much like VAE.

Original: [Table]
Revised: [Table]

Original: In order to quantitatively assess the quality of the generated images, we use the Fr´echet Inception Distance introduced by Heusel et al.
Revised: In order to quantitatively assess the quality of the generated images, we use the Fr´echet Inception Distance introduced by Heusel et al.

Original: and report the results on
Revised: and report the results on

Original: CelebA in Table 1.
Revised: CelebA in Table 1.

Original: These results conﬁrm that the sampled images from WAE are of better quality than from VAE, and WAE-GAN gets a slightly better score than WAEMMD, which correlates with visual inspection of the images.
Revised: These results conﬁrm that the sampled images from WAE are of better quality than from VAE, and WAE-GAN gets a slightly better score than WAEMMD, which correlates with visual inspection of the images.

Original: Test reconstructions and interpolations.
Revised: Test reconstructions and interpolations.

Original: We take random points x from the held out test set and report their auto-encoded versions G θ ( µ φ ( x )) .
Revised: We take random points x from the held out test set and report their auto-encoded versions G θ ( µ φ ( x )) .

Original: Next, pairs ( x, y ) of different data points are sampled randomly from the held out test set and encoded:
Revised: Next, pairs ( x, y ) of different data points are sampled randomly from the held out test set and encoded:

Original: z x = µ φ ( x ) , z y = µ φ ( y ) .
Revised: z x = µ φ ( x ) , z y = µ φ ( y ) .

Original: We linearly interpolate between z x and z y with equally-sized steps in the latent space and show decoded images.
Revised: We linearly interpolate between z x and z y with equally-sized steps in the latent space and show decoded images.

Original:  C ONCLUSION
Revised:  C ONCLUSION

Original: Using the optimal transport cost, we have derived Wasserstein auto-encoders—a new family of algorithms for building generative models.
Revised: Using the optimal transport cost, we have derived Wasserstein auto-encoders—a new family of algorithms for building generative models.

Original: We discussed their relations to other probabilistic modeling techniques.
Revised: We discussed their relations to other probabilistic modeling techniques.

Original: We conducted experiments using two particular implementations of the proposed method, showing that in comparison to VAEs, the images sampled from the trained WAE models are of better quality, without compromising the stability of training and the quality of reconstruction.
Revised: We conducted experiments using two particular implementations of the proposed method, showing that in comparison to VAEs, the images sampled from the trained WAE models are of better quality, without compromising the stability of training and the quality of reconstruction.

Original: Future work will include further exploration of the criteria for matching the encoded distribution Q Z to the prior distribution P Z , assaying the possibility of adversarially training the cost function c in the input space X , and a theoretical analysis of the dual formulations for WAE-GAN and WAE-MMD.
Revised: Future work will include further exploration of the criteria for matching the encoded distribution Q Z to the prior distribution P Z , assaying the possibility of adversarially training the cost function c in the input space X , and a theoretical analysis of the dual formulations for WAE-GAN and WAE-MMD.

Original: A CKNOWLEDGMENTS
Revised: A CKNOWLEDGMENTS

Original: The authors are thankful to Carl Johann Simon-Gabriel, Mateo Rojas-Carulla, Arthur Gretton, Paul
Revised: The authors are thankful to Carl Johann Simon-Gabriel, Mateo Rojas-Carulla, Arthur Gretton, Paul

Original: Rubenstein and Fei Sha for stimulating discussions.
Revised: Rubenstein and Fei Sha for stimulating discussions.

Original: A I MPLICIT GENERATIVE MODELS : A SHORT TOUR OF GAN S AND VAE S
Revised: A I MPLICIT GENERATIVE MODELS : A SHORT TOUR OF GAN S AND VAE S

Original: Even though GANs and VAEs are quite different—both in terms of the conceptual frameworks and empirical performance—they share important features: (a) both can be trained by sampling from the model P G without knowing an analytical form of its density and (b) both can be scaled up with
Revised: Even though GANs and VAEs are quite different—both in terms of the conceptual frameworks and empirical performance—they share important features: (a) both can be trained by sampling from the model P G without knowing an analytical form of its density and (b) both can be scaled up with

Original: SGD.
Revised: SGD.

Original: As a result, it becomes possible to use highly ﬂexible implicit models P G deﬁned by a twostep procedure, where ﬁrst a code Z is sampled from a ﬁxed distribution P Z on a latent space Z
Revised: As a result, it becomes possible to use highly ﬂexible implicit models P G deﬁned by a twostep procedure, where ﬁrst a code Z is sampled from a ﬁxed distribution P Z on a latent space Z

Original: and then Z is mapped to the image G ( Z ) ∈
Revised: and then Z is mapped to the image G ( Z ) ∈

Original: X
Revised: X

Original: = R d with a (possibly random) transformation
Revised: = R d with a (possibly random) transformation

Original: G : Z → X .
Revised: G : Z → X .

Original: This results in latent variable models P G of the form (3).
Revised: This results in latent variable models P G of the form (3).

Original: These models are indeed easy to sample and, provided G can be differentiated analytically with respect to its parameters, P G can be trained with SGD.
Revised: These models are indeed easy to sample and, provided G can be differentiated analytically with respect to its parameters, P G can be trained with SGD.

Original: The ﬁeld is growing rapidly and numerous variations of VAEs and GANs are available in the literature.
Revised: The ﬁeld is growing rapidly and numerous variations of VAEs and GANs are available in the literature.

Original: Next we introduce and compare several of them.
Revised: Next we introduce and compare several of them.

Original: The original generative adversarial network (GAN) Goodfellow et al.
Revised: The original generative adversarial network (GAN) Goodfellow et al.

Original: (2014) approach minimizes
Revised: (2014) approach minimizes

Original: [Equation]
Revised: [Equation]

Original: (5) with respect to a deterministic decoder G : Z → X , where T is any non-parametric class of choice.
Revised: (5) with respect to a deterministic decoder G : Z → X , where T is any non-parametric class of choice.

Original: It is known that D GAN ( P X , P G ) ≤ 2 · D JS ( P X , P G ) − log(4) and the inequality turns into identity in the nonparametric limit , that is when the class T becomes rich enough to represent all functions mapping X to (0 , 1) .
Revised: It is known that D GAN ( P X , P G ) ≤ 2 · D JS ( P X , P G ) − log(4) and the inequality turns into identity in the nonparametric limit , that is when the class T becomes rich enough to represent all functions mapping X to (0 , 1) .

Original: Hence, GANs are minimizing a lower bound on the JS-divergence.
Revised: Hence, GANs are minimizing a lower bound on the JS-divergence.

Original: However, GANs are not only linked to the JS-divergence: the f -GAN approach Nowozin et al.
Revised: However, GANs are not only linked to the JS-divergence: the f -GAN approach Nowozin et al.

Original: (2016) showed that a slight modiﬁcation D f , GAN of the objective (5) allows to lower bound any desired f -divergence in a similar way.
Revised: (2016) showed that a slight modiﬁcation D f , GAN of the objective (5) allows to lower bound any desired f -divergence in a similar way.

Original: In practice, both decoder G and discriminator T are trained in alternating SGD steps.
Revised: In practice, both decoder G and discriminator T are trained in alternating SGD steps.

Original: Stopping criteria as well as adequate evaluation of the trained GAN models remain open questions.
Revised: Stopping criteria as well as adequate evaluation of the trained GAN models remain open questions.

Original: Recently, the authors of Arjovsky et al.
Revised: Recently, the authors of Arjovsky et al.

Original: (2017) argued that the 1-Wasserstein distance W 1 , which is known to induce a much weaker topology than D JS , may be better suited for generative modeling.
Revised: (2017) argued that the 1-Wasserstein distance W 1 , which is known to induce a much weaker topology than D JS , may be better suited for generative modeling.

Original: When P X and P G are supported on largely disjoint low-dimensional manifolds (which may be the case in applications), D KL , D JS , and other strong distances between P X and P G max out and no longer provide useful gradients for P G .
Revised: When P X and P G are supported on largely disjoint low-dimensional manifolds (which may be the case in applications), D KL , D JS , and other strong distances between P X and P G max out and no longer provide useful gradients for P G .

Original: This “vanishing gradient” problem necessitates complicated scheduling between the G / T updates.
Revised: This “vanishing gradient” problem necessitates complicated scheduling between the G / T updates.

Original: In contrast, W 1 is still sensible in these cases and provides stable gradients.
Revised: In contrast, W 1 is still sensible in these cases and provides stable gradients.

Original: The Wasserstein GAN (WGAN) minimizes
Revised: The Wasserstein GAN (WGAN) minimizes

Original: [Equation]
Revised: [Equation]

Original: where W is any subset of 1-Lipschitz functions on X .
Revised: where W is any subset of 1-Lipschitz functions on X .

Original: It follows from (2)
Revised: It follows from (2)

Original: that D WGAN ( P X , P G ) ≤
Revised: that D WGAN ( P X , P G ) ≤

Original: W 1 ( P X , P G ) and thus WGAN is minimizing a lower bound on the 1-Wasserstein distance.
Revised: W 1 ( P X , P G ) and thus WGAN is minimizing a lower bound on the 1-Wasserstein distance.

Original: Variational auto-encoders (VAE) Kingma & Welling (2014) utilize models P G of the form (3) and minimize
Revised: Variational auto-encoders (VAE) Kingma & Welling (2014) utilize models P G of the form (3) and minimize

Original: [Equation] [Equation]
Revised: [Equation] [Equation]

Original: with respect to a random decoder mapping P G
Revised: with respect to a random decoder mapping P G

Original: ( X | Z ) .
Revised: ( X | Z ) .

Original: The conditional distribution P G ( X | Z ) is often parametrized by a deep net G and can have any form as long as its density p G ( x | z ) can be computed and differentiated with respect to the parameters of G .
Revised: The conditional distribution P G ( X | Z ) is often parametrized by a deep net G and can have any form as long as its density p G ( x | z ) can be computed and differentiated with respect to the parameters of G .

Original: A typical choice is to use Gaussians P G ( X | Z ) =
Revised: A typical choice is to use Gaussians P G ( X | Z ) =

Original: N ( X ; G ( Z ) , σ 2 · I ) .
Revised: N ( X ; G ( Z ) , σ 2 · I ) .

Original: If Q is the set of all conditional probability distributions Q ( Z | X ) , the objective of VAE coincides with the negative marginal log-likelihood
Revised: If Q is the set of all conditional probability distributions Q ( Z | X ) , the objective of VAE coincides with the negative marginal log-likelihood

Original: D VAE ( P X , P G ) =
Revised: D VAE ( P X , P G ) =

Original: − E P X [log P G ( X )] .
Revised: − E P X [log P G ( X )] .

Original: However, in order to make the D KL term of (6) tractable in closed form, the original implementation of VAE uses a standard normal P Z and restricts Q to a class of Gaussian distributions Q ( Z | X ) =
Revised: However, in order to make the D KL term of (6) tractable in closed form, the original implementation of VAE uses a standard normal P Z and restricts Q to a class of Gaussian distributions Q ( Z | X ) =

Original: N (cid:0) Z ; µ ( X ) , Σ( X ) (cid:1) with mean µ and diagonal covariance Σ parametrized by deep nets.
Revised: N (cid:0) Z ; µ ( X ) , Σ( X ) (cid:1) with mean µ and diagonal covariance Σ parametrized by deep nets.

Original: As a consequence, VAE is minimizing an upper bound on the negative log-likelihood or, equivalently, on the KL-divergence D KL ( P X , P G ) .
Revised: As a consequence, VAE is minimizing an upper bound on the negative log-likelihood or, equivalently, on the KL-divergence D KL ( P X , P G ) .

Original: One possible way to reduce the gap between the true negative log-likelihood and the upper bound provided by D VAE is to enlarge the class Q .
Revised: One possible way to reduce the gap between the true negative log-likelihood and the upper bound provided by D VAE is to enlarge the class Q .

Original: Adversarial variational Bayes (AVB) Mescheder et al.
Revised: Adversarial variational Bayes (AVB) Mescheder et al.

Original: (2017) follows this argument by employing the idea of GANs.
Revised: (2017) follows this argument by employing the idea of GANs.

Original: Given any point x ∈ X , a noise (cid:15) ∼ N (0 , 1) , and any ﬁxed transformation e : X × R → Z , a random variable e ( x, (cid:15) ) implicitly deﬁnes one particular conditional distribution Q e ( Z | X = x ) .
Revised: Given any point x ∈ X , a noise (cid:15) ∼ N (0 , 1) , and any ﬁxed transformation e : X × R → Z , a random variable e ( x, (cid:15) ) implicitly deﬁnes one particular conditional distribution Q e ( Z | X = x ) .

Original: AVB allows Q to contain all such distributions for different choices of e , replaces the intractable term D KL (cid:0) Q e ( Z | X ) , P Z (cid:1) in (6) by the adversarial approximation D f , GAN corresponding to the KL-divergence, and proposes to minimize
Revised: AVB allows Q to contain all such distributions for different choices of e , replaces the intractable term D KL (cid:0) Q e ( Z | X ) , P Z (cid:1) in (6) by the adversarial approximation D f , GAN corresponding to the KL-divergence, and proposes to minimize

Original: [Equation]
Revised: [Equation]

Original: The D KL term in (6) may be viewed as a regularizer.
Revised: The D KL term in (6) may be viewed as a regularizer.

Original: Indeed, VAE reduces to the classical unregularized auto-encoder if this term is dropped, minimizing the reconstruction cost of the encoder-decoder pair Q ( Z | X ) , P G ( X | Z ) .
Revised: Indeed, VAE reduces to the classical unregularized auto-encoder if this term is dropped, minimizing the reconstruction cost of the encoder-decoder pair Q ( Z | X ) , P G ( X | Z ) .

Original: This often results in different training points being encoded into nonoverlapping zones chaotically scattered all across the Z space with “holes” in between where the decoder mapping P G ( X | Z ) has never been trained.
Revised: This often results in different training points being encoded into nonoverlapping zones chaotically scattered all across the Z space with “holes” in between where the decoder mapping P G ( X | Z ) has never been trained.

Original: Overall, the encoder Q ( Z | X ) trained in this way does not provide a useful representation and sampling from the latent space Z becomes hard
Revised: Overall, the encoder Q ( Z | X ) trained in this way does not provide a useful representation and sampling from the latent space Z becomes hard

Original: Bengio et al.
Revised: Bengio et al.

Original: Adversarial auto-encoders (AAE) Makhzani et al.
Revised: Adversarial auto-encoders (AAE) Makhzani et al.

Original: (2016) replace the D KL term in (6) with another regularizer:
Revised: (2016) replace the D KL term in (6) with another regularizer:

Original: [Equation]
Revised: [Equation]

Original: where Q Z is the marginal distribution of Z when ﬁrst X is sampled from P X and then Z is sampled from Q ( Z | X ) , also known as the aggregated posterior Makhzani et al.
Revised: where Q Z is the marginal distribution of Z when ﬁrst X is sampled from P X and then Z is sampled from Q ( Z | X ) , also known as the aggregated posterior Makhzani et al.

Original: Similarly to AVB, there is no clear link to log-likelihood, as D AAE ≤ D AVB .
Revised: Similarly to AVB, there is no clear link to log-likelihood, as D AAE ≤ D AVB .

Original: The authors of Makhzani et al.
Revised: The authors of Makhzani et al.

Original: (2016) argue that matching Q Z to P Z in this way ensures that there are no “holes” left in the latent space Z and
Revised: (2016) argue that matching Q Z to P Z in this way ensures that there are no “holes” left in the latent space Z and

Original: P G ( X | Z ) generates reasonable samples whenever Z ∼ P Z .
Revised: P G ( X | Z ) generates reasonable samples whenever Z ∼ P Z .

Original: They also report an equally good performance of different types of conditional distributions Q ( Z | X ) , including Gaussians as used in VAEs, implicit models Q e as used in AVB, and deterministic encoder mappings, i.e. Q ( Z | X ) =
Revised: They also report an equally good performance of different types of conditional distributions Q ( Z | X ) , including Gaussians as used in VAEs, implicit models Q e as used in AVB, and deterministic encoder mappings, i.e. Q ( Z | X ) =

Original: δ µ ( X ) with µ : X → Z .
Revised: δ µ ( X ) with µ : X → Z .

Original: B F URTHER DETAILSON EXPERIMENTS B. MNIST
Revised: B P ROOF OF T HEOREM 1 AND FURTHER DETAILS

Revised: We will consider certain sets of joint probability distributions of three random variables ( X, Y, Z ) ∈

Revised: X × X × Z .

Revised: The reader may wish to think of X as true images, Y as images sampled from the model, and Z as latent codes.

Revised: We denote by P G,Z ( Y, Z ) a joint distribution of a variable pair ( Y, Z ) , where Z is ﬁrst sampled from P Z and next Y from P G ( Y | Z ) .

Revised: Note that P G deﬁned in (3) and used throughout this work is the marginal distribution of Y when ( Y, Z ) ∼ P G,Z .

Revised: In the optimal transport problem (1), we consider joint distributions Γ( X, Y ) which are called couplings between values of X and Y .

Revised: Because of the marginal constraint, we can write Γ( X, Y ) =

Revised: Γ( Y | X ) P X

Revised: ( X )

Revised: and we can consider Γ( Y | X ) as a non-deterministic mapping from X to Y .

Revised: Theorem 1. shows how to factor this mapping through Z , i.e., decompose it into an encoding distribution

Revised: Q ( Z | X ) and the generating distribution P G ( Y | Z ) .

Revised: As in Section 2.2, P ( X ∼ P X , Y ∼ P G ) denotes the set of all joint distributions of ( X, Y ) with marginals P X , P G , and likewise for P ( X ∼ P X , Z ∼ P Z ) .

Revised: The set of all joint distributions of ( X, Y, Z ) such that X ∼ P X , ( Y, Z ) ∼ P G,Z , and ( Y ⊥⊥ X ) | Z will be denoted by P X,Y,Z .

Revised: Finally, we denote by P X,Y and P X,Z the sets of marginals on ( X, Y ) and ( X, Z ) (respectively) induced by distributions in P X,Y,Z .

Revised: Note that P ( P X , P G ) , P X,Y,Z , and P X,Y depend on the choice of conditional distributions P G ( Y | Z ) , while P X,

Revised: Z does not.

Revised: In fact, it is easy to check that P X,Z =

Revised: P ( X ∼ P X , Z ∼ P Z ) .

Revised: From the deﬁnitions it is clear that P X,Y ⊆ P ( P X , P G ) and we immediately get the following upper bound:

Revised: [Equation]

Revised: If P G ( Y | Z ) are Dirac measures (i.e., Y = G ( Z ) ), it turns out that P X,Y = P ( P X , P G ) :

Revised: Lemma 1 P X,Y ⊆ P ( P X , P G ) with identity if 6 P G ( Y | Z = z ) are Dirac for all z ∈ Z .

Revised: Proof The ﬁrst assertion is obvious.

Original: {+To prove the identity, note that when Y is a deterministic function of Z , for any A in the sigma-algebra induced by Y we have E (cid:2) 
+}
Revised: {+To prove the identity, note that when Y is a deterministic function of Z , for any A in the sigma-algebra induced by Y we have E (cid:2) 
+}

Revised: [ Y ∈ A ] | X, Z (cid:3) =

Original: {+E (cid:2) 
+}
Revised: {+E (cid:2) 
+}

Revised: [ Y ∈ A ] | Z (cid:3) .

Revised: This implies ( Y ⊥⊥ X ) | Z and concludes the proof.

Revised: We are now in place to prove Theorem 1.

Revised: Lemma 1 obviously leads to

Revised: [Equation]

Revised: The tower rule of expectation, and the conditional independence property of P X,Y,Z implies

Revised: [Equation]

Revised: It remains to notice that P X,Z = P ( X ∼ P X , Z ∼ P Z ) as stated earlier.

Revised: B. R ANDOM DECODERS P G ( Y | Z )

Revised: If the decoders are non-deterministic, Lemma 1 provides only the inclusion of sets

Revised: P X,Y ⊆ P ( P X , P G ) and we get the following upper bound on the OT:

Revised: Corollary 1 Let X =

Revised: R d and assume the conditional distributions P G ( Y | Z = z ) have mean values G ( z ) ∈ R d and marginal variances σ 21 , . .

Revised: , σ 2 d ≥ 0 for all z ∈ Z , where G : Z → X .

Revised: Take c ( x, y )

Revised: = (cid:107) x − y (cid:107) 22 .

Revised: Then

Revised: [Equation]

Revised: Proof First inequality follows from (9).

Revised: For the identity we proceed similarly to the proof of

Revised: Theorem 1 and write

Revised: [Equation]

Revised: Note that

Revised: [Equation]

Revised: Together with (11) and the fact that P X,Z = P ( X ∼ P X , Z ∼ P Z ) this concludes the proof.

Revised: C F URTHER DETAILS ON EXPERIMENTS

Original:  We use mini-batches of size 100 and trained the models for 100 epochs.
Revised: C. MNIST We use mini-batches of size 100 and trained the models for 100 epochs.

Original: We used λ = 10 and σ 2 z = 1 .
Revised: We used λ = 10 and σ 2 z = 1 .

Original: For the encoder-decoder pair we set α = 10 − 3 for Adam in the beginning and for the adversary in WAE-GAN to α = 5 × 10 − 4 .
Revised: For the encoder-decoder pair we set α = 10 − 3 for Adam in the beginning and for the adversary in WAE-GAN to α = 5 × 10 − 4 .

Original: After 30 epochs we decreased both by factor of 2, and after ﬁrst 50 epochs further by factor of 5.
Revised: After 30 epochs we decreased both by factor of 2, and after ﬁrst 50 epochs further by factor of 5.

Original: Both encoder and decoder used fully convolutional architectures with 4x4 convolutional ﬁlters.
Revised: Both encoder and decoder used fully convolutional architectures with 4x4 convolutional ﬁlters.

Original: Encoder architecture:
Revised: Encoder architecture:

Original: [Equation]
Revised: [Equation]

Original: Decoder architecture:
Revised: Decoder architecture:

Original: [Equation]
Revised: [Equation]

Original: Adversary architecture for WAE-GAN:
Revised: Adversary architecture for WAE-GAN:

Original: [Equation]
Revised: [Equation]

Original: Here Conv k stands for a convolution with k ﬁlters, FSConv k for the fractional strided convolution with k ﬁlters (ﬁrst two of them were doubling the resolution, the third one kept it constant), BN for the batch normalization, ReLU for the rectiﬁed linear units, and FC k for the fully connected layer mapping to R k .
Revised: Here Conv k stands for a convolution with k ﬁlters, FSConv k for the fractional strided convolution with k ﬁlters (ﬁrst two of them were doubling the resolution, the third one kept it constant), BN for the batch normalization, ReLU for the rectiﬁed linear units, and FC k for the fully connected layer mapping to R k .

Original: All the convolutions in the encoder used vertical and horizontal strides 2 and SAME padding.
Revised: All the convolutions in the encoder used vertical and horizontal strides 2 and SAME padding.

Original: Finally, we used two heuristics.
Revised: Finally, we used two heuristics.

Original: First, we always pretrained separately the encoder for several minibatch steps before the main training stage so that the sample mean and covariance of Q Z would try to match those of P Z .
Revised: First, we always pretrained separately the encoder for several minibatch steps before the main training stage so that the sample mean and covariance of Q Z would try to match those of P Z .

Original: Second, while training we were adding a pixel-wise Gaussian noise truncated at 0 .
Revised: Second, while training we were adding a pixel-wise Gaussian noise truncated at 0 .

Original: 01 to all the images before feeding them to the encoder, which was meant to make the encoders random.
Revised: 01 to all the images before feeding them to the encoder, which was meant to make the encoders random.

Original: We played with all possible ways of combining these two heuristics and noticed that together they result in slightly (almost negligibly) better results compared to using only one or none of them.
Revised: We played with all possible ways of combining these two heuristics and noticed that together they result in slightly (almost negligibly) better results compared to using only one or none of them.

Original: Our VAE model used cross-entropy loss (Bernoulli decoder) and otherwise same architectures and hyperparameters as listed above.
Revised: Our VAE model used cross-entropy loss (Bernoulli decoder) and otherwise same architectures and hyperparameters as listed above.

Original: B. C ELEB A
Revised: C. C ELEB A

Original: We pre-processed CelebA images by ﬁrst taking a 140x140 center crops and then resizing to the 64x64 resolution.
Revised: We pre-processed CelebA images by ﬁrst taking a 140x140 center crops and then resizing to the 64x64 resolution.

Original: We used mini-batches of size 100 and trained the models for various number of epochs (up to 250).
Revised: We used mini-batches of size 100 and trained the models for various number of epochs (up to 250).

Original: All reported WAE models were trained for 55 epochs and VAE for 68 epochs.
Revised: All reported WAE models were trained for 55 epochs and VAE for 68 epochs.

Original: For WAE-MMD we used λ = 100 and for WAE-GAN λ = 1 .
Revised: For WAE-MMD we used λ = 100 and for WAE-GAN λ = 1 .

Original: Both used σ 2 z = 2 .
Revised: Both used σ 2 z = 2 .

Original: For WAE-MMD the learning rate of Adam was initially set to α = 10 − 3 .
Revised: For WAE-MMD the learning rate of Adam was initially set to α = 10 − 3 .

Original: For WAE-GAN the learning rate of Adam for the encoder-decoder pair was initially set to α = 3 × 10 − 4 and for the adversary to 10 − 3 .
Revised: For WAE-GAN the learning rate of Adam for the encoder-decoder pair was initially set to α = 3 × 10 − 4 and for the adversary to 10 − 3 .

Original: All learning rates were decreased by factor of 2 after 30 epochs, further by factor of 5 after 50 ﬁrst epochs, and ﬁnally additional factor of 10 after 100 ﬁrst epochs.
Revised: All learning rates were decreased by factor of 2 after 30 epochs, further by factor of 5 after 50 ﬁrst epochs, and ﬁnally additional factor of 10 after 100 ﬁrst epochs.

Original: Both encoder and decoder used fully convolutional architectures with 5x5 convolutional ﬁlters.
Revised: Both encoder and decoder used fully convolutional architectures with 5x5 convolutional ﬁlters.

Original: Encoder architecture:
Revised: Encoder architecture:

Original: [Equation]
Revised: [Equation]

Original: Decoder architecture:
Revised: Decoder architecture:

Original: [Equation]
Revised: [Equation]

Original: Adversary architecture for WAE-GAN:
Revised: Adversary architecture for WAE-GAN:

Original: [Equation]
Revised: [Equation]

Original: For WAE-GAN we used a heuristic proposed in Supplementary IV of Mescheder et al.
Revised: For WAE-GAN we used a heuristic proposed in Supplementary IV of Mescheder et al.

Original: Notice that the theoretically optimal discriminator would result in D ∗ ( z ) = log p
Revised: Notice that the theoretically optimal discriminator would result in D ∗ ( z ) = log p

Original: Z ( z ) − log q Z ( z ) , where p Z and q Z are densities of P Z and Q Z respectively.
Revised: Z ( z ) − log q Z ( z ) , where p Z and q Z are densities of P Z and Q Z respectively.

Original: In our experiments we added the log prior log p Z ( z ) explicitly to the adversary output as we know it analytically.
Revised: In our experiments we added the log prior log p Z ( z ) explicitly to the adversary output as we know it analytically.

Original: This should hopefully make it easier for the adversary to learn the remaining Q Z density term.
Revised: This should hopefully make it easier for the adversary to learn the remaining Q Z density term.

Original: Our VAE model used a cross-entropy reconstruction loss (Bernoulli decoder) and α = 10 − 4 as the initial Adam learning rate and the same decay schedule as explained above.
Revised: Our VAE model used a cross-entropy reconstruction loss (Bernoulli decoder) and α = 10 − 4 as the initial Adam learning rate and the same decay schedule as explained above.

Original: Otherwise all the architectures and hyperparameters were as explained above.
Revised: Otherwise all the architectures and hyperparameters were as explained above.