Skip to content
Nitmonk
Image & Generative Models

GAN (Generative Adversarial Network)

Generator vs. discriminator, competing to improve.

GAN (Generative Adversarial Network) — infographic explaining Generator vs. discriminator, competing to improve.
GAN (Generative Adversarial Network) — visual explainer by Nitmonk.

A GAN (Generative Adversarial Network) uses two neural networks — a Generator and a Discriminator — that compete with each other. Through this competition, the Generator learns to create realistic, new data.

In simple terms

Two networks compete: one fakes data, the other spots fakes — and both get better.

How it works

  1. 1Random noise is fed into the Generator.
  2. 2The Generator tries to create fake data (a sample).
  3. 3The Discriminator tries to tell real data (from the dataset) apart from fake data (from the generator).
  4. 4Feedback & learning: both networks improve through this feedback loop.

Key points

  • The Generator learns to fool the Discriminator; the Discriminator learns to catch fakes.
  • They train together until the fakes look realistic.
  • Great for image generation, face synthesis, image editing and video generation.
  • Training can be unstable and needs care to balance the two networks.

Why it matters

GANs produced some of the first strikingly realistic AI-generated faces and images. The adversarial idea — pitting two networks against each other — remains a landmark technique in generative modelling.

Frequently asked questions

What do the two networks do?
The Generator creates fake samples; the Discriminator judges real vs fake. Their competition drives realism.
What are GANs used for?
Image generation, face synthesis, photo editing, super-resolution and video generation.