the.ai

Optimization / Objectives

verified

Loss Function

Training needs a single number saying how wrong the model currently is. The loss function produces it. Everything else — gradients, updates, the entire training run — is machinery for pushing that number down, so the choice of what it measures is the choice of what the model becomes good at.

Viz primitive · loss-curvesteps = 1000 · lr = 0.001
loss
step 01000

Loss over 1000 training steps, starting near 6.0. It falls to about 2.13, with 88% of the total improvement arriving in the first half.

Loss against training step, falling fast and then slowly — most of the total improvement arrives in the first fraction of the run.

Reviewed by opendroid · 2026-08-04

  • arXiv:1611.03530 — Understanding deep learning requires rethinking generalization