mlgenerate.comVisual Generative ML
Interactive Visual Encyclopedia for Generative AI

How Modern Generative Models Actually Train & Run on Hardware

Understand the complete generative landscape: from Autoregressive LLM single-token memory bandwidth stalls, to Diffusion Language Models (MDLM & Next-Concept Modeling), continuous Score Diffusion (DDPM/DiT), and straight-line Flow Matching. Visualized with step-by-step mathematical formulations, GPU execution profiles, and PyTorch pseudocode.

Taxonomy & Algorithm Encyclopedia

Explore generative models by their high-level mathematical formulation or data modality.

High Category / Generative Family

Autoregressive / Next-Token Prediction

Decomposes sequence generation into T serial forward passes via the chain rule P(x) = ∏ P(x_t | x_<t). Powers standard LLMs (GPT-4, Llama 3) but suffers from memory-bandwidth bottlenecks during single-token decoding.

3 Models Registered
Mathematical Foundation:
P(x_1, \dots, x_T) = \prod_{t=1}^T P(x_t \mid x_{<t}; \theta)
Hardware Execution Profile:

Memory-bandwidth bound during single-token decode (reads all weights from HBM to SRAM for 1 token). Compute-bound during multi-token prompt prefill.

High Category / Generative Family

Diffusion & Non-Autoregressive Language Models

Modern non-autoregressive language models that eliminate the sequential decode bottleneck. Includes Discrete Masked Diffusion (MDLM, Plaid, SEDD) which iteratively unmasks tokens with bidirectional context, and Next-Concept Modeling (NCM) which diffuses continuous concept representations rather than individual discrete tokens.

2 Models Registered
Mathematical Foundation:
q(x_t \mid x_0) \text{ [absorbing markov chain]} \quad \longleftrightarrow \quad z \in \mathbb{R}^{d_{\text{concept}}} \sim p(z) \to \text{Decode}(z)
Hardware Execution Profile:

Compute-bound parallel GEMMs per step across the whole sequence. Eliminates single-token KV-cache thrashing and maximizes GPU Tensor Core occupancy.

High Category / Generative Family

Continuous Score-Based Diffusion

Forward Gaussian noise perturbation inverted step-by-step via neural score functions estimating ∇_x log p_t(x). Powers foundational visual and audio synthesis (DDPM, DiT, EDM).

2 Models Registered
Mathematical Foundation:
dx = [f(x, t) - g(t)^2 \nabla_x \log p_t(x)] dt + g(t) d\bar{w}
Hardware Execution Profile:

Compute-bound Tensor Core execution on 2D/3D patch grids. High arithmetic intensity (>100 FLOPs/Byte) with AdaLN condition parameter modulation.

High Category / Generative Family

Continuous Flow Matching & Optimal Transport

Directly regresses a velocity vector field v_θ(x_t, t) along linear interpolation paths between Gaussian noise and data. Powers state-of-the-art visual models like Stable Diffusion 3 and Flux.1.

2 Models Registered
Mathematical Foundation:
\frac{d x_t}{dt} = v_\theta(x_t, t), \quad x_t = (1-t)x_0 + t x_1
Hardware Execution Profile:

Deterministic straight ODE trajectories require 2-4x fewer steps than curved diffusion SDEs. High Tensor Core utilization with zero RNG noise overhead at inference.

High Category / Generative Family

Hierarchical Residual Vector Quantization (RVQ)

Compresses dense continuous sequences (24kHz audio waveforms or high-res images) into L discrete codebook levels. Models generate coarse global structure first, then refine details in parallel across residual levels.

2 Models Registered
Mathematical Foundation:
x \approx \sum_{l=1}^L e_l(q_l), \quad r_l = r_{l-1} - e_l(q_l)
Hardware Execution Profile:

Bounded fixed depth L ≪ T steps. High memory efficiency with parallel cross-entropy decoding within each codebook depth level.

The Generative Paradigm Race

Why are labs moving away from pure autoregressive left-to-right generation? Compare Autoregressive LLMs, Next-Concept Modeling (NCM), Masked Discrete Diffusion, and Continuous Flow Matching side-by-side to understand trade-offs in inference passes, compute, and parallelizability.

Launch Paradigm Arena