Knowledge · AI Basics

Generative Adversarial Network · GAN

Generative Adversarial Network

📂AI Basics⏱2-min read📊Advanced🔗3 related

What is a generative adversarial network?

In one line
Short for Generative Adversarial Network: a technique in which two neural networks, a 'generator' and a 'discriminator,' compete to produce realistic data. The technique behind the first deepfakes and AI image generation.
⚡ Summary in 3 lines
  • Learns by pitting a generator against a discriminator
  • Generates realistic data
  • Where deepfakes and AI image generation began

What GANs have changed in practice is the order in which we approach data. Before, training a model required collecting enough data that people had already labeled with correct answers. A GAN instead trains the generator with a single signal: whether the discriminator got it right or wrong. That means learning can run without an answer key, which opened a path to creating data that is hard to collect in the first place, such as images of rare defects. This is where the approach of making missing data rather than hunting it down comes from.

Breaking GANs into branches makes their uses clear. DCGAN is the basic form that added convolutions to raise image quality; CycleGAN is for translation, turning photos into a painting style without paired ground-truth examples; StyleGAN is the family that generates faces at 1024×1024 resolution and underlies 'people who don't exist' services. A conditional GAN (cGAN) lets you specify the kind you want, such as 'scratch defect.' The fork in the road with diffusion models is speed versus stability. Diffusion gets its quality by removing noise dozens of times, which makes it slow; a GAN produces a result in a single pass, which suits real-time processing, but it carries the weakness that training easily collapses to one side.

The most common mismatch in the field is the expectation that 'running a GAN gives you unlimited data.' Once the generator finds a few patterns that easily fool the discriminator, it settles there — this is mode collapse. Even if you generate 10,000 images, they are really variations of three or four types, so an inspection model trained on them misses defects it has never seen. If the 300 originals had a particular lighting or angle bias, that bias gets copied too. Never fill the validation set alone with synthetic data — testing on fakes raises the score while line performance stays put. When synthesizing human faces or voices, check portrait rights and legal liability for deepfakes before the technical review.

Courses that cover this term · AI & DX
Recommended courses · Recommended instructors · Quick quote
🧮 Mini quote · Based on instructor fees
About KRW 1.2 million (≈ US$900)2-hour talk · up to 20 people · Korean
Get a quote for these requirements →
💡 In plain English
A forger and an appraiser compete, and both get more sophisticated — the result is fakes that look real.
Why it matters in practice
GAN opened the door to generative AI with the idea of 'learning through competition.' It is the root of deepfakes and image generation.
Origin and sources

Proposed in 2014 by Ian Goodfellow et al., the structure has a generator and a discriminator competing like a zero-sum game.

Source · Goodfellow et al., “Generative Adversarial Nets” (2014) · Read the original
An example

Let's look at a hypothetical case. Company A, an auto parts maker with 420 employees, had spent six months working on a visual inspection AI. It had accumulated 120,000 normal images, but across all its lines it had only 287 real defect images. The model's defect detection rate would not climb past 76%.

  1. When Deputy Manager Park of Quality Assurance asked, 'Do we have to make defects on purpose to collect more of them?', the AI partner proposed using a GAN to synthesize scratch and foreign-matter defect images.
  2. Using a conditional GAN, they specified four defect types (scratch, foreign matter, dent, and paint smear), trained it on 287 images, and generated 3,000 images per type, 12,000 in total, over three weeks.
  3. After seeing the first output, the inspection supervisor said, 'That's a flaw that never comes off our line,' and filtered out 40%. We made a review step where people from the shop floor weed out synthetic images a formal part of the process.
  4. Suspecting mode collapse, the team sorted the generated images by type and found that foreign-matter defects accounted for 68% of the total, so they adjusted the loss function weights and retrained for two weeks.
  5. Validation used only the 87 images held out from the 287 real defect images, with no synthetic images mixed in. Never test on fakes was the rule Deputy Manager Park set.
  6. Three months later, the defect detection rate rose from 76% to 93% and the false-reject rate fell from 11% to 4%, cutting the staff tied up in re-inspection from 3 people a day to 1.
Related terms
Training linked to this term
📚Practical Introduction to Agentic AINanum Consulting corporate training · On-site or onlineView course →
Need in-house training on this topic?
Get a curriculum and quote tailored to your needs right away.
Ask About Training
Last updated 13 Sep 2026 · Reviewed by John Kim

FAQ

Because the generator and the discriminator learn by 'competing' (adversarially) to beat each other.
Diffusion models are widely used for image generation, but GANs are still used in many generation tasks.
Because the generator and the discriminator learn by 'competing' (adversarially) to beat each other.
Diffusion is more widely used for image generation, but GANs are still used across many generation tasks.