Title: ROBUST CONDITIONAL GENERATIVE ADVERSARIAL NETWORKS

Abstract: Conditional generative adversarial networks (cGAN) have led to large improvements in the task of conditional image generation, which lies at the heart of computer vision. The major focus so far has been on performance improvement, while there has been little effort in making cGAN more robust to noise. The regression (of the generator) might lead to arbitrarily large errors in the output, which makes cGAN unreliable for real-world applications. In this work, we introduce a novel conditional GAN model, called RoCGAN, which leverages structure in the target space of the model to address the issue. Our model augments the generator with an unsupervised pathway, which promotes the outputs of the generator to span the target manifold even in the presence of intense noise. We prove that RoCGAN share similar theoretical properties as GAN and experimentally verify that our model outperforms existing state-of-the-art cGAN architectures by a large margin in a variety of domains including images from natural scenes and faces.

1. INTRODUCTION:

Image-to-image translation and more generally conditional image generation lie at the heart of computer vision. Conditional Generative Adversarial Networks (cGAN) (Mirza & Osindero, 2014) have become a dominant approach in the field, e.g. in dense1 regression (Isola et al., 2017; Pathak et al., 2016; Ledig et al., 2017; Bousmalis et al., 2016; Liu et al., 2017; Miyato & Koyama, 2018; Yu et al., 2018; Tulyakov et al., 2018) . They accept a source signal as input, e.g. prior information in the form of an image or text, and map it to the target signal (image). The mapping of cGAN does not constrain the output to the target manifold, thus the output can be arbitrarily off the target manifold (Vidal et al., 2017) . This is a critical problem both for academic and commercial applications. To utilize cGAN or similar methods as a production technology, we need to study their generalization even in the face of intense noise.

Similarly to regression, classification also suffers from sensitivity to noise and lack of output constraints. One notable line of research consists in complementing supervision with unsupervised learning modules. The unsupervised module forms a new pathway that is trained with the same, or different data samples. The unsupervised pathway enables the network to explore the structure that is not present in the labelled training set, while implicitly constraining the output. The addition of the unsupervised module is only required during the training stage and results in no additional computational cost during inference. Rasmus et al. (2015) and Zhang et al. (2016) modified the original bottom-up (encoder) network to include top-down (decoder) modules during training. However, in dense regression both bottom-up and top-down modules exist by default, and such methods are thus not trivial to extend to regression tasks.

Motivated by the combination of supervised and unsupervised pathways, we propose a novel conditional GAN which includes implicit constraints in the latent subspaces. We coin this new model 'Robust Conditional GAN' (RoCGAN). In the original cGAN the generator accepts a source signal and maps it to the target domain. In our work, we (implicitly) constrain the decoder to generate samples that span only the target manifold. We replace the original generator, i.e. encoder-decoder, with a two pathway module (see Fig. 1 ). The first pathway, similarly to the cGAN generator, performs regression while the second is an autoencoder in the target domain (unsupervised pathway). The two pathways share a similar network structure, i.e. each one includes an encoder-decoder network. The weights of the two decoders are shared which promotes the latent representations of the two pathways to be semantically similar. Intuitively, this can be thought of as constraining the output of our dense regression to span the target subspace. The unsupervised pathway enables the utilization of all the samples in the target domain even in the absence of a corresponding input sample. During inference, the unsupervised pathway is no longer required, therefore the testing complexity remains the same as in cGAN. In the following sections, we introduce our novel RoCGAN and study their (theoretical) properties. We prove that RoCGAN share similar theoretical properties with the original GAN, i.e. convergence and optimal discriminator. An experiment with synthetic data is designed to visualize the target subspaces and assess our intuition. We experimentally scrutinize the sensitivity of the hyper-parameters and evaluate our model in the face of intense noise. Moreover, thorough experimentation with both images from natural scenes and human faces is conducted in two different tasks. We compare our model with both the state-of-the-art cGAN and the recent method of Rick Chang et al. (2017) . The experimental results demonstrate that RoCGAN outperform the baseline by a large margin in all cases.

Our contributions can be summarized as following:

• We introduce RoCGAN that leverages structure in the target space. The goal is to promote robustness in dense regression tasks.

• We scrutinize the model performance under (extreme) noise and adversarial perturbations.

To the authors' knowledge, this robustness analysis has not been studied previously for dense regression.

• We conduct a thorough experimental analysis for two different tasks. We outline how RoCGAN can be used in a semi-supervised learning task, how it performs with lateral connections from encoder to decoder.

Notation: Given a set of N samples, s (n) denotes the n th conditional label, e.g. a prior image; y (n) denotes the respective target image. Unless explicitly mentioned otherwise || • || will declare an 1 norm. The symbols L * define loss terms, while λ * denote regularization hyper-parameters optimized on the validation set.

2. RELATED WORK:

Conditional image generation is a popular task in computer vision, dominated by approaches similar to cGAN. Apart from cGAN, the method by Isola et al. (2017) , widely known as 'pix2pix', is the main alternative. Pix2pix includes three modifications over the baseline cGAN: i) lateral skip connections between the encoder and the decoder network are added in the generator, ii) the discriminator accepts pairs of source/gt and source/model output images, iii) additional content loss terms are added. The authors demonstrate how those performance related modifications can lead to an improved visual outcome. Despite the improved performance, the problem with the additional guarantees remains the same. That is we do not have any direct supervision in the process, since both the latent subspace and the projection are learned; the only supervision is provided by the ground-truth (gt) signal in the generator's output.

Adding regularization terms in the loss function can impose stronger supervision, thus restricting the output. The most frequent regularization term is feature matching, e.g. perceptual loss (Ledig et al., 2017; Johnson et al., 2016) , or embeddings for faces (Schroff et al., 2015) . Feature matching minimizes the distance between the projection of generated and ground-truth signals. However, the pre-defined feature space is restrictive. The method introduced by Salimans et al. ( 2016) performs feature matching in the discriminator; the motivation lies in matching the low-dimensional distributions created by the discriminator layers. Matching the discriminator's features has demonstrated empirical success. However, this does not affect the generator and its latent subspaces directly.

A new line of research that correlates with our goals is that of adversarial attacks (Szegedy et al., 2014; Yuan et al., 2017; Samangouei et al., 2018) . It is observed that perturbing input samples with a small amount of noise, often imperceptible to the human eye, can lead to severe classification errors.

There are several techniques to 'defend' against such attacks. A recent example is the Fortified networks of Lamb et al. (2018) which uses Denoising Autoencoders (Vincent et al., 2008) to ensure that the input samples do not fall off the target manifold. Kumar et al. (2017) estimate the tangent space to the target manifold and use that to insert invariances to the discriminator for classification purposes. Even though RoCGAN share similarities with those methods, the scope is different since a) the output of our method is high-dimensional2 and b) adversarial examples are not extended to dense regression3 .

Except for the study of adversarial attacks, combining supervised and unsupervised learning has been used for enhancing the classification performance. In the Ladder network, Rasmus et al. (2015) modify a typical bottom-up network for classification by adding a decoder and lateral connections between the encoder and the decoder. During training they utilize the augmented network as two pathways: i) labelled input samples are fed to the initial bottom-up module, ii) input samples are corrupted with noise and fed to the encoder-decoder with the lateral connections. The latter pathway is an autoencoder; the idea is that it can strengthen the resilience of the network to samples outside the input manifold, while it improves the classification performance.

Our core goal consists in constraining the model's output. Aside from deep learning approaches, such constraints in manifolds were typically tackled with component analysis. Canonical correlation analysis (Hotelling, 1936) has been extensively used for finding common subspaces that maximally correlate the data (Panagakis et al., 2016) . The recent work of Murdock et al. (2018) combines the expressiveness of neural networks with the theoretical guarantees of classic component analysis.

3. METHOD:

In this section, we elucidate our proposed RoCGAN. To make the paper self-contained we first review the original conditional GAN model (sec. 3.1), before introducing RoCGAN (sec. 3.2). Sequentially, we pose the modifications required in case of shortcut connections from the encoder to the decoder (sec. 3.3). In sec. 3.4 we assess the intuition behind our model with synthetic data. The core idea in RoCGAN is to leverage structure in the output space of the model. We achieve that by replacing the single pathway in the generator with two pathways. In the appendix, we study the theoretical properties of our method and prove that RoCGAN share the same properties as the original GAN (Goodfellow et al., 2014) .

3.1. CONDITIONAL GAN:

GAN consist of a generator and a discriminator module commonly optimized with alternating gradient descent methods. The generator samples z from a prior distribution p z , e.g. uniform, and tries to model the target distribution p d ; the discriminator D tries to distinguish between the samples generated from the model and the target (ground-truth) distributions. Conditional GAN (cGAN) (Mirza & Osindero, 2014) extend the formulation by providing the generator with additional labels. In cGAN the generator G typically takes the form of an encoder-decoder network, where the encoder projects the label into a low-dimensional latent subspace and the decoder performs the opposite mapping, i.e. from low-dimensional to high-dimensional subspace. If we denote s the conditioning label and y a sample from the target distribution, the adversarial loss is expressed as:

L adv (G, D) = E s,y∼p d (s,y) [log D(y|s)]+ E s∼p d (s),z∼pz(z) [log(1 -D(G(s, z)|s))]

(1) by solving the following min-max problem:

min w G max w D L adv (G, D) = min w G max w D E s,y∼p d (s,y) [log D(y|s, w D )]+ E s∼p d (s),z∼pz(z) [log(1 -D(G(s, z|w G )|s, w D ))]

where w G , w D denote the generator's and the discriminator's parameters respectively. To simplify the notation, we drop the dependencies on the parameters and the noise z in the rest of the paper.

The works of Salimans et al. (2016) and Isola et al. (2017) demonstrate that auxiliary loss terms, i.e. feature matching and content loss, improve the final outcome, hence we consider those as part of the vanilla cGAN. The feature matching loss (Salimans et al., 2016) is:

EQUATION

where π() extracts the features from the penultimate layer of the discriminator.

The final loss function for the cGAN is the following:

L = L adv + λ c • N n=1 ||G(s (n) ) -y (n) || content-loss +λ π • L f (3)

where λ c , λ π are hyper-parameters to balance the loss terms.

3.2. ROCGAN:

Just like cGAN, RoCGAN consist of a generator and a discriminator. The generator of RoCGAN includes two pathways instead of the single pathway of the original cGAN. The first pathway, referred as reg pathway henceforth, performs a similar regression as its counterpart in cGAN; it accepts a sample from the source domain and maps it to the target domain. We introduce an additional unsupervised pathway, named AE pathway. AE pathway works as an autoencoder in the target domain. Both pathways consist of similar encoder-decoder networks4 . By sharing the weights of their decoders, we promote the regression outputs to span the target manifold and not induce arbitrarily To simplify the notation below, the superscript 'AE' abbreviates modules of the AE pathway and 'G' modules of the reg pathway.We denote G(s

(n) ) = d (G) (e (G) (s (n)

)) the output of the reg pathway and

G (AE) (y (n) ) = d (AE) (e (AE) (y (n)

)) the output of the AE pathway.

The unsupervised module (autoencoder in the target domain) contributes the following loss term:

EQUATION

where f d denotes a divergence metric (in this work an 1 loss).

Despite sharing the weights of the decoders, we cannot ensure that the latent representations of the two pathways span the same space. To further reduce the distance of the two representations in the latent space, we introduce the latent loss term L lat . This term minimizes the distance between the encoders' outputs, i.e. the two representations are spatially close (in the subspace spanned by the encoders). The latent loss term is:

EQUATION

The final loss function of RoCGAN combines the loss terms of the original cGAN (eq. 3) with the additional two terms for the AE pathway:

L RoCGAN = L adv + λ c • N n=1 ||G(s (n) ) -y (n) || content-loss +λ π • L f + λ ae • L AE + λ l • L lat (6)

As a future step we intend to replace the latent loss term L lat with a kernel-based method (Gretton et al., 2007) or a learnable metric for matching the distributions (Ma et al., 2018) .

3.3. ROCGAN WITH SKIP CONNECTIONS:

The RoCGAN model of sec. 3.2 describes a family of networks and not a predefined set of layers. A special case of RoCGAN emerges when skip connections are included in the generator. In the next few paragraphs, we study the modification required, i.e. an additional loss term.

Skip connections are frequently used as they enable deeper layers to capture more abstract representations without the need of memorizing all the information. Nevertheless, the effects of the skip connections in the representation space have not been thoroughly studied. The lower-level representations are propagated directly to the decoder through the shortcut, which makes it harder to train the longer path (Rasmus et al., 2015) , i.e. the network excluding the skip connections.

This challenge can be implicitly tackled by maximizing the variance captured by the longer path representations. To that end, we add a loss term that penalizes the correlations in the representations (of a layer) and thus implicitly encourage the representations to capture diverse and useful information.

We implement the decov loss introduced by Cogswell et al. (2016) :

L decov = 1 2 (||C|| 2 F -||diag(C)|| 2 2 ) (7)

where diag() computes the diagonal elements of a matrix and C is the covariance matrix of the layer's representations. The loss is minimized when the covariance matrix is diagonal, i.e. it imposes a cost to minimize the covariance of hidden units without restricting the diagonal elements that include the variance of the hidden representations.

A similar loss is explored by Valpola (2015) , where the decorrelation loss is applied in every layer.

Their loss term has stronger constraints: i) it favors an identity covariance matrix but also ii) penalizes the smaller eigenvalues of the covariance more. We have not explored this alternative loss term, as the decov loss worked in our case without the additional assumptions of the Valpola (2015) .

3.4. EXPERIMENT ON SYNTHETIC DATA:

We design an experiment on synthetic data to explore the differences between the original generator and our novel two pathway generator. Specifically, we design a network where each encoder/decoder consists of two fully connected layers; each layer followed by a RELU. We optimize the generators only, to avoid adding extra learned parameters.

The inputs/outputs of this network span a low-dimensional space, which depends on two independent variables x, y ∈ [-1, 1]. We've experimented with several arbitrary functions in the input and output vectors and they perform in a similar way. We showcase here the case with input vector [x, y, e 2x ] and output vector [x + 2y + 4, e x + 1, x + y + 3, x + 2]. The reg pathway accepts the three inputs, projects it into a two-dimensional space and the decoder maps it to the target four-dimensional space.

We train the baseline and the autoencoder modules separately and use their pre-trained weights to initialize the two pathway network. The loss function of the two pathway network consists of the L lat (eq. 5) and 2 content losses in the two pathways. The networks are trained either till convergence or till 100, 000 iterations (batch size 128) are completed.

During testing, 6, 400 new points are sampled and the overlaid results are depicted in Fig. 3 ; the individual figures for each output can be found in the appendix. The 1 errors for the two cases are: 9, 843 for the baseline and 1, 520 for the two pathway generator. We notice that the two pathway generator approximates the target manifold better with the same number of parameters during inference.

4. EXPERIMENTS:

Implementation details: To provide a fair comparison to previous cGAN works, our implementation is largely based on the conventions of Isola et al. (2017) ; Salimans et al. (2016) ; Zhu et al. (2017) . A 'layer' refers to a block of three units: a convolutional unit with a 4 × 4 kernel size, followed by Leaky RELU and batch normalization (Ioffe & Szegedy, 2015) . To obtain RoCGAN, we augment a vanilla cGAN model as follows: i) we duplicate the encoder/decoder; ii) we share the decoder's weights in Each plot corresponds to the respective manifolds in the output vector; the first and third depend on both x, y (xyz plot), while the rest on x (xz plot). The green color visualizes the target manifold, the red the baseline and the blue ours. Even though the two models include the same parameters during inference, the baseline does not approximate the target manifold as well as our method.

the two pathways; iii) we add the additional loss terms. The values of the additional hyper-parameters are λ l = 25, λ ae = 100 and λ decov = 1; the common hyper-parameters with the vanilla cGAN, e.g. λ c , λ π , remain the same. The decov loss is applied in the output of the encoder, which in our experimentation did minimize the correlations in the longer path. The rest hyper-parameters remain the same as in the baseline.

We conduct a number of auxiliary experiments in the appendix. Specifically, an ablation study on the significance and the sensitivity of the hyper-parameters is conducted; additional architectures are implemented, while we evaluate our model under more intense noise. In addition, we extend the concept of adversarial examples in regression and verify that our model is more resilient to them than the baseline. The results demonstrate that our model accepts a range of hyper-parameter values, while it is robust to additional sources of noise.

We experiment with two categories of images with significant applications: images from i) natural scenes and ii) faces. In the natural scenes case, we constrain the number of training images to few thousand since frequently that is the scale of the labelled examples available. The network used in the experiments below, dumped '4layer', consists of four layers in the decoder, while the decoder followed by four layers in the decoder.

Two inverse tasks, i.e. denoising and sparse inpainting, are selected for our quantitative evaluation.

During training, the images are corrupted, for the two tasks, in the following way: for denoising 25% of the pixels in each channel are uniformly dropped; for sparse inpainting 50% of the pixels are converted to black. During testing, we evaluate the methods in two settings: i) similar corruption as they were trained, ii) more intense corruption, i.e. we drop 35% of the pixels in the denoising case and 75% of the pixels in the sparse inpainting case. The widely used image quality loss (SSIM) (Wang et al., 2004) is used as a quantitative metric. We train and test our method against the i) baseline cGAN, ii) the recent strong-performing OneNet (Rick Chang et al., 2017) . OneNet uses an ADMM learned prior, i.e. it projects the corrupted prior images into the subspace of natural images to guide the ADMM solver. In addition, we train an Adversarial Autoencoder (AAE) (Makhzani et al., 2015) as an established method capable of learning compressed representations. Each module of the AAE shares the same architecture as its cGAN counterpart, while the AAE is trained with images in the target space. During testing, we provide the ground-truth images as input and use the reconstruction for the evaluation. In our experimental setting, AAE can be thought of as an upper performance limit of RoCGAN/cGAN for a given capacity (number of parameters).

4.1. NATURAL SCENES:

We train the '4layer' baseline/RoCGAN with images from natural scenes, both indoors and outdoors. The 4, 900 samples of the VOC 2007 Challenge (Everingham et al., 2010) form the training set, while the 10, 000 samples of tiny ImageNet (Deng et al., 2009) consist the testing set.

The quantitative evaluation with SSIM is presented in Tab. 1. OneNet (Rick Chang et al., 2017) does not perform as well as the baseline or our model. From our experimentation this can be attributed to the projection to the manifold of natural images that is not trivial, however it is more resilient to additional noise than the baseline. In both inverse tasks RoCGAN improve the baseline cGAN results by a margin of 0.05 (10 -13% relative improvement). When we apply additional corruption in the testing images, RoCGAN are more robust with a considerable improvement over the baseline. This can be attributed to the implicit constraints of the AE pathway, i.e. the decoder is more resilient to approximating the target manifold samples. In both denoising and sparse inpainting, the leftmost evaluation is the one with corruptions similar to the training, while the one on the right consists of samples with additional corruptions, e.g. in denoising 35% of the pixels are dropped.

4.2. FACES:

In this experiment we utilize the MS-Celeb (Guo et al., 2016) as the training set (3, 4 million samples), and the whole Celeb-A (Liu et al., 2015) as the testing set (202, 500 samples). The large datasets enable us to validate our model extensively in a wide range of faces.

We use the whole training set to train the two compared methods (Baseline-4layer and Ours-4layer) and the 4-layer AAE. The results of the quantitative evaluation exist in table 1. Our method outperforms both the baseline and OneNet by a significant margin; the difference increases when evaluated with more intense corruptions. The reason that the sparse inpainting task appears to have a smaller improvement remains elusive; in the different architectures in the appendix our model has similar performance in the two tasks. We include the AAE as an upper limit of the representation capacity of the architecture. The AAE result specifies that with the given architecture the performance can be up to 0.866.

5. CONCLUSION:

We introduce the Robust Conditional GAN (RoCGAN) model, a new conditional GAN capable of leveraging unsupervised data to learn better latent representations, even in the face of large amount of noise. RoCGAN's generator is composed of two pathways. The first pathway (reg pathway), performs the regression from the source to the target domain. The new, added pathway (AE pathway) is an autoencoder in the target domain. By adding weight sharing between the two decoders, we implicitly constrain the reg pathway to output images that span the target manifold. The linear analogy along with the synthetic experiment demonstrate how RoCGAN can create more robust results, while we prove that our model shares similar convergence properties with generative adversarial networks. The ablation study dictates that our model is more resilient to intense noise and more robust to adversarial examples than the baseline. The experimental results with images (natural scenes and faces) showcase that RoCGAN outperform existing, state-of-the-art conditional GAN models.

A INTRODUCTION:

In this following sections (of the appendix) we include additional insights, a theoretical analysis along with additional experiments. The sections are organized as following:

• In sec. B we validate our intuition for the RoCGAN constraints through the linear equivalent.

• A theoretical analysis is provided in sec. C.

• We implement different networks in sec. D to assess whether the performance gain can be attributed to a single architecture.

• An ablation study is conducted in sec. E comparing the hyper-parameter sensitivity and the robustness in the face of extreme noise.

The Fig. 5 , 6, 7, 8 include all the outputs of the synthetic experiment of the main paper. As a reminder, the output vector is

[x + 2y + 4, e x + 1, x + y + 3, x + 2] with x, y ∈ [-1, 1].

Figure 5 : Qualitative results in the synthetic experiment (main paper). Output of the 1 st function.

From left to right: The target (ground-truth) curve in green, the output of the single pathway network (baseline) in red, the two pathway network in blue and all three overlaid. The output vector of the 1 st and the 3 rd functions are plotted here with respect to x, the full 3D plot is in the manuscript. All figures in this work are best viewed in color. 

B LINEAR GENERATOR ANALOGY:

The exact nature and convergence properties of deep networks remain elusive (Vidal et al., 2017) , however we can study the linear equivalent of deep methods to build on our intuition. To that end, we explore the linear equivalent of our method. Since the discriminator in RoCGAN can remain the same as in the baseline cGAN, we focus in the generators. To perform the analysis on the linear equivalent, we simply drop the piecewise non-linear units in the generators. Proposition 1. If we fix the generator G (reg pathway), the optimal discriminator is:

EQUATION

where p g is the model (generator) distribution.

Proof. Since the generator is fixed, the goal of the discriminator is to maximize the L adv where: To maximize the L adv , we need to optimize the integrand above. We note that with respect to D the integrand has the form f (y) = a • log(y) + b • log(1 -y). The function f for a, b ∈ (0, 1) as in our case, obtains a global maximum in a a+b , so: 

L adv (G, D) =

L adv (G, D) ≤ y s p d (s,

p g (s, y) )dyds = -2 • log(2) + KL(p d || p d + p g 2 ) + KL(p g || p d + p g 2 ) (16)

where in the last row KL symbolizes the Kullback-Leibler divergence. The latter one can be rewritten more conveniently with the help of the Jensen-Shannon (JSD) divergence as

EQUATION

The Jensen-Shannon divergence is non-negative and obtains the zero value only if p d = p g . Equivalently, max D L adv (G, D) ≥ -log( 4) and has a global minimum (under the constraint that the discriminator is optimal) when p d = p g .

D ADDITIONAL EXPERIMENTS:

In this section, we describe additional experimental results and details.

In addition to the SSIM metric, we use the 1 loss to measure the loss in the experiments of the main paper. The results in table 2 confirm that RoCGAN outperform both compared methods. The larger difference in the cases of more intense noise demonstrates that our model is indeed robust to additional cases not trained on. Additional visualizations are provided in Fig. 10 . 

D.1 LARGE SCALE NATURAL IMAGES:

To delineate further the performance of our model in different settings, we conduct an experiment with Imagenet (Russakovsky et al., 2015) , a large dataset for natural images. We utilize the training set of Imagenet which consists of 1, 2 million images and its testset that includes 98 thousand images.

The experimental results are depicted in table 3 . The outcomes corroborate the experimental results of the main paper, as RoCGAN outperforms the cGAN in both tasks. We note that the AAE works as the upper limit of the methods and denotes the representation power that the given encoder-decoder can reach.

D.2 DIFFERENT ARCHITECTURES:

To assess whether RoCGAN's improvement is network-specific, we implement different architectures including more layers. The goal of this work is not to find the best performing architecture, thus we do not employ an exhaustive search in all proposed cGAN models. Our goal is to propose an alternative model to the baseline cGAN and evaluate how this works in different networks.

We implement three additional networks which we coin '5layer', '6layer' and '4layer-skip'. Those include five, six layers in the encoder/decoder respectively, while the '4layer-skip' includes a lateral connection from the output of the third encoding layer to the input of the second decoding layer. The first two increase the capacity of the network, while the '4layer-skip' implements the modification for the skip case in the '4layer' network6 .

We evaluate these three networks as in the '4layer' network (main paper); the results are added in table 4 . Notice that both '5layer' and '6layer' networks improve their counterpart in the '4layer' case, however the '6layer' networks do not improve their '5layer' counterpart. This can be partly attributed to the increased difficulty of training deeper networks without additional regularization techniques (He et al., 2016) . In addition, we emphasize that the denoising and the sparse inpainting results cannot be directly compared, since they correspond to different a) types and b) amount of corruption in all evaluations. Nevertheless, the improvement in the sparse inpainting with additional noise is impressive, given that the hyper-parameters are optimized for the denoising case (see sec E).

The most critical observation is that in all cases our model consistently outperforms the baseline. The difference is increasing under additional noise during inference time with up to 15% performance improvement observed in the sparse inpainting case.

D.3 SEMI-SUPERVISED TRAINING:

A side-benefit of our new model is the ability to utilize unsupervised data to learn the AE pathway.

Collecting unlabelled data in the target domain is frequently easier than finding pairs of corresponding samples in the two domains. To that end, we test whether RoCGAN support such semi-supervised learning.

We randomly pick 50, 000 labelled images while we use the rest three million as unlabelled. The 'label' in our case is the corrupted images. The baseline model is trained with the labelled 50, 000 samples. RoCGAN model is trained with 50, 000 images in the reg pathway, while the AE pathway with all the available (unlabelled) samples.

Table . 5 includes the quantitative results of the semi-supervised case. As expected the performance in most experiments drops from the full training case, however we observe that the performance in RoCGAN decreases significantly less than cGAN ('baseline-4layer-50k'). In other words, RoCGAN can benefit greatly from additional examples in the target domain. We hypothesize that this enables the AE pathway to learn a more accurate representation, which is reflected to the final RoCGAN outcome.

D.4 ALTERNATIVE ERROR METRIC:

In our experimental setting every input image should be mapped (close) to its target image. To assess the domain-specific performance for faces, we utilize the cosine distance distribution plot (CDDP).

One of the core features in images of faces is the identity of the person. We utilize the well-studied recognition embeddings (Schroff et al., 2015) to evaluate the similarity of the target image with the outputs of compared methods. The ground-truth identities in our case are not available in the embeddings' space; we consider instead the target image's embedding as the ground-truth for each E.1 HYPER-PARAMETER RANGE Our model introduces three new loss terms, i.e. L lat , L AE and L decov (in the case with skip) with respect to the baseline cGAN. Understandably, those introduce three new hyper-parameters, which need to be validated. The validation and selection of the hyper-parameters was done in a withheld set of images. In the following paragraphs, we design an experiment where we scrutinize one hyperparameter every time, while we keep the rest in their selected value. During our experimentation, we observed that the optimal values of these three hyper-parameters might differ per case/network, however in this manuscript the hyper-parameters remain the same throughout our experimentation. The search space for each term is decided from its theoretical properties and our intuition. For instance, the λ ae would have a value similar to the λ c7 . In a similar manner, the latent loss encourages the two streams' latent representations to be similar, however the final evaluation is performed in the pixel space, hence we assume that a value smaller than λ c is appropriate.

In table 10, we assess different values for the λ l . The results demonstrate that values larger than 10 the results are similar, which dictates that our model resilient to the precise selection of the latent loss hyper-parameter. 

= λ c ).

The third term of λ decov is scrutinized in the table 12. In our experimentation, the λ decov has a different effect per experiment; based on the results of our validation we choose λ decov = 1 for our experiments.

In conclusion, the additional hyper-parameters introduced by our model can accept a range of values without affecting significantly the results. To study further the significance of the four loss terms, we experiment with setting λ * = 0 alternatingly. Apart from the '4layer' network, we implement the '4layer-skip' to assess the λ decov = 0 case. The '4layer-skip' includes the same layers as the '4layer', however it includes a lateral connection from the encoder to the decoder.

The experimental results in table 13 confirm our prior intuition that the latent loss (L lat ) is the most crucial for our model in the no-skip case, but not as significant in the skip case. In the skip case, the reconstruction losses in both pathways are significant. 13 : Quantitative results (SSIM) for setting λ * = 0 alternatingly (sec. E.2). In each column, we set the respective hyper-parameter to zero while keeping the rest fixed.

EQUATION

E.3 ADDITIONAL NOISE:

To evaluate whether RoCGAN/cGAN are resilient to noise, we experiment with additional noise. We include a baseline cGAN to the comparison to study whether their performance changes similarly. Both networks are trained with the 25% noise (denosing task).

We evaluate the performance in two cases: i) additional noise of the same type, ii) additional noise of different type. For this experiment, we abbreviate noise as x/y where x depicts the amount of noise in denoising task (i.e. x% of the pixels in each channel are dropped with a uniform probability) and y the sparse inpainting task (i.e. y% black pixels). In both cases, we evaluate the performance by incrementally increasing the amount of noise. Specifically, both networks are tested in 25/0, 35/0, 50/0 for noise of the same type and 25/10, 25/20 and 25/25 for different type of noise. We note the networks have not been trained on any of the testing noises other than the 25/0 case. To illustrate the difference of performance between the two models, we accumulate the SSIM values of each case and divide them in 20 bins8 . In Fig. 13 , the histograms of each case are plotted. We note that RoCGAN is much more resilient to increased or even unseen noise. Qualitative results of the difference are offered in Fig. 15 , 16. We consider that this improvement in the robustness in the face of additional noise is in its own a considerable improvement to the original cGAN.

Method:



E.4 ADVERSARIAL EXAMPLES:

Apart from testing in the face of additional noise, we explore the adversarial attacks. Recent works (Szegedy et al., 2014; Yuan et al., 2017; Samangouei et al., 2018) explore the robustness of (deep) classifiers. Adversarial attacks modify the input image (of the network) so that the network misclassifies the image. To the authors' knowledge, there has not been much investigation of adversarial attacks in the context of image-to-image translation or any other regression task. However, if we consider adversarial examples as a perturbation of the original input, we explore whether this has any effect in the methods. In our case, we modify each source signal s as:

EQUATION

)

where η is the perturbation. That is defined as: η = sign (∇ s L(s, y))

with a hyper-parameter, y the target signal and L the loss.

In our case, we select the 1 loss as the loss between the target and the generated images. We set = 0.01 following the original paper. The evaluation is added in table 15. The results demonstrate that the baseline is affected more from the added noise, while our model is more robust to it. 



:

The output includes at least as many dimensions as the input, e.g. super-resolution, or text-to-image translation.

In the classification tasks studied, e.g. the popular Imagenet(Deng et al., 2009), there are up to a thousand classes, while our output includes tens or hundreds of thousands of dimensions.

The robustness in our case refers to being resilient to changes in the distribution of the labels (label shift) and training set (covariance shift)(Wang et al., 2017).

In principle the encoders' architectures might differ, e.g. when the two domains differ in dimensionality; however, in our case they share the same architectures.

Downscaling is used as a simple corruption. Other corruptions, e.g. gaussian blurring, have similar results.

We test RoCGAN and the respective baseline for 2, 4, 5, 6 layer cases covering a range of deeper networks.

To fairly compare with baseline cGAN, we use the default value for the loss as mentioned byIsola et al. (2017).

In our case the SSIM values lie in the interval [0.5, 0.95]; a high SSIM value denotes an image close to the target image.

Figures and Tables:

Figure 1: The mapping process of the generator of the baseline cGAN (in (a)) and our model (in (b)). (a) The source signal is embedded into a low-dimensional, latent subspace, which is then mapped to the target subspace. The lack of constraints might result in outcomes that are arbitrarily off the target manifold. (b) On the other hand, in RoCGAN, steps 1b and 2b learn an autoencoder in the target manifold and by sharing the weights of the decoder, we restrict the output of the regression (step 2a). All figures in this work are best viewed in color.

Figure 2: Schematic of the generator of (a) cGAN versus (b) our proposed RoCGAN. The single pathway of the original model is replaced with two pathways.

Figure3: Qualitative results in the synthetic experiment of sec. 3.4. Each plot corresponds to the respective manifolds in the output vector; the first and third depend on both x, y (xyz plot), while the rest on x (xz plot). The green color visualizes the target manifold, the red the baseline and the blue ours. Even though the two models include the same parameters during inference, the baseline does not approximate the target manifold as well as our method.

Figure 4: Qualitative results (best viewed in color). The first row depicts the target image, the second row the corrupted one (used as input to the methods). The third row depicts the output of the baseline cGAN, while the outcome of our method is illustrated in the fourth row. There are different evaluations visualized for faces: (a) denoising, (b) denoising with additional noise at test time, (c) sparse inpainting, (d) sparse inpainting with 75% black pixels. For natural scenes the columns (e) and (f) denote the denoising and sparse inpainting results respectively.

Figure 6: Qualitative results in the synthetic experiment (main paper). Output of the 2 nd function. See Fig. 5 for details.

Figure 7: Qualitative results in the synthetic experiment (main paper). Output of the 3 rd function. See Fig. 5 for details.

Figure 9: Projection to linear subspace. The original image on the left was corrupted (downscaled ×4). The image was upscaled with bi-linear interpolation in (c). Both the original and the upscaled images are projected and reconstructed from a PCA. The reconstruction of the original image ('reconst-org') along with the linearly upscaled ('reconst-ups') image are similar. The simple linear projection demonstrates how constraining the output through a linear subspace can result in a more robust output.

y, s) log D(y|s)dyds + s z p d (s)p z (z) log(1 -D(G(s, z)|s))dsdz = y s p d (s, y) log D(y|s)dy + p g (s, y) log(1 -D(y|s))dyds (12)

Figure 10: Qualitative results; best viewed in color. The first row depicts the ground-truth image, the second row the corrupted one (input to methods), the third the output of the baseline cGAN, the fourth illustrates the outcome of our method. The four first columns are based on the protocol of '4layer' network, while the four rightmost columns on the protocol '4layer-50k'. There are different evaluations visualized for faces: (a), (e) Denoising, (b), (f) denoising with augmented noise at test time, (c), (g) sparse inpainting, (d), (h) sparse inpainting with 75% black pixels.

Figure 11: Cosine distance distribution plot (sec. D.4). A perfect reconstruction per compared image would yield a plot of a Dirac delta around one; a narrow distribution centered at one denotes proximity to the target images' embeddings. The word 'den' abbreviates denoising and 'inp' sparse inpainting.

Figure 12: The layer schematics of the generators in case of (a) the '4layer-skip' case, (b) the '5layer' case.

Figure 13: Histogram plots for different noise cases (experiment of sec. E.3). The distribution that is more concentrated to the right of the histogram is closer to the target distribution. In (a) we note that even in the training noise case, the two histograms differ with ours concentrating towards the right. However, as there is additional noise added in (b), (c) the histogram of cGAN deteriorates faster. A similar phenomenon is observed in the cases of (d), (e) and (f).

Figure 14: Sample images depicting the corruption level in each case (sec. E.3).

Figure 15: Qualitative figure illustrating the different noise levels (sec. E.3). The first row depicts different target samples, while every three-row block, depicts the corrupted image, the baseline output and our output. The blocks top down correspond to the 25%, 35%, 50% noise (25/0, 35/0 and 50/0). The images in the first blocks are closer to the respective target images; as we increase the noise the baseline results deteriorate faster than RoCGAN outputs. The readers can zoom-in to further notice the difference in the quality of the outputs.

Figure 16: Qualitative figure for different type of noise during testing (see Fig 15). The first row depicts different target samples, while every three-row block, depicts the corrupted image, the baseline output and our output. The blocks top down correspond to the 25/10, 25/20, 25/25 cases (different type of testing noise). The last block contains the most challenging noise in this work, i.e. both increased noise and of different type than the training noise. Nevertheless, our model generates a more realistic image in comparison to the baseline.

Quantitative results in the '4layer' network in both faces and natural scenes cases. For both 'objects' we compute the SSIM.

Table content: <table><tr><td/><td/><td/><td/><td>Faces</td><td/><td/><td colspan="2">Natural Scenes</td></tr><tr><td>``````````M ethod</td><td>Obj. / Task</td><td colspan="2">Denoising</td><td colspan="2">Sparse Inpaint.</td><td colspan="2">Denoising</td><td>Sparse Inpaint.</td></tr><tr><td/><td/><td>25%</td><td>35%</td><td>50%</td><td>75%</td><td>25%</td><td>35%</td><td>50%</td><td>75%</td></tr><tr><td colspan="2">Rick Chang et al. (2017)</td><td colspan="7">0.758 0.748 0.701 0.682 0.591 0.574 0.585 0.535</td></tr><tr><td colspan="2">Baseline-4layer</td><td colspan="7">0.803 0.765 0.801 0.701 0.628 0.599 0.639 0.542</td></tr><tr><td>Ours-4layer</td><td/><td colspan="7">0.834 0.821 0.804 0.708 0.668 0.654 0.648 0.548</td></tr><tr><td>AAE</td><td/><td/><td/><td>0.866</td><td/><td/><td/><td>0.702</td></tr></table>

Quantitative results in the '4layer' network in both faces and natural scenes cases. In this table, the 1 loss is reported. In each task, the leftmost evaluation is the one with corruptions similar to the training, while the one on the right consists of samples with additional corruptions, e.g. in denoising 35% of the pixels are dropped.

Table content: <table><tr><td/><td/><td/><td/><td>Faces</td><td/><td/><td colspan="2">Natural Scenes</td></tr><tr><td>``````````M ethod</td><td>Obj. / Task</td><td colspan="2">Denoising</td><td colspan="2">Sparse Inpaint.</td><td colspan="2">Denoising</td><td>Sparse Inpaint.</td></tr><tr><td/><td/><td>25%</td><td>35%</td><td>50%</td><td>75%</td><td>25%</td><td>35%</td><td>50%</td><td>75%</td></tr><tr><td colspan="2">Rick Chang et al.</td><td colspan="7">701.6 801.6 838.3 876.1 1005.9 1083.4 1207.1 1401.1</td></tr><tr><td>(2017)</td><td/><td/><td/><td/><td/><td/><td/></tr><tr><td colspan="2">Baseline-4layer</td><td colspan="4">652.7 728.4 618.8 846.5</td><td colspan="2">983.5 1057.7</td><td>949.4 1352.6</td></tr><tr><td>Ours-4layer</td><td/><td colspan="4">590.3 632.1 616.1 830.0</td><td>918.8</td><td>968.9</td><td>939.4 1351.9</td></tr></table>

Quantitative results for Imagenet (sec. D.1).

Table content: <table><tr><td>X X Method X X X</td><td>X</td><td>Task X X X</td><td>Denoising 25% 35%</td><td>Sparse Inpaint. 50% 75%</td></tr><tr><td colspan="3">Baseline-5layer</td><td colspan="2">0.851 0.826 0.819 0.707</td></tr><tr><td colspan="2">Ours-5layer</td><td/><td colspan="2">0.890 0.884 0.873 0.818</td></tr><tr><td colspan="3">Baseline-6layer</td><td colspan="2">0.859 0.843 0.816 0.727</td></tr><tr><td colspan="2">Ours-6layer</td><td/><td colspan="2">0.881 0.865 0.882 0.822</td></tr><tr><td colspan="3">Baseline-4layer-skip</td><td colspan="2">0.885 0.863 0.855 0.726</td></tr><tr><td colspan="3">Ours-4layer-skip</td><td colspan="2">0.896 0.881 0.859 0.744</td></tr></table>

Additional quantitative results (SSIM, see main paper) for the following protocols: i) '5layer' network, ii) 50 thousand training images, iii) skip connections.

Table content: <table/>

Validation of λ l values (hyper-parameter choices) in the '4layer' network. Unless explicitly mentioned otherwise, all the quantitative results measure the SSIM value. We notice that for λ l larger than 10 the results are significantly better than the baseline.

Table content: <table><tr><td>λ l</td><td>1</td><td>5</td><td>10</td><td>15</td><td>20</td><td>25</td><td>30</td><td>50</td><td>100</td></tr><tr><td colspan="10">25% noise 0.7936 0.8046 0.8179 0.8234 0.8320 0.8343 0.8312 0.8299 0.8321</td></tr><tr><td colspan="10">35% noise 0.7718 0.7820 0.7927 0.8016 0.8150 0.8211 0.8130 0.8138 0.8226</td></tr><tr><td>λ ae</td><td>1</td><td>10</td><td>20</td><td>50</td><td>100</td><td>200</td><td>250</td><td>300</td><td/></tr><tr><td colspan="9">25% noise 0.7962 0.8193 0.8277 0.8297 0.8343 0.8301 0.8363 0.8238</td><td/></tr><tr><td colspan="9">35% noise 0.7765 0.8050 0.8147 0.8158 0.8211 0.8081 0.8218 0.8118</td><td/></tr></table>

Validation of λ ae values (hyper-parameter choices) in the '4layer' network. The network remains robust for a wide range of values of the hyper-parameter λ ae ; for λ ae >= 20 the test results demonstrate a similar performance.Different values of λ ae are considered in table 11. RocGAN are robust to a wide range of values and both the visual and the quantitative results remain similar. Even though the best results are obtained with λ ae = 250, we select λ ae = 100 for our experiments. The difference for the two choices is marginal, thus we choose the value 100 since resonates with our intuition (λ ae

Table content: <table/>

Validation of λ decov values (hyper-parameter choices) in the '4layer-skip' network. The network is more sensitive to the value of the λ decov than the λ l and λ ae .

Table content: <table><tr><td>λ decov</td><td>1</td><td>5</td><td>10</td><td>15</td></tr><tr><td colspan="5">25% noise 0.8963 0.8902 0.8868 0.8891</td></tr><tr><td colspan="5">35% noise 0.8806 0.8730 0.8693 0.8712</td></tr><tr><td>E.2 SIGNIFICANCE OF LOSS TERMS</td><td/><td/><td/><td/></tr></table>

Quantitative results for the additional noise experiment (sec. E.3). We test the baseline and our model in additional noise cases; as the noise is incrementally augmented the difference is increasing with our model much more resilient to additional noise. This is more pronounced in the different type of noise, i.e. the 25/10, 25/20 and 25/25 cases.

Table content: <table><tr><td>/Noise</td><td>25/0</td><td>35/0</td><td>50/0</td><td>25/10</td><td>25/20</td><td>25/25</td></tr><tr><td>Baseline-4layer</td><td>0.8030</td><td>0.7650</td><td>0.6642</td><td>0.7598</td><td>0.6698</td><td>0.6114</td></tr><tr><td>Ours-4layer</td><td>0.8343</td><td>0.8211</td><td>0.7678</td><td>0.8164</td><td>0.7649</td><td>0.721</td></tr><tr><td>Diff.</td><td colspan="6">3.898% 7.334% 15.598% 7.449% 14.198% 17.926%</td></tr></table>

Quantitative results for the adversarial examples (sec. E.4). The first column corresponds to the '4layer' case and are added for comparison.

Table content: <table><tr><td>/Noise</td><td>25%</td><td>25% + adversarial noise</td></tr><tr><td>Baseline-4layer</td><td>0.8030</td><td>0.7561</td></tr><tr><td>Ours-4layer</td><td>0.8343</td><td>0.8046</td></tr><tr><td>Diff.</td><td>3.898%</td><td>6.414%</td></tr></table>

Peer review (iclr2019):
 This manuscript proposes a robust version of conditional GAN (named RoC-GAN) that leverage the intrinsic structure in the output space. To achieve robustness, the authors replace the single pathway in the generator with two different pathways that partially share weights. The authors study the theoretical properties of RoC-GAN and prove that it shares the same properties as the vanilla GAN. For quantitative evaluations, the authors use two datasets of natural scenes and faces and evaluate denoising and sparse inpainting using the SSIM metric. - The idea is simple and seems to be working. The methodological novelties seem more-or-less limited, but the theoretical analysis and the intuitive (and well-motivated) modification over CGANs add merits to the paper. - The theoretical analysis of the method relates RoC-GAN to the original GAN, rather than CGAN! What is the connection here? If RoC-GAN is very similar to CGAN from a theoretical point of view (which it seems to be), then all the analysis to relate it to traditional GAN seem useless. - The extensive experiments in the supplementary material are appreciated. But the authors only compare their method with one single previous work (i.e., Rick Chang et al. (2017)), while there are several similar related works (either based on adversarial training strategies or simple denoising AEs). - Also, ablation studies can further show how each component of the model contributes to the final results. What if we were to only use the two-path generator without adversarial training? Different components of the final loss function can be removed and analyzed one at a time! - What are the conditions for mode-collapse for the proposed GAN? There are no discussions on this.