Module 2 · Inside the block

Normalisation, and why training is fragile

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 7 of 10 in this chapter

This chapter’s goalImplement single-head attention from scratch in NumPy, explain which half of a block holds most of the parameters and which half moves information between positions, and predict how grouped-query attention, key-value caching and a mixture-of-experts design each change memory and speed.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The boring layer that decides whether training works

In the four-line block, norm looked like a detail worth skipping. For understanding what the model computes, it is. For understanding why training a large model is difficult, it is central.

The problem

Stack 80 blocks, each adding contributions to a running total, and the numbers in that total drift. If they grow, activations saturate and gradients explode; a single bad batch can send the loss to infinity and the run is dead. If they shrink, gradients vanish and the lower layers stop learning. Neither failure announces itself politely.

Normalisation rescales the vector at each position so its numbers sit in a predictable range before the next sublayer reads it.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Normalisation, and why training is fragile’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/normalisation-and-stability (Accessed: 29 November 2026).