
What happened
The tutorial runs Softmax on logits (2, 1, 0.1), getting probabilities 0.659, 0.242 and 0.099, and PyTorch outputs 0.6590, 0.2424, 0.0986.
Why it matters
Because outputs stay positive and sum to 1, they can be treated as a probability distribution, and adding the same constant to every logit leaves results unchanged.
Ask the AI about this article. Questions and answers are published on this page
The post builds from a familiar puzzle: a function that turns raw model scores into probabilities is easy to use but harder to justify. Working through three logits by hand — exponentiating, summing to 11.212 and dividing — shows the two properties that make the output a probability distribution, all values above zero and a total of 1.
The more interesting step is the ratio between two tokens' probabilities, which reduces to e raised to the difference of their logits. That reframes Softmax as a converter of logit gaps into odds rather than a simple normalizer, and it explains why a gap of 1 lands at roughly 2.72x.
That same ratio view carries over to Temperature, which divides logits before the exponential and therefore sharpens or softens the gaps. The constant-shift demonstration, mirrored in a short PyTorch run, reinforces the takeaway that absolute logit values matter less than their differences. The author closes by pointing to Cross Entropy as the next topic.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Sabi unveiled Brain-LLM, which it claims reads electrical brain activity and extracts additional concepts abou…

Todoonada, developer of PR measurement service Qlipper and pre-training check tool ディギディギ, will host a free Zo…

In a December 2 blog post, Proofpoint laid out its 2027 cybersecurity predictions, with Japan Proofpoint chief…

Japan AMD will hold "AMD FAN FES – Team AMD 集結祭 2026 in UENO –" on December 12 at esports Style UENO in Ueno…

Alibaba released Qwen4-35B-A3B, a 35B-parameter MoE with 3B active parameters, 1M-token context and an Apache…

From 2024 to 2025, LLM improvement was led by post-training and test-time scaling while pre-training stalled;…
