---
title: Generative Adversarial Networks: Two AI Players in One Game | Large Programs
description: 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.
canonical: https://www.largeprograms.com/generative-adversarial-networks-two-ai-players/
---

[Home](/) / [How LLMs Work](/category/how-llms-work/)

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.

27 November 2026 · 2 min read

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.

![A generator network makes fake examples, a discriminator network checks them against real ones, and feedback goes back to the generator.](/img/gan-two-players.svg)

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](/backpropagation-how-neural-networks-learn-from-mistakes/). 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](/how-do-ai-image-generators-work/). The detective-and-forger idea is still useful when thinking about [deepfakes and fake AI content](/spotting-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.

## Sources

- [https://arxiv.org/abs/1406.2661](https://arxiv.org/abs/1406.2661)

[Read this page as Markdown (.md)](/generative-adversarial-networks-two-ai-players.md)

## Keep reading

[![](/img/hero/art-ai-art-and-music-basics.svg)](/ai-art-and-music-basics/)

How LLMs Work

### [How AI Makes Music: A Beginner's Look](/ai-art-and-music-basics/)

Models can generate melodies and songs by learning patterns in sound. What that means for musicians.

[![](/img/hero/art-backpropagation-how-neural-networks-learn-from-mistakes.svg)](/backpropagation-how-neural-networks-learn-from-mistakes/)

How LLMs Work

### [Backpropagation: How a Network Learns From Its Mistakes](/backpropagation-how-neural-networks-learn-from-mistakes/)

Backpropagation is the method that works out how to adjust each weight in a neural network after it makes an error. A simple explanation with a team analogy.

[![](/img/hero/art-chain-of-thought-prompting-showing-your-working.svg)](/chain-of-thought-prompting-showing-your-working/)

How LLMs Work

### [Chain-of-Thought Prompting: Showing the Steps](/chain-of-thought-prompting-showing-your-working/)

Asking a language model to show intermediate steps can improve its answers to hard problems. What the research found and how it is like showing your working in maths.
