Skip to content
← Blog

Out-of-Distribution Detection · Part 2 of 2

Combining OOD Scores: Why Two Detectors Can Be No Better Than One

Solomon Owusu-Ansah · · 4 min read · Also on dev.to

The previous post went through five OOD scores (MSP, Energy, ViM, Mahalanobis and kNN) and where each one reads a frozen model. The obvious next move is to combine them. If one score is useful, two should be better.

They are, but only if the two scores fail on different inputs. When they fail on the same ones, the combination inherits the blind spot, and no weighting or normalisation gets rid of it. I'll use CombOOD as the worked example.

How CombOOD combines two distances

CombOOD (Rajasekaran et al., SDM 2024) merges two distance-based scores into one confidence score:

  • Nearest-neighbour distance, the non-parametric signal: how far an input is from its closest training example in feature space, with no assumption about class shape.
  • Mahalanobis distance, the parametric signal: how far it is from the nearest class centre, scaled by the spread of the training features, assuming each class is roughly Gaussian.

One is flexible and the other is structured, so on paper they complement each other: each should catch what the other misses. CombOOD turns each distance into a confidence score using the log distribution of the distances and combines the two. The paper reports results above the previous state of the art on OpenOOD v1 and v1.5, on both the near-OOD and far-OOD splits.

Both scores read the same vector

Infographic: an input image feeds one feature vector z, which feeds both a kNN distance and a Mahalanobis distance, which feed a combined confidence score; if z puts the input near the familiar data, both distances say familiar together

Both signals come from the same feature vector z: same model, same layer, same input. The two distances read z differently, but it's the same z.

That's a single point of failure. If z puts a strange input near the familiar data, say a wolf landing next to the dog cluster, both distances call it familiar. The nearest neighbour is a dog and the nearest class centre is the dog centre. You get two measurements and one shared wrong answer.

CombOOD's pair differs in method (parametric vs non-parametric) but shares a point of view (the same z). Two scores only fail differently if they look at different things.

Looking at the failures instead of the scores

It gets clearer if you stop looking at the scores and look at what they miss.

Infographic: a Venn diagram of the OOD samples missed by kNN and the OOD samples missed by Mahalanobis; the non-overlapping parts are fixed by combining, the overlap missed by both cannot be fixed by any combination

Each circle is the set of OOD inputs one score misses. Combining can only fix the crescents, the inputs exactly one score misses. The overlap in the middle is out of reach for any fusion rule, because the information that would have flagged those inputs isn't in either signal.

So what you gain from combining depends on how little the failures overlap, not on how good each score is. Two strong scores that fail on the same inputs add nothing. Two weaker scores that fail on different inputs can beat both.

A method built the other way round

CORE (Yang, Kim & Bahk, 2026) builds the difference in deliberately. It splits the features into a part aligned with the classifier and an orthogonal residual, scores each separately and combines them. The two signals have a reported correlation of only r = 0.30–0.40, because the residual is by definition the part of the feature the classifier can't see. Structurally that's the opposite of CombOOD: two readings of two different parts of the feature instead of two readings of the same z.

CombOOD and CORE sit at opposite ends of the same question: whether the two signals can fail on different inputs. CombOOD's can only do that as far as two readings of one vector allow. CORE's are separated by construction.

A practical rule, and where it breaks

If you're combining OOD scores, here's what I'd check:

  1. Pick the pair that overlaps least, not the two best scores. If you have a labelled OOD validation set, compare which inputs each score misses, not just their AUROC. A pair with slightly worse individual scores but different failures will beat the top two if those fail together.
  2. Change the point of view, not just the method. A logit score plus a feature score (Energy plus kNN, say) differ more than two feature scores on the same z. Different layers, backbones and representations are where independence comes from.
  3. Focus on near OOD. On far OOD most scores do well and overlap barely matters. On near OOD (the wolf among dogs) failures pile up in the same place, and a shared blind spot costs you.
  4. Know that step 1 has a catch. In deployment you usually don't have OOD data, and picking the pair on OOD data is tuning on the test distribution. A rule you can actually deploy has to rank pairs using in-distribution data only, for example by how correlated the two scores are on a validation set, and then trust that ranking to predict the OOD gain. Whether that trust holds up is, as far as I know, still an open question.

What this means for benchmarking

The last post suggested an order for single scores: MSP, then Energy, then kNN, then ViM. That still holds. For combinations, check the overlap before fusing anything. If two scores miss the same inputs, you haven't built a hybrid, you've counted one score twice.


Have you combined two detectors, in ML or anywhere else, and found the combination added nothing? What were the two ingredients, and did they fail on the same cases?