Softmax at three temperatures
limit▲△△Compute for at , and . State what each result says about the temperature’s role, and name the two limits.
Hint
Divide before exponentiating, and subtract the largest entry of the scaled vector first. The three denominators are all you need.
Solution
τ = 1. Scaled scores . Subtract the maximum: , giving exponentials , , , and a denominator of .
τ = 0.5. Scaled scores . Shifted: , exponentials , , , denominator .
τ = 2. Scaled scores . Shifted: , exponentials , , , denominator .
Each row sums to .
What it says. Lowering multiplies every score gap by before exponentiating, so the distribution concentrates on the largest entry; raising shrinks the gaps toward zero and flattens it. The mass on the top token moves from to as falls from 2 to 0.5, on unchanged scores.
The two limits. As the distribution approaches ; as it approaches the uniform distribution over the three entries, . Neither limit is reached at any finite .