2
$\begingroup$

GAN has two components: generator and discriminator.

Discriminator in the original GAN is a regressor and always gives value in $[0, 1]$. You can read it in original paper

$D(x)$ represents the probability that $x$ came from the data rather than $p_g$

Is it true with most of the (advanced or) contemporary GANs? Or the do nature of discriminator, either as a regressor or as a classifier entirely depends on the context?

$\endgroup$

1 Answer 1

2
$\begingroup$

Discriminator in the original GAN is a regressor

No, it is a classifier. It classifies an image as "real" or "fake", with the output usually being probability that the image is "real" (you could reverse this and use generated images as the target class, provided you change the generator training to match).

Is it true with most of the (advanced or) contemporary GANs?

In WGANs the W stands for Wasserstein, and these GANs use Wassersten loss, which measures the distance in "realness" between real and fake images. This measure of realness is a regression problem, with the caveat that there is no true measure of realness for any images that you can train with separately. The architecture of the critic, which plays the same role as discriminator for classic GANs, is the same as a neural network used for regression.

In general, if you see the term "discriminator", you can assume a classifier is being used. If you see the term "critic", you can assume a regressor. This may not be true for everything published about GANs, as some authors may use the terms loosely, but it is reasonable to expect if you are reading original papers or learning from a course.

As far as I can tell, StyleGAN2, which produces state-of-the-art results, uses a standard discriminator/classifier setup. There are plenty of other architectural details in the discriminator that contribute to the performance of the GAN. There is a link to the paper describing these from the linked Github implementation.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .