Out Of Distribution Detection¶
Core Idea¶
Before issuing a verdict, recognise that the current input lies outside the competence region the system was calibrated for, and route it onto a deferral path — the defining invariant being a coupled scope-judgement architecture in which the same artefact that answers also assesses whether the question is within its remit.
How would you explain it like I'm…
Not My Pool
Know When To Pass
Knowing When You're Out Of Scope
Broad Use¶
- Machine learning: energy scores, Mahalanobis distance, open-set recognition, and selective prediction with reject options.
- Medicine: a generalist recognising "this is outside my scope" and referring to a specialist; triage gates.
- Law: courts dismissing cases for lack of jurisdiction or standing, routing them to a competent forum.
- Engineering: flight envelopes and calibration ranges, where an out-of-range reading is reported as such.
- Immunology: self/non-self discrimination as an in/out-of-distribution check before mounting a response.
- Finance: credit models declining to score applicants from untrained populations.
- Software: precondition and design-by-contract checks that throw on out-of-contract inputs.
Clarity¶
Forces a system to declare its competence region, and separates a failure of the answer (in scope, decided wrongly) from a failure of the scope check (a case answered that should have been deferred) — two failures with different fixes.
Manages Complexity¶
Compresses a wide failure family — hallucination on novel inputs, jurisdiction overreach, mis-triaged patients — into one architectural question, then sorts intervention into four moves: widen competence, sharpen the detector, build the deferral path, audit miss rates.
Abstract Reasoning¶
Treats the competence-region geometry as a first-class object and isolates the cost structure into false positives (over-deferral collapses throughput) versus false negatives (silent overreach).
Knowledge Transfer¶
- Medicine → ML: emergency-triage "stay in lane, refer up" ported wholesale into safety-critical machine learning.
- Law → AI governance: jurisdictional doctrine becomes declaring a model's operating envelope and refusing cases outside it.
- Immunology → security: the self/non-self check informed early intrusion- and fraud-detection.
Example¶
A chest-X-ray classifier trained on adults is deployed at a paediatric clinic and confidently mis-diagnoses until a retrofit OOD detector flags those inputs and routes them to a human radiologist — in-distribution performance unchanged, the silent failure converted into a referral.
Not to Be Confused With¶
- Out Of Distribution Detection is not Calibration because it recognises departure from the competence region, whereas calibration tunes confidence inside it and is blind to novel cases; a perfectly calibrated model is still confidently wrong out of scope.
- Out Of Distribution Detection is not Authority Delegation Under Uncertainty because it is the prior scope check (recognising the input is out of competence), whereas delegation is one possible deferral path (deciding who answers) downstream of it.
- Out Of Distribution Detection is not Screening because it sorts by a meta-property (whether the case is judgeable at all) to decide whether to act, whereas screening sorts by a target property to decide how to act.