temperature T in softmax(x/T) controls entropy: T→0 is argmax, T→∞ is uniform

How does adjusting T affect the certainty of choices?

Image: Trondheim Havn from Trondheim, Norway, CC BY-SA 2.0, via Wikimedia Commons

temperature T in softmax(x/T) controls entropy: T→0 is argmax, T→∞ is uniform

How does adjusting T affect the certainty of choices?

Imagine you're choosing a meal from a menu, and you want to be sure about your choice.

If T is very small, you're almost sure to pick the best option, like a top chef's recommendation. But if T is very large, you're just picking randomly, like flipping a coin for each dish.

Example

With T=1, you might have a 70% chance of picking your favorite dish, but with T=100, it's like choosing blindly.

Remember this

Small T makes you confident in your choice, while large T makes it random.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath