◄ WORLD II · THE FOLDTHE OCHO · generator builds │ the game │ discriminator breaks

THE GAN

Two networks in a duel: a generator forges samples, a discriminator tries to catch the fakes. Each makes the other better. At equilibrium the forgeries are indistinguishable from real data and the detector is reduced to a coin flip. Here, in one dimension, you can watch it happen — and it provably converges, because this toy is convex.

source Goodfellow et al., Generative Adversarial Networks (2014) — arxiv.org/abs/1406.2661. Rendered, not quoted.

◧ blue team · the generator builds
3

THE MODEL — the minimax

The game is a minimax: the discriminator D maximizes its accuracy at telling real from fake; the generator G minimizes it. minG maxD.

At the Nash equilibrium, G's distribution equals the data distribution and D outputs ½ everywhere — it cannot do better than guessing. In this 1-D toy the generator is an affine map G(z)=a·z+b of unit noise, so matching a Gaussian's mean and standard deviation is a convex problem — it always reaches the optimum.

5

THE LINEAGE AVAN

Gradient descent minimizes one loss. A GAN turns that into a two-player game: the loss is another network, learned in tandem. The red team and the blue team become a training loop.

It is the ancestor of every modern generative model — and the direct inspiration for the adversarial framing of this very form.

7

THE WITNESS live

Re-trains from scratch to a target and confirms the generator's mean and std reach it, and that the discriminator is driven to ~½.

▼ the game ▼
4

DATA IN — the target in ↓

The real data is a Gaussian; you set its mean μ and standard deviation σ. The generator is fed fixed unit noise z ~ N(0,1) (exactly mean 0, std 1) and must transform it to match.

5
2
▼   the duel   ▼
0

▣ THE PANEL — the duel LIT

Green = real Gaussian · red = the generator's samples. Train, and red slides onto green — then the discriminator can't tell them apart.

▼   the forgery is perfect   ▼
8

DATA OUT — indistinguishable out ↓

What the game produces: a generator whose mean and std match the data, and a discriminator whose accuracy has fallen to ≈ 0.5 — a coin flip. It cannot tell the forgery from the real thing.

red team · the discriminator breaks ◨
1

THE ADVERSARY

WALL Real GANs are notoriously unstable — mode collapse (the generator emits one sample forever), non-convergence, and oscillation are the norm, not the exception. Training a high-dimensional GAN is a research problem, not a guarantee.

This sphere is honest about that: it is a 1-D, convex toy where the generator is a two-parameter affine map, so it provably reaches the optimum. The adversarial dynamic is real; the guaranteed convergence is a property of this toy, not of GANs in general. Do not read "it converges here" as "GANs converge."

2

THE GRAVEYARD

"GANs always converge." Cut. They famously do not — mode collapse and non-convergence are everyday failures. Only this convex 1-D reduction is guaranteed.

"This is a full GAN." Kept, corrected. AMBER — it is a Gaussian-matching toy: G(z)=a·z+b, D an optimal likelihood-ratio test. The min-max structure is faithful; the networks are not deep.

"The discriminator is a neural net here." Corrected. D is the exact Bayes-optimal classifier for two Gaussians — the best any discriminator could do — so "D → ½" is the strongest possible statement, not a weak one.

6

THE TAMPER — break it

The red team's move: freeze the generator so it never learns. The forgery stays crude and the discriminator keeps winning — the witness catches it.

Freeze G and it can never match the target — its std stays stuck near its init and the discriminator's accuracy stays high. The witness (window 7) goes red.