liveBook · Manning

Generative adversarial network

As explained in Generative AI in Action

A generative adversarial network is a generative model composed of a generator and discriminator trained adversarially to produce realistic synthetic data.

A generative adversarial network (GAN) creates synthetic data through two competing neural networks: a generator produces examples, while a discriminator judges whether examples are real or generated. This adversarial training is especially suited to complex, diverse data requiring high realism, including images for design, art, augmentation, and style transfer. section 4.1 section 4.1.2

A typical GAN image-generation loop works as follows:

  • Feed a prompt, such as text or a sketch, together with random noise into the generator. section 4.1.2
  • Produce an image intended to match the prompt and appear authentic. section 4.1.2
  • Let the discriminator compare generated and real images associated with the prompt and assign a realism score. section 4.1.2
  • Update both networks through backpropagation and gradient descent, repeating the competition until generated images can fool the discriminator. section 4.1.2

Enhancing medical imagery

A GAN can support super-resolution workflows by making medical images more detailed and clearer. The generator proposes an enhanced image, while the discriminator evaluates whether it resembles a real high-resolution image. section 4.1.2

Figure 4.5 GAN model architecture
figure

Use the architecture figure to inspect the generator, discriminator, latent space, and parameter fine-tuning at a high level. section 4.1.2

How Generative AI in Action covers it

How deep it goes
Explains generator–discriminator competition, prompt conditioning, realism scoring, gradient updates, and latent space without mathematical derivation.
Examples
Uses realistic image generation, artistic style transfer, chair design, and medical or space-image super-resolution.
What you can do after
Evaluate GAN suitability for high-realism image generation and explain its adversarial training workflow.
How it connects
Connects GANs with variational autoencoders, diffusion models, vision transformers, prompt engineering, and latent space.

Also explained in

Compare how 12 books explain generative adversarial network →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.