Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection

Reihaneh Zohrabi, Hosein Hasani, Mahdieh Soleymani Baghshah, Anna Rohrbach, Marcus Rohrbach +1 more
6/30/2025
cs.CVcs.LG

No official code found. Best implementation: anonymouss-neurips2025/SPROD (1 star, MIT, last commit 2025-05-23). 1 more below.

Abstract

Out-of-distribution (OOD) detection is crucial for ensuring the reliability and safety of machine learning models in real-world applications, where they frequently face data distributions unseen during training. Despite progress, existing methods are often vulnerable to spurious correlations that mislead models and compromise robustness. To address this, we propose SPROD, a novel prototype-based OOD detection approach that explicitly addresses the challenge posed by unknown spurious correlations. Our post-hoc method refines class prototypes to mitigate bias from spurious features without additional data or hyperparameter tuning, and is broadly applicable across diverse backbones and OOD detection settings. We conduct a comprehensive spurious correlation OOD detection benchmarking, comparing our method against existing approaches and demonstrating its superior performance across challenging OOD datasets, such as CelebA, Waterbirds, UrbanCars, Spurious Imagenet, and the newly introduced Animals MetaCoCo. On average, SPROD improves AUROC by 4.8% and FPR@95 by 9.4% over the second best.

View on arXivView PDF

Code Implementations(2)

mlscientist3/SPRODCommunity69%
MIT

Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection

00Nov 22, 20241 years agoMIT
MIT

Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection

10Shell, PythonMay 23, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zohrabi2025spuriousaware,
  title  = {Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection},
  author = {Reihaneh Zohrabi and Hosein Hasani and Mahdieh Soleymani Baghshah and Anna Rohrbach and Marcus Rohrbach and Mohammad Hossein Rohban},
  year   = {2025},
  eprint = {2506.23881},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.23881v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.23881.svg)](https://codeofpaper.com/paper/2506.23881)

Discussion