liveBook · Manning

Generator

As explained in Build a Text-to-Image Generator (from Scratch)

A GAN generator is a neural network that transforms random input noise into synthetic samples intended to resemble real data.

A generator produces outputs from a representation or random input. In a GAN, it transforms noise into synthetic samples that resemble real data; in a transformer, it converts decoder outputs into probabilities over target-language tokens. section 11.4.1 section 2.1.2

Trace the generator’s role through its surrounding process:

  • GAN generator: sample random noise, transform it into synthetic data, and improve it against the discriminator’s real-versus-fake judgments. section 11.4.1
  • Transformer generator: receive the decoder output and produce a probability distribution for the next token, enabling one-token-at-a-time generation. section 2.1.2
  • VQGAN combines the GAN generator’s realistic image synthesis with VQ-VAE’s discrete latent structure and codebook. section 11.6
Figure 2.4 An encoder–decoder transformer for machine language translation (e.g., German to English)

Use the encoder–decoder diagram to locate the transformer generator as the output head attached to the decoder. section 2.1.2

How Build a Text-to-Image Generator (from Scratch) covers it

How deep it goes
Explains inputs, outputs, adversarial training, and transformer placement, but does not provide generator implementation code or detailed internals.
Examples
Uses synthetic GAN samples, high-resolution VQGAN images, and German-to-English translation such as “Wie geht es dir” to “How are you.”
What it assumes
Assumes neural-network and model familiarity while introducing the generator’s roles alongside discriminators, decoders, and latent representations.
What you can do after
Evaluate/understand how generators synthesize samples or produce next-token probabilities within adversarial and encoder–decoder systems.
How it connects
Connects generators with discriminators, GANs, VQGAN, VQ-VAE, transformers, encoders, decoders, attention, and latent representations.

Also explained in

Compare how 12 books explain generator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Text-to-Image Generator (from Scratch). The section links point to the parts of the book it draws on.