Skip to content
mentoor

Gradient descent

For engineers

How models learn by stepping downhill on a loss: loss functions, learning rates and schedules, optimizers such as AdamW and reading training curves

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

What is the gradient descent update rule for a weight w?

Choose one answer

Check yourself · 2 of 5

Which loss fits a model that predicts tomorrow's delivery time in minutes?

Choose one answer

Check yourself · 3 of 5

A loss curve reads 2.3, 2.1, 9.7, 410, NaN. What is the most likely cause?

Choose one answer

Check yourself · 4 of 5

What does Adam keep for every weight, besides the weight itself?

Choose one answer

Check yourself · 5 of 5

Training loss keeps falling, while validation loss fell until epoch 7 and has risen since. What is this called?

Choose one answer

Topics

  1. Gradient descent steps by hand4 min read · Computing the update rule, weight minus learning rate times gradient, on a one-parameter model to see learning happen
  2. Choosing a loss function for the task4 min read · Mean squared error, cross-entropy and what each one punishes, and why the loss you train on differs from the metric you report
  3. Learning rates, warmup and decay schedules5 min read · Rates that diverge, crawl or bounce, and the warmup and cosine decay schedules used to train modern models
  4. SGD, momentum and Adam optimizers5 min read · Mini-batch stochastic gradient descent, momentum, Adam and AdamW, the usual default for transformers, and the memory their state costs
  5. Reading loss and validation curves5 min read · Healthy, overfitting, diverging and plateaued runs, loss spikes and NaNs, gradient clipping and when to stop a run

Start here

110 questions · last verified 2026-12