Softmax
Category: Neural Networks & Architectures
A function that converts a vector of real numbers into a probability distribution, commonly used as the output layer for multi-class classification.
Full Explanation
Softmax transforms a vector of K real-valued scores (logits) into a probability distribution over K classes, where each value is between 0 and 1 and the values sum to 1. Each output is computed as the exponential of its input divided by the sum of exponentials of all inputs. Softmax is the standard output activation for multi-class classification networks, paired with cross-entropy loss. A temperature parameter can control the "sharpness" of the distribution: lower temperatures make the distribution more peaked, while higher temperatures make it more uniform. Softmax is also a core component of the attention mechanism in transformers, where it converts attention scores into weights. The function is differentiable, enabling end-to-end training through backpropagation.
Related Terms
More in Neural Networks & Architectures
Explore More
- AI Tools Library — Discover AI tools related to Softmax
- AI Education — Courses to learn about Neural Networks & Architectures
- AI News — Latest news and updates