How LLMs Work
Generative Adversarial Networks: Two AI Players in One Game
A GAN trains two networks against each other, one that makes fakes and one that spots them. What the 2014 paper proposed and why people still talk about the idea.
Imagine a game between a forger and a detective. The forger makes fake paintings. The detective tries to say which ones are real and which are fake. Each time the detective catches a fake, the forger learns to do better. Each time the forger fools the detective, the detective learns to look harder.
That is the idea of a generative adversarial network, or GAN. The paper "Generative Adversarial Nets" introduced it in 2014. Its authors are Ian Goodfellow and colleagues, working at the Université de Montréal.
The two players
According to the paper's abstract, two models are trained at the same time:
- A generative model (G) that learns what the training data looks like and makes new samples.
- A discriminative model (D) that estimates the chance that a sample came from the real training data rather than from G.
G is trained to make D fail. The authors describe this as a "minimax two-player game". They also say that, in theory, there is a unique solution in which G recovers the training data and D can do no better than guessing, a probability of one half everywhere.
What was new
The abstract says that when G and D are both multilayer perceptrons, the whole system can be trained with backpropagation. It also says the method needs no "Markov chains or unrolled approximate inference networks", which were complicated tools used by earlier approaches. The authors report experiments that judged the generated samples, qualitatively and quantitatively.
Why it matters for today
GANs were one of the first popular ways to make realistic fake images. Today most image tools use a different method, described in how AI image generators work. The detective-and-forger idea is still useful when thinking about deepfakes and fake AI content: as fakes improve, spotting them gets harder.
Try it on paper
Play the game with a friend. One person draws a simple pattern, such as a smiley face. The other tries to copy it from memory. A third person guesses which is the original. After a few rounds, does the copy get closer?
A note on sources
Everything above comes from the abstract and title page of the paper on arXiv (1406.2661), read on 27 November 2026. The forger-and-detective picture is an analogy of this site, not from the paper.