loss function
A rule that turns one bad guess into a single number measuring how far off it was, where lower is better.
If the model says a house costs $300k but it really costs $500k, the loss turns that $200k miss into a single 'how bad was it' number. Training tries to shrink that number, and different tasks use different loss rules (a price guess might score the gap squared; a yes/no guess scores it a different way).
See it in Ch 00→forward pass
Running an example through the model from start to finish to get a guess, which is really just a chain of multiply-and-add steps.
The input walks in the front door: multiply it by weights, add the biases, bend the result with an activation function, multiply by more weights, add more biases, and so on until a final number, the prediction, pops out the back.
See it in Ch 09→backpropagation
A calculation that works backward from the mistake to figure out how much each weight and bias was to blame for it.
After a bad guess you start at the end with the loss and retrace your steps backward through the model, asking each number 'if I nudged you a hair, how much would the mistake change?' Those answers are exactly the nudge-amounts you'll use to fix the numbers.
See it in Ch 00→gradient descent
The core routine of training: check which way is downhill, take a small step, and repeat until the guesses are good.
You're on a mountain in fog. Feel the slope, take one step downhill, feel again, step again, keep going until you reach the valley floor.
See it in Ch 00→learning rate
How big an adjustment the model makes to its numbers each time, after the gradient tells it which way to go.
It's your stride size walking downhill. With a small rate like 0.01 you inch along cautiously; with a big rate you take huge leaps and can overshoot the bottom and stumble up the far side. You usually pick a value, try it, and adjust.
See it in Ch 04→batch
A small group of examples the model looks at together before making one adjustment to its numbers.
Instead of tweaking after every single house, you look at 32 houses at once, average out their lessons, and make one smarter tweak. Averaging a handful smooths out flukes and is faster than reacting to each example alone.
See it in Ch 00→epoch
One full trip through every example in your training set.
If your study pile has 10,000 cards and you go through all of them once, that's one epoch. Models usually need many trips before things click.
See it in Ch 00→hyperparameter
A setting you pick yourself before training starts, like the learning rate, batch size, or number of layers, which the model does not learn on its own.
Unlike the weights and biases the model figures out during training, these are your choices, like the oven temperature you dial in before baking. You usually try a few values and keep whichever does best on your validation set.
See it in Ch 01→convergence
The point where the wrongness score stops dropping and levels off, so more training doesn't help.
You train and the loss falls, falls, falls, then flatlines. Extra epochs don't shrink it any further. You've walked to the flat valley floor. (It doesn't mean the loss hit zero, just that it stopped improving.)
See it in Ch 04→fine-tuning
Taking a model that already learned a lot of general skills and training it a bit more on your own specific data.
Like hiring an experienced cook and just teaching them your restaurant's recipes rather than starting from scratch. It's fast and works well because the model reuses what it already knows and only adjusts slightly for your task.
See it in Ch 11→gradient clipping
Putting a cap on how big a single training adjustment can be so one wild step doesn't wreck progress.
A speed limiter on a car: you can press the gas as hard as you like, but it refuses to go past a safe limit.
See it in Ch 10→weight initialization
Choosing the starting values for a model's weights before any learning happens.
Filling a bucket to just the right starting level so it neither overflows nor sits empty as you keep pouring, a good start makes everything after it smoother.
See it in Ch 10→vanishing gradient
When the learning signal fades to almost nothing as it travels back through a deep model, so the early layers barely change.
A game of telephone down a line of 50 people: the message gets fainter at each hand-off, until the people at the front receive only a garbled whisper and learn almost nothing.
See it in Ch 11→exploding gradient
When the learning signal grows wildly as it travels back through a deep model, becoming so huge it breaks training.
A microphone held up to its own speaker: the sound feeds back and screeches louder and louder, except here it's a number ballooning a thousand times too big to use.
See it in Ch 11→learning-rate schedule
A plan for changing the step size during training, usually shrinking it over time.
Turning a speaker loud at the start of a song to grab attention, then easing the volume down as it winds to a close.
See it in Ch 11→warmup
Starting training with tiny steps that grow for a little while before the main plan kicks in.
Starting a car on a cold morning: you let it idle and warm up before you rev the engine hard.
See it in Ch 11→cosine annealing
Slowly easing the step size down along a smooth curve until it's nearly zero by the end.
A ball rolling down a gently curving ramp: fast at first, then coasting more and more slowly as it nears the bottom.
See it in Ch 11→weight decay
Gently nudging a model's weights toward smaller values to keep the model simpler and less likely to overfit.
A small tax on big weights: you still want good predictions, but oversized weights cost you, so you naturally settle on smaller, simpler ones.
See it in Ch 11→label smoothing
Softening the training answers so 'definitely a cat' becomes 'almost certainly a cat, but not 100 percent.'
Instead of insisting 'this is absolutely a cat and could never be anything else,' you allow a sliver of doubt, which keeps the model humble.
See it in Ch 11→linear probe
Freezing a pretrained model and training only a small new piece on top to read out what it already knows.
Buying a camera you don't take apart, and just clipping on a custom viewfinder, cheap, fast, and works if the lens already sees what you need.
See it in Ch 11→LoRA
A cheap way to fine-tune by training small add-on pieces while leaving the big original model frozen.
Instead of rewiring the whole house, you add a small control panel that tweaks the existing wiring, light, and easy to undo.
See it in Ch 11→knowledge distillation
Training a small model to copy the behavior of a big one, learning from its nuanced answers rather than just right-or-wrong labels.
A master chef teaching a student by letting them taste the dishes and reverse-engineer the recipe, not just handing over a list of dish names.
See it in Ch 11→data augmentation
Making extra training examples by tweaking the ones you have, flipping, cropping, or rotating images.
You have 1,000 cat photos, so you flip and slightly rotate each one to get thousands more, all still clearly cats.
See it in Ch 12→teacher forcing
During training, feeding a sequence model the correct previous answer instead of its own guess so it learns faster.
Teaching someone a sentence by handing them the right next word to repeat, rather than letting one wrong guess snowball into the next.
See it in Ch 13→exposure bias
The gap where a model trains on correct previous answers but at run time must lean on its own guesses, so an early slip cascades.
Learning to write with a dictionary always open, then taking a test with none: one wrong word at the start throws off every word after it.
See it in Ch 14→contrastive learning
Training where the model is shown pairs and made to keep similar things looking alike inside while pushing unlike things far apart.
A teacher holding up examples: 'these two are cats, keep their inner descriptions nearly the same; this dog is different, send it far away', the model learns by comparing.
See it in Ch 16→