Title: CONDITIONAL INVERTIBLE NEURAL NETWORKS FOR GUIDED IMAGE GENERATION Anonymous

Abstract: In this work, we address the task of natural image generation guided by a conditioning input. We introduce a new architecture called conditional invertible neural network (cINN). It combines the purely generative INN model with an unconstrained feed-forward network, which efficiently preprocesses the conditioning input into useful features. All parameters of a cINN are jointly optimized with a stable, maximum likelihood-based training procedure. Even though INNs and other normalizing flow models have received very little attention in the literature in contrast to GANs, we find that cINNs can achieve comparable quality, with some remarkable properties absent in cGANs, e.g. apparent immunity to mode collapse. We demonstrate these properties for the tasks of MNIST digit generation and image colorization. Furthermore, we take advantage of our bidirectional cINN architecture to explore and manipulate emergent properties of the latent space, such as changing the image style in an intuitive way. 1

1. INTRODUCTION:

Generative adversarial networks (GANs) produce ever larger and more realistic samples (Karras et al., 2017; Brock et al., 2019) . Hence they have become the primary choice for a majority of image generation tasks. As such, their conditional variants (cGANs) would appear to be the natural tool for conditional image generation as well, and they have successfully been applied in many scenarios (Ledig et al., 2017; Miyato & Koyama, 2018) . However, a lack in diversity is especially common when the condition itself is an image, Figure 1 : Diverse colorizations, which our network created for the same grayscale image. One of them shows ground truth colors, but which? Solution at the bottom of next page. and special precautions have to be taken to avoid mode collapse and training stability continues to pose a challenge.

Conditional variational autoencoders (cVAEs) do not suffer from the same problems. Training is generally stable, and since every data point is assigned a region in latent space, sampling yields the full variety of data seen during training. However cVAEs come with drawbacks of their own: The assumption of a Gaussian posterior on the decoder side implies an L2 reconstruction loss, which is known to cause blurriness. In addition, the partition of the latent space into diagonal Gaussians leads to either mode-mixing issues or regions of poor sample quality (Kingma et al., 2016) . There has also been some success in combining aspects of both approaches for certain tasks, such as (Isola et 2019)) for the task of conditional image generation, by adding conditioning inputs to their core building blocks. INNs are neural networks which are by construction bijective, efficiently invertible, and have a tractable Jacobian determinant. They represent transport maps between the input distribution p(x) and a prescribed, easy-to-samplefrom latent distribution p(z). During training, the likelihood of training samples from p(x) is maximized in latent space, while at inference time, z-samples can trivially be transformed back to the data domain. Previously, INNs have been used successfully for unconditional image generation, e.g. by Dinh et al. (2016) and Kingma & Dhariwal (2018) .

Unconditional INN training is related to that of VAEs, but it compensates for some key disadvantages: Firstly, since reconstructions are perfect by design, no reconstruction loss is needed, and generated images do not become blurry. Secondly, each x maps to exactly one z in latent space, and there is no need for posteriors p(z | x). This avoids the VAE problem of disjoint or overlapping regions in latent space. In terms of training stability and sample diversity, INNs show the same strengths as autoencoder architectures, but with superior image quality. We find that these positive aspects apply to conditional INNs (cINNs) as well.

One limitation of INNs is that their design restricts the use of some standard components of neural networks, such as pooling and batch normalization layers. Our conditional architecture alleviates this problem, as the conditional inputs can be preprocessed by a conditioning network with a standard feed-forward architecture, which can be learned jointly with the cINN to greatly improve its generative capabilities. We demonstrate the quality of cINNs for conditional image generation and uncover emergent properties of the latent space, for the tasks of conditional MNIST generation and diverse colorization of ImageNet.

Given this, we believe that the cINN architecture brings the research field of INNs and other normalizing flow models a substantial step forward. Despite the fact that INNs have received very little attention in the literature in contrast to GANs, we find that cINNs can achieve comparable quality to cGANs, with some remarkable properties absent in cGANs. This includes diverse outputs by default, compared to sparse support or mode collapse in cGANs, easier explainability and interpretability of the learned latent representation, as well as simple and intuitive manipulation and interpolation of generated or existing images.

Our work makes the following contributions::

• We propose a new architecture called conditional invertible neural network (cINN), which combines an INN with an unconstrained feed-forward network for conditioning. It generates diverse images with high realism on par with existing approaces, while adding some noteworthy and useful properties. recently proposed an effective post-hoc conditioning scheme for flow-based generative models, their method requires an additional cGAN to identify latent codes fulfilling the specified condition.

Colorization. State-of-the-art regression models for colorization produce visually near-perfect images (Iizuka et al., 2016) , but do not account for the ambiguity inherent in this inverse problem. To address this, models would ideally define a conditional distribution of plausible color images for a given grayscale input, instead of just returning a single "best" solution.

Popular existing approaches for diverse colorization predict per-pixel color histograms from a U-Net (Zhang et al., 2016) or from hypercolumns of an adapted VGG network (Larsson et al., 2016) . However, sampling from these local histograms independently can not lead to a spatially consistent colorization, requiring additional heuristic post-processing steps to avoid artefacts.

In terms of generative models, both VAEs (Deshpande et al., 2017) and cGANs (Isola et al., 2017; Cao et al., 2017) have been proposed for the task. However, their solutions do not reach the quality of the regression-based models, and cGANs in particular often lack diversity. To compensate, modifications and extensions to generative approaches have been developed, such as auto-regressive models (Guadarrama et al., 2017) and CRFs (Royer et al., 2017) . However, these methods are computationally very expensive and often unable to scale to realistic image sizes.

Conceptually closest to our proposed method is the work of (Ulyanov et al., 2018) , where an encoder network maps color information to a latent space and a generator network learns the inverse transform, both conditioned on the grayscale image. Their experiments however are limited to a data set with only cars, and just three latent dimensions, leading to global, but no local diversity.

In contrast to the above, our flow-based cINN generates diverse colorizations in one standard feedforward pass. It models the distribution of all pixels jointly, and allows for meaningful latent space manipulations.

3. METHOD:

Our method is an extension of the affine coupling block architecture established by Dinh et al.

(2016).:

There, each network block splits its input u into two parts [u 1 , u 2 ] and applies affine transformations between them that have strictly upper or lower triangular Jacobians:

EQUATION

The outputs [v 1 , v 2 ] are concatenated again and passed to the next coupling block. The internal functions s j and t j can be represented by arbitrary neural networks, and are only ever evaluated in the forward direction, even when the coupling block is inverted:

EQUATION

As shown by Dinh et al. (2016) , the logarithm of the Jacobian determinant for such a coupling block is simply the sum of s 1 and s 2 over image dimensions.

3.1. CONDITIONAL INVERTIBLE TRANSFORMATIONS:

We adapt the design of Eqs. ( 1) and ( 2) to produce a conditional version of the coupling block. Because the subnetworks s j and t j are never inverted, we can concatenate conditioning data c to their inputs without losing the invertibility, replacing s 1 (u 2 ) with s 1 (u 2 , c) etc. Our conditional coupling block design is illustrated in Fig. 2 . In general, we will refer to a cINN with network parameters θ as f (x; c, θ), and the inverse as g(z; c, θ). For any fixed condition c, the invertibility is given as

CC:

EQUATION

3.2. MAXIMUM LIKELIHOOD TRAINING OF CINNS:

By prescribing a probability distribution p Z (z) on latent space Z, the model f assigns any input x a probability, dependent on both the network parameters θ and the conditioning c, through the change-of-variables formula:

EQUATION

Here, we use the Jacobian matrix w.r.t. x, ∂f (x; c)/∂x. We will denote the determinant of the Jacobian, evaluated at some training sample x i , as J i ≡ det ∂f /∂x| xi . Bayes' theorem gives us the posterior over model parameters as p(θ; x, c) ∝ p X (x; c, θ) • p θ (θ). Our goal is to find network parameters that maximize its logarithm, i.e. we minimize the loss

EQUATION

which is the same as in classical Bayesian model fitting.

Inserting Eq. ( 4) with a standard normal distribution for p Z (z), as well as a Gaussian prior on the weights θ with 1/2σ 2 θ ≡ τ , we obtain

EQUATION

The latter term represents L2 weight regularization, while the former is the maximum likelihood loss.

Training a network with this loss yields an estimate of the maximum likelihood network parameters θML . From there, we can perform conditional generation for a fixed c by sampling z and using the inverted network g:

x gen = g(z; c, θML ), with z ∼ p Z (z).

Training with the maximum likelihood method makes it virtually impossible for mode collapse to occur: If any mode in the training set has low probability under the current guess p X (x; c, θ), the corresponding latent vectors will lie far outside the normal distribution p Z and receive big loss from the first L2-term in Eq. ( 6). In contrast, the discriminator of a GAN only supplies a weak signal, proportional to the mode's relative frequency in the training data, so that the generator is not penalized much for ignoring a mode completely.

3.3. CONDITIONING NETWORK:

In complex settings, we expect that higher-level features of c need to be extracted for the conditioning to be effective, e.g. global semantic information from an image as in Section 4.2. In such cases, feeding the condition c directly into the cINN would place an unreasonable burden on the s and t networks, as higher-level features would have to be re-learned in each coupling block.

To address this issue, we introduce an additional feed-forward conditioning network h, which transforms the condition c to some intermediate representation c = h(c), and replace c i in Eq. ( 6) with ci = h(c i ). The network h can be pretrained, e.g. by using features from a VGG architecture trained for image classification. Alternatively or additionally, h can be trained jointly with the cINN by propagating gradients from the maximum likelihood loss through the conditioning c. In this case, the conditioning network will learn to extract features which are particularly useful for embedding the cINN inputs x into latent variables z.

3.4. IMPORTANT DETAILS:

For cINNs to match the performance of well-established architectures for conditional generation, we introduce a number of minor modifications and adjustments to the architecture and training procedure. With these adaptions, our training setup is very stable and converges every time.

Noise as data augmentation. We add a small amount of noise to the inputs x as part of the standard data augmentation. This helps to smooth out quantization artifacts in the input, and prevents sparse gradients when large parts of the image are completely flat (as e.g. in MNIST).

Soft clamping of scale coefficients. We apply an additional nonlinear function to the scale coefficients s, of the form s clamp = (2α/π)arctan(s/α), which yields s clamp ≈ s for |s| α and s clamp ≈ ±α for |s| α. This prevents any instabilities stemming from exploding magnitude of the exponential exp(s clamp ). We find α = 1.5 work well. A similar scheme is used in the realNVP architecture (Dinh et al., 2016) , whereby α is a learned vector, instead of a fixed hyperparameter. We find that a fixed α does not limit performance, while completely ruling out problems from exploding or vanishing scaling factors.

Initialization. Heuristically, we find that Xavier initialization (Glorot & Bengio, 2010) leads to stable training from the start. We experienced training instability when initial parameter values were too high. Similar to Kingma & Dhariwal (2018), we also initialize the last convolution in all s and t subnetworks to zero, so training starts from an identity transform.

Soft channel permutations. We use random orthogonal matrices to mix the information between the channels. This allows for more interaction between the two information streams u 1 , u 2 in the coupling blocks. A similar technique was used by Kingma & Dhariwal (2018), but our matrices stay fixed throughout training and are guaranteed to be cheaply invertible.

Haar wavelet downsampling. All prior INN architectures use checkerboard patterns for reshaping to lower spatial resolutions. However, this possibly results in unnatural inputs to the following layers, where previously neighboring pixels are suddenly treated independently as distinct channels. We argue, supported by our ablation experiments, that a deliberately chosen spatial decomposition can be more natural, and more closely resemble the effect of pooling operations in feed-forward networks. For these reasons, we perform downsampling with Haar wavelets (Haar, 1910) , which essentially decompose images into a 2 × 2 average pooling channel as well as vertical, horizontal and diagonal derivatives, see Fig. 3 . This also motivates which channels should be split off to directly become latent variables, namely the derivative channels with high-resolution information, and which should be transformed further in later stages of the cINN, i.e. the pooling channels (see Sec. Discussion. The soft clamping, along with the Haar wavelet downsampling are critical for training stability at sufficiently high learning rates. With them, the network is exceptionally stable, and converges to a good optimum every time. The noise augmentation and initialization additionally increase the convergence speed. The permutations are necessary to achieve sufficient expressive power and high quality results, but do not affect the training stability or speed. Ablation curves for these improvements are given in the appendix.

1 2 3 4 c × 2 × 2 = 1 2 1 2 1 2 1 2 average , 1 2 1 2 1 2 1 2 horizontal , 1 2 1 2 1 2 1 2 vertical , 1 2 1 2 1 2 1 2 diagonal • a h v d 4•c × 1 × 1

4. EXPERIMENTS:

We present results and explore the latent space of our models for two conditional image generation tasks: MNIST digit generation and image colorization.

4.1. CLASS-CONDITIONAL GENERATION FOR MNIST:

As a first experiment, we perform simple class-conditional generation of MNIST digits. We construct a cINN of 24 coupling blocks using fully connected subnetworks s and t, which receive the conditioning directly as a one-hot vector (Fig. 4 ). No conditioning network h is used. For data augmentation we only add a small amount of noise to the images (σ = 0.02), as described in Section 3.4.

Samples generated by the model are shown in Fig. 6 . We find that the cINN learns latent representations that are shared across conditions c. Keeping the latent vector z fixed while varying c produces different digits in the same style. This property, in conjunction with our network's invertibility, can directly be used for style transfer, as demonstrated in Fig. 7 . This outcome is not obvious -the trained cINN could also decompose into 10 essentially separate subnetworks, one for each condition. In this case, the latent space of each class would be structured differently, and inter-class transfer of latent vectors would be meaningless. The structure of the latent space is further illustrated in Fig. 5 , where we identify three latent axes with interpretable meanings. Note that while the latent space is learned without supervision, we found these axes in a semi-automatic fashion: We perform PCA on the latent vectors of the test set, without the noise augmentation. Since disentanglement is only unique up to a rotation in latent space, the directions corresponding to human-interpretable properties do not necessarily align with the latent axes. We therefore manually find a set of orthogonal vectors in the subspace of the first four PCA components which represent such properties. Tidy Slanted, narrow Slanted left, wide Messy Faint Bold Figure 6 : MNIST samples from our cINN conditioned on digit labels. All ten digits within one row (0, . . . , 9) were generated using the same latent code z, but changing condition c. We see that each z encodes a single style consistently across digits, while varying z between rows leads to strong differences in writing style. 

4.2. DIVERSE IMAGE COLORIZATION:

For a more challenging task, we turn to colorization of natural images. The common approach for this task is to represent images in Lab color space and generate color channels a, b by a model conditioned on the luminance channel L.

We train on the ImageNet dataset (Russakovsky et al., 2015) , again adding low noise to the a, b channels (σ = 0.05). As the color channels do not require as much resolution as the luminance channel, we condition on 256 × 256 pixel grayscale images, but generate 64 × 64 pixel color information. This is in accordance with the majority of existing colorization methods.

As with most generative INN architectures, we do not keep the resolution and channels fixed throughout the network, for the sake of computational cost. Instead, we use 4 resolution stages, as illustrated in Fig. 8 . At each stage, the data is reshaped to a lower resolution and more channels, after which a fraction of the channels are split off as one part of the latent code. As the high resolution stages have a smaller receptive field and less expressive power, the corresponding parts of the latent vector encode local structures and noise. More global information is passed on to the lower resolution sections of the cINN.

For the conditioning network h, we start with the same VGG-like architecture from Zhang et al.

(2016) and pretrain on the colorization task. By cutting off the network before the second-to-last convolution, we extract 256 feature maps of size 64 × 64 from the grayscale image L. We then add independent heads on top of this for each conditional coupling block in the cINN, indicated by small hexagons in Fig. 8 . Thus each coupling block k receives its own specialized conditioning c(k

) i = h k h(c i ) .

Each head consists of up to five strided convolutions, depending on its required output resolution, and a batch normalization layer. The ablation study in Fig. 14 confirms that the conditioning network is necessary to capture semantic information.

We initially train the cINN and the h k , keeping the parameters of the conditioning network h fixed, for 30 000 iterations. After this, we train both jointly until convergence, for 3 days on 3 Nvidia 2016)), and the grayscale images alone ('BW').

For each of 5k ImageNet validation images, we compare the best pixel-wise MSE of 8 generated colorization samples, the pixel-wise variance between the 8 samples as an approximation of the diversity, the Fréchet Inception Distance (Heusel et al., 2017) as a measure of realism, and the top 5 accuracy of ImageNet classification performed on the colorized images, to check if semantic content is preserved by the colorization. * Note: It was not possible to process all test images with PIC, due to the long inference times. Only 768 images are used. Full results will be included in the camera ready version.

GTX1080 GPUs. The Adam optimizer is essential for fast convergence, and we lower the learning rate when the maximum likelihood loss levels off.

At inference time, we use joint bilateral upsampling (Kopf et al., 2007) to match the resolution of the generated color channels â, b to that of the luminance channel L. This produces visually slightly more pleasing edges than bicubic upsampling, but has little to no impact on the results. It was not used in the quantitative results table, to ensure an unbiased comparison.

Latent space interpolations and color transfer are shown in Figs. 9 and 10, with more experiments in the appendix. In Table 1 , a quantitative comparison to existing methods is given. While on par with VAE-MDN in other metrics, the cINN clearly has the best sample diversity, as summarized by the variance and best-of-8 accuracy. The cGAN completely ignores the latent code and relies only on the condition -there is no diversity, in line with results from Isola et al. (2017) . In terms of FID score, the cGAN performs best, although its results do not appear more realistic to the human eye, cf. Fig. 13 . This may be due to the fact that FID is sensitive to outliers, which are unavoidable for a truly diverse method (see Fig. 12 ), or because the discriminator loss implicitly optimizes for the similarity of deep CNN activations. The VGG classification accuracy of colorized images is decreased for all generative methods equally, because occasional outliers may lead to misclassification.

Because the diverse COLORGAN by Cao et al. (2017) was exclusively trained on the LSUN bedrooms dataset (Yu et al., 2015) at small resolution, and would not converge on ImageNet, we compare this separately and provide results in the appendix. In this simple case, the performance of the cINN and COLORGAN is almost equal in all apsects, with much shorter training time for the cINN.

5. CONCLUSION AND OUTLOOK:

We have proposed a conditional invertible neural network architecture which enables guided generation of diverse images with high realism. For image colorization, we believe that even better results can be achieved when employing the latest tricks from large-scale GAN frameworks. Especially the non-invertible nature of the conditioning network makes cINNs a suitable method for other computer vision tasks such as diverse semantic segmentation.

Grayscale input z = 0.0 Figure 14 : In an ablation study, we train a cINN using the grayscale image directly as conditional input, without a conditioning network h. The resulting colorizations largely ignore semantic content which leads to exaggerated diversity. More ablations are found in the appendix. We find that for stable training at Adam learning rates of 10 -3 , the clamping and Haar wavelet downsampling are strictly necessary. Without these, the network has to be trained with much lower learning rates and more careful and specialized initialization, as used e.g. in Kingma & Dhariwal (2018). Beyond this, the noise augmentation and permutations lead to the largest improvement in final result. The effect of the noise is more pronounced for MNIST, as large parts of the image are completely black otherwise. For natural images, dequantization of the data is likely to be the main advantage of the added noise. Note however, that the training curves of the models with and without noise augmentation is not directly comparable, as the loss differs an additional summand ≈ log(σ aug. ). The effect on the training speed and stability is clearly visible regardless. The initialization only improves the final result by a small margin, but also converges noticeably faster. To our knowledge, the only diversity-enforcing cGAN architecture previously used for colorization is the colorGAN Cao et al. (2017) , which is also trained exclusively on the bedrooms dataset. Training the colorGAN for comparison, we find it requires over 24 hours to converge stably, after multiple restarts. The results are generally worse than those of the cINN, as shown in Fig. 16 . While the resulting pixel-wise color variance is slightly higher for the colorGAN, it is not clear whether this captures the true variance, or whether it is due to unrealistically colorful outputs, such as in the second row in Fig. 16 . 

• z * z = 0.7 • z * z = 0.9 • z * z = 1.0 • z * z = 1.25 • z *

B ADDITIONAL FIGURES B.1 COLORIZATION -TRANSFER:

The following figure contains an additional example of the color transfer, shown in Fig. 9 in the paper.

B.2 COLORIZATION -INTERPOLATIONS:

In the following, we show 2-dimensional interpolations in latent space. Two random latent vectors z (1) , z (2) are linearly combined:

z * = a 1 z (1) + a 2 z (2)

with varying a 1 , a 2 ∈ [-0.9 . . . 0.9] across each axis of a grid. The center image has z * = 0. Note that the images in the corners have a larger magnitude than trained for, z * 2 ≈ 1.3 E z 2 , leading to some oversaturation artifacts, as in Fig. 12 of the main paper.

Under review as a conference paper at ICLR 2020

B.3 COLORIZATION -ADDITIONAL EXAMPLES:

On the following pages, we provide some additional colorized images, as well as comparisons to alternative methods. All images are taken from the ImageNet 2012 validation set, and all methods were trained on ImageNet 2012. As we do not observe any significant diversity for the cGAN, we only provide a single sample. 

:

Code is available, but held back for the review process due to anonymity.

Figures and Tables:

al., 2017; Zhu et al., 2017b; Park et al., 2019). We propose a third approach, by extending Invertible Neural Networks (INNs, Dinh et al. (2016); Kingma & Dhariwal (2018); Ardizzone et al. (

Figure 2: One conditional affine coupling block (CC).

Figure 3: Haar wavelet downsampling reduces spatial dimensions & separates lower frequency content (a) from higher frequencies (h,v,d).

as one-hot vector

Figure 4: cINN model for conditional MNIST generation.

Figure 5: Axes in our MNIST model's latent space, which linearly encode the style attributes width, thickness and slant.

4.2). The wavelet transform also contributes to mixing the variables between layers, complementing the soft permutations. Similarly, Jacobsen et al. (2018a) use a global discrete cosine transform as a final transformation in their INN, to replace global average pooling.

Figure 7: To perform style transfer, we determine the latent code z = f (x; c, θ) of a test image (left), then use the inverse network g = f -1 with different conditions ĉ to generate the other digits in the same style, x = g(z; ĉ, θ).

CC conv CC conv CC conv CC conv

Figure 8: cINN model for diverse colorization. The conditioning network h consists of a truncated VGG (Simonyan & Zisserman, 2014) pretrained to colorize ImageNet, with separate convolutional heads h 1 , h 2 , h 3 , . . . tailoring the extracted features to each individual conditional coupling block (CC). After each group of coupling blocks, we apply Haar wavelet downsampling (Fig. 3) to reduce the spatial dimensions and, where indicated by arrows, split off parts of the latent code z early.

Figure9: Effects of linearly scaling the latent code z while keeping the condition fixed. Vector z * is "typical" in the sense that z * 2 = E z 2 , and results in natural colors. As we move closer to the center of the latent space ( z < z * ), regions with ambiguous colors become desaturated, while less ambiguous regions (e.g. sky, vegetation) revert to their prototypical colors. In the opposite direction ( z > z * ), colors are enhanced to the point of oversaturation.

Figure 10: For color transfer, we first compute the latent vectors z for different color images (L, a, b) (top row). We then send the same z vectors through the inverse network with a new grayscale condition L * (far left) to produce transferred colorizations a * , b * (bottom row). Differences between reference and output color (e.g. pink rose) can arise from mismatches between the reference colors a, b and the intensity prescribed by the new condition L * .

Figure 11: Diverse colorizations produced by our cINN.

Figure 12: Failure cases of our method. Top: Sampling outliers. Bottom: cINN did not recognize an object's semantic class or connectivity.

Figure 15: Training curves for each task, ablating the different improvements. "div." denotes that the training diverges, and the lowest loss so far is given.

IGNORES SEMANTIC CONTENT In the following examples, the semantic content of the image recognized, and the generated colors are clearly incorrect.

We demonstrate a stable, maximum likelihood-based training procedure for jointly optimizing the parameters of the INN and the conditioning network.• We take advantage of our bidirectional cINN architecture to explore and manipulate emergent properties of the latent space. We illustrate this for MNIST digit generation and image colorization. Modern generative models learn to transform noise (usually sampled from multivariate Gaussians) into desired target distributions. Methods differ by the modelfamily these transformations are picked from and by the losses determining optimal solutions. Pix2pix(Isola et al., 2017) addresses the important special case when the target is conditioned on an image in a different modality, e.g. to generate satellite images from maps. In addition to the discriminator loss, it minimizes the L1 distance between generated and ground-truth targets using a paired training set, which contains corresponding images from both modalities. This leads to impressive image quality, but lack of diversity seems to be an especially hard problem in this case. In contrast, our method does not need explicit precautions to promote diversity.

Table content: <table><tr><td>Bidirectional architectures augment generator networks with complementary encoder networks that</td></tr><tr><td>learn the generator's inverse and enable reconstruction losses, which exploit cycle consistency require-</td></tr><tr><td>ments. Conditional variational autoencoders (cVAEs, Sohn et al. (2015)) replace all distributions in a</td></tr><tr><td>standard VAE (Kingma &amp; Welling, 2013) by the appropriate conditional distributions, and are trained</td></tr><tr><td>to minimize the evidence lower bound (ELBO loss). Since variational distributions are typically</td></tr><tr><td>Gaussian, the reconstruction penalty is equivalent to squared loss, resulting in rather blurry generated</td></tr><tr><td>images. This is avoided by AGE networks (Ulyanov et al., 2018) and CycleGANs (Zhu et al., 2017a),</td></tr><tr><td>which combine standard cGAN discriminators with L1 reconstruction loss in the data domain, and</td></tr><tr><td>bidirectional conditional GANs (Jaiswal et al., 2017), which extend the GAN discriminator to act on</td></tr><tr><td>the distributions in data and latent space jointly. SPADE (Park et al., 2019), building upon pix2pix</td></tr><tr><td>and pix2pixHD (Wang et al., 2018), augments cGANs with additional VAE encoders to shape the</td></tr><tr><td>latent space such that diversity is ensured.</td></tr><tr><td>Instead of enforcing bijectivity through cycle losses, invertible neural networks are bidirectional</td></tr><tr><td>by design, since encoder and generator are realized by forward and backward processing within a</td></tr><tr><td>single bijective model. We focus on architectures whose forward and backward pass require the same</td></tr><tr><td>computational effort. The coupling layer designs pioneered by NICE (Dinh et al., 2014) and RealNVP</td></tr><tr><td>(Dinh et al., 2016) emerged as very powerful and flexible model families under this restriction. Using</td></tr><tr><td>additive coupling layers, i-RevNets (Jacobsen et al., 2018b) demonstrated that the lack of information</td></tr><tr><td>reduction from data space to latent space does not cause overfitting. The Glow architecture (Kingma</td></tr><tr><td>&amp; Dhariwal, 2018) combines affine coupling layers with invertible 1x1 convolutions and achieves</td></tr><tr><td>impressive attribute manipulations (e.g. age, hair color) in generated faces images. This approach</td></tr><tr><td>was recently generalized to video by Kumar et al. (2019).</td></tr><tr><td>Thanks to tractable Jacobian determinants, the coupling layer architecture enables maximum likeli-</td></tr><tr><td>hood training (Dinh et al., 2014; 2016), but experimental comparisons with other training methods</td></tr><tr><td>are inconclusive so far. For instance, Danihelka et al. (2017) found minimization of an adversarial</td></tr><tr><td>loss to be superior to maximum likelihood training in RealNVPs, Schirrmeister et al. (2018) trained</td></tr><tr><td>i-RevNets in the same manner as adversarial auto-encoders, i.e. with a discriminator acting in latent</td></tr><tr><td>rather than data space, and Flow-GANs (Grover et al., 2018) performed best using bidirectional</td></tr><tr><td>training, a combination of maximum likelihood and adversarial loss. On the other hand, maximum</td></tr><tr><td>likelihood training worked well within Glow (Kingma &amp; Dhariwal, 2018), and i-ResNets (Behrmann</td></tr><tr><td>et al., 2018) could even be trained with approximated Jacobian determinants. In this work we</td></tr><tr><td>reinforce the view that high-quality generative models can be trained by maximum likelihood loss</td></tr><tr><td>alone. To the best of our knowledge, we are the first to apply the coupling layer design for conditional</td></tr><tr><td>Conditional generative adversarial networks (cGANs, Mirza &amp; Osindero (2014)) train a pair of</td></tr><tr><td>neural networks: a generator transforms a pair of conditioning and noise vectors to images, and a</td></tr><tr><td>discriminator penalizes unrealistic looking images. The conditioning information is either concate-</td></tr><tr><td>nated to the noise (Mirza &amp; Osindero, 2014), or fed into the network via conditional batch-norm</td></tr><tr><td>layers (Dumoulin et al., 2017; Huang &amp; Belongie, 2017; Park et al., 2019). Ensuring diversity of</td></tr></table>



Table content: <table><tr><td>512</td><td>8192 (2 × 64 × 64)</td></tr><tr><td>CC fully connected</td><td/></tr><tr><td>32 × 8 × 8</td><td/></tr></table>

Comparison of conditional generative models for diverse colorization (VAE-MDN: Deshpande et al. (2017); cGAN: Isola et al. (2017)). We additionally compare to a state-of-the-art regression model ('CNN', no diversity, Iizuka et al. (

Table content: <table><tr><td/><td>cINN (ours)</td><td>VAE-MDN</td><td>cGAN</td><td>PIC</td><td>CNN</td><td>BW</td><td>Ground truth</td></tr><tr><td>MSE (best of 8)</td><td>3.53 ±0.04</td><td>4.06 ±0.04</td><td>9.75 ±0.06</td><td>3.19  *  ±0.09</td><td>6.77 ±0.05</td><td>-</td><td>-</td></tr><tr><td>LPIPS (best of 8)</td><td>0.167 ±0.001</td><td colspan="2">0.171 ±0.001 0.245 ±0.001</td><td>0.147  *  ±0.003</td><td>0.163 ±0.001</td><td>-</td><td>-</td></tr><tr><td>Variance (RGB)</td><td>35.2 ±0.3</td><td>21.1 ±0.2</td><td>0.0 ±0.0</td><td>44.1  *  ± 1.3</td><td>-</td><td>-</td><td>-</td></tr><tr><td colspan="3">Variance (LPIPS) 0.1754 ±0.001 0.0822 ±0.001</td><td>0.0 ±0.0</td><td>0.1755  *  ±0.003</td><td>-</td><td>-</td><td>-</td></tr><tr><td>FID</td><td>25.13 ±0.30</td><td>25.98 ±0.28</td><td>24.41 ±0.27</td><td>(Depends heavily on test set size)</td><td>24.95 ±0.27</td><td colspan="2">30.91 ±0.27 14.69 ±0.18</td></tr><tr><td>VGG top 5 acc.</td><td>85.00 ±0.48</td><td>85.00 ±0.48</td><td>84.62 ±0.53</td><td>87.44  *  ±1.2</td><td>86.86 ±0.41</td><td colspan="2">86.02 ±0.43 91.66 ±0.43</td></tr></table>

Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In ICCV'17, pp. 2223-2232, 2017a. 3 Jun-Yan Zhu, Richard Zhang, Deepak Pathak, Trevor Darrell, Alexei A Efros, Oliver Wang, and Eli Shechtman. Toward multimodal image-to-image translation. In Advances in Neural Information Processing Systems, pp. To demonstrate the improved stability and training speed through the improvements from Sec. 3.4, we perform ablations, see Fig. 15. The ablations for colorization were performed for the LSUN bedrooms task, due to training speed.

Table content: <table><tr><td>465-476, 2017b. 1</td></tr><tr><td>A ADDITIONAL EXPERIMENTS</td></tr><tr><td>A.1 ABLATION OF TRAINING IMPROVEMENTS</td></tr></table>

Quantitative comparison between smaller cINN and colorGAN on LSUN bedrooms. The metrics used are explained in Table1.

Table content: <table><tr><td>Metric</td><td colspan="2">cINN colorGAN</td></tr><tr><td>MSE best-of-8</td><td>6.14</td><td>6.43</td></tr><tr><td>Variance</td><td>33.69</td><td>39.46</td></tr><tr><td>FID</td><td>26.48</td><td>28.31</td></tr></table>

Peer review (iclr2020):
The paper presents an invertible generative network, for conditional image generation. The model is an extension of Real NVP with a conditioning component. Experiments are performed for image generation on two tasks: class conditional generation on MNIST and image colorization conditioned on a grey scale image (luminance). Comparisons are performed with a conditional VAE and a conditional GAN (Pix2Pix). An ablation study motivates the importance and role of the different components. The model itself is a relatively simple extension of Real NVP, where a condition vector is added to the initial model as an additional input to the NN components of the invertible blocks. In the experiments conditioning may be a simple class indicator (MNIST) or a more complex component corresponding to a NN mapping of an initial conditioning image (colorization). The experiments show that this model is able to generate good quality images, with an important diversity, showing that the conditioning mechanism works well. The quantitative comparison also shows that the proposed model is competitive with two baselines taken in the VAE and GAN families. The model works well for the non-trivial task of colorization. The authors claim is that they are the first to propose conditional invertible networks. The main contribution is probably the implementation of the model itself. They make use of several “tricks” that improve a lot on the performance as demonstrated by the ablation study. As such more details and motivations for these different ideas that improve the performance and stability of the model would be greatly helpful. It looks like these are not details, but requirements to make the whole thing work. The Haar component for example should be better motivated. There is no comparison in the ablation study with an alternative, simpler decomposition. The baselines are probably not the strongest models to date, and better results could certainly be obtained with other VAE or GAN variants. For example, there have been several works trying to introduce diversity for GANs. This is not redhibitory, but this should be mentioned. Besides a short description of the two baselines, would make the paper more self-contained. The quantitative comparison with the VAE baseline, shows that the two models are quite similar w.r.t. different measures. This could be also commented. The notations for the Jacobian do not integrate the conditioning, this could be corrected. Concerning the interpretation of the axis for the MNIST experiment, it is not clear if they are axis in the original space or PCA axis. If this is the first option, more details are needed in order to understand how they were selected. ------post rebuttal ----- The authors clarified several of the raised points. I keep my score.