Uncertainty / Detection
verifiedOut-of-Distribution Detection
Before trusting a prediction, ask whether the input is the kind of thing the model was trained on at all. A digit classifier shown a photograph of a cat will confidently pick a digit — there is no output that means 'this is not my problem' unless someone builds one. Detection is that missing output, inferred from the model rather than asked of it.
The strongest baseline is embarrassingly simple: threshold the maximum softmax probability. Later methods rescale logits, fit a density in feature space, or train against an outlier set, and each beats the baseline on the benchmarks it was tuned on. The honest summary is that far-away inputs were never the hard part, and the methods separate mostly on how they handle inputs that are only slightly wrong.
Detection rate rises with distance from the training distribution and saturates: a photograph against a digit classifier is caught by anything, and the share of shifted inputs a detector catches climbs steeply for the first few units of distance and then hardly moves. The remaining cases sit close in — a new hospital's scanner, next year's slang, the same object under different lighting — and those are the ones a deployment meets, so a benchmark reporting only far-OOD numbers is measuring the easy half.
159 of 1000 flagged. 42% of them were right and 92 were false alarms; 34% of what should have been caught was, leaving 133 missed.
Detector scores for in-distribution inputs against shifted ones, with one cut through both. Drag the distance from the training distribution up to watch them pull apart — far out, anything works; the cases a deployment meets are at the left, inside the overlap.
Reviewed by opendroid · 2026-08-18
- arXiv:1610.02136 — A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networks
- arXiv:2110.11334 — Generalized Out-of-Distribution Detection: A Survey