liveBook · Manning

Generative modeling

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

Generative AI is a class of machine-learning models that creates new content resembling patterns learned from data.

Generative modeling creates new text, images, audio, or video that resembles patterns learned from real-world data. Unlike systems that classify, predict, or retrieve, it produces novel outputs from learned relationships. section 1.0

Generative systems appear through several connected approaches and applications:

  • Transformer architectures apply attention mechanisms, originally developed for natural-language processing, to tasks including image processing. section 1.0
  • Diffusion models generate images by adding random noise and progressively refining it according to patterns learned during training. section 1.0 section 1.5.1
  • Text-to-image systems translate natural-language prompts into detailed images and can edit existing photographs by removing objects, changing backgrounds, or cropping. section 1.0

A prompt becomes an image

DALL-E 2, Imagen, and Stable Diffusion demonstrate text-to-image generation: a written description becomes a visually detailed output. Related uses include design visualization, photo editing, medical diagrams, and generated essays or code. section 1.0

Generative modeling also raises questions about originality and copyright. Outputs may combine learned relationships into new concepts, yet some systems can produce elements highly similar to artworks in their training data. section 1.5.1

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

How deep it goes
Explains the definition, major architectures, diffusion process, applications, and originality debate without detailing full model implementation.
Examples
Uses ChatGPT, DALL-E 2, Imagen, Stable Diffusion, photo editing, medical diagrams, and generated essays or code.
What you can do after
Evaluate generative applications, explain diffusion-based image creation, and recognize originality, copyright, and deepfake risks.
How it connects
Connects generative AI with machine learning, transformers, attention mechanisms, diffusion models, text-to-image generation, and deepfakes.

Also explained in

Compare how 29 books explain generative modeling →

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.