TASTE: Task-Aware Out-of-Distribution Detection via Stein Operators

Michał Kozyra, Gesine Reinert

Abstract

Out-of-distribution detection methods are often either data-centric, detecting deviations from the training input distribution irrespective of their effect on a trained model, or model-centric, relying on classifier outputs without explicit reference to data geometry. We propose TASTE (Task-Aware STEin operators): a task-aware framework based on so-called Stein operators, which allows us to link distribution shift to the input sensitivity of the model. We show that the resulting operator admits a clear geometric interpretation as a projection of distribution shift onto the sensitivity field of the model, yielding theoretical guarantees. Beyond detecting the presence of a shift, the same construction enables its localisation through a coordinate-wise decomposition, and for image data-provides interpretable per-pixel diagnostics. Experiments on controlled Gaussian shifts, MNIST under geometric perturbations, and CIFAR-10 perturbed benchmarks demonstrate that the proposed method aligns closely with task degradation while outperforming established baselines.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
iSUNTASTEFPR950.5901-0.06 vs baselinein-distribution=CIFAR-10
Source quote
L1634: FPR95 │ 0.7848 │ 0.6455 │ 0.9396 │ 0.6829 │ 0.6995 │ 0.8223 │ 0.5901
Places365TASTEFPR950.5609-0.09 vs baselinein-distribution=CIFAR-10
Source quote
L1638: FPR95 │ 0.7878 │ 0.6461 │ 0.86 │ 0.7714 │ 0.6894 │ 0.7432 │ 0.5609
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
iSUNEnergy baselineFPR950.6455in-distribution=CIFAR-10
Source quote
L1634: FPR95 │ 0.7848 │ 0.6455 │ 0.9396 │ 0.6829 │ 0.6995 │ 0.8223 │ 0.5901
Places365Energy baselineFPR950.6461in-distribution=CIFAR-10
Source quote
L1638: FPR95 │ 0.7878 │ 0.6461 │ 0.86 │ 0.7714 │ 0.6894 │ 0.7432 │ 0.5609
BibTeX
@misc{kozyra2026taste,
  author = {Michał Kozyra and Gesine Reinert},
  title = {{TASTE: Task-Aware Out-of-Distribution Detection via Stein Operators}},
  year = {2026},
  eprint = {2602.07640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07640},
}

Loading related content...

Figure