Skip to main content
Independent Digital Museum of Artificial IntelligenceELEL

MTN-0133 · Room 4 · 4.14

Generative Adversarial Networks: generator versus discriminator

Two models learn through competition: the generator makes samples and the discriminator tries to identify their origin.

Open the interactive · 3D · Room 4

Generative Adversarial Networks: generator versus discriminator
Documentation and sources, Museum of AI · 2026

The 2014 experiment

Ian Goodfellow and colleagues proposed a framework in which a generator learns through the response of another model. The discriminator sees reference and generated samples. Its assessment provides the signal for improving the generator. “Real” here means belonging to the reference data, not proof that a photograph is truthful.

Learning you can measure

Reference data follow N(1,0.6²). The generator is G(z)=μ+σz. The discriminator is logistic regression with features 1, x and x². Every click draws samples, computes derivatives and updates actual parameters. There is no prerecorded animation. Set each learning rate separately and inspect losses evaluated on fixed inspection points.

Why learning can fail

A discriminator that improves too quickly or a generator that takes excessively large steps can cause oscillation. A lower loss for one player does not necessarily mean a better overall result. Compare the generated distribution with the reference distribution as well as reading the losses.

What this model does not demonstrate

Mode collapse occurs when a generator produces limited variations and misses modes of the reference distribution. This single-mode experiment is not a demonstration of mode collapse. It isolates competition and instability with models small enough for their parameters to remain visible.

Try the model

Model loaded.

Documentation and sources

Ian Goodfellow et al. · 2014 · MTN-0133

  1. Goodfellow et al. · Generative Adversarial Networks (2014)

In the classroom

Museum suggestion for computing, probability and critical literacy. Compare two seeds, record the parameters and explain the mechanism behind the output. Older students can examine losses and the relationship between data and models.

In the classroom

Related exhibits

Room 6

Provenance and rights

Text, code, synthetic data, model weights, diagrams and sound patterns: original Museum of AI work, 2026, CC BY-SA 4.0. Research sources are linked, not reproduced. The existing three.js library is used under MIT.

CC BY-SA 4.0 · 2026-12-03