A Robust Out-of-Distribution Detection Framework via Synergistic Smoothing

Maria Stoica, Abdelrahman Hekal, Alessio Lomuscio
5/5/2026
cs.CVcs.AI

Official code: Abdu-Hekal/ROSS (1 star, Python, MIT, last commit 2026-04-28).

Abstract

Reliable out-of-distribution (OOD) detection is a critical requirement for the safe deployment of machine learning systems. Despite recent progress, state-of-the-art OOD detectors are highly susceptible to adversarial attacks, which undermines their trustworthiness in automated systems.

Show full abstract

To address this vulnerability, we apply median smoothing to baseline OOD detection scores, balancing clean and adversarial accuracies. Our key insight is that the noisy samples generated for median smoothing can be repurposed to quantify the local instability of the base score. We observe that OOD samples exhibit higher instability under perturbation. Based on this, we propose ROSS, a novel and robust post-hoc OOD detector that leverages the instability of baseline scores to further distinguish between in-distribution (ID) and OOD samples. ROSS achieves symmetric robustness, performing strongly against both score-minimising and score-maximising attacks, unlike prior work. This symmetric defence leads to state-of-the-art robustness, outperforming prior methods by up to 40 AUROC points. We demonstrate ROSS's effectiveness on extensive experiments across CIFAR-10, CIFAR-100, and ImageNet. Code is available at: https://github.com/Abdu-Hekal/ROSS.

View on arXivView PDF

Code Implementations(1)

Abdu-Hekal/ROSSOfficial100%
MIT
10Python, ShellMay 13, 20257 months agoMIT

Similar Papers

Cite this paper

@article{stoica2026robust,
  title  = {A Robust Out-of-Distribution Detection Framework via Synergistic Smoothing},
  author = {Maria Stoica and Abdelrahman Hekal and Alessio Lomuscio},
  year   = {2026},
  eprint = {2605.08191},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.08191v1}
}

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/2605.08191.svg)](https://codeofpaper.com/paper/2605.08191)

Discussion