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
- Generator β takes random noise and creates synthetic data (images, etc.)
- Discriminator β receives both real and fake data, tries to classify which is which
- Competition β as the discriminator gets better at detecting fakes, the generator gets better at fooling it
- 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
| GAN | Diffusion | |
|---|---|---|
| Training | Adversarial | Noise removal |
| Stability | Can be unstable | More stable |
| Quality | High quality but variable | Consistently high quality |
| Current use | Less common now | Preferred 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.