1. The example

Prompt (the model reads this, no loss counted)
Extract these fields from the user's banking message: recipient, recipient_email, amount, date. Only copy information. Never invent names, emails, phone numbers or dates.
User: transfer $300 to priya.k@example.com
Correct answer (loss is counted on these tokens only). Click a value to inspect it.

The message names no one and gives no date, so those fields must be blank. That is the rule the untuned model has not learned.

Training progress

After

2. Prediction at the selected token

The model scores every possible next token. Training pushes up the score of the correct one and pushes down the wrong ones, in proportion to how wrong they are (prediction minus target).

3. Loss

0.00
average over all answer tokens

Loss for a token is −ln(probability of the correct token). A token at 4% costs 3.2; at 97% it costs 0.03.

These probabilities are illustrative, drawn to show the mechanics. They are not read from a real run. In the real runs the loss on the answer fell to about 0.01 in the catalog-order runs.