Term
softmax
Meaning
A normalisation that exponentiates each value in a set and divides by the sum of those exponentials, so the outputs are positive and sum to one. It turns a vector of scores into a discrete distribution over its entries.
Source Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images
How papers use it 13 papers
Attention Gated Networks: Learning to Leverage Salient Regions in Medical Images
Use Discussed as an alternative normalisation for the attention coefficients. The authors note that prior captioning and classification work normalises attention with softmax, but that softmax can make the output sparse. In their experiments, using softmax as the activation tended to produce sparse maps that were overly sensitive to local intensity changes, which is a concern for low-quality ultrasound images. Their segmentation gates use sigmoid instead.
Towards Evaluating the Robustness of Neural Networks
Use The output layer of the networks studied, so that F(x) = softmax(Z(x)) gives the class probabilities and the predicted label is the index of the largest probability. Defensive distillation modifies it by adding a temperature constant that divides the logits. The paper notes that a high temperature produces a softer maximum and a low temperature a harder one.
Meaning A function that turns a vector of real-valued scores into a probability distribution. Each output is positive and the outputs sum to one, and the largest score receives the largest probability.
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
Use Written as f(x) divided by ℓ(x), where m(x) is the maximum entry, f(x) holds the exponentials of the shifted entries, and ℓ(x) is their sum. FlashAttention evaluates it one block of columns at a time by keeping a running maximum and running normalizer. When a new block arrives, the earlier partial sums are rescaled by exponentials of the difference between the old and new maxima, so the exact softmax is recovered without holding the full row.
Meaning A normalization function that turns a vector of scores into positive weights that sum to one. Each entry is exponentiated and divided by the total of the exponentials, and subtracting the maximum entry first keeps the computation numerically stable.
PCT: Point cloud transformer
Use In self-attention, the scaled query-key dot-product scores are normalized with softmax to give the attention weights that combine the value vectors. In offset-attention the paper changes this step: softmax is applied along the first dimension of the attention matrix, followed by an l1-norm along the second dimension.
Meaning A normalization function that exponentiates a set of scores and divides each one by the sum of the exponentials over a chosen axis. The outputs are positive and sum to one along that axis.
Bag of Tricks for Efficient Text Classification
Use Applied to the output of the fastText linear classifier to produce a probability distribution over the predefined classes. Training minimizes the negative log-likelihood of the correct label under this distribution, averaged over the training documents.
Meaning A function that converts a vector of real-valued scores into a probability distribution, with each entry positive and the entries summing to one. It is commonly used as the output layer of a classifier to assign probabilities to a fixed set of classes.
Neural Articulated Radiance Field
Use Merges part estimates in NARFP with temperature tau and normalizes the selector outputs in NARFD.
Meaning A normalized exponential that turns real scores into positive weights that sum to one.
Sequence to Sequence Learning with Neural Networks
Use Computes the probability of each next word at every decoder step, over the full output vocabulary of 80,000 words. The authors use a naive, full softmax rather than an approximation. In the eight-GPU implementation, the four GPUs that are not running LSTM layers were used to parallelize this softmax computation, with each responsible for a large output projection matrix.
Meaning A function that converts a vector of real-valued scores into a probability distribution in which every entry is positive and the entries sum to one, typically used to produce a distribution over a vocabulary.
Calibrate Once, Grow the Vocabulary: Candidate-Independent Scores for Conformal Risk Control in Open-Vocabulary Segmentation
Use In FC-CLIP, the scores are normalised with a softmax over the requested vocabulary, so a label's score changes when other names are added. This dependence is one cause of the risk shift after vocabulary growth, and the paper notes that set constructions normalised over the vocabulary stay candidate-dependent even with anchored scores.
Meaning A normalisation that turns a vector of scores into a distribution by exponentiating each score and dividing by the sum over all entries. Because the denominator sums over every entry, each normalised value depends on the other entries.
Natural Language Processing (almost) from Scratch
Use Converts the network's per-tag scores for a word into conditional tag probabilities over all tags, which is the basis of the word-level log-likelihood training criterion.
Meaning A function that maps a vector of real scores to a probability distribution. Each score is exponentiated and divided by the sum of all exponentiated scores, so the outputs are positive and sum to one.
A Critical Review of Recurrent Neural Networks for Sequence Learning
Use Applied at the output layer of K nodes for multiclass classification, where each output \(\hat{y}_k\) is \(e^{a_k}\) divided by the sum of \(e^{a_{k'}}\) over \(k'=1\) to \(K\). The denominator is the normalizing term that makes all outputs add up to one.
Meaning An output nonlinearity that converts a vector of incoming activations into positive values that sum to one, by exponentiating each activation and dividing it by the sum of all the exponentials. It is used to turn the output layer into a probability distribution over classes.
Activation Functions: Comparison of trends in Practice and Research for Deep Learning
Use In Table I it is the output activation of most listed architectures.
Meaning A function that turns a vector of real numbers into a probability distribution over classes.
Brain Tumor Segmentation with Deep Neural Networks
Use Used in the convolutional output layer, which has one kernel per segmentation label, to turn the per-pixel responses into a distribution over the five labels. Each pixel is assigned the label with the largest probability. Replacing the fully connected output with this convolutional layer is what makes whole-brain prediction faster at test time.
Meaning A normalization function that maps a vector of scores to a probability distribution. Each score is exponentiated and divided by the sum of all exponentiated scores, so the outputs are positive and sum to one.
Graph Attention Networks
Use Normalizes the attention scores e_ij over the neighborhood of node i, so the resulting coefficients alpha_ij can be compared across nodes (u014). The same function is used as the output activation for the transductive classifier (u031).
Meaning A function that turns a vector of scores into positive values that sum to one, by exponentiating each score and dividing by the sum of the exponentials over a set of candidates.