Lune

ICLR2025Top-tier venue

Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddings

Hossein Mirzaei, Mackenzie W. Mathis

Abstract

Despite significant advancements in out-of-distribution (OOD) detection, existing methods still struggle to maintain robustness against adversarial attacks, compromising their reliability in critical real-world applications. Previous studies have attempted to address this challenge by exposing detectors to auxiliary OOD datasets alongside adversarial training. However, the increased data complexity inherent in adversarial training, and the myriad of ways that OOD samples can arise during testing, often prevent these approaches from establishing robust decision boundaries. To address these limitations, we propose AROS, a novel approach leveraging neural ordinary differential equations (NODEs) with Lyapunov stability theorem in order to obtain robust embeddings for OOD detection. By incorporating a tailored loss function, we apply Lyapunov stability theory to ensure that both in-distribution (ID) and OOD data converge to stable equilibrium points within the dynamical system. This approach encourages any perturbed input to return to its stable equilibrium, thereby enhancing the model's robustness against adversarial perturbations. To not use additional data, we generate fake OOD embeddings by sampling from low-likelihood regions of the ID data feature space, approximating the boundaries where OOD data are likely to reside. To then further enhance robustness, we propose the use of an orthogonal binary layer following the stable feature space, which maximizes the separation between the equilibrium points of ID and OOD samples. We validate our method through extensive experiments across several benchmarks, demonstrating superior performance, particularly under adversarial attacks. Notably, our approach improves robust detection performance from 37.8% to 80.1% on CIFAR-10 vs. CIFAR-100 and from 29.0% to 67.0% on CIFAR-100 vs. CIFAR-10. Code and pre-trained models are available at https://github.com/AdaptiveMotorControlLab/AROS .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Adversarially Robust Anomaly Detection through Spurious Negative Pair Mitigation cites RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples
  • Adversarially Robust Anomaly Detection through Spurious Negative Pair Mitigation cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • Adversarially Robust Anomaly Detection through Spurious Negative Pair Mitigation cites CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
  • DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent Diffusion cites RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples
  • DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent Diffusion cites Diffusion Models Beat GANs on Image Synthesis
  • RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples cites Diffusion Models Beat GANs on Image Synthesis
  • RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples cites Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks
  • RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples cites Learning Transferable Visual Models From Natural Language Supervision
  • Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
  • Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks cites Towards Evaluating the Robustness of Neural Networks
  • With Argus Eyes: Assessing Retrieval Gaps via Uncertainty Scoring to Detect and Remedy Retrieval Blind Spots cites DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent Diffusion
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution SamplesHossein Mirzaei, Mohammad Jafari, Hamid Reza Dehbashi, Ali Ansari et al.ICML 2024 · 13 citations
  2. DISTIL: Data-Free Inversion of Suspicious Trojan Inputs via Latent DiffusionHossein Mirzaei, Zeinab Taghavi, Sepehr Rezaee, Masoud Hadi et al.ICCV 2025 · 3 citations
  3. Adversarially Robust Anomaly Detection through Spurious Negative Pair MitigationHossein Mirzaei, Mojtaba Nafez, Jafar Habibi, Mohammad Sabokrou et al.ICLR 2025
  4. With Argus Eyes: Assessing Retrieval Gaps via Uncertainty Scoring to Detect and Remedy Retrieval Blind SpotsZeinab Taghavi, Ali Modarressi, Hinrich Schuetze, Andreas MarfurtICML 2026

Builds on46

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  4. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacksFrancesco Croce, Matthias HeinICML 2020 · 2,337 citations
  5. CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted InstancesJihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo ShinNeurIPS 2020 · 755 citations

Related papers

  1. A Robust Out-of-Distribution Detection Framework via Synergistic SmoothingMaria Stoica, Abdelrahman Hekal, Alessio LomuscioCVPR Findings 2026
  2. LyaNet: A Lyapunov Framework for Training Neural ODEsIvan Dario Jimenez Rodriguez, Aaron D. Ames, Yisong YueICML 2022 · 78 citations
  3. Stable Neural ODE with Lyapunov-Stable Equilibrium Points for Defending Against Adversarial AttacksQiyu Kang, Yang Song, Qinxu Ding, Wee Peng TayNeurIPS 2021 · 130 citations
  4. Your Out-of-Distribution Detection Method is Not Robust!Mohammad Azizmalayeri, Arshia Soltani Moakhar, Arman Zarei, Reihaneh Zohrabi et al.NeurIPS 2022 · 29 citations
  5. Defending Against Adversarial Attacks via Neural Dynamic SystemXiyuan Li, Xin Zou, Weiwei LiuNeurIPS 2022 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines