Skip to content
VibeFormer
Beginner7 min

The Prerequisite Map

A dependency graph of every module, so you always know what a lesson assumes before you open it.

The Prerequisite Map

Intuition first

The curriculum is a directed graph, not a list. Some modules genuinely must come before others — backpropagation needs the multivariable chain rule, RAG needs embeddings, GraphRAG needs knowledge graphs. Others are independent and can be taken in any order.

Knowing the shape of that graph is worth more than any recommended sequence, because it tells you the minimum you need for whatever you actually want to learn. Most people do not want to study the whole curriculum; they want one topic, and need to know what it costs.

The graph is also enforced rather than advisory. A build-time check fails if any lesson lists a prerequisite that appears later in the ordering. When that check was first run it caught four real mistakes, which is a fair indication of how easy this is to get wrong by hand.

The stage-level picture

MathematicsLA · calculus · prob · statsComputingPython · DSA · SQLOptimisation · Game theoryLP · duality · NashLogicprop · FOL · SOLClassical AIsearch · Bayes netsMachine Learningfoundations · supervised · unsupervisedDeep Learning · Reinforcement Learningbackprop · CNN · RNN · MDP · PPONLP · LLMs · Fine-tuning · RAGGraph MLTime series · MLOps
Module dependencies at stage level. Arrows point from prerequisite to dependent. The mathematics block feeds everything; language models and graph ML both require deep learning.

What each module actually requires

ModuleHard prerequisites
Linear AlgebraNone
Calculus & OptimisationNone
ProbabilityCounting (within the module)
StatisticsProbability through the CLT
Programming & DSANone
Databases & WarehousingNone
Visualisation & EDADescriptive statistics
Optimisation AlgorithmsLinear algebra, calculus, some probability
Game TheoryProbability (expectation), LP duality
LogicNone
Classical AILogic, probability, graph traversal
ML FoundationsProbability, statistics, linear algebra
Supervised LearningML foundations, least squares, MLE
Unsupervised LearningEigenvalues, multivariate normal
Deep LearningMultivariable chain rule, ML foundations
Reinforcement LearningMarkov chains, deep learning (from DQN onward)
NLPDeep learning, probability
LLMsNLP transformer lessons
Fine-tuningLLMs, SVD (for LoRA)
RAGLLMs, TF-IDF, graph ML (for GraphRAG)
Graph MLLaplacian, word2vec, attention
Time SeriesStatistics, regression, LSTM (for the deep lessons)
MLOps & Responsible AIML foundations, metrics

Three worked routes

"I want to build a RAG system."

embeddingsTF-IDFattentiontransformerLLM basicsRAG\text{embeddings} \to \text{TF-IDF} \to \text{attention} \to \text{transformer} \to \text{LLM basics} \to \text{RAG}

You can skip most of classical ML, all of reinforcement learning, and the logic module. You cannot skip cosine similarity, the transformer, or the evaluation lessons — retrieval quality is measured with recall@k, MRR and NDCG, and getting those wrong is the usual reason a RAG system seems fine and is not.

"I want to understand transformers properly."

linear algebrachain rulebackpropRNNseq2seqattentiontransformer\text{linear algebra} \to \text{chain rule} \to \text{backprop} \to \text{RNN} \to \text{seq2seq} \to \text{attention} \to \text{transformer}

Roughly ten lessons. Attempting the transformer lesson without backpropagation is the single most common way people end up with a vague picture that collapses under questioning.

"I want to pass a graduate entrance exam."

Everything in the mathematics and computing stages, plus logic, classical AI, and the full machine learning progression. That is the Researcher track, and the Practice Vault is built for it.

Cycles that are not cycles

Some pairs look mutually dependent and are not, because the dependency is between lessons rather than modules:

  • Graph ML needs NLP (node2vec builds on word2vec, GAT on attention) and RAG needs Graph ML (GraphRAG needs knowledge graphs). So the order is NLP → LLMs → Graph ML → RAG, and there is no cycle.
  • RL needs deep learning for DQN onward, but the tabular half needs only Markov chains. The module sits after deep learning so the whole thing reads in order.
  • Optimisation needs probability for stochastic and Bayesian optimisation, but LP and simplex need only linear algebra.

Exercise 1

You want to understand why LoRA works. Trace the prerequisite chain and identify the one piece of mathematics that is genuinely essential.

Show solution

The chain runs roughly:

LoRAPEFT taxonomycatastrophic forgettingfull fine-tuningprompt/RAG/fine-tuneLLM basics\text{LoRA} \to \text{PEFT taxonomy} \to \text{catastrophic forgetting} \to \text{full fine-tuning} \to \text{prompt/RAG/fine-tune} \to \text{LLM basics}

and separately, the mathematical branch:

LoRAsingular value decompositiondiagonalisationeigenvaluesdeterminants\text{LoRA} \to \text{singular value decomposition} \to \text{diagonalisation} \to \text{eigenvalues} \to \text{determinants}

The essential piece is the SVD, specifically the idea of low-rank approximation and the Eckart–Young theorem. LoRA's claim is that the weight update during fine-tuning has low intrinsic rank, so it can be written as BABA with BRd×rB \in \mathbb{R}^{d\times r} and ARr×kA \in \mathbb{R}^{r\times k} for small rr, reducing trainable parameters from dkdk to r(d+k)r(d+k).

Without the SVD, "low-rank adaptation" is a phrase you can repeat but not reason about — you would have no basis for choosing rr, no understanding of why merging the adapter at inference costs nothing, and no way to see why the method degrades when the true update is high-rank.

Everything else in the chain is context. The SVD is load-bearing.


Next: How to Actually Learn This Material.