Spotting the Unfamiliar: Out-of-Distribution Detection with Uncertainty
Models fail most dangerously on inputs they've never seen. Epistemic uncertainty flags those out-of-distribution cases in real time — so the system can escalate, abstain, or adapt.

Every deployed model eventually meets an input unlike anything it saw in training — a new kind of object on the road, a sensor glitch, a document in an unexpected format, a user who phrases things in a way the training data never captured. These out-of-distribution (OOD) inputs are where models fail most dangerously, because a standard model doesn’t slow down or signal trouble. It produces an answer with the same outward confidence it shows on familiar data — it just happens to be wrong.
The reason is that most models have no notion of “I haven’t seen this before.” A classifier’s softmax still sums to one; a regressor still emits a number. What’s missing is epistemic uncertainty — the model’s uncertainty about its own knowledge, which should spike precisely when an input falls outside what it learned.
Estimating that signal well is the hard part, and there’s no single right answer. The toolbox spans deep ensembles, Monte-Carlo dropout, evidential and last-layer methods, and more — each with its own trade-offs in cost, fidelity, and the kind of uncertainty it captures, and the research is still moving quickly. Rather than bet on one technique, Capsa supports a range of methods — including newer approaches and combinations of them — and selects or composes the ones that suit a given model, so you get a dependable epistemic signal cheaply enough to run on every prediction, in real time.
Once you have that signal, OOD detection becomes a risk policy rather than a separate system:
- Escalate — when an input is unfamiliar, route it to a human, a fallback model, or a safe default instead of trusting the guess. In a perception system that might mean handing back control; in a data pipeline, flagging the record for review.
- Abstain — for high-stakes decisions, simply decline to act on inputs the model doesn’t recognize.
- Adapt — unfamiliar inputs are also the most valuable training data; logging and labeling them is the fastest way to close the gaps the model just revealed.
The same signal does double duty as drift detection: when the share of high-uncertainty inputs climbs over time, the world has moved away from your training distribution — a cue to retrain before accuracy quietly degrades.
The shift, again, is from a model that fails silently to one that raises its hand. Knowing when an input is unfamiliar is often more important than the prediction itself — it’s the difference between a confident wrong answer and a system that knows to ask for help.
Capsa adds this uncertainty layer to existing models. Read the docs, or request access to try it on your own models.