Generating Images

Typing a sentence and watching a detailed, coherent, never-before-seen image appear is one of the most striking capabilities in modern AI — and the technique behind it is beautifully counterintuitive. Rather than paint an image stroke by stroke, these models start with pure noise and gradually remove it, step by step, sculpting a picture out of static, guided by your text. Understanding diffusion — and how text steers it — demystifies text-to-image generation and reveals one of the most important generative techniques in AI.

Having covered understanding images (vision, VLMs), this post covers generating them: text-to-image models and the diffusion technique behind them. It explains how diffusion models work (the denoising idea), how text conditions the generation (using the shared-space alignment from CLIP), the role of latent diffusion in making it efficient, and what this enables. Image generation is one of the most visible and impressive multimodal capabilities, and diffusion is the key idea to understand.

Text-to-image generation

Text-to-image generation takes a text description (a “prompt”) and produces an image matching it — creating novel images from language. It’s a striking cross-modal capability (text → image) that has become widely used:

Text-to-image generation creates novel images from text descriptions — a striking cross-modal (text → image) capability, requiring both connecting text to images and generating image content, with diffusion the dominant technique. The counterintuitive-but-elegant diffusion idea is the key to understanding how it works.

How diffusion works: denoising

Diffusion models generate images through a surprising process: start with pure random noise and gradually remove the noise, step by step, until a coherent image emerges. The idea, and why it works:

   Diffusion generation (simplified):
     pure noise → denoise → less noise → denoise → ... → coherent image
     (many steps, each removing a bit of noise, guided toward a real image)
   Training: add noise to real images, learn to reverse it step by step

Diffusion generates images by learning to remove noise (trained by reversing noise added to real images) and then generating by iteratively denoising from pure random noise into a coherent image. This counterintuitive “sculpt an image from static, step by step” process produces high-quality, diverse images and is the dominant technique. But so far this generates some image — the crucial piece is steering it with text.

How text steers generation: conditioning

For text-to-image, the diffusion process must be guided by the text prompt so the generated image matches the description. This is conditioning, and it relies on the cross-modal connection from CLIP:

Text steers image generation through conditioning: the denoising process is guided at each step by the text prompt’s meaning (via CLIP-style text-image alignment), so the emerging image matches the description, with tunable guidance strength. This is where the “connecting modalities” shared-space idea meets the diffusion generation technique — together enabling text-to-image. One more piece makes it efficient enough to be practical.

Latent diffusion and what it enables

A key advance made diffusion efficient enough for widespread use — latent diffusion — and the overall capability enables a lot:

Image generation via diffusion — generating images by iteratively denoising from noise, steered by text through conditioning (using CLIP-style text-image alignment), made efficient by latent diffusion — is a striking, widely-used cross-modal capability. It’s the generative counterpart to visual understanding, enabling creating and editing images from text. Next: audio and speech — extending multimodal AI to sound.

Key takeaways

Further reading

Sources & References