Title: STOCHASTIC CONDITIONAL GENERATIVE NETWORKS WITH BASIS DECOMPOSITION

Abstract: While generative adversarial networks (GANs) have revolutionized machine learning, a number of open questions remain to fully understand them and exploit their power. One of these questions is how to efficiently achieve proper diversity and sampling of the multi-mode data space. To address this, we introduce Ba-sisGAN, a stochastic conditional multi-mode image generator. By exploiting the observation that a convolutional filter can be well approximated as a linear combination of a small set of basis elements, we learn a plug-and-played basis generator to stochastically generate basis elements, with just a few hundred of parameters, to fully embed stochasticity into convolutional filters. By sampling basis elements instead of filters, we dramatically reduce the cost of modeling the parameter space with no sacrifice on either image diversity or fidelity. To illustrate this proposed plug-and-play framework, we construct variants of BasisGAN based on state-ofthe-art conditional image generation networks, and train the networks by simply plugging in a basis generator, without additional auxiliary components, hyperparameters, or training objectives. The experimental success is complemented with theoretical results indicating how the perturbations introduced by the proposed sampling of basis elements can propagate to the appearance of generated images.

1. INTRODUCTION:

Conditional image generation networks learn mappings from the condition domain to the image domain by training on massive samples from both domains. The mapping from a condition, e.g., a map, to an image, e.g., a satellite image, is essentially one-to-many as illustrated in Figure 1 . In other words, there exists many plausible output images that satisfy a given input condition, which motivates us to explore multi-mode conditional image generation that produces diverse images conditioned on one single input condition.

One technique to improve image generation diversity is to feed the image generator with an additional latent code in the hope that such code can carry information that is not covered by the input condition, so that diverse output images are achieved by decoding the missing information conveyed through different latent codes. However, as illustrated in the seminal work Isola et al. (2017) , encoding the diversity with an input latent code can lead to unsatisfactory performance for the following reasons. While training using objectives like GAN loss Goodfellow et al. (2014) , regularizations like L1 loss Isola et al. (2017) and perceptual loss Wang et al. (2018) are imposed to improve both visual fidelity and correspondence to the input condition. However, no similar regularization is imposed to enforce the correspondence between outputs and latent codes, so that the network is prone to ignore input latent codes in training, and produce identical images from an input condition even with different latent codes. Several methods are proposed to explicitly encourage the network to take into account input latent codes to encode diversity. For example, Mao et al. (2019) explicitly maximizes the ratio of the distance between generated images with respect to the corresponding latent codes; while Zhu et al. (2017b) applies an auxiliary network for decoding the latent codes from the generative images. Although the diversity of the generative images is significantly improved, these methods experience drawbacks. In Mao et al. (2019) , at least two samples generated from the same condition are needed for calculating the regularization term, which multiplies the memory footprint while training each mini-batch. Auxiliary network structures and training objectives in Zhu et al. (2017b) unavoidably increase training difficulty and memory footprint. These previously proposed methods usually require considerable modifications to the underlying framework. In this paper, we propose a stochastic model, BasisGAN, that directly maps an input condition to diverse output images, aiming at building networks that model the multi-mode intrinsically. The proposed method exploits a known observation that a well-trained deep network can converge to significantly different sets of parameters across multiple trainings, due to factors such as different parameter initializations and different choices of mini-batches. Therefore, instead of treating a conditional image generation network as a deterministic function with fixed parameters, we propose modeling the filter in each convolutional layer as a sample from filter space, and learning the corresponding filter space using a tiny network for efficient and diverse filter sampling. In Ghosh et al. (2018) , parameter non-uniqueness is used for multi-mode image generation by training several generators with different parameters simultaneously as a multi-agent solution. However, the maximum modes of Ghosh et al. (2018) are restricted by the number of agents, and the replication increases memory as well as computational cost. Based on the above parameters non-uniqueness property, we introduce into a deep network stochastic convolutional layers, where filters are sampled from learned filter spaces. Specifically, we learn the mapping from a simple prior to the filter space using neural networks, here referred to as filter generators. To empower a deterministic network with multi-mode image generation, we divide the network into a deterministic sub-model and a stochastic sub-model as shown in Figure 1 , where standard convolutional layers and stochastic convolutional layers with filter generators are deployed, respectively. By optimizing an adversarial loss, filter generators can be jointly trained with a conditional image generation network. In each forward pass, filters at stochastic layers are sampled by filter generators. Highly diverse images conditioned on the same input are achieved by jointly sampling of filters in multiple stochastic convolutional layers.

However, filters of a convolutional layer are usually high-dimensional while being together written as one vector, which makes the modeling and sampling of a filter space highly costly in practice in terms of training time, sampling time, and filter generator memory footprint. Based on the low-rank property observed from sampled filters, we decompose each filter as a linear combination of a small set of basis elements Qiu et al. (2018) , and propose to only sample low-dimensional spatial basis elements instead of filters. By replacing filter generators with basis generators, the proposed method becomes highly efficient and practical. Theoretical arguments are provided on how perturbations introduced by sampling basis elements can propagate to the appearance of generated images.

The proposed BasisGAN introduces a generalizable concept to promote diverse modes in the conditional image generation. As basis generators act as plug-and-play modules, variants of BasisGAN can be easily constructed by replacing in various state-of-the-art conditional image generation net-works the standard convolutional layers by stochastic layers with basis generators. Then, we directly train them without additional auxiliary components, hyperparameters, or training objectives on top of the underlying models. Experimental results consistently show that the proposed BasisGAN is a simple yet effective solution to multi-mode conditional image generation. We further empirically show that the inherent stochasticity introduced by our method allows training without paired samples, and the one-to-many image-to-image translation is achieved using a stochastic auto-encoder where stochasticity prevents the network from learning a trivial identity mapping.

Our contributions are summarized as follows:

• We propose a plug-and-played basis generator to stochastically generate basis elements, with just a few hundred of parameters, to fully embed stochasticity into network filters. achieve great progress on visually appealing images given conditions. However, the quality of images and the loyalty to input conditions come with sacrifice on image diversity as discussed in Zhu et al. (2017b) , which is addressed by the proposed BasisGAN.

Multi-mode conditional image generation. To enable the cGANs with multi-mode image generation, pioneer works like infoGAN Chen et al. (2016) and pix2pix Isola et al. (2017) propose to encode the diversity in an input latent code. To enforce the networks to take into account input latent codes, Zhu et al. (2017b) deploys auxiliary networks and training objectives to impose the recovery of the input latent code from the generated images. MSGAN Mao et al. (2019) and DSGAN Yang et al. (2019) propose regularization terms for diversity that enforces a larger distance between generated images with respect to different input latent codes given one input condition. These methods require considerable modifications to the underlying original framework.

Neural network parameters generating and uncertainty. Extensive studies have been conducted for generating network parameters using another network since Hypernetworks Ha et al. (2016) . As a seminal work on network parameter modeling, Hypernetworks successfully reduce learnable parameters by relaxing weight-sharing across layers. Followup works like Bayesian Hypernetworks Krueger et al. (2017) further introduce uncertainty to the generated parameters. Variational inference based methods like Bayes by Backprop Blundell et al. (2015) solve the intractable posterior distribution of parameters by assuming a prior (usually Gaussian). However, the assumed prior unavoidably degrades the expressiveness of the learned distribution. The parameter prediction of neural network is intensively studied under the context of few shot learning Bertinetto et al. 

3. STOCHASTIC FILTER GENERATION:

A conditional generative network (cGAN) Mirza & Osindero (2014) learns the mapping from input condition domain A to output image domain B using a deep neural network. The conditional image generation is essentially a one-to-many mapping as there could be multiple plausible instances B ∈ B that map to a condition A ∈ A Zhu et al. (2017b) , corresponding to a distribution p(B|A).

However, the naive mapping of the generator formulated by a neural network G : A → B is deterministic, and is incapable of covering the distribution p(B|A). We exploit the non-uniqueness of network parameters as discussed above, and introduce stochasticity into convolutional filters through plug-and-play filter generators. To achieve this, we divide a network into two sub-models:

• A deterministic sub-model with convolutional filters φ that remain fixed after training;

• A stochastic sub-model whose convolutional filters w are sampled from parameter spaces modeled by neural networks T , referred to as filter generators, parametrized by θ with inputs z from a prior distribution, e.g., N (0, I) for all experiments in this paper.

Note that filters in each stochastic layer are modeled with a separate neural network, which is not explicitly shown in the formulation for notation brevity. With this formulation, the conditional image generation becomes G φ,θ : A → B, with stochasticity achieved by sampling filters w = T θ (z) for the stochastic sub-model in each forward pass. The conditional GAN loss Goodfellow et al. (2014) ; Mirza & Osindero (2014) then becomes

EQUATION

where D denotes a standard discriminator. Note that we represent the generator here as G φ,θ (A; T θ (z)) to emphasize that the generator uses stochastic filters w = T θ (z).

Given a stochastic generative network parametrized by φ and θ, and input condition A, the generated images form a conditional probability q φ,θ (B|A), so that (1) can be simplified as

min G max D V (D, G) =E A∼p(A),B∼p(B|A) log D(A, B)+ E A∼p(A),B∼q φ,θ (B|A) log[1 -D(A, B)].

(2)

When the optimal discriminator is achieved, (2) can be reformulated as

EQUATION

where JSD is the Jensen-Shannon divergence (the proof is provided in the supplementary material). The global minimum of (3) is achieved when given every sampled condition A, the generator perfectly replicates the true distribution p(B|A), which indicates that by directly optimizing the loss in (1), conditional image generation with diversity is achieved with the proposed stochasticity in the convolutional filters.

To optimize (1), we train D as in Goodfellow et al. (2014) to maximize the probability of assigning the correct label to both training examples and samples from G φ,θ . Simultaneously, we train G φ,θ to minimize the following loss, where filter generators T θ are jointly optimized to bring stochasticity:

EQUATION

We describe in detail the optimization of the generator parameters {φ, θ} in supplementary material Algorithm 1.

Discussions on diversity modeling in cGANs. 

B = G(A, z ), z ∼ p(z ),

where G is a deep network with deterministic parametrization and the randomness is introduced via z , e.g., a latent code, as an extra input. This formulation implicitly makes the following two assumptions: (A1) The randomness of the generator is independent from that of p(A); (A2) Each realization B(ω) conditional on A can be modeled by a CNN, i.e., B = G ω (A), where G ω is a draw from an ensemble of CNNs, ω being the random event. (A1) is reasonable as long as the source of variation to be modeled by cGAN is independent from that contained in A, and the rational of (A2) lies in the expressive power of CNNs for image to image translation. The previous model adopts a specific form of G ω (A) via feeding random input z (ω) to G, yet one may observe that the most general formulation under (A1), (A2) would be to sample the generator itself from certain distribution p(G), which is independent from p(A). Since generative CNNs are parametrized by convolutional filters, this would be equivalent to set B = G(A; w), w ∼ p(w), where we use ";" in the parentheses to emphasize that what after is parametrization of the generator. The proposed cGAN model in the current paper indeed takes such an approach, where we model p(w) by a separate filter generator network.

4. STOCHASTIC BASIS GENERATION:

Using the method above, filters of each stochastic layer w are generated in the form of a highdimensional vector of size L × L × C × C, where L, C , and C correspond to the kernel size, numbers of input and output channels, respectively. Although directly generating such high-dimensional vectors is feasible, it can be highly costly in terms of training time, sampling time, and memory footprint when the network scale grows. We present a throughout comparison in terms of generated quality and sample filter size in supplementary material For convolutional filters, the weights w is a 3-way tensor involving a spatial index and two channel indices for input and output channel respectively. Tensor low-rank decomposition cannot be defined in a unique way. For convolutional filters, a natural solution then is to separate out the spatial index, which leads to depth-separable network architectures Chollet (2017). Among other studies of lowrank factorization of convolutional layers, Qiu et al. (2018) proposes to approximate a convolutional filter using a set of prefixed basis element linearly combined by learned reconstruction coefficients.

Given that the weights in convolutional layers may have a low-rank structure, we collect a large amount of generated filters and reshape the stack of N sampled filters to a 2-dimensional matrix F with size of J × J , where J = N × L × L and J = C × C. We consistently observe that F is always of low effective rank, regardless the network scales we use to estimate the filter distribution.

If we assume that a collection of generated filters observe such a low-rank structure, the following theorem proves that it suffices to generate bases in order to generate the desired distribution of filters.

Theorem 1. Let (Ω, P) be probability space and F : Ω → R L 2 ×C ×C a 3-way random tensor, where F maps each event ω to

F ω (u, λ , λ), u ∈ [L] × [L], λ ∈ [C ], λ ∈ [C]. For each fixed ω and u, F ω (u) := {F ω (u, λ , λ)} λ ,λ ∈ L(R C , R C ). If there exists a set of deterministic linear transforms a k , k = 1, • • • , K in L(R C , R C ) s.t. F ω (u) ∈ Span{a k } K k=1

for any ω and u, then there exists K random vectors b

k : Ω → R L 2 , k = 1, • • • , K, s.t. F(u, λ , λ) = K k=1 b k (u)a k (λ , λ) in distribution. If F has a probability density, then so do {b k } K k=1 .

The proof of the theorem is provided in the supplementary material.

We simplify the expensive filter generation problem by decomposing each filter as a linear combination of a small set of basis elements, and then sampling basis elements instead of filters directly.

In our method, we assume that the diverse modes of conditional image generations are essentially caused by the spatial perturbations, thus we propose to introduce stochasticity to the spatial basis elements. Specifically, we apply convolutional filer decomposition as in Qiu et al. (2018) to write w = ψa, ψ ∈ R L×L×K , where ψ are basis elements, a are decomposition coefficients, and K is a pre-defined small value, e.g., K = 7. We keep the decomposition coefficients a deterministic and learned directly from training samples. Instead of using predefined basis elements as in Qiu et al. (2018) , we adopt a basis generator network T (θ, z ) parametrized by θ, that learns the mapping from random latent vectors z to basis elements ψ with stochasticity. The basis generator networks are jointly trained with the main conditional image generation network in an end-to-end manner. Note that we inherit the term 'basis' from DCFNet Qiu et al. (2018) for the intuition behind the proposed framework, and we do not impose additional constrains such as orthogonality or linear independence to the generated elements. Sampling the basis elements ψ using basis generators dramatically reduces the difficulty on modeling the corresponding probability distribution. The costly filter generators in Section 3 is now replaced by much more efficient basis generators, and stochastic filters are then constructed by linearly combining sampled basis elements with the deterministic coefficients, w = ψa = T (θ, z )a. The illustration on the convolution filter reconstruction is shown as a part of Figure 1 . As illustrated in this figure, BasisGAN is constructed by replacing convolutional layers with the proposed stochastic convolutional layers with basis generators, and the network parameters can be learned without additional auxiliary training objective or regularization.

5. EXPERIMENTS:

In this section, we conduct experiments on multiple conditional generation task. Our preliminary objective is to show that thanks to the inherent stochasticity of the proposed BasisGAN, multi-mode conditional image generation can be learned without any additional regularizations that explicitly promote diversity. The effectiveness of the proposed BasisGAN is demonstrated by quantitative and qualitative results on multiple tasks and underlying models. We start with a stochastic auto-encoder example to demonstrate the inherent stochasticity brought by basis generator. Then we proceed to image to image translation tasks, and compare the proposed method with: regularization based methods DSGAN Yang et al. (2019) and MSGAN Mao et al. (2019) that adopt explicit regularization terms that encourages higher distance between output images with different latent code; the model based method MUNIT Huang et al. (2018) that explicitly decouples appearance with content and achieves diverse image generation by manipulating appearance code; and BicycleGAN Zhu et al. (2017b) that uses auxiliary networks to encourage the diversity of the generated images with respect to the input latent code. We further demonstrate that as an essential way to inject randomness to conditional image generation, our method is compatible with existing regularization based methods, which can be adopted together with our proposed method for further performance improvements.

Finally, ablation studies on the size of basis generators and the effect of K are provided in the supplementary material, Section E.

5.1. STOCHASTIC AUTO-ENCODER:

The inherent stochasticity of the proposed BasisGAN allows learning conditional one-to-many mapping even without paired samples for training. We validate this by a variant of BasisGAN referred as stochastic auto-encoder, which is trained to do simple self-reconstructions with real-world images as inputs. Only L1 loss and GAN loss are imposed to promote fidelity and correspondence. However, thanks to the inherent stochasticity of BasisGAN, we observe that the network does not collapse to a trivial identity mapping, and diverse outputs with strong correspondence to the input images are generated with appealing fidelity. Some illustrative results are shown in Figure 2 .

Input Generated diverse samples Input Generated diverse samples The network is trained directly to reconstruct the input real-world images, and the inherent stochasticity of the proposed method successfully promotes diverse output appearances with strong fidelity and correspondence to the inputs.

5.2. IMAGE TO IMAGE TRANSLATION:

To faithfully validate the fidelity and diversity of generated images, we follow Mao et al. (2019) to evaluate the performance quantitatively using the following metrics: LPIPS. The diversity of generated images are measured using LPIPS Mao et al. (2019) . LPIPS computes the distance of images in the feature space. Generated images with higher diversity give higher LPIPS scores, which are more favourable in conditional image generation. FID. FID Heusel et al. (2017) is used to measure the fidelity of the generated images. It computes

Input:

Ground truth Generated diverse samples 2018), we perform the quantitative evaluations on image to image translation tasks and the results are presented in Table 1 . Qualitative comparisons are presented in Figure A.3. As discussed, all the state-of-the-art methods require considerable modifications to the underlying framework. By simply using the proposed stochastic basis generators as plug-and-play modules to the Pix2Pix model, the BasisGAN generates significantly more diverse images but still at comparable quality with other state-of-the-art methods. Moreover, as shown in Table A .3, Ba-sisGAN reduces the number of trainable parameters comparing to the underlying methods thanks to the small number of basis elements and the tiny basis generator structures. While regularization based methods like Mao et al. (2019) ; Yang et al. (2019) maintain the parameter numbers of the underlying network models.

Pix2PixHD → BasisGAN. In this experiment, we report results on high-resolution scenarios, which particularly demand efficiency and have not been previously studied by other conditional image generation methods.

We conduct high resolution image synthesis on Pix2PixHD Wang et al. (2018) , which is proposed to conditionally generate images with resolution up to 2048×1024. The importance of this experiment arises from the fact that existing methods Mao et al. (2019) ; Zhu et al. (2017b) require considerable modifications to the underlying networks, which in this case, are difficult to be scaled to very high resolution image synthesis due to the memory limit of modern hardware. Our method requires no auxiliary networks structures or special batch formulation, thus is easy to be scaled to large scale scenarios. Some generated samples are visualized in Figure 4 . Quantitative results and comparisons against DSGAN Yang et al. (2019) are reported in Table 2 . BasisGAN significantly improves both diversity and fidelity with little overheads in terms of training time, testing time, and memory.

Image inpainting. We conduct one-to-many image inpainting experiments on face images. Following Yang et al. (2019) , centered face images in the celebA dataset are adopted and parts of the faces are discarded by removing the center pixels. We adopt the exact same network used in Yang et al. (2019) and replace the convolutional layers by layers with basis generators. To show the plugand-play compatibility of the proposed BasisGAN, we conduct experiments by both training Basis-GAN alone and combining BasisGAN with regularization based methods DSGAN (BasisGAN + DSGAN). When combining BasisGAN with DSGAN, we feed all the basis generator in BasisGAN with the same latent code and use the distance between the latent codes and the distance between generated samples to compute the regularization term proposed in Yang et al. (2019) . Quantitative results and qualitative results are in Table 3 and Figure 5 , respectively. BasisGAN delivers good balance between diversity and fidelity, while combining BasisGAN with regularization based DSGAN further improves the performance. 

E ABLATION STUDIES:

In this section, we perform ablation studies on the proposed BasisGAN, and evaluate multiple factors that can affect generation results. We perform ablation studies on BasisGAN adapted from the Pix2Pix model with the maps → satellite dataset.

Size of basis generators. We model a basis generator using a small neural network, which consists of several hidden layers and inputs a latent code sampled from a prior distribution. We consistently observe that a basis generator with a single hidden layer achieves the best performance while maintains fast basis generation speed. Here we perform further experiments on the size of intermediate layers and input latent code size, and the results are presented in Table A .1. It is observed that the size of a basis generator does not significantly effect the final performance, and we use the 64 + 64 setting in all the experiments for a good balance between performances and costs.

Number of basis elements K. By empirically observing the low rank of generated filters, we use K = 7 in all the aforementioned experiments. We conduct further experiments to show the performances with larger K and show the results in Table A .2. It is clearly shown that by increasing K, the quality of the generated images do not increase. And when K gets larger, e.g, K = 128, even significantly degrades the diversity of the generated images. 

:



Figures and Tables:

Figure 1: Illustration of the proposed BasisGAN. The diversity generated images are achieved by the parameter generation in the stochastic sub-model, where basis generators take samples from a prior distribution and generate low dimensional basis elements from the learned spaces. The sampled basis elements are linearly combined using the deterministic bases coefficients and used to reconstruct the convolutional filters. Filters in each stochastic layer are modeled with a separate basis generator. By convolving the same feature from the deterministic sub-model using different convolutional filters, images with diverse appearances are generated.

(2016);Qiao et al. (2018);Wang et al. (2019), which aims to customize a network to a new task adaptively and efficiently in a data-driven way. Apart from few shot learning,Denil et al. (2013) suggests parameter prediction as a way to study the redundancy in neural networks. While studying the representation power of random weights, Saxe et al. (2011) also suggests the uncertainty and non-uniqueness of network parameters. Another family of network with uncertainty is based on variational inferenceBlundell et al. (2015), where an assumption of the distribution on network weights is imposed for a tractable learning on the distribution of weights. Works on studying the relationship between local and global minima of deep networksHaeffele & Vidal (2015);Vidal et al. (2017) also suggest the non-uniqueness of optimal parameters of a deep network.

Figure A.1, where it is clearly shown that filter generation is too costly to afford. In this section, we propose to replace filter generation with basis generation to achieve a quality/cost effect shown by the red dot in Figure A.1. Details on the memory, parameter number, and computational cost are also provided at the end of the supplementary material, Section G.

Figure 2: Stochastic auto-encoder: one-to-many conditional image generation without paired sample. The network is trained directly to reconstruct the input real-world images, and the inherent stochasticity of the proposed method successfully promotes diverse output appearances with strong fidelity and correspondence to the inputs.

Figure 3: BasisGAN adapted from Pix2Pix. The network is trained without any auxiliary loss functions or regularizations. From top to bottom, the image to image translation tasks are: edges → handbags, edges → shoes, maps → satellite, nights → days, facades → buildings. Additional examples are provided in the supplementary material, Figure A.2.

Figure 4: High resolution conditional image generation. Additional examples are provided in the supplementary material, Figure A.4.

Figure 5: Face inpainting examples.

Figure A.1: (a) shows the comparison between basis generation and filter generation in terms of quality and cost. In (b), top row shows images generated with basis generators (the red dot in (a)), bottom row shows images generated with filter generators at the highest cost (highest in (a)). Basis generation achieves better performance with significantly less cost comparing to filter generation. The quality metrics are introduced in Section 5.

Figure A.2: Pix2Pix → BasisGAN.

Quantitative results on image to image translation. Diversity and fidelity are measured using LPIPS and FID, respectively. Pix2PixIsola et al. (2017),BicycleGAN Zhu et al. (2017b),MSGAN  Mao et al. (2019), andDSGAN Yang et al. (2019)  are included in the comparisons. DSGAN adopts a different setting (denoted as 20s in the table) by generating 20 samples per input for computing the scores. We report results under both settings.

Table content: <table><tr><td>Dataset</td><td/><td/><td colspan="2">Labels → Facade</td><td/><td/></tr><tr><td>Methods</td><td>Pix2Pix</td><td>BicycleGAN</td><td>MSGAN</td><td>BasisGAN</td><td colspan="2">DSGAN (20s) BasisGAN (20s)</td></tr><tr><td colspan="5">Diversity ↑ 0.0003 ± 0.0000 0.1413 ± 0.0005 0.1894 ± 0.0011 0.2648 ± 0.004</td><td>0.18</td><td>0.2594 ± 0.004</td></tr><tr><td>Fidelity ↓</td><td>139.19 ±2 .94</td><td>98.85 ± 1.21</td><td>92.84 ± 1.00</td><td>88.7 ± 1.28</td><td>57.20</td><td>24.14 ± 0.76</td></tr><tr><td>Datasets</td><td/><td/><td colspan="2">Map → Satellite</td><td/><td/></tr><tr><td>Methods</td><td>Pix2Pix</td><td>BicycleGAN</td><td>MSGAN</td><td>BasisGAN</td><td colspan="2">DSGAN (20s) BasisGAN (20s)</td></tr><tr><td colspan="5">Diversity ↑ 0.0016 ± 0.0003 0.1150 ± 0.0007 0.2189 ± 0.0004 0.2417 ± 0.005</td><td>0.13</td><td>0.2398 ± 0.005</td></tr><tr><td>Fidelity ↓</td><td>168.99 ± 2.58</td><td>145.78 ± 3.90</td><td>152.43 ± 2.52</td><td>35.54 ± 2.19</td><td>49.92</td><td>28.92 ± 1.88</td></tr><tr><td/><td>Dataset</td><td colspan="2">Edge → Handbag</td><td colspan="2">Edge → Shoe</td><td/></tr><tr><td/><td>Methods</td><td>MUNIT</td><td>BasisGAN</td><td>MUNIT</td><td>BasisGAN</td><td/></tr><tr><td/><td>Diversity ↑</td><td>0.32 ±0.624</td><td>0.35 ±0.810</td><td colspan="2">0.217 ± 0.512 0.242 ±0.743</td><td/></tr><tr><td/><td>Fidelity ↓</td><td colspan="4">92.84 ± 0.121 88.76 ±0.513 62.57 ± 0.917 64.17 ± 1.14</td><td/></tr><tr><td colspan="2">Input condition</td><td/><td colspan="3">Generated diverse samples</td><td/></tr></table>

Quantitative results on high resolution image to image translation. Diversity and fidelity are measured using LPIPS and FID, respectively.

Table content: <table><tr><td>Methods</td><td colspan="3">Pix2PixHD DSGAN BasisGAN</td></tr><tr><td>Diversity ↑</td><td>0.0</td><td>0.12</td><td>0.168</td></tr><tr><td>Fidelity ↓</td><td>48.85</td><td>28.8</td><td>25.12</td></tr></table>

Quantitative results on face inpainting. Diversity and fidelity are measured using LPIPS and FID, respectively.

Table content: <table><tr><td>Methods</td><td colspan="3">DSGAN BasisGAN BasisGAN + DSGAN</td></tr><tr><td>Diversity ↑</td><td>0.05</td><td>0.062</td><td>0.073</td></tr><tr><td>Fidelity ↓</td><td>13.94</td><td>12.88</td><td>12.82</td></tr></table>

1: Quantitative results with different sizes of input latent code and intermediate layer. m+n denotes the size of latent code and intermediate layer.

Table content: <table><tr><td colspan="7">Dimensions 16 + 16 32 + 32 64 + 64 128 + 128 256 + 256 512 + 512</td></tr><tr><td>Diversity ↑</td><td>0.2242</td><td>0.2388</td><td>0.2417</td><td>0.2448</td><td>0.2452</td><td>0.2433</td></tr><tr><td>Fidelity ↓</td><td>40.16</td><td>37.41</td><td>35.54</td><td>34.36</td><td>33.70</td><td>32.31</td></tr></table>

2: Quantitative results with different sizes of input latent code and intermediate layer. m+n denotes the size of latent code and intermediate layer. Additional qualitative results for Pix2Pix → BasisGAN are presented in Figure A.2. Qualitative comparisons against MSGAN Mao et al. (2019) and DSGAN Yang et al. (2019) are presented in Figure A.3. We directly use the official implementation and the pretrained models provided by the authors. For each example, the first 5 generated samples are presented without any selection. For the satellite → map comparison, we often observe missing correspondence in the samples generated by DSGAN. BasisGAN consistently provides samples with diverse details and strong correspondence to the input conditions. F.2 PIX2PIXHD →BASISGAN Additional qualitative results for Pix2PixHD →BasisGAN are presented in Figure A.4.G SPEED, PARAMETER, AND MEMORYWe use PyTorch for the implementation of all the experiments. The training and testing are performed on a single NVIDIA 1080Ti graphic card with 11GB memory. The comparisons on testing speed, parameter number, and training memory are presented in TableA.3. The training memory is measured under standard setting with resolution of 256 × 256 for Pix2Pix, and 1024 × 512 for Pix2PixHD. Since we are using small number of basis elements (typically 7), and tiny basis generators, the overall trainable parameter number of the networks are reduced. Note that we only compute the parameter number of the generator networks since we do not adopt any change to the discriminators. Table A.3: Speed in testing, memory usage in training, and overall trainable parameter numbers.

Table content: <table><tr><td/><td>K</td><td>7</td><td>16</td><td>32</td><td>64</td><td>128</td></tr><tr><td/><td colspan="6">Diversity ↑ 0.2417 0.2409 0.2382 0.2288 0.2006</td></tr><tr><td/><td>Fidelity ↓</td><td>35.54</td><td>36.08</td><td>35.17</td><td>34.97</td><td>36.49</td></tr><tr><td colspan="3">F QUALITATIVE RESULTS</td><td/><td/><td/></tr><tr><td colspan="2">F.1 PIX2PIX →BASISGAN</td><td/><td/><td/><td/></tr><tr><td/><td>Methods</td><td colspan="5">Testing speed (s) Training memory (MB) Parameter number</td></tr><tr><td/><td>Pix2Pix</td><td>0.01017</td><td/><td/><td>1,465</td><td>11,330,243</td></tr><tr><td colspan="2">Pix2Pix → BasisGAN</td><td>0.01025</td><td/><td/><td>1,439</td><td>10,261,763</td></tr><tr><td colspan="2">Pix2PixHD</td><td>0.0299</td><td/><td/><td>8,145</td><td>182,546,755</td></tr><tr><td colspan="2">Pix2PixHD → BasisGAN</td><td>0.0324</td><td/><td/><td>8,137</td><td>154,378,051</td></tr><tr><td>Input</td><td>Ground truth</td><td/><td/><td colspan="3">Generated diverse samples</td></tr></table>

Peer review (iclr2020):
In this paper, the authors introduce BasisGAN, a novel method for introducing stochasticity in conditional GANs, i.e., a way of conducting one-to-many mappings. This is a good addition in the literature as: (a) most of the widely-used conditional GANs such as pix2pix (Isola et al., 2016) or pix2pixHD (Wang et al., 2018) are deterministic (i.e., for a specific input a single output is always generated), (b) it improves upon the current SOTA in one-to-many mappings, (c) it is very useful application-wise. As also stated in the paper, there is a number of applications where this method is handy (e.g., converting a sketch to images varying in colors, etc.). I am leaning towards accepting this paper as this work is well-motivated and found the idea of using the basis generator to learn the bases for the generation of the parameters quite interesting. This is the main contribution and difference of this paper in comparison to DCFNet (Qiu et al., ICML 2018), where the bases are not learned. Nevertheless, I have the following questions/requests: - How can we tell that the generated bases are indeed bases (e.g., are they orthogonal?) - Please report the number of parameters used in your implementation in comparison to the rest of the methods. - Please provide qualitative results against the compared methods and especially against DSGAN (Qin et al., 2018).