Geometry over Density: Few-Shot Cross-Domain OOD Detection
Not on the map. Why?
Abstract (arXiv)
Out-of-distribution (OOD) detection identifies test samples that fall outside a model's training distribution, a capability critical for safe deployment in high-stakes applications. Standard OOD detectors are trained on a specific in-distribution (ID) dataset and detect deviations from that single domain. In contrast, we study few-shot cross-domain OOD detection: given a single pre-trained model, can we perform OOD detection on arbitrary new ID-OOD task pairs using only a handful of ID samples at inference time, with no additional training? We propose UFCOD, a unified framework that achieves this goal through information-geometric analysis of diffusion trajectories. Our key insight is that diffusion noise predictions are score functions (gradients of log-density), and we extract two energy features: Path Energy (integrated score magnitude) and Dynamics Energy (score smoothness), that form a discrete Sobolev norm capturing how samples interact with the learned diffusion process. The central contribution is a train-once, deploy-anywhere paradigm: a diffusion model trained on a single dataset (e.g., CelebA) serves as a universal feature extractor for OOD detection across semantically unrelated domains (e.g., CIFAR-10, SVHN, Textures). At deployment, each new task requires only ~100 unlabeled ID samples for inference: no retraining, no fine-tuning, no task-specific adaptation. Using 100 ID samples per task, UFCOD achieves 93.7% average AUROC across 12 cross-domain benchmarks, competitive with methods trained on 50k--163k samples, demonstrating ~500× improvement in sample efficiency. See our code in https://github.com/lili0415/UFCOD.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 35 of its 43 references that are in the map. First posted on arXiv 5 May 2026.
Builds on
35 of 43 references.
References · 35
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,277
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2015Towards Open Set Deep Networkscited by 533
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
23 more
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2023TEMPO: Prompt-based Generative Pre-trained Transformer for Time Series Forecastingcited by 170
- 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 151
- 2020Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encodercited by 145
- 2020VAEBM: A Symbiosis between Variational Autoencoders and Energy-based Modelscited by 103
- 2022Denoising diffusion models for out-of-distribution detectioncited by 102
- 2020Density of States Estimation for Out-of-Distribution Detectioncited by 74
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 57
- 2023Panoptic Scene Graph Generation with Semantics-Prototype Learningcited by 42
- 2020Multiscale Score Matching for Out-of-Distribution Detectioncited by 36
- 2025Treble Counterfactual VLMs: A Causal Approach to Hallucinationcited by 33
- 2024TS-Reasoner: Domain-Oriented Time Series Inference Agents for Reasoning and Automated Analysiscited by 28
- 2024DPU: Dynamic Prototype Updating for Multimodal Out-of-Distribution Detectioncited by 28
- 2024Out-of-Distribution Detection with a Single Unconditional Diffusion Modelcited by 22
- 2025Secure On-Device Video OOD Detection Without Backpropagationcited by 19
- 2024MetaOOD: Automatic Selection of OOD Detection Modelscited by 16
- 2026Defenses Against Prompt Attacks Learn Surface Heuristicscited by 10
- 2025Charts Are Not Images: On the Challenges of Scientific Chart Editingcited by 9
- 2023Domain-wise Invariant Learning for Panoptic Scene Graph Generationcited by 7
- 2022Region2Vec: Community Detection on Spatial Networks Using Graph Embedding with Node Attributes and Spatial Interactionscited by 5
- 2025M3OOD: Automatic Selection of Multimodal OOD Detectorscited by 5
- 2024GeoAI-Enhanced Community Detection on Spatial Networks with Graph Deep Learningcited by 1
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024NODI: Out-Of-Distribution Detection with Noise from Diffusion
- 2025Beyond Binary Out-of-Distribution Detection: Characterizing Distributional Shifts with Multi-Statistic Diffusion Trajectories
- 2025Probability Density from Latent Diffusion Models for Out-of-Distribution Detection
- 2025EigenScore: OOD Detection using Covariance in Diffusion Models
- 2025SCOPED: Score-Curvature Out-of-distribution Proximity Evaluator for Diffusion
- 2024Exploiting Diffusion Prior for Out-of-Distribution Detection
- 2025GOOD: Training-Free Guided Diffusion Sampling for Out-of-Distribution Detection
- 2024A Geometric Explanation of the Likelihood OOD Detection Paradox