Sharper at Half the Temperature

TransformersMedium+20 XP+20

Sharper at Half the Temperature

A decoder-only model is continuing the text The sky is. For this problem its whole vocabulary is four tokens, and the scores it produces for them are

tokenscore zzz
blue2.02.02.0
clear1.21.21.2
dark0.40.40.4
green0.00.00.0

Sampling with temperature TTT divides every score by TTT before the softmax turns the scores into probabilities:

pi=ezi/T∑jezj/Tp_i = \frac{e^{z_i / T}}{\sum_j e^{z_j / T}}pi​=∑j​ezj​/Tezi​/T​

The model itself is untouched — the four scores above are the same at every temperature. Only TTT moves.

With T=0.5T = 0.5T=0.5, what probability does the model assign to blue?

Round your answer to 3 decimal places, and carry at least four decimals through the intermediate steps.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.