Softmax Sunday

Slow weekend notes on machine learning.

Why temperature is not creativity

Scaling logits before the softmax changes how peaked the distribution is, not what the model knows. A few notes on what actually changes when you turn the dial, and why sampling at zero is not the same as being right.

Attention, read slowly

Working through scaled dot-product attention by hand on a three-token example. The square root in the denominator finally made sense once I tried it without one.

Embeddings I keep coming back to

Nearest-neighbour search over sentence embeddings is still the most useful trick I know. Some small experiments with cosine similarity and where it quietly fails.