How can predictive entropy be used to detect out-of-distribution inputs?

Quick Overview

Asks how the entropy of a classifier's predicted class distribution can flag out-of-distribution inputs. Tests thresholding on in-distribution data, softmax overconfidence, the split between aleatoric and epistemic uncertainty, and the use of ensembles or MC dropout.

How can predictive entropy be used to detect out-of-distribution inputs?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

A classifier outputs a probability distribution over $K$ classes for each input. How can the predictive entropy of that distribution be used to detect out-of-distribution (OOD) inputs, and what are the limits of this approach? ```hint Two reasons to be unsure A model can be unsure because the input is truly ambiguous, or because it has never seen anything like it. Ask whether one entropy number can tell those apart. ``` ```hint Setting the cutoff You usually have no OOD examples when you deploy. Think about which data you can use to pick the threshold. ``` ### What a Strong Answer Covers - The entropy score, its range from a confident to a uniform prediction, and how a threshold turns it into a detector - How the threshold is chosen on in-distribution data and how detection quality is measured - Why a single softmax model can stay confident on OOD inputs - The difference between aleatoric and epistemic uncertainty, and how ensembles or MC dropout separate them ### Follow-up Questions - Why do standard softmax classifiers often give confident predictions on inputs far from the training data? - How does predictive entropy compare with the maximum softmax probability or an energy score as an OOD signal? - If you had a small set of known OOD examples, how would you use them?

Overview: Asks how the entropy of a classifier's predicted class distribution can flag out-of-distribution inputs. Tests thresholding on in-distribution data, softmax overconfidence, the split between aleatoric and epistemic uncertainty, and the use of ensembles or MC dropout.

Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

A classifier outputs a probability distribution over KK classes for each input. How can the predictive entropy of that distribution be used to detect out-of-distribution (OOD) inputs, and what are the limits of this approach?

What a Strong Answer Covers Guidance

  • The entropy score, its range from a confident to a uniform prediction, and how a threshold turns it into a detector
  • How the threshold is chosen on in-distribution data and how detection quality is measured
  • Why a single softmax model can stay confident on OOD inputs
  • The difference between aleatoric and epistemic uncertainty, and how ensembles or MC dropout separate them

Follow-up Questions Guidance

  • Why do standard softmax classifiers often give confident predictions on inputs far from the training data?
  • How does predictive entropy compare with the maximum softmax probability or an energy score as an OOD signal?
  • If you had a small set of known OOD examples, how would you use them?