Five Scores for Spotting Out-of-Distribution Inputs: MSP, Energy, Mahalanobis, kNN, ViM

This follow-up post examines five post-hoc scores used to detect out-of-distribution inputs in frozen classifiers. The scores fall into logit-space methods (MSP and Energy), feature-space methods (Mahalanobis and kNN), and a hybrid (ViM) that combines both. MSP, the top softmax probability, serves as the standard baseline but cannot tell whether an input fits any known class at all. Energy uses raw logits instead of normalised probabilities, retaining overall magnitude, and separates familiar from strange inputs more cleanly at no extra compute cost. The author argues that when a score fails, it often does so because of where it looks inside the model rather than because of a bug.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in