NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Geometry over Density: Few-Shot Cross-Domain OOD Detection

Li Li, You Qin, Jiate Li, Charith Peris, Lisa Bauer, Roger Zimmermann, Yue Zhao

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Graphs, OOD Detection & Medical Imaging › Out-Distribution Detection Methods · Type: new method · Keywords: few-shot OOD detection, cross-domain detection, diffusion model, score function, Sobolev norm, sample efficiency

Summary

UFCOD is a unified framework that uses information-geometric analysis of diffusion trajectories to enable few-shot cross-domain OOD detection with only ~100 unlabeled ID samples per task.

Explained to a 5-year-old

We have a computer program that learns what normal things look like. When it sees something weird, it should say so. The program can learn from just a few examples of normal things and then work for many different kinds of weird things without being retrained. It uses a special trick that looks at how the program changes its guesses, helping it tell apart the familiar from the unfamiliar. This makes computers safer by spotting strange things early.

Explained to a 5-year-old, longer

A computer learns to recognize things that are normal. It needs to know when something new or strange appears. Usually, the computer needs many examples to learn each new thing. This paper shows how to learn from just a few examples. The computer can then work for many different kinds of new things. It does this without having to be trained again for each new case. The method looks at how the computer's guesses change over time. It measures two kinds of energy: how big the changes are and how smooth they are. These measurements help the computer decide if something is out of the ordinary. The computer was first trained on one dataset, but it can be used everywhere. With only about a hundred examples of normal things, it gets very good at spotting odd things. This makes safer computers that can catch problems early.

For a technical reader

The paper tackles detecting out-of-distribution inputs across many domains without per-task retraining. It uses a pre-trained diffusion model, treating its noise predictions as score functions that reflect data density. Two geometric features-integrated score magnitude and score smoothness-are computed from diffusion trajectories to form a discrete Sobolev norm. At inference, only about 100 unlabeled in-distribution samples are needed to evaluate these features and produce an OOD score. Empirically, this approach matches the performance of methods trained on orders of magnitude more data, achieving ~94% AUROC on a suite of cross-domain benchmarks.

Problem

Standard OOD detectors are trained on a specific in-distribution and cannot adapt to arbitrary new ID-OOD pairs without retraining. The paper asks whether a single pre-trained model can perform OOD detection on new tasks using only a handful of ID samples at inference time, with no additional training.

Method

The approach analyzes diffusion noise predictions as score functions and extracts two energy features-Path Energy (integrated score magnitude) and Dynamics Energy (score smoothness)-forming a discrete Sobolev norm that captures sample interaction with the diffusion process. At deployment, the pre-trained diffusion model serves as a universal feature extractor, and only about 100 unlabeled in-distribution samples are used to compute these features for OOD scoring.

Results

Using ~100 ID samples per task, the approach achieves 93.7% average AUROC across the 12 cross-domain benchmarks, matching performance of methods trained on 50k-163k samples and representing roughly a 500× improvement in sample efficiency.

Contributions

It introduces a train-once, deploy-anywhere paradigm where a diffusion model trained on one dataset can serve as a universal feature extractor for OOD detection across unrelated domains, and it provides a geometric analysis of diffusion trajectories yielding Path and Dynamics Energy features.

Practical relevance

This sample-efficient, domain-agnostic OOD detector enables safe deployment of AI systems in high-stakes fields where acquiring large labeled datasets per new domain is impractical.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction