Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. Deep Learning /
  4. What is a GAN (Generative Adversarial Network)?
Deep Learning

What is a GAN (Generative Adversarial Network)?

Updated September 26, 2026 Read 3 min

A GAN (generative adversarial network) is a generative model made of two competing neural networks: a generator that creates fake data and a discriminator that tries to tell fake from real. As they compete, the generator learns to produce highly realistic output.

Contents 12
  1. 01Key takeaways
  2. 02A GAN explained in simple terms
  3. 03How a GAN works
  4. 04Worked example: generating faces
  5. 05Popular GAN variants
  6. 06Common training problems
  7. 07GANs vs diffusion models
  8. 08Risks
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

A GAN (generative adversarial network) is a generative AI model made of two neural networks trained against each other: a generator that creates fake samples, and a discriminator that tries to tell fake samples from real ones. As the discriminator gets better at spotting fakes, the generator is pushed to produce ever more realistic output. GANs were introduced by Ian Goodfellow and colleagues in 2014.

Key takeaways

  • A GAN is a two-player game between a generator and a discriminator.
  • The generator never sees real data directly; it learns from the discriminator’s feedback.
  • GANs produced the first strikingly realistic AI-generated faces.
  • Training is notoriously unstable, and GANs can suffer from “mode collapse”.
  • Diffusion models have largely overtaken GANs for image generation, but GANs remain fast and useful for some tasks.

A GAN explained in simple terms

Picture a counterfeiter and a detective. The counterfeiter prints fake banknotes. The detective examines notes and says “real” or “fake”. Each time the detective catches a fake, the counterfeiter learns what gave it away and improves. Each time a fake slips through, the detective learns to look more closely. After many rounds, the fakes are almost indistinguishable from real notes. In a GAN, the counterfeiter is the generator and the detective is the discriminator.

How a GAN works

  1. The generator takes random noise and produces a sample, for example an image.
  2. The discriminator receives a mix of real images and generated ones and outputs a probability that each is real.
  3. The discriminator is updated to classify real and fake more accurately.
  4. The generator is updated to make the discriminator label its outputs as real.
  5. Both repeat, in alternating steps, for many rounds.

Ideally, training reaches a balance where the discriminator can do no better than guessing, because generated samples look like real ones.

Worked example: generating faces

A GAN trained on tens of thousands of face photos starts by outputting random noise. Early on, the discriminator easily spots fakes. The generator learns rough blobs with face-like colours, then eyes and mouths in the right places, then realistic skin, hair and lighting. NVIDIA’s StyleGAN models (2018–2019) became famous for producing faces of people who do not exist, which viral websites showcased to the public.

Popular GAN variants

VariantKey ideaUse
DCGANUses convolutional layers (CNNs)Stable image generation baseline
Conditional GANGenerates samples for a given label or input“Generate a shoe”, image translation
Pix2PixTranslates paired imagesSketch to photo, map to satellite
CycleGANTranslates without paired examplesHorse to zebra, summer to winter
StyleGANControls style at different levels of detailHigh-quality faces and art
SRGAN / ESRGANAdds realistic detail to low-resolution imagesImage upscaling
WGANUses a different loss for more stable trainingImproved training stability

Common training problems

  • Mode collapse: the generator finds a few outputs that fool the discriminator and keeps producing only those, losing variety.
  • Instability: if one network gets too strong too fast, the other stops learning.
  • Hard evaluation: there is no single loss that shows quality; teams use scores such as FID and human review.

GANs vs diffusion models

AspectGANsDiffusion models
Generation speedVery fast, one passSlower, many denoising steps (though faster methods exist)
Training stabilityOften unstableMore stable
Variety of outputsCan suffer mode collapseBetter coverage and diversity
Text controlLimitedStrong prompt control in text-to-image

This is why most modern text-to-image tools use diffusion. GANs still appear where speed matters, such as real-time upscaling, and sometimes as components inside other systems.

Risks

GANs made realistic fake faces and videos easy to produce, fuelling early deepfakes and fake social media profiles. This is a key reason for work on synthetic media detection, watermarking and content provenance.

Limitations

  • Unstable, sensitive training.
  • Mode collapse reduces diversity.
  • Difficult to control precisely with text.
  • Can reproduce biases and even near-copies of training data.

Common Use Cases

01

Image super-resolution

Upscale low-resolution photos and video with realistic detail.

02

Image-to-image translation

Turn sketches into photos, day scenes into night, or maps into satellite-style images.

03

Synthetic training data

Create extra realistic samples where real data is scarce or private.

04

Game and design assets

Generate textures, characters and design variations.

05

Face and style editing

Change age, expression or style in photo editing tools.

06

Data augmentation in medicine

Generate additional medical images to help train diagnostic models, with careful validation.

Frequently Asked Questions

Two neural networks competing: one creates fake data, the other tries to spot fakes, and the competition makes the fakes increasingly realistic.

Ian Goodfellow and colleagues introduced GANs in 2014.

When a GAN's generator produces only a few kinds of outputs because they reliably fool the discriminator, losing variety.

Yes, especially for fast tasks like upscaling and image translation, though diffusion models now lead most text-to-image generation.

A GAN generates in one pass through a generator trained against a discriminator. A diffusion model gradually removes noise over many steps.

Related Terms

  • Diffusion Model
  • Generative AI
  • Deepfake
  • Synthetic Media
  • StyleGAN
  • AI Image Generation

Related AI Terms

What is a Variational Autoencoder (VAE)?A variational autoencoder (VAE) is a generative model that encodes data into a probability distribution rather than a…What is an Autoencoder?An autoencoder is a neural network trained to compress its input into a small representation and then reconstruct…What is Backpropagation?Backpropagation is the algorithm neural networks use to learn. After a prediction, it works backwards from the error…What is a Diffusion Model?A diffusion model is a generative AI model that learns to create data by reversing a noising process:…What is a Decoder in Deep Learning?A decoder is the part of a neural network that turns an internal numeric representation into output, such…What is LSTM (Long Short-Term Memory)?LSTM (long short-term memory) is a type of recurrent neural network that uses a memory cell and three…

Contents

  1. 01Key takeaways
  2. 02A GAN explained in simple terms
  3. 03How a GAN works
  4. 04Worked example: generating faces
  5. 05Popular GAN variants
  6. 06Common training problems
  7. 07GANs vs diffusion models
  8. 08Risks
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

AI Topic

  • Deep Learning

Related Terms

  • What is a Variational Autoencoder (VAE)?
  • What is an Autoencoder?
  • What is Backpropagation?
  • What is a Diffusion Model?
  • What is a Decoder in Deep Learning?
  • What is LSTM (Long Short-Term Memory)?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 26, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}