AI GLOSSARY · AI CONCEPTS

Generative adversarial network (GAN)

Markdown version · Wikidata Q25104379

Definition

A generative adversarial network (GAN) trains a generator to produce samples and a discriminator to distinguish generated samples from training data. Their competing objectives guide learning; useful or realistic results are not guaranteed.

Also called: GAN, GANs, what is a GAN, generative adversarial networks, GAN AI.

In plain language

A GAN is like a forger and a detective training against each other. The generator makes samples; the discriminator tries to distinguish them from training examples. The generator uses that feedback to change its parameters. Training can be unstable or produce too little variety, so the game need not improve each round. After training, the generator can make samples without running the discriminator. Image generation is one application, not the definition.

Technical definition

Goodfellow et al. (arXiv 1406.2661, submitted June 2014) proposed training generative models through an adversarial process. The generator learns to produce samples resembling the training data; the discriminator learns to tell real samples from generated ones. The generator is trained to maximise the discriminator's errors, a two-player minimax game. The paper argues that in the ideal case the generator reproduces the data distribution and the discriminator outputs one half everywhere. When both networks are multilayer perceptrons, the whole system trains with backpropagation.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    mock-record-generator 42/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill generates seeded mock records as CSV or JSON from a JSON field list or a simple TypeScript interface.
    Why it exercises the concept
    It is a contrast case. Mock records come from rules and a seed, not from a model that learned a real dataset, which is what a GAN does. Use it when you need fake test records without training anything.
  2. Skill by Anthropic · Illustrative, not executed

    algorithmic-art 20/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill makes generative art in p5.js with seeded randomness and adjustable parameters.
    Why it exercises the concept
    It shows another meaning of the word generative: code plus randomness. A GAN is different, since its generator is a trained neural network that learned from examples.
  3. Skill by OpenAI · Illustrative, not executed

    imagegen 29/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill generates or edits raster images such as mockups, textures and illustrations.
    Why it exercises the concept
    It is a way to try machine-made images from an agent. Our catalogue does not say which method the underlying model uses, so do not assume it is a GAN.

How it shows up when you use agents

A language-model-based coding agent can help write code that trains or uses a GAN. The GAN is a model in that project, not another name for the agent. It matters when a proposed generative method uses adversarial training. See Generative AI.

What breaks when the term is misunderstood: people call every image generator a GAN, then pick the wrong tools or read the wrong documentation. Others assume a GAN can safely replace real data for testing; its samples only reflect the data it learned from, so errors and gaps carry over. Mock records built from rules are often enough for tests.

Your next action: when someone says "GAN", ask what is generating what, and from which training data. For another way to generate images, read Diffusion model. For test data without training a model, see Synthetic data.

Worked example (illustrative)

For an image GAN, a training batch can mix examples from a dataset with samples from the generator. The discriminator is trained to distinguish the two sources; feedback from it supplies a learning signal to the generator. A high discriminator score does not certify factual accuracy, originality or legal permission. This illustrates the training roles, not a recorded experiment or a guarantee of convergence.

Common confusions

  • GAN versus diffusion model. A GAN trains two networks against each other. A diffusion model denoises step by step. Both make new data, by different methods.
  • Generator versus discriminator. The generator makes samples; the discriminator judges them. After training, the generator is the part you use to make new samples.
  • Generative AI versus GAN. GANs are one technique inside generative AI, not the whole field. Autoregressive language generation does not by itself imply adversarial training.
  • Myth. A GAN does not just replay its training images. It learns to produce samples that resemble the data, though close resemblance to training examples can still happen.

Terms that mention Generative adversarial network (GAN)

7 terms mention this one

More in AI concepts

Next steps

  1. mock-record-generator A skill that exercises it.
  2. Generative AI (gen AI) Related term.
  3. Diffusion model Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (6)
  • : US Google Ads query estimate aligned to cached receipt; close variants may overlap and no traffic is promised.
  • : Independent automated factual and example-source review completed; exact-version technical and demand checks recorded separately. Publication remains disabled.
  • : First version.
  • : Verifier pass: dropped unsourced misuse sentence; minimax phrase confirmed in abstract and kept.
  • : Foundation scope and counterexample corrections; independent exact-version review pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.