Main Concept

A GAN is a generative model made up of two competing neural networks: a Generator (creates fake data) and a Discriminator (tries to distinguish fake from real). They train against each other in an adversarial process.

How It Works

  1. Generator β€” takes random noise and creates synthetic data (images, etc.)
  2. Discriminator β€” receives both real and fake data, tries to classify which is which
  3. Competition β€” as the discriminator gets better at detecting fakes, the generator gets better at fooling it
  4. Result β€” eventually, the generator produces data indistinguishable from the real thing

Use Cases

  • Image generation β€” creating realistic artificial images
  • Data augmentation β€” generating synthetic training data
  • Style transfer β€” applying artistic styles to images
  • Image-to-image translation β€” converting sketches to photos, day to night, etc.
  • Super-resolution β€” upscaling low-resolution images

GAN vs. Diffusion Models

GANDiffusion
TrainingAdversarialNoise removal
StabilityCan be unstableMore stable
QualityHigh quality but variableConsistently high quality
Current useLess common nowPreferred in modern GenAI

Modern models like DALL-E, Stable Diffusion, and Amazon Nova Canvas use diffusion, not GANs, because they’re more stable and produce better results.

AIF-C01 Context

Know GANs as a generative AI approach for creating synthetic data. The exam may ask about methods for data augmentation or synthetic data generation β€” GANs are a classic answer, though diffusion models are more relevant today.