← All 44 Terms
1. LLM & Deep Learning Foundations
Read in Ch. 2: Training, Fine-Tuning & Adaptation →
Backpropagation & Gradient Descent
In One Sentence
The calculus engine that measures how much each weight contributed to a prediction error and nudges all weights slightly to reduce that error.
ELI5 (Intuition)
If a soup tastes too salty, you trace back through the recipe to figure out which step added too much salt, and next time you turn that knob down a tiny bit.
ELI18 (Technical)
Applies the reverse-mode chain rule to compute \(\nabla_\theta \mathcal{L}(\theta)\) for every parameter in one backward pass, then updates weights via an optimizer like AdamW: \[\theta_{t+1} = \theta_t - \eta \cdot \text{step}(\nabla_\theta \mathcal{L}).\]
In Practice
Training a 70B model runs this exact loop across trillions of tokens using mixed precision (
bf16), gradient accumulation, and cosine learning-rate schedules.