skylabsmall lessons. big ideas.

General · LESSON 28 OF 33 · 1 min

Start slow, speed up, slow down.

0:00 / 0:49

About this lesson

Start slow, speed up, slow down. — a video lesson in attention is all you need. Learn attention is all you need through short video lessons.

Continue in the reels feed ↓

Video transcript

You said the step size comes next. Should it just stay the same the whole time?

The paper changes it. The learning rate climbs linearly for four thousand steps, then falls slowly, like one over the square root of the step.

Why start slow? At the start the model knows nothing, so I'd want big steps.

Right. Early on, the gradients are noisy and unreliable. Warmup avoids a bad first leap. Then we speed up, and later slow down to settle gently near the lowest point.

So warmup is caution, and decay is precision. Got it. Anything else in training?

Three quick ones. Adam is the optimizer that adapts each step. Dropout randomly switches off pieces to prevent memorizing. Label smoothing softens the right answer a little to avoid overconfidence.