A neural network logit is a real-valued class score produced before a probability transformation such as the softmax function. The vector of scores determines the class probabilities jointly; an isolated score is not itself a probability. Negative scores and scores larger than one are permitted.[ref]
On Calibration of Modern Neural Networks by Chuan Guo and others. §4.2, paragraph before Eq. (8), logits before the softmax layer
For scores , the softmax function givesAdding one common scalar to every coordinate leaves all probabilities unchanged:Consequently the absolute offset of a logit vector cannot be recovered from these probabilities.
For example, scores and both give first-class probability . The difference between the two scores, rather than the first coordinate alone, determines this binary probability. Indeed,This connects the binary score difference with the logit link function. It does not make every coordinate of a multiclass score vector a separately defined binary log-odds.
A common shift also differs from rescaling. Dividing by two gives and first-class probability . This is the transformation used in temperature scaling with temperature two. Positive scaling preserves the selected class within an example while changing confidence.[ref]
When interpreting a neural network logit, state its score vector and probability transformation. Comparing raw coordinates from independently shifted parameterizations can otherwise suggest a confidence change where the actual probability vector is identical.
Articles by others on the same topic
There are currently no matching articles.