θ←θ−η∇θL\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L}

Training

The process that sets a model's weights. It shows the model examples, measures how wrong it is with the loss, and nudges every weight to make the loss smaller. Repeated millions of times.

Each step runs a batch through the model (the forward pass), computes the loss, works out how the loss changes with each weight (backpropagation, section 2.5), and moves every weight a small step downhill. The step size is the learning rate η\eta.

Using a trained model without changing it is called inference. Sections 10.2 and 21.5 cover how large models are trained.

Example

w=0.50,  ∂L∂w=2.0,  η=0.1  ⟹  w←0.50−0.1⋅2.0=0.30w = 0.50,\; \frac{\partial \mathcal{L}}{\partial w} = 2.0,\; \eta = 0.1 \;\Longrightarrow\; w \leftarrow 0.50 - 0.1 \cdot 2.0 = 0.30

One weight, one step. The loss would rise if w grew, so w shrinks.

Where the course uses it

Related terms