Skip to content
AI for Everyone

GAN (generative adversarial network)

Concept

A diagram of two networks. The discriminator receives real photos of faces from the training data and photos made by the generator. It labels each photo as real or generated, and an arrow leads from its verdict back to the generator.
The generator tries to make photos the discriminator can’t tell apart from real ones, and the discriminator learns to spot the generated ones. Each of the discriminator’s verdicts helps both networks improve.Diagram: AI for Everyone

Ian Goodfellow and his coauthors introduced generative adversarial networks in 2014. A GAN consists of two networks. The generator learns to create examples that resemble the training data, for instance, photos of faces, and the discriminator learns to tell real examples from the ones the generator made. The generator’s goal is to fool the discriminator as often as possible. Both networks train at the same time, so each one has to keep up with the other’s progress.

In the 2014 paper, the authors compare the generator to a team of counterfeiters who print fake bills and try to spend them without getting caught, and the discriminator to the police, who try to spot the fakes. The competition pushes both sides to improve until the counterfeits can’t be told apart from real money.

In my articles

In my February 2025 article on generative AI, I compare GANs to an apprentice and a master: a novice artist (the generator) creates images, and an experienced art critic (the discriminator) judges whether they look realistic. The inventors of the method chose a different comparison, one that puts the rivalry first: the two networks compete against each other, like counterfeiters and the police. In November 2026, I added a correction noting that diffusion models are a third foundation of generative AI, alongside GANs and transformers.

Sources

Related articles

Related entries

Last checked:

All entries