Greek letters

softmax⁡(z/τ)\operatorname{softmax}(z / \tau) Tau

A temperature that sharpens or flattens a softmax; in RL, a trajectory.

In ML papers

As a temperature, τ\tau divides logits before a softmax: τ<1\tau < 1 makes the distribution sharper, τ>1\tau > 1 flatter. Contrastive losses (InfoNCE, CLIP) and distillation use it.

In reinforcement learning, τ=(s0,a0,r0,s1,…)\tau = (s_0, a_0, r_0, s_1, \ldots) is a trajectory, and in target-network updates τ\tau is the soft-update rate.

How to type it

LaTeXShows
\tauτ\tau

A worked example

softmax⁡(2,0)=(0.88,0.12),softmax⁡((2,0)0.5)=(0.98,0.02)\operatorname{softmax}(2, 0) = (0.88, 0.12), \quad \operatorname{softmax}\left(\tfrac{(2, 0)}{0.5}\right) = (0.98, 0.02)

Halving the temperature makes the larger logit win more decisively.

Equations that use it

Related

softmax⁡(z)i=ezi∑jezj\operatorname{softmax}(\mathbf{z})_i = \frac{e^{z_i}}{\sum_j e^{z_j}}Softmaxab\frac{a}{b}Fraction

Decode this example →