0 XP

Output logits · How good is the guess?

Marking the homework

Score it by what it gave the truth

At every step a model puts a probability on each token that could come next. Once you know which token actually did come next, there’s an obvious way to mark it: how much probability did it put on the right answer? Take the negative logarithm of that and you have the loss. Certain and right scores zero; confident and wrong is punished brutally.

The starting scores are illustrative, but the softmax, sampling, loss and perplexity are the real formulas, computed live. softmax