Generative AI roadmap
Field 12 of 14. Work through the steps in order: each one explains an idea, points you to one thing to read and gives you a problem to build.
- Steps
- 13
- Problems
- 13
- Learn first
- Computer Vision, NLP
- Leads to
- Agentic AI
Generative Models
Generative vs discriminative models
Discriminative models learn p(label | input) to classify; generative models learn p(input) so they can create new samples.
Concept · Easy · 1 problem
Autoencoders
Compress the input to a small code and reconstruct it. The bottleneck forces the model to learn what matters.
Build · Easy · 1 problem
Variational autoencoders
Make the code a distribution and keep it close to a standard Gaussian, so sampling the code space generates new data.
Build · Medium · 1 problem · case study
GANs
A generator makes fakes and a discriminator tries to spot them; they improve by competing. Sharp results but unstable training.
Build · Hard · 1 problem · case study
Diffusion models
Learn to remove noise one small step at a time; start from pure noise and denoise to generate. Stable training and high quality.
Build · Hard · 1 problem · case study
Large Language Models
Pretraining & scaling laws
LLMs are transformers trained to predict the next token on huge text. Loss falls predictably as a power law in parameters, data and compute.
Theorem · Medium · 1 problem · case study
Decoding & sampling
Greedy, beam search, temperature, top-k and top-p decide which token comes next. They trade accuracy for diversity.
Build · Easy · 1 problem
Prompting
Clear instructions, examples (few-shot), structured output and letting the model reason step by step change results dramatically without training.
Build · Easy · 1 problem · case study
Fine-tuning: SFT & LoRA
Supervised fine-tuning teaches format and behaviour from examples. LoRA trains small low-rank updates instead of all weights.
Build · Medium · 1 problem · case study
Alignment: RLHF & DPO
Collect human preferences between answers, train a reward model, and optimize the LLM toward it (RLHF with PPO), or optimize directly on preferences (DPO).
Concept · Hard · 1 problem · case study
Retrieval & Multimodal
Embeddings & RAG
Embed documents, retrieve the most relevant chunks for a question, and give them to the LLM so answers are grounded and citable.
Build · Medium · 1 problem
Multimodal models
Vision-language models take images and text together; speech models connect audio. One model, many input types.
Build · Medium · 1 problem
Evaluation & hallucination
LLMs produce fluent false statements. Evaluate with task-specific test sets, groundedness checks and human review, not vibes.
Concept · Medium · 1 problem
Capstone project
Chat-with-your-docs app with retrieval, citations and an evaluation set