Module 7 of 16
Diffusion & Image Generation
Current Study Module
GenAI - Multimodal & Content Types
Advanced Prompt Engineering
Module 06 • Modalities & Frontiers

Types of Generative AI: The Multimodal Spectrum

Generative AI is no longer confined to discrete text generation. Today's models span continuous and discrete data domains—synthesizing code, photorealistic video, spatial 3D meshes, expressive speech, and multimodal unified understanding.

1. Architectural Breakdown by Content Modality

Each data modality requires specialized tokenization schemes, loss functions, and architectural priors:

1. Text & Natural Language
Discrete Tokens

Architecture: Causal Decoder-Only Transformers.
Tokenization: Byte-Pair Encoding (BPE), SentencePiece.
Training Objective: Cross-entropy loss over next-token prediction.
Key Systems: GPT-4, Llama 3, Claude 3.5 Sonnet, DeepSeek-V3.

Excels at logical deduction, multi-step chain-of-thought mathematical reasoning, creative synthesis, and multilingual translation.

2. Code & Program Synthesis
Syntactic Trees

Architecture: Decoder Transformers trained on GitHub/StackOverflow.
Key Technique: Fill-in-the-Middle (FIM) for bidirectional context.
Evaluation: pass@k on HumanEval, SWE-bench, MBPP.
Key Systems: GitHub Copilot, StarCoder 2, DeepSeek-Coder, Cursor.

Capable of debugging syntax errors, generating automated unit tests, and executing autonomous multi-file software engineering tasks.

3. Visual & Image Synthesis
Continuous Manifold

Architecture: Latent Diffusion & Flow-Matching DiTs.
Compression: Variational Autoencoder (VAE) 8x perceptual downsampler.
Conditioning: Dual CLIP + T5 text encoders via cross-attention.
Key Systems: Midjourney v6, Flux.1, Stable Diffusion XL.

Generates high-resolution concept art, photorealistic portraits, graphic design layouts, and typography.

4. Video & World Simulation
Spatio-Temporal

Architecture: 3D Spatio-Temporal Diffusion Transformers.
Mechanism: Space-time patchification; causal temporal attention.
Key Challenges: Physical consistency, temporal flicker, 3D object permanence.
Key Systems: OpenAI Sora, Runway Gen-3 Alpha, Wan 2.1, Luma Dream Machine.

Simulates physical environments, dynamic fluid mechanics, and camera trajectory movements.

5. Audio, Speech & Music
Acoustic Tokens

Architecture: Neural Codecs (EnCodec, DAC) + Autoregressive / Flow matching.
Mechanism: Residual Vector Quantization (RVQ) discrete acoustic codebooks.
Key Systems: Meta AudioCraft (MusicGen), ElevenLabs, Whisper, Bark.

Synthesizes studio-grade polyphonic music, expressive conversational voice cloning, and sound effects from text.

6. 3D Meshes & Gaussian Splatting
Volumetric Radiance

Architecture: 3D Gaussian Splatting (3DGS) & Triplane Diffusion.
Mechanism: Multi-view image diffusion lifted to 3D radiance fields.
Key Systems: InstantMesh, LGM, Shap-E, Tripo3D.

Produces game-engine-ready textured 3D assets, OBJ/GLTF meshes, and real-time volumetric scenes.

2. The Convergence: Vision-Language Models (VLMs)

Rather than maintaining isolated models for text and vision, modern frontier systems unify modalities intoVision-Language Models (VLMs) (e.g. GPT-4o, Claude 3.5 Sonnet, LLaVA 1.6):

The Universal Multimodal Pipeline
1. Patch Extraction

An input image is sliced into 14×14 pixel patches and passed through a pre-trained Vision Transformer (e.g., CLIP ViT or SigLIP).

2. Projection Layer

A learned two-layer MLP projector aligns visual feature vectors into the exact hidden dimension of the LLM.

3. Joint Causal Attention

Visual patch tokens and text tokens are concatenated into a single input stream, enabling native visual question answering, OCR, and reasoning.

3. Modality Benchmark & Serving Characteristics

ModalityStandard BenchmarkTypical Context SizeLatency / Compute Profile
Text LLMsMMLU, GSM8K, Arena Hard8k – 128k+ tokensMedium (Tokens stream progressively at 30–120 tokens/sec)
Code ModelsHumanEval, SWE-bench16k – 64k tokensMedium (Requires high temperature accuracy / greedy search)
Image DiffusionImageNet FID, CLIP ScoreFixed 1024×1024 latentsHigh (Iterative 20–50 denoising forward steps)
Video DiffusionVBench, FVD96–300 framesUltra-High (Requires multi-GPU distributed clusters per second of video)
Audio / SpeechWER (Word Error Rate), UTMOSVariable audio framesLow to Medium (Real-time duplex voice streaming under 300ms)
Module Key Takeaways
  • Generative AI models specialize across discrete token sequences (text, code, audio codecs) and continuous manifolds (diffusion images, video).
  • Fill-in-the-Middle (FIM) training is critical for code generation to allow bidirectional conditioning in software IDEs.
  • Vision-Language Models (VLMs) project image patches directly into the LLM token space, creating unified multimodal reasoning engines.

Explore Related Tools

Hand-picked utilities and calculators related to this tool.

Related Tools