arXiv:2610.01096cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01096

Dataset Identity, Not Novelty: The Source of an Inflated OOD Detection Gain

Donghoon Lee, Shinjin Kang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

A post-hoc out-of-distribution (OOD) detector reads the activations of a trained classifier and returns a score. It fits that score on in-distribution data, and the benchmarks that evaluate it supply a second piece of OOD data for the fitting itself. Some detectors tune a constant on it. Others fit a direction in feature space or train a flexible combiner and report the number that it reaches as the gain that is still available. Every one of these fits goes through the same check, which validates it on held-out samples of the same OOD dataset. That check rules out memorizing individual images. It says nothing about a fit that has instead learned which dataset it is looking at, and a direction that recognizes one OOD dataset rather than novelty passes it perfectly. The detector that a practitioner installs meets OOD data from a source that nobody fitted it on, so the difference decides what the reported number is worth. We measure it by holding out the whole OOD dataset rather than a sample of it, and we call that gap the inflation. We read it across a range of combiners on ImageNet backbones and CIFAR-100 architectures. Most of the gain that the usual protocol reports turns out to be dataset identity rather than novelty. The size of the fit does not move what survives, so the effect is not ordinary overfitting. The share depends instead on whether the input exposes class identity, and two controls that vary that property alone separate the inflation on every backbone of both benchmarks. A closed form accounts for the effect and computes it from the fitting rows, so a practitioner can tell which fits will inflate without running the hold-out protocol at all. One of these fits survives, namely the single constant that the field already picks on a designated validation dataset. Anything above it reports a gain that the hold-out protocol does not return, and on one benchmark what survives falls while what is reported climbs.

1 INTRODUCTION

A post-hoc out-of-distribution (OOD) detector reads the activations of a trained classifier and returns a score. It fits that score on in-distribution data and then reports it against several OOD datasets. Benchmarks also supply OOD data for the fitting itself. OpenOOD (Zhang et al., 2024) sets aside a validation split, and papers that reproduce a family of detectors under one protocol pick their hyperparameters on that split (Kim & Yoon, 2026). Some pick a temperature and a perturbation size on OOD samples (Liang et al., 2018). Some regress one weight per layer on in-distribution and OOD images, so they carry a set of weights per OOD dataset (Lee et al., 2018). A separate line fits one combiner over several such scores and reports the gain that follows (Novello et al., 2024; Magesh et al., 2023). Every one of these fits goes through the same check. The check validates the fit on held-out samples of the same OOD dataset.

That check removes one failure mode and misses a second one. Held out samples rule out memorizing individual images. They say nothing about a fit that has learned which dataset it is looking at. A direction that recognizes one OOD dataset rather than novelty will still transfer perfectly between two halves of that dataset. Sample level validation therefore certifies sample level generalization and nothing beyond it. What sets the size of that second failure mode has not been measured. Domain generalization already named the problem. Gulrajani & Lopez-Paz (2021) give the name oracle

∗^{*}Corresponding author.

the direction they all share

Figure

the two protocols

Figure

a score that can tell classes apart, mean 64∘64^{\circ}

a score that cannot, mean 29∘29^{\circ}

Figure 1: Where the OOD datasets point. The usual protocol gives the fit the direction of the dataset that it will be scored on, while deployment gives it the direction that the other datasets share. The pole is that shared direction and the dome is the unit sphere around it. Each dot is one OOD dataset at its angle to the pole, for the two profiles at full dimension over 11 ImageNet backbones. Each cone opens to its family mean. The bars give the AUROC each family reaches under the two protocols. Rotation around the pole carries no data.

selection to any choice that reads the test domain, and they ask for results obtained that way to be disclaimed. The rule has not been carried into OOD detection, though the symptom it guards against is on record there. Figure 1 states the question geometrically and gives our answer to it.

We measure it by holding out the OOD dataset itself. We fit the detector on some OOD datasets and then score it on a dataset that it has never seen. The difference between the two protocols is the part of the reported gain that comes from dataset identity. We apply this to the sequence of combiners that Table 1 lays out.

Dataset identity accounts for most of what the usual protocol reports. The gap between the two protocols widens as the fit gains directions, and CIFAR-100 loses more at every step.

The size of the fit is not what moves the column that survives. Appendix K moves the parameter count over four orders of magnitude at a fixed input. The reported column rises over that range and the held-out column does not. Width does raise the inflation, and Section 5.6 identifies the factor responsible. Our channels are permutation invariant functions of the class distances, so none of them can report which class a sample is near. Random directions of the feature space carry the same width and the same parameter count, and those directions do report it. A fit on them inflates several times as much on every backbone of both benchmarks.

A closed form says why. A discriminant points along the displacement of the OOD set that the fit was given, and the gap between the two protocols is the length of that displacement times an angular factor. Width sets the length and what the input exposes sets the angle. Both factors read the fitting rows and neither needs a hold-out pass. Their product ranks the measured inflation almost exactly. At matched width the invariant channel inventory has the longer displacement and still inflates less, because the invariant cosine is higher.

One step is exempt. The field picks a single constant on the OOD dataset that the benchmark designates for validation, and we call that condition validation tuned. Neither benchmark shows any inflation there, and no backbone moves far in either direction. Choosing one number this way is sound at that capacity. Every step above it fails.

Measuring any of this needs a zero point that nobody tuned. We use a score with no free constant at all and call it VarRatio. The score needs no OOD data and no published constant, and any rescaling of the whitened space leaves the ranking untouched. We introduce VarRatio as an instrument, and Section 5.2 shows only that the score is strong enough to serve as one. VarRatio improves on Mahalanobis++ (Müller & Hein, 2025) on 16 of our 17 backbones. Without any fitting the score comes within 0.22 of a ridge discriminant that was honestly fitted on four OOD datasets.

The reported number and the number that survives move apart as the sequence widens. On ImageNet what survives climbs by far less than what is reported. On CIFAR-100 what survives falls while what is reported climbs.

References (68)