In a Generative Adversarial Network (GAN), what is the role of the discriminator?
A.
To generate new data based on the training set.
B.
To distinguish between real and generated data.
C.
To optimize the training process.
D.
To calculate the loss function and update the generator.
The Answer Is:
B
This question includes an explanation.
Explanation:
A GAN's discriminator is a binary classifier trained to distinguish real samples (drawn from the actual training data) from fake samples (produced by the generator), outputting a probability that a given input is real rather than generated. This is the discriminator's entire function — it never generates data itself. The generator, by contrast, takes random noise as input and learns to produce increasingly realistic synthetic samples, with the explicit goal of fooling the discriminator into classifying its outputs as real.
Training proceeds as a minimax adversarial game: the discriminator's weights are updated to improve its ability to correctly classify real vs. fake, while the generator's weights are updated (using gradients that flow back through the discriminator) to make its outputs harder for the discriminator to detect as fake. As training progresses, both networks improve in tandem, ideally converging to a point where the generator produces samples statistically indistinguishable from real data and the discriminator can no longer reliably tell them apart (outputting close to 50% confidence either way).
Option A describes the generator's role, not the discriminator's — a common point of confusion this question is testing directly. Option C is too vague to describe either network's specific function precisely. Option D conflates the discriminator with the general backpropagation/optimization process; while the discriminator's output does supply the gradient signal used to update the generator, "calculating the loss function and updating the generator" overstates and mischaracterizes the discriminator's role as a classifier.
[Reference: Core Machine Learning and AI Knowledge domain — GAN architecture, discriminator vs. generator roles., ]
NCA-GENM PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"