Title: PERCEPTUAL GENERATIVE AUTOENCODERS

Abstract: Modern generative models are usually designed to match target distributions directly in the data space, where the intrinsic dimensionality of data can be much lower than the ambient dimensionality. We argue that this discrepancy may contribute to the difficulties in training generative models. We therefore propose to map both the generated and target distributions to the latent space using the encoder of a standard autoencoder, and train the generator (or decoder) to match the target distribution in the latent space. The resulting method, perceptual generative autoencoder (PGA), is then incorporated with a maximum likelihood or variational autoencoder (VAE) objective to train the generative model. With maximum likelihood, PGAs generalize the idea of reversible generative models to unrestricted neural network architectures and arbitrary latent dimensionalities. When combined with VAEs, PGAs can generate sharper samples than vanilla VAEs. Compared to other autoencoder-based generative models using simple priors, PGAs achieve state-of-the-art FID scores on CIFAR-10 and CelebA.

1. INTRODUCTION:

Recent years have witnessed great interest in generative models, mainly due to the success of generative adversarial networks (GANs) (Goodfellow et al., 2014; Radford et al., 2016; Karras et al., 2018; Brock et al., 2019) . Despite their prevalence, the adversarial nature of GANs can lead to a number of challenges, such as unstable training dynamics and mode collapse. Since the advent of GANs, substantial efforts have been devoted to addressing these challenges (Salimans et al., 2016; Arjovsky et al., 2017; Gulrajani et al., 2017; Miyato et al., 2018) , while non-adversarial approaches that are free of these issues have also gained attention. Examples include variational autoencoders (VAEs) (Kingma & Welling, 2014) , reversible generative models (Dinh et al., 2014; 2017; Kingma & Dhariwal, 2018) , and Wasserstein autoencoders (WAEs) (Tolstikhin et al., 2018) .

However, non-adversarial approaches often have significant limitations. For instance, VAEs tend to generate blurry samples, while reversible generative models require restricted neural network architectures or solving neural differential equations (Grathwohl et al., 2019) . Furthermore, to use the change of variable formula, the latent space of a reversible model must have the same dimensionality as the data space, which is unreasonable considering that real-world, high-dimensional data (e.g., images) tends to lie on low-dimensional manifolds, and thus results in redundant latent dimensions and variability. Intriguingly, recent research (Arjovsky et al., 2017; Dai & Wipf, 2019) suggests that the discrepancy between the intrinsic and ambient dimensionalities of data also contributes to the difficulties in training GANs and VAEs.

In this work, we present a novel framework for training autoencoder-based generative models, with non-adversarial losses and unrestricted neural network architectures. Given a standard autoencoder and a target data distribution, instead of matching the target distribution in the data space, we map both the generated and target distributions to the latent space using the encoder, and train the generator (or decoder) to minimize the divergence between the mapped distributions. We prove, under mild assumptions, that by minimizing a form of latent reconstruction error, matching the target distribution in the latent space implies matching it in the data space. We call this framework perceptual generative autoencoder (PGA). We show that PGAs enable training generative autoencoders with maximum likelihood, without restrictions on architectures or latent dimensionalities. In addition, when combined with VAEs, PGAs can generate sharper samples than vanilla VAEs. 1We summarize our main contributions as follows:

• A training framework, PGA, for generative autoencoders is developed to match the target distribution in the latent space, which, we prove, ensures the matching in the data space. • We combine the PGA framework with maximum likelihood, and remove the restrictions of reversible generative models on neural network architectures and latent dimensionalities. • We combine the PGA framework with VAE, which solves the problem of blurry samples, without introducing any auxiliary models or sophisticated model architectures.

2. RELATED WORK:

Autoencoder-based generative models are trained by minimizing an data reconstruction loss with regularizations. As an early approach, denoising autoencoders (DAEs) (Vincent et al., 2008) are trained to recover the original input from an intentionally corrupted input. Then a generative model can be obtained by sampling from a Markov chain (Bengio et al., 2013) . To sample from a decoder directly, most recent approaches resort to mapping a simple prior distribution to a data distribution using the decoder. For instance, adversarial autoencoders (AAEs) (Makhzani et al., 2016) and Wasserstein autoencoders (WAEs) (Tolstikhin et al., 2018) attempt to match the aggregated posterior and the prior, either by adversarial training or by minimizing their Wasserstein distance. However, due to the use of deterministic encoders, there can be "holes" in the latent space that are not covered by the aggregated posterior, which would result in poor sample quality (Rubenstein et al., 2018) . By using stochastic encoders and variational inference, variational autoencoders (VAEs) are likely to suffer less from this problem, but are known to generate blurry samples (Rezende & Viola, 2018; Dai & Wipf, 2019) . Nevertheless, as we will show, the latter problem can be addressed by moving the VAE reconstruction loss from the data space to the latent space.

In a different line of work, reversible generative models (Dinh et al., 2014; 2017; Kingma & Dhariwal, 2018) are developed to enable exact inference. Consequently, by the change of variables theorem, the likelihood of each data sample can be exactly computed and optimized. However, to avoid expensive Jacobian determinant computations, reversible models can only be composed of restricted transformations, rather than general neural network architectures. While this restriction can be relaxed by utilizing recently developed neural ordinary differential equations (Chen et al., 2018; Grathwohl et al., 2019) , they still rely on a shared dimensionality between latent and data spaces, which remains an unnatural restriction. In this work, we use the proposed training framework to trade exact inference for unrestricted neural network architectures and arbitrary latent dimensionalities, generalizing maximum likelihood training to autoencoder-based models.

3. METHODS:



3.1. PERCEPTUAL GENERATIVE MODEL:

Let f φ : R D → R H be the encoder parameterized by φ, and g θ : R H → R D be the decoder parameterized by θ. Our goal is to obtain a decoder-based generative model, which maps a simple prior distribution to a target data distribution, D. A summary of notations is provided in Appendix A.

Throughout this paper, we use N (0, I) as the prior distribution.

For z ∈ R H , the output of the decoder, g θ (z), lies in a manifold that is at most H-dimensional.

Therefore, if we train the autoencoder to minimize

EQUATION

where x = g θ (f φ (x)), then x can be seen as a projection of the input data, x, onto the manifold of g θ (z). Let D denote the reconstructed data distribution, i.e., x ∼ D. Given enough capacity of the encoder, D is the best approximation to D (in terms of 2 -distance), that we can obtain from the decoder, and thus can serve as a surrogate target distribution for training the decoder-based generative model.

Due to the difficulty in directly matching the generated distribution with the data-space target distribution, D, we reuse the encoder to map D to a latent-space target distribution, Ĥ. We then transform the problem of matching D in the data space into matching Ĥ in the latent space. In other words, we aim to ensure that for z ∼ N (0, I), if f φ (g θ (z)) ∼ Ĥ, then g θ (z) ∼ D. In the following, we define h = f φ • g θ for notational convenience.

r L H lr, φ L N lr, φ L ∼ D x ∼ H z H ∼ z ˆD ∼ x ) I , 0 ( N Encoder φ f θ g Decoder (a) PGA ) ( ∼ S δ ∼ H z D ∼ x Ĥ ∼ z ˆnll θ L nll φ L Encoder φ f θ g Decoder (b) LPGA D ∼ x Ĥ ∼ z ˆ) I , 0 ( N ∼ H ) x ( φ µ ) x ( φ σ vkl φ L vr L Encoder φ f θ g Decoder (c) VPGA

To this end, we minimize the following latent reconstruction loss w.r.t. φ:

L φ lr,N = 1 2 E z∼N (0,I) h (z) -z 2 2 .

(2)

Let Z (x) be the set of all z's that are mapped to the same x by g θ , we have the following theorem:

Theorem 1. Assuming E [z | x] ∈ Z (x)

for all x generated by g θ , and sufficient capacity of f φ ; for z ∼ N (0, I), if Eq. ( 2) is minimized and h (z) ∼ Ĥ, then g θ (z) ∼ D.

We defer the proof to Appendix B.1. Note that Theorem 1 requires that different x's generated by g θ (from N (0, I) and H) are mapped to different z's by f φ . In theory, minimizing Eq. ( 2) would suffice, since N (0, I) is supported on the whole R H . However, there can be z's with low probabilities in N (0, I), but with high probabilities in H that are not well covered by Eq. ( 2). Therefore, it is sometimes helpful to minimize another latent reconstruction loss on H:

EQUATION

In practice, we observe that L φ lr,H is often small without explicit minimization, which we attribute to its consistency with the minimization of L r .

By Theorem 1, the problem of training the generative model reduces to training h to map N (0, I) to Ĥ, which we refer to as the perceptual generative model. In the subsequent subsections, we present a maximum likelihood approach, a VAE-based approach, and a unified approach to train the perceptual generative model. The basic loss function of PGAs is given by

EQUATION

where α and β are hyperparameters to be tuned. Eq. ( 4) is also illustrated in Fig. 1a .

3.2. A MAXIMUM LIKELIHOOD APPROACH:

We first assume the invertibility of h. For x ∼ D, let ẑ = f φ (x) ∼ Ĥ. We can train h directly with maximum likelihood using the change of variables formula as

EQUATION

Ideally, we would like to maximize Eq. ( 5) only w.r.t. the parameters of the generative model (i.e., θ). However, directly optimizing the first term in Eq. ( 5) requires computing z = h -1 (ẑ), which is usually unknown. Nevertheless, for ẑ ∼ Ĥ, we have h -1 (ẑ) = f φ (x) and x ∼ D, and thus we can minimize the following loss function w.r.t. φ instead:

EQUATION

)

To avoid computing the Jacobian in the second term of Eq. ( 5), which is slow for unrestricted architectures, we approximate the Jacobian determinant and derive a loss function to be minimized w.r.t. θ:

EQUATION

where S ( ) can be either N 0, 2 I , or a uniform distribution on a small (H -1)-sphere of radius centered at the origin. The latter choice is expected to introduce slightly less variance. We show below that the approximation gives an upper bound when → 0. Eqs. ( 6) and ( 7) are illustrated in Fig. 1b .

EQUATION

)

The inequality is tight if h is a multiple of the identity function around z.

We defer the proof to Appendix B.2. We note that the above discussion relies on the invertibility of h, which, however, is not required by the resulting method. Indeed, when h is invertible at some point z, the latent reconstruction loss ensures that h is close to the identity function around z, and hence the tightness of the upper bound in Eq. ( 8). Otherwise, when h is not invertible at some z, the logarithm of the Jacobian determinant at z becomes infinite, in which case Eq. ( 5) cannot be optimized. Nevertheless, since h (z + δ)h (z) 2 2 is unlikely to be zero if the model is properly initialized, the approximation in Eq. ( 7) remains finite, and thus can be optimized regardless.

To summarize, we train the autoencoder to obtain a generative model by minimizing the following loss function:

EQUATION

We refer to this approach as maximum likelihood PGA (LPGA).

3.3. A VAE-BASED APPROACH:

The original VAE is trained by maximizing the evidence lower bound on log p (x) as

EQUATION

where p (x | z ) is modeled with the decoder, and q (z | x) is modeled with the encoder. Note that z denotes the stochastic version of z, whereas z remains deterministic for the basic PGA losses in Eqs.

(2) and (3). In our case, we would like to modify Eq. ( 10) in a way that helps maximize log p (ẑ). Therefore, we replace p (x | z ) on the r.h.s. of Eq. ( 10) with p (ẑ | z ), and derive a lower bound on log p (ẑ) as

EQUATION

Similar to the original VAE, we make the assumption that q (z | x) and p (ẑ | z ) are Gaussian; i.e., q

(z | x) = N z µ φ (x) , diag σ 2 φ (x) , and p (ẑ | z ) = N ẑ µ θ,φ (z ) , σ 2 I . Here, µ φ (•) = f φ (•), µ θ,φ (•) = h (•)

, and σ > 0 is a tunable scalar. Note that if σ is fixed, the first term on the r.h.s. of Eq. ( 11) has a trivial maximum, where z, ẑ, and µ θ,φ (z ) are all close to zero. To circumvent this, we set σ proportional to the 2 -norm of z.

The VAE variant is trained by minimizing

EQUATION

) where L vr and L φ vkl are, respectively, the reconstruction and KL divergence losses of VAE, as illustrated in Fig. 1c . Accordingly, the overall loss function is given by

EQUATION

)

We refer to this approach as variational PGA (VPGA).

3.4. A HIGH-LEVEL VIEW OF THE PGA FRAMEWORK:

We summarize what each loss term achieves, and explain from a high-level how they work together.

Data reconstruction loss (Eq. ( 1)): For Theorem 1 to hold, we need to use the reconstructed data distribution ( D), instead of the original data distribution (D), as the target distribution. Therefore, minimizing the data reconstruction loss ensures that the target distribution is close to the data distribution.

Latent reconstruction loss (Eqs. ( 2) and ( 3)): The encoder (f φ ) is reused to map data-space distributions to the latent space. As shown by Theorem 1, minimizing the latent reconstruction loss (w.r.t. the parameters of the encoder) ensures that if the generated distribution and the target distribution can be mapped to the same distribution ( Ĥ) in the latent space by the encoder, then the generated distribution and the target distribution are the same.

Maximum likelihood loss (Eqs. ( 6) and ( 7)) or VAE loss (Eq. ( 12)): The decoder (g θ ) and encoder (f φ ) together can be considered as a perceptual generative model (f φ • g θ ), which is trained to map N (0, I) to the latent-space target distribution ( Ĥ) by minimizing either the maximum likelihood loss or the VAE loss.

The first loss allows to use the reconstructed data distribution as the target distribution. The second loss transforms the problem of matching the target distribution in the data space into matching it in the latent space. The latter problem is then solved by the third loss. Therefore, the three losses together ensure that the generated distribution is close to the data distribution.

3.5. A UNIFIED APPROACH:

While the loss functions of maximum likelihood and VAE seem completely different in their original forms, they share remarkable similarities when considered in the PGA framework (see Figs. 1b and 1c ). Intuitively, observe that

EQUATION

which means both L φ nll and L φ vkl tend to attract the latent representations of data samples to the origin. In addition, L θ nll expands the volume occupied by each sample in the latent space, which can be also achieved by L vr with the second term of Eq. ( 14).

More concretely, we observe that both L θ nll and L vr are minimizing the difference between h (z) and h (z + δ ), where δ is some additive zero-mean noise. However, they differ in that the variance of δ is fixed for L θ nll , but is trainable for L vr ; and the distance between h (z) and h (z + δ ) are defined in two different ways. In fact, L vr is a squared 2 -distance derived from the Gaussian assumption on ẑ, whereas L θ nll can be derived similarly by assuming that

EQUATION

where a ≤ d H ≤ b, and a > 0. The exact values of a and b are irrelevant, as they only appear in an additive constant when we take the logarithm of p d H ; a, b .

Since there is no obvious reason for assuming Gaussian ẑ, we can instead assume ẑ to follow the distribution defined in Eq. ( 15), and multiply H by a tunable scalar, γ , similar to σ. Furthermore, we can replace δ in Eq. ( 7) with δ ∼ N 0, diag σ 2 φ (x) , as it is defined for VPGA with a subtle difference that here σ 2 φ (x) is constrained to be greater than 2 . As a result, LPGA and VPGA are unified into a single approach, which has a combined loss function as

EQUATION

When γ = γ and η = 0, Eq. ( 16) is equivalent to Eq. ( 9), considering that σ 2 φ (x) will be optimized to approach 2 . Similarly, when γ = 0, Eq. ( 16) is equivalent to Eq. ( 13). Interestingly, it also becomes possible to have a mix of LPGA and VPGA by setting all three hyperparameters to positive values. We refer to this approach as LVPGA.

4. EXPERIMENTS:

In this section, we evaluate the performance of LPGA and VPGA on three image datasets, MNIST (LeCun et al., 1998) , CIFAR-10 (Krizhevsky & Hinton, 2009) , and CelebA (Liu et al., 2015) . For CelebA, we employ the discriminator and generator architecture of DCGAN (Radford et al., 2016) for the encoder and decoder of PGA. We half the number of filters (i.e., 64 filters for the first convolutional layer) for faster experiments, while more filters are observed to improve performance. Due to smaller input sizes, we reduce the number of convolutional layers accordingly for MNIST and CIFAR-10, and add a fully-connected layer of 1024 units for MNIST, as done in Chen et al. (2016) . SGD with a momentum of 0.9 is used to train all models. Other hyperparameters are tuned heuristically, and could be improved by a more extensive grid search. For fair comparison, σ is tuned for both VAE and VPGA. All experiments are performed on a single GPU. As shown in Fig. 2 , the visual quality of the PGA-generated samples is significantly improved over that of VAEs. In particular, PGAs generate much sharper samples on CIFAR-10 and CelebA compared to vanilla VAEs. The results of LVPGA much resemble that of either LPGA or VPGA, depending on the hyperparameter settings. In addition, we use the Fréchet Inception Distance (FID) (Heusel et al., 2017) to evaluate the proposed methods, as well as VAE. For each model and each dataset, we take 5,000 generated samples to compute the FID score. The results (with standard errors of 3 or more runs) are summarized in Table . 1. Compared to other autoencoder-based non-adversarial approaches (Tolstikhin et al., 2018; Kolouri et al., 2019; Ghosh et al., 2019) , where similar but larger architectures are used, we obtain substantially better FID scores on CIFAR-10 and CelebA. Note that the results from Ghosh et al. (2019) shown in Table . 1 are obtained using slightly different architectures and evaluation protocols. Nevertheless, their results of VAE align well with ours, suggesting a good comparability of the results. Interestingly, as a unified approach, LVPGA can indeed combine the best performances of LPGA and VPGA on different datasets. For CelebA, we further show results on 140x140 crops in Fig. 5 , and latent space interpolations in Fig. 6 (see Appendix C). The training process of PGAs is stable in general, given the non-adversarial losses. As shown in Fig. 3a , the total losses change little after the initial rapid drops. This is due to the fact that the encoder and decoder are optimized towards different objectives, as can be observed from Eqs. ( 4), (9), and (12). In contrast, the corresponding FIDs, shown in Fig. 3b , tend to decrease monotonically during training. However, when trained on CelebA, there is a significant performance gap between LPGA and VPGA, and the FID of the latter starts to increase after a certain point of training. We suspect this phenomenon is related to the limited expressiveness of the variational posterior, which is not an issue for LPGA.

It is worth noting that stability issues can occur when batch normalization (Ioffe & Szegedy, 2015) is introduced, since both the encoder and decoder are fed with multiple batches drawn from different distributions. At convergence, different input distributions to the decoder (e.g., H and N (0, I)) are expected to result in similar distributions of the internal representations, which, intriguingly, can be imposed to some degree by batch normalization. Therefore, it is observed that when batch normalization does not cause stability issues, it can substantially accelerate convergence and lead to slightly better generative performance. Furthermore, we observe that LPGA tends to be more stable than VPGA in the presence of batch normalization.

Finally, we conduct an ablation study. While the loss functions of LPGA and VPGA both consist of multiple components, they are all theoretically motivated and indispensable. Specifically, the data reconstruction loss minimizes the discrepancy between the input data and its reconstruction.

Since the reconstructed data distribution serves as the surrogate target distribution, removing the data reconstruction loss will result in a random target. Moreover, removing the maximum likelihood loss of LPGA or the VAE loss of VPGA will leave the perceptual generative model untrained. In both cases, no valid generative model can be obtained. Nevertheless, it is interesting to see how the latent reconstruction loss contributes to the generative performance. Therefore, we retrain the LPGAs without the latent reconstruction loss and report the results in Fig. 4 . Compared to Fig. 2a , 2d, 2g, and the results in Table 1 , the performance significantly degrades both visually and quantitatively, confirming the importance of the latent reconstruction loss. 

5. CONCLUSION:

We proposed a framework, PGA, for training autoencoder-based generative models, with nonadversarial losses and unrestricted neural network architectures. By matching target distributions in the latent space, PGAs trained with maximum likelihood generalize the idea of reversible generative models to unrestricted neural network architectures and arbitrary latent dimensionalities. In addition, it improves the performance of VAE when combined together. Under the PGA framework, we further show that maximum likelihood and VAE can be unified into a single approach.

In principle, the PGA framework can be combined with any method that can train the perceptual generative model. While we have only considered non-adversarial approaches, an interesting future work would be to combine it with an adversarial discriminator trained on latent representations. Moreover, the compatibility issue with batch normalization deserves further investigation. A NOTATIONS Proof sketch. We first show that any different x's generated by g θ are mapped to different z's by f φ . Let x 1 = g θ (z 1 ), x 2 = g θ (z 2 ), and x 1 = x 2 . Since f φ has sufficient capacity and Eq. ( 2) is minimized, we have f

φ (x 1 ) = E [z 1 | x 1 ] and f φ (x 2 ) = E [z 2 | x 2 ]. By assumption, f φ (x 1 ) ∈ Z (x 1 ) and f φ (x 2 ) ∈ Z (x 2 ). Therefore, since Z (x 1 ) ∩ Z (x 2 ) = ∅, we have f φ (x 1 ) = f φ (x 2 ).

For z ∼ N (0, I), denote the distributions of g θ (z) and h (z), respectively, by D and H. We then consider the case where D and D are discrete distributions. If g θ (z) D, then there exists an x that is generated by g 

θ , such that p H (f φ (x)) = p D (x) = p D (x) = p Ĥ (f φ (x)), contradicting that h (z) ∼ Ĥ.

By the geometric interpretation of determinants, the volume of the parallelotope spanned by ∆ is

EQUATION

where 

Given fixed δk 2 , ∀k ∈ [H], Vol ∆2 is maximized when a 2 = π/2, i.e., δ1 and δ2 are orthogonal; and Vol ∆k is maximized when Vol ∆k-1 is maximized and a k = π/2. By induction on k, we can conclude that Vol ∆ is maximized when ∆ = ∆H is an orthogonal set, and therefore

EQUATION

)

Combining Eq. ( 17) with Eqs. ( 18) and ( 20), we obtain

EQUATION

)

We proceed by randomizing ∆. Let ∆ k = {δ 1 , δ 2 , . . . , δ k }. We inductively construct an orthogonal set, ∆ = ∆ H . In step 1, δ 1 is sampled from S ( ), a uniform distribution on a (H -1)-sphere of radius , S ( ), centered at the origin of an H-dimensional space. In step k, δ k is sampled from S ( ; ∆ k-1 ), a uniform distribution on an (H-k)-sphere, S ( ; ∆ k-1 ), in the orthogonal complement of the space spanned by ∆ k-1 .

Step k is repeated until H mutually orthogonal vectors are obtained.

Obviously, when k = H -1, for all j > k and j ≤ H, p (δ j | ∆ k ) = p (δ j | ∆ H-1 ) = S (δ j | ; ∆ H-1 ) = S (δ j | ; ∆ k ). When 1 ≤ k < H, assuming for all j > k and j ≤ H, p (δ j | ∆ k ) = S (δ j | ; ∆ k ), we get

EQUATION

where S ( ; ∆ k-1 ∪ {δ j }) is in the orthogonal complement of the space spanned by ∆ k-1 ∪ {δ j }. Since p (δ k | ∆ k-1 ) is a constant on S (δ k | ; ∆ k-1 ), and S ( ; ∆ k-1 ∪ {δ j }) ⊂ S ( ; ∆ k-1 ), p (δ k | ∆ k-1 ) is also a constant on S ( ; ∆ k-1 ∪ {δ j }). In addition, δ k ∈ S ( ; ∆ k-1 ∪ {δ j }) implies that δ j ∈ S ( ; ∆ k ), on which p (δ j | ∆ k ) is also a constant. Then it follows from Eq. ( 22) that, for all δ j ∈ S ( ; ∆ k-1 ), p (δ j | ∆ k-1 ) is a constant. Therefore, for all j > k -1 and j ≤ H, p (δ j | ∆ k-1 ) = S (δ j | ; ∆ k-1 ). By backward induction on k, we conclude that the marginal probability density of δ k , for all k ∈ [H], is p (δ k ) = S (δ k | ).

Since Eq. ( 21) holds for any randomly (as defined above) sampled ∆, we have (

EQUATION

If h is a multiple of the identity function around z, then J (z) = CI, where C ∈ R is a constant. In this case, ∆ becomes an orthogonal set as ∆, and therefore the inequalities in Eqs. ( 20), ( 21), and (23) become tight. Furthermore, it is straightforward to extend the above result to the case δ ∼ N 0, 2 I , considering that N 0, 2 I is a mixture of S ( ) with different 's.

The Taylor expansion of h around z gives

EQUATION

)

Therefore, for δ → 0 or → 0, we have δ = J (z) δ = h (z + δ)h (z). The result follows.

C MORE RESULTS ON CELEBA

In Fig. 5 , we compare the generated samples and FID scores of LPGA and VAE on 140x140 crops.

In this experiment, we use the full DCGAN architecture (i.e., 128 filters for the first convolutional layer) for both LPGA and VAE. Other hyperparameter settings remain the same as for 108x108 crops. In Fig. 6 , we show latent space interpolations of CelebA samples. 

:

Code is available at https://bit.ly/2U0kRYL.

Figures and Tables:

Figure 1: Illustration of the training process of PGAs. The overall loss function consists of (a) the basic PGA losses, and either (b) the LPGA-specific losses or (c) the VPGA-specific losses. Circles indicate where the gradient is truncated, and dashed lines indicate where the gradient is ignored when updating parameters.

Figure 2: Random samples generated by LPGA, VPGA, and VAE.

Figure 3: Training curves of LPGA and VPGA.

(a) MNIST, FID = 18.13 (b) CIFAR-10, FID = 114.19 (c) CelebA, FID = 48.02

Figure 4: Random samples generated by LPGA with α = β = 0.

The result still holds when D and D approach continuous distributions, in which case D = D almost everywhere.B.2 PROPOSITION 1 Proof. Let J (z) = ∂h (z) /∂z, P = [δ 1 δ 2 • • • δ H ], and P = J (z) P = δ1 δ2 • • • δH , where ∆ = {δ 1 , δ 2 , . . . , δ H } is an orthogonal set of H-dimensional vectors. Since det P = det (J (z)) det (P), we have log |det (J (z))| = log det Plog |det (P)| .

[H] = {1, 2, . . . , H}. While ∆ = δ1 , δ2 , . . . , δH is not necessarily an orthogonal set, an upper bound on Vol ∆ can be derived in a similar fashion. Let ∆k = δ1 , δ2 , . . . , δk , and a k be the included angle between δk and the plane spanned by ∆k-1 . We have

Figure 5: Random CelebA (140x140 crops) samples generated by LPGA and VAE.

(a) Interpolations generated by LPGA. (b) Interpolations generated by VPGA. (c) Interpolations generated by VAE.

Figure 6: Latent space interpolations on CelebA.

FID scores of autoencoder-based generative models. The first block shows the results fromGhosh et al. (2019), where CV-VAE stands for constant-variance VAE, and RAE stands for regularized autoencoder. The second block shows our results of LPGA, VPGA, LVPGA, and VAE.

Table content: <table><tr><td>Model</td><td>MNIST</td><td>CIFAR-10</td><td>CelebA</td></tr><tr><td>VAE</td><td>19.21</td><td>106.37</td><td>48.12</td></tr><tr><td>CV-VAE</td><td>33.79</td><td>94.75</td><td>48.87</td></tr><tr><td>WAE</td><td>20.42</td><td>117.44</td><td>53.67</td></tr><tr><td>RAE-L2</td><td>22.22</td><td>80.80</td><td>51.13</td></tr><tr><td>RAE-SN</td><td>19.67</td><td>84.25</td><td>44.74</td></tr><tr><td>VAE LPGA VPGA LVPGA</td><td>15.55 ± 0.18 12.06 ± 0.12 11.67 ± 0.21 11.45 ± 0.25</td><td colspan="2">115.74 ± 0.63 43.60 ± 0.33 55.87 ± 0.25 14.53 ± 0.52 51.51 ± 1.16 24.73 ± 1.25 52.94 ± 0.89 13.80 ± 0.20</td></tr></table>

Notations and definitions vae L vae = L vr + L vkl , VAE loss of VPGA

Table content: <table><tr><td colspan="2">f φ /g θ encoder/decoder of an autoencoder</td></tr><tr><td>h φ/θ</td><td>h = f φ • g θ parameters of the encoder/decoder</td></tr><tr><td colspan="2">D/H dimensionality of the data/latent space</td></tr><tr><td>D H D Ĥ L r</td><td>distribution of data samples denoted by x distribution of f φ (x) for x ∼ D distribution of x = g θ (f φ (x)) for x ∼ D distribution of ẑ = h (z) for z ∼ H standard reconstruction loss of the autoencoder</td></tr><tr><td>L φ lr,N L φ lr,H L φ nll L θ nll L vr</td><td>latent reconstruction loss of PGA for z ∼ N (0, I), minimized w.r.t. φ latent reconstruction loss of PGA for z ∼ H, minimized w.r.t. φ part of the negative log-likelihood loss of LPGA, minimized w.r.t. φ part of the negative log-likelihood loss of LPGA, minimized w.r.t. θ VAE reconstruction loss of VPGA</td></tr><tr><td>L vkl</td><td>VAE KL-divergence loss of VPGA</td></tr><tr><td>L</td><td/></tr></table>

Peer review (iclr2020):
This paper presents a set of losses to train auto-encoders using a stochastic latent code (PGA). The authors relate it to VAE and propose a variational variant of their framework (VPGA), but the initial intuition is distinct from VAEs. Results are presented on MNIST, CIFAR10 and CelebA and show both qualitative and quantitative improvements over VAEs. The intuitions behind this framework seem sound and the authors added theoretical justifications when possible. This paper seem to present a good idea that should be published, but is currently not clear enough. The writing of Section 3, especially section 3.1, need more work. The wording needs to be improved, maybe some notations are not needed, such as . There should be a clear description of what each loss is aiming to achieve. Currently, this is not clear. For instance, there are several mentions that h must map N(0, 1) to , but loss (2) makes it map N(0, 1) to N(0, 1) (and I don*t see other losses that would make it happen). It is likely I didn*t understand it fully and a clearer section would help. Another example of possible improvement would be calling the encoder and decoder with consistent names (for instance, Enc and Dec) could help, too. Currently, they are called encoder and decoder or generator in the text, f and g in the math, and theta and phi on figure 1. I am ready to change my rating after the rebuttal if the authors address clarity of section 3.