The log-odds log(p/(1−p)), the inverse of the sigmoid; “logits” are the raw scores before a softmax.
In ML papers
logit(p)=log1−pp is the log-odds of a probability p. It maps (0,1) to all real numbers and undoes the sigmoid: σ(logit(p))=p.
In everyday ML usage, logits means something looser: the raw, unnormalized scores z a network outputs before the softmax (Softmax) or sigmoid. They can be any real numbers; only their differences matter to a softmax. Loss functions take logits directly because computing logsoftmax in one step is more stable.
How to type it
LaTeX
Shows
\operatorname{logit}(p)
logit(p)
A worked example
logit(0.8)=log0.20.8=log4≈1.386
And logit(0.5)=0: even odds.
Common confusions
"Logits" for a multi-class model are not the logit of anything in the strict sense; they are log-probabilities up to an added constant.