potentialpaper

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

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

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. 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 \emph{single} pre-trained model, can we perform OOD detection on \emph{arbitrary} new ID-OOD task pairs using only a handful of ID samples at inference time, with no additional training? We propose \textbf{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: \emph{Path Energy} (integrated score magnitude) and \emph{Dynamics Energy} (score smoothness), that form a discrete Sobolev norm capturing how samples interact with the learned diffusion process. The central contribution is a \textbf{train-once, deploy-anywhere} paradigm: a diffusion model trained on a single dataset serves as a universal feature extractor for OOD detection across semantically unrelated domains. At deployment, each new task requires only $\sim$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 $\sim$500$\times$ improvement in sample efficiency. See our code in \url{https://anonymous.4open.science/r/UFCOD-22E8/README.md}.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
20 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers acknowledged that the proposed framework is conceptually simple and well-structured. They appreciated the training-free design, diffusion trajectory-based formulation, and comprehensive ablation studies.

The main concerns focus on the limited experimental scope and generalization capability. Multiple reviewers pointed out that experiments are mainly conducted on small-scale and low-resolution datasets (e.g., CIFAR-10, SVHN, and CelebA), which may not sufficiently support broad cross-domain OOD claims. They also noted the reliance on a single pre-trained diffusion model and suggested evaluation with different architectures, pre-training datasets, or alternative frozen feature extractors. In addition, reviewers identified inconsistencies in reported experimental numbers and suggested improving presentation clarity.

Other concerns include insufficient analysis of near-OOD scenarios, limited comparisons with foundation-model-based OOD methods, and deeper validation of geometric features over density-based alternatives.

Final justification

The authors substantially addressed the main concerns and provided additional experimen its with different pretrained backbones, 64×64 resolution, diffusion timesteps, and statistical variance in rebuttal. Reviewer 45v2 raised the score to Borderline Accept (4), Reviewer bbyM and Reviewer RZ6A maintained Borderline Accept (4).

Reviewer bbyM acknowledged the authors’ responses and additional experiments but remained concerned about single-architecture dependence, the lack of evaluation on larger-scale datasets, and broad novelty claims, while stating that acceptance would nevertheless be acceptable.

Overall, the rebuttal alleviated the major concerns regarding experimental validity and methodological effectiveness, although cross-architecture generalization, scalability, and novelty remain limitations, broadly supporting the Meta Review’s Accept recommendation.

Area Chair Axwq · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers acknowledged that the proposed framework is conceptually simple and well-structured. They appreciated the training-free design, diffusion trajectory-based formulation, and comprehensive ablation studies.

The main concerns focus on the limited experimental scope and generalization capability. Multiple reviewers pointed out that experiments are mainly conducted on small-scale and low-resolution datasets (e.g., CIFAR-10, SVHN, and CelebA), which may not sufficiently support broad cross-domain OOD claims. They also noted the reliance on a single pre-trained diffusion model and suggested evaluation with different architectures, pre-training datasets, or alternative frozen feature extractors. In addition, reviewers identified inconsistencies in reported experimental numbers and suggested improving presentation clarity.

Other concerns include insufficient analysis of near-OOD scenarios, limited comparisons with foundation-model-based OOD methods, and deeper validation of geometric features over density-based alternatives.

Final justification

The authors substantially addressed the main concerns and provided additional experimen its with different pretrained backbones, 64×64 resolution, diffusion timesteps, and statistical variance in rebuttal. Reviewer 45v2 raised the score to Borderline Accept (4), Reviewer bbyM and Reviewer RZ6A maintained Borderline Accept (4).

Reviewer bbyM acknowledged the authors’ responses and additional experiments but remained concerned about single-architecture dependence, the lack of evaluation on larger-scale datasets, and broad novelty claims, while stating that acceptance would nevertheless be acceptable.

Overall, the rebuttal alleviated the major concerns regarding experimental validity and methodological effectiveness, although cross-architecture generalization, scalability, and novelty remain limitations, broadly supporting the Meta Review’s Accept recommendation.

Reviewer RZ6AOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes UFCOD, a training-free framework for few-shot cross-domain OOD detection using a single pre-trained diffusion model. The key idea is to characterize samples through two diffusion trajectory statistics, namely Path Energy and Dynamics Energy, derived from diffusion score predictions. These features are used to construct a low-dimensional geometric representation, followed by coreset selection and distance-based scoring for OOD detection. Experimental results demonstrate the effectiveness of the proposed approach across multiple benchmark datasets.

Strengths and weaknesses

Strengths

  • The proposed method is training-free and does not require parameter tuning or model adaptation for new domains. The method achieves strong performance using only approximately 100 ID samples, making it attractive for scenarios where collecting large amounts of ID data is impractical.

  • The proposed OOD scores have intuitive mathematical interpretations based on diffusion trajectories and score functions. The connection between Path Energy, Dynamics Energy, and diffusion geometry is interesting and may inspire future research on diffusion-based OOD detection.

  • The framework is conceptually simple, consisting of only a few components. As a result, the method is relatively easy to understand, reproduce, and implement.

  • The paper includes a comprehensive experimental evaluation with comparisons against multiple baselines, ablation studies, and analyses of sample efficiency.

Weaknesses

  • As acknowledged by the authors, the method struggles on more challenging OOD pairs. The framework relies on the assumption that ID and OOD samples remain separable in the low-dimensional energy space.

  • The proposed framework uses a diffusion model pre-trained on CelebA. However, the paper does not investigate whether the observed performance is robust to different pre-training datasets, diffusion architectures, or model scales. Additional experiments using alternative pre-trained models would strengthen the claim of cross-domain generalization.

  • The experimental evaluation is limited to relatively small-scale image datasets (e.g., CIFAR-10, SVHN, and CelebA) with low image resolutions. While the reported results are promising, it remains unclear whether the method would maintain its effectiveness on more challenging benchmarks involving higher-resolution images, larger domain shifts, or fine-grained semantic distinctions.

  • Although the method is motivated by a geometry-over-density perspective, the paper provides limited empirical evidence demonstrating that geometric features are fundamentally superior to density-based alternatives.

Questions

How does the proposed method perform when the pre-trained model is trained on different datasets?

Limitations

Yes

Final justification

I thank authors for their responses. I remain my score.

Formatting concerns

n/a

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

As acknowledged by the authors, the method struggles on more challenging OOD pairs.

This is an accurate statement of the operating assumption. As discussed in Appendix E.1, UFCOD targets semantic distributional shift rather than fine-grained covariate shift, and CIFAR-10 vs. CIFAR-100 (54.7%) is the case where the assumption does not hold, as it does not for any diffusion-based baseline on that pair.

The limitation is a property of the feature space rather than of our detector: varying the scoring method on identical features (Table 8) yields 55.8–59.3% across GMM, kNN, Mahalanobis and soft-min, so no scoring strategy recovers the signal. For the remaining 11 pairs, where semantic distance is sufficient, the 2D energy features maintain clear separability at >88% AUROC. We will state the operating condition in the abstract as well as in Appendix D so that it is visible before the reader reaches the appendix.

The proposed framework uses a diffusion model pre-trained on CelebA. However, the paper does not investigate whether the observed performance is robust to different pre-training datasets, diffusion architectures, or model scales. Additional experiments using alternative pre-trained models would strengthen the claim of cross-domain generalization.

We swapped the CelebA-pretrained DDPM for an ImageNet-pretrained (64x64) on and changed nothing else.

Pair UFCOD-CelebA UFCOD-ImageNet
C10→SVHN 0.951 0.929
C10→CelebA 0.965 0.807
C10→C100 0.547 0.543
C10→Tex 0.883 0.850
SVHN→C10 0.973 0.975
SVHN→CelebA 0.999 0.993
SVHN→C100 0.974 0.974
SVHN→Tex 0.969 0.964
CelebA→C10 0.995 0.919
CelebA→SVHN 1.000 0.992
CelebA→C100 0.991 0.929
CelebA→Tex 0.996 0.982

ImageNet model gains nothing in return where ImageNet coverage should have helped it (C10→SVHN 0.929 vs 0.951, C10→Tex 0.850 vs 0.883). Coverage of the deployment domain is not what drives the score. A narrow-domain extractor concentrates its support and produces larger energy contrasts, which is why 163k faces outperform 1.28M ImageNet images here. We will add this as a guideline in Appendix E.4.

The experimental evaluation is limited to relatively small-scale image datasets.

These five datasets (CIFAR-10, SVHN, CelebA, CIFAR-100, Textures) are the standard benchmark for diffusion-based OOD detection, adopted by every baseline in Tables 1, 5 and 6; evaluating on them is what makes the comparison in those tables meaningful.

On the extent of shift covered, the 12 pairs span faces vs. digits, objects vs. textures, digits vs. textures and related combinations, with >88% AUROC on 11 of 12 using a single unadapted model. Higher resolution and fine-grained semantic distinction are the two open cases, both stated in Appendix D (items 1 and 3); scaling to a higher-resolution diffusion backbone is our next step.

Although the method is motivated by a geometry-over-density perspective, the paper provides limited empirical evidence demonstrating that geometric features are fundamentally superior to density-based alternatives.

Table 8 isolates the scoring approach: same model, same feature extractor, same reference samples, and the result identifies where the advantage actually comes from. At fixed 6D dimensionality, geometry and density are close (GMM 83.9%, kNN 83.7%, Mahalanobis 84.5%); our Soft-Min in the 2D energy space reaches 86.9%, with the margin concentrated on the cross-domain pairs we target (C10→SVHN 95.4% vs. 84.8%; SVHN→C10 96.8% vs. 92.9%).

The claim this supports, and which we will state in §1 and §3.2.1, is not that geometric scoring is intrinsically superior to density estimation, but that geometric scoring in the low-dimensional energy space remains effective with ~100 reference samples, where density fitting degrades. Table 1 supports the same conclusion from the other direction: UFCOD with ~100 samples exceeds the full-data density-based baselines DoS (0.585), NLL (0.580) and LMD (0.594), which use 50k–163k. We will retitle the Appendix E.3 discussion to reflect this framing.

Reviewer bbyMOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Unified Few-shot Cross-domain OOD Detection (UFCOD) that is a training-free, few-shot, cross-domain OOD detection framework which leverages a single pre-trained diffusion model as a universal feature extractor, and enabling OOD detection across semantically unrelated domains.

Strengths and weaknesses

Strengths:

The proposed method is conceptually compact that extracts two diffusion-trajectory energy features, select a small reference set, and score by proximity. This simplicity makes the method easy to understand and potentially easy to implement. The paper includes ablations for coreset selection, proximity scoring, temperature sensitivity, sample efficiency, and feature statistics. Even though some need clarification, they help isolate parts of the method.

Weaknesses:

  1. Mismatch in the claim: The result texy says (line 259-260)SVHN→CIFAR-10 is 90.4% and CIFAR-10→SVHN is 88.1%. But, the table 1 reports: C10→SVHN: 0.951, SVHN→C10: 0.973.
  2. Experiments use only 32×32 image datasets and mostly coarse semantic shifts. CIFAR-10 vs CIFAR-100 is the main near-OOD case and performance is weak. The cross-domain claim would be stronger with more domains, higher-resolution datasets, and more near-OOD evaluations.
  3. Since UFCOD uses a pretrained generative model as a frozen feature extractor, fair comparisons should include frozen pretrained discriminative/vision-language/self-supervised features, e.g. CLIP, DINO/DINOv2, SimCLR, MAE, or ImageNet-pretrained ResNet features with kNN/Mahalanobis/one-class scoring using the same 100 ID samples.
  4. UFCOD performs poorly on C10→C100, so near-OOD behavior needs deeper analysis.
  5. The paper’s broad novelty claims should be narrowed because single diffusion-model cross-task OOD and score-norm/noise-scale OOD features already have close precedents.
Questions
  1. How will the method perform under different Number of diffusion timesteps? This tests should confirm whether trajectory information is necessary or whether one/two noise levels suffice.
  2. Which theoretical statements are intended to apply to the same-domain setting only, and which are claimed to justify cross-domain transfer?
  3. Did you compare to few-shot/zero-shot CLIP-OOD methods under the same protocol? Especially because UFCOD claims few-shot cross-domain deployment.
  4. Can you report mean ± std over seeds in the main tables? The appendix says 5 seeds are used, but the tables show single numbers.
Limitations

Yes

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Mismatch in the claim.

We apologize for the inconsistencies. During revision, we updated the tables with results from our final experimental pipeline but did not update all corresponding prose in main paper. The correct values are those in the tables. We will thoroughly revise the prose to match the tables in the revised manuscript.

Experiments use only 32×32 image datasets.

The 32×32 resolution is not a design choice of our method but the established benchmark protocol in diffusion-based OOD detection. All baselines we compare against: DiffPath, DDPM-OOD, LMD, DoS, MSMA, IGEBM, VAEBM, are evaluated at this resolution on the same datasets (CIFAR-10, SVHN, CelebA). We adopt this setting to ensure a fair and direct comparison with prior work.

We swapped the CelebA-pretrained DDPM for an ImageNet-pretrained one (64x64) and changed nothing else:

Pair UFCOD-CelebA UFCOD-ImageNet
C10→SVHN 0.951 0.929
C10→CelebA 0.965 0.807
C10→C100 0.547 0.543
C10→Tex 0.883 0.850
SVHN→C10 0.973 0.975
SVHN→CelebA 0.999 0.993
SVHN→C100 0.974 0.974
SVHN→Tex 0.969 0.964
CelebA→C10 0.995 0.919
CelebA→SVHN 1.000 0.992
CelebA→C100 0.991 0.929
CelebA→Tex 0.996 0.982

The method itself carries no resolution dependence. Propositions 1-2 are algebraic identities relating the noise prediction to the score function (Eq. 2) and hold for any spatial size. The energy features (Eqs. 4-5) aggregate over all spatial dimensions, so the feature space stays 2-dimensional at any resolution; absolute magnitudes scale with the pixel count, and this is absorbed by the per-task reference set and the Z-score calibration of Eq. 13, which is exactly the component that makes the score scale-free across deployment domains. Scaling the backbone is a matter of substituting a higher-resolution DDPM into an otherwise unchanged pipeline, which we are pursuing next.

Fair comparisons should include frozen pretrained discriminative/vision-language/self-supervised features, e.g. CLIP, DINO/DINOv2, SimCLR, MAE, or ImageNet-pretrained ResNet features with kNN/Mahalanobis/one-class scoring using the same 100 ID samples.

We note an important difference between the settings.

Every encoder on that list is pretrained on ImageNet-1k/22k or LAION. ImageNet contains the natural-object categories that make up CIFAR-10 and CIFAR-100 and a broad range of surface textures overlapping DTD; LAION contains all of them plus faces and digits. On this benchmark, those features have already seen both the ID and the OOD content of most of the 12 pairs during pretraining. Our extractor has seen 163k face images and nothing else, and the eight pairs whose ID domain it has never encountered are the ones on which we report 90.8%. The comparison is therefore held out for us and not held out for them, and a favourable result for CLIP or DINOv2 on CIFAR/DTD would measure pretraining coverage rather than transfer.

UFCOD performs poorly on C10→C100.

We analyze this in Appendix E.1. To add detail: holding the diffusion model and features fixed and varying only the scoring method (Table 8), CIFAR-10 vs. CIFAR-100 gives GMM 6D 58.6%, kNN 6D 59.3%, Mahalanobis 6D 58.6%, and Soft-Min 2D 55.8%. All sit near chance regardless of feature dimensionality or scoring family. The full-data baselines in Table 1 show the same pattern: IGEBM 50.3%, VAEBM 48.0%, MSMA 51.0%.

This locates the difficulty in the features rather than the detector. CIFAR-10 and CIFAR-100 are both 32×32 natural-object photographs with overlapping categories and induce nearly identical trajectories in energy space; separating them requires category-level semantic information that these trajectory statistics do not encode. We state this limitation in Appendix D and E.1, and we will make explicit in §4.3.2 that the features capture coarse distributional distance, which correlates with semantic distance without resolving category identity.

The paper’s broad novelty claims should be narrowed.

Prior work (DiffPath) extracts 6D trajectory statistics and fits a density model (GMM, 50-100 components) on the full training set. This is density estimation in a diffusion feature space, and it inherits the core limitations: large data requirements.

UFCOD changes the detection logic to "is this sample geometrically close to the ID reference set in energy space." Three elements make this possible: (1) the Cramér-Rao analysis proves that second-order statistics are the minimum-variance sufficient statistics for detecting variance shifts, justifying the theoretically grounded 2D feature selection; (2) geometric scoring (soft-min over a reference set) replaces full-distribution density fitting, enabling few-shot operation with ~100 samples; (3) Z-score calibration normalizes geometric scores across domains, enabling a single detection threshold. This combination of few-shot, cross-domain, and training-free OOD detection was not achievable with prior diffusion-based methods.

How will the method perform under different Number of diffusion timesteps?

Steps (S) C10→Texture SVHN→C10 CelebA→SVHN Avg
2 83.7 95.9 93.3 91.0
3 86.3 98.0 95.8 93.4
5 87.0 98.3 96.6 94.0
10 (ours) 88.3 97.3 100.0 95.2
20 88.6 94.8 90.7 91.4

We do not test S=1 because UFCOD requires at least two timesteps to compute the Dynamics Energy feature f_2 = Σ||ε_{t+1} − ε_t||², which measures score smoothness along the trajectory. With a single step, no temporal difference is available and the feature is undefined.

From S=2 to S=10, average AUROC improves steadily from 91.0% to 95.2%, confirming that accumulating trajectory information over multiple steps strengthens the geometric features. The gain concentrates in the early portion of the reverse process, where the score function transitions most rapidly and the difference in denoising dynamics between ID and OOD inputs is most pronounced. Beyond S=10, performance drops to 91.4%, as the later trajectory points carry redundant information that dilutes the discriminative signal. Our choice of S=10 balances detection quality with computational cost. We will include this ablation in the revised manuscript.

Which theoretical statements are intended to apply to the same-domain setting only, and which are claimed to justify cross-domain transfer?

Propositions 1-2 are mathematical identities that hold for any input regardless of domain. Proposition 3 and the Cramér-Rao analysis apply to the same-domain setting, establishing that energy features are informative about distributional distance and that second-order statistics are optimal for detecting this signal.

Cross-domain transfer is an empirical finding: the few-shot reference set anchors the scoring to the local geometry of the downstream ID domain in feature space, and the energy separation established by Proposition 3 ensures that this signal is discriminative. We validate this across 12 cross-domain pairs (11 of 12 achieving >88% AUROC). Formalizing conditions under which cross-domain transfer succeeds is an interesting direction for future work.

Can you report mean ± std over seeds in the main tables?

The single numbers reported in the main tables are mean values over 5 random seeds (for reference set sampling). We will add ± std to the main tables in the revised manuscript. The full results with standard deviations are shown below:

ID → OOD AUROC (mean ± std)
C10 → SVHN 0.951 ± 0.009
C10 → CelebA 0.965 ± 0.005
C10 → C100 0.547 ± 0.004
C10 → Texture 0.883 ± 0.005
SVHN → C10 0.973 ± 0.005
SVHN → CelebA 0.999 ± 0.001
SVHN → C100 0.974 ± 0.006
SVHN → Texture 0.969 ± 0.002
CelebA → C10 0.995 ± 0.000
CelebA → SVHN 1.000 ± 0.000
CelebA → C100 0.991 ± 0.001
CelebA → Texture 0.996 ± 0.000
Average 0.937 ± 0.003

Standard deviations are ≤0.009 across all pairs. Since Facility Location greedy selection is deterministic given a candidate pool, the seed controls the random subsample of the ID training set from which that pool is drawn; the reported variation is therefore variation in the candidate pool itself. The near-zero deviations on CelebA-as-ID pairs reflect that those pairs sit at 0.991–1.000, leaving little room for variation. We will clarify both points in the Appendix.

Reviewer bbyM · CommentOpenReview ↗

Thank you authors to have answered my questions including conducting additional experiments. The paper is good as i mentioned in the strengths of the review. However, based on the novelty criteria, single architecture dependence (and not enough evidences that this method works across cross-architecture), and the some presentation issues as picked out by reviewer 45v2 i decide to remain consistent with my initial score.

Reviewer 45v2OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Problem addressed: Standard OOD detection methods are trained on a specific in-distribution dataset and cannot generalize to new domains without collecting large amounts of new ID data and retraining from scratch or fine-tuning using large amounts of ID data. The paper asks: Can a single pre-trained model perform OOD detection on arbitrary new ID-OOD task pairs using only a handful of ID samples at inference time, with no retraining?

Proposed method: They proposed UFCOD, a framework that achieves this goal through information-geometric analysis of diffusion trajectories. Their key insight is that diffusion noise predictions are score functions (gradients of log-density), so they extract two energy features: Path Energy and Dynamics Energy, that form a discrete Sobolev norm capturing how samples interact with the learned diffusion process. The intuition is that ID samples follow smooth, low-energy diffusion trajectories while OOD samples produce erratic, high-energy ones, regardless of domain. The central contribution is a train-once, deploy-anywhere paradigm: a diffusion model trained on a single dataset that serves as a universal feature extractor for OOD detection across semantically unrelated domains.

Key results: The framework achieves 93.7% average AUROC across 12 cross-domain benchmarks with only 80-150 ID samples, which the authors claim that it is competitive with full-data methods trained on 50k-163k samples, with ~500× sample efficiency. UFCOD outperforms several of the 8 comparison methods across multiple datasets, coming close to the best method on approximately 50% of outcomes in Table 1.

Novelty: The paper's novelty lies in using a single pre-trained diffusion model as a universal OOD detector that works across completely different types of images without any retraining which I believe no prior work has done. The core insight that diffusion trajectory geometry transfers across domains while density estimates do not is an interesting and original observation.

Strengths and weaknesses

Strengths:

  • The core insight of the paper is clean and well motivated. Shifting from density estimation to geometric trajectory analysis is a compelling response to the well-known likelihood paradox, where generative models may assign higher likelihood to OOD samples than ID samples. The observation that diffusion score functions behave differently on ID and OOD inputs, even across domains, is intuitive and is supported by the empirical results.
  • Novel geometric insight is presented. The insight that diffusion noise predictions function as score functions, and that Path Energy and Dynamics Energy together approximate a discrete Sobolev norm, is well-motivated and clearly articulated. The theoretical grounding through propositions 1, 2, and 3, connecting score reliability to ID/OOD energy separation, provides a principled foundation for the method.
  • Dimensionality reduction to a 2D feature space. I think collapsing the diffusion trajectory into two scalar quantities, Path Energy and Dynamics Energy, is a strong design choice because it keeps the method simple and makes few-shot reference-set construction feasible. The paper supports this choice both theoretically, through the Sobolev norm interpretation and Cramér-Rao bound argument, and empirically, with Table 7 showing that the 2D second-order features outperform higher-dimensional alternatives. This simplicity is important because it directly reduces sample complexity in the few-shot regime.
  • The baseline comparison is reasonably comprehensive. The paper has a comparison against eight full-data methods, including energy-based, density-based, and diffusion-based approaches. This makes the sample-efficiency claim concrete and gives the experimental comparison practical relevance.
  • The sample efficiency is impressive. The 500x improvement in sample efficiency relative to competing methods, while achieving competitive AUROC, is a compelling practical contribution. The theoretical justification for why few-shot detection is feasible, 2D energy features reserve ID/OOD separability, and low-dimensional spaces require fewer samples is well-supported by both theory and experimental results.
  • Ablation studies are useful and clearly presented. Tables 2, 3, and 4 isolate the contribution of Facility Location, temperature-scaled scoring, and Z-score calibration. The finding that K-Center Greedy fails badly on SVHN, compared with Facility Location, is a helpful negative result and supports the paper’s argument that representativeness is more important than diversity in this few-shot setting.

Major Weaknesses:

  • Comparison against DiffPath. Tables 1, 5, and 6 report identical DiffPath numbers across all three baseline training conditions: C10-trained, SVHN-trained, and CelebA-trained. The values remain exactly the same across all tasks. This is difficult to justify if DiffPath was actually retrained or tuned separately for each ID domain, as the table captions imply. At minimum, the paper needs to clarify whether DiffPath was run once and reused, copied from a prior setting, or evaluated under a different protocol. As written, this ambiguity weakens the claims of the paper.
  • All experiments are conducted on 32×32 images. I know the paper acknowledges that extension to higher-resolution images still needs validation; this limits confidence that the method will scale to more realistic visual settings. Since diffusion trajectory behavior can change with image resolution and model capacity, evaluation only at low resolution is not enough to support broad claims about general cross-domain OOD detection.
  • The benchmark scope is also limited for a paper claiming cross-domain generalization. The experiments use CIFAR-10, SVHN, Tex, and CelebA, which are relatively constrained and low-resolution datasets. There is no evaluation on ImageNet-scale data or commonly used broader OOD benchmarks such as OpenOOD, ImageNet-OOD, or iNaturalist. As a result, I think the claim of cross-domain generalization feels somewhat overstated. The paper would be stronger if it included at least one higher-resolution or semantically richer benchmark.
  • Single architecture dependence. All experiments rely on a single DDPM model pre-trained on CelebA as the universal extractor. A more diverse set of base architectures or pre-training domains would substantially strengthen the claim of universality, and would help determine whether the results are specific to this model or indicative of a general phenomenon.
  • The numbers don’t seem to match. 93.7 percent sits alongside a temperature plot reporting 84.4 percent at the chosen setting and an ablation table reporting 89.25 percent, and prose robustness figures of 0.904 and 0.881 disagree with the table entry of 0.951 for the same pair.
  • Experiment improvement. CIFAR-10 against CIFAR-100 lands at 54.7 percent, indicating the features capture only coarse semantic distance and cannot resolve fine-grained shifts.

Minor Weaknesses:

  • Missing standard deviations. The statistical reporting could also be improved. The appendix states that experiments are run with five random seeds and reports mean ± standard deviation, but the main result tables mostly show single AUROC values. Including standard deviations or confidence intervals in the main tables would make the empirical results more convincing and would help readers assess the stability of the method. The main results in Table 1 report only AUROC point estimates with no standard deviations. Given that UFCOD comes close to the best method on approximately 50% of outcomes, the absence of variance estimates makes it impossible to assess whether observed gaps are meaningful or fall within noise. Standard deviations across runs are essential for a fair comparison.
  • Missing method diagram. A diagram illustrating the UFCOD pipeline would significantly aid understanding of the method’s scope and how its components relate to one another and to the baseline methods it is compared against. The written description alone is dense enough to benefit from a visual overview.
  • Figure 1 Readability. The font sizes for the legend and axes in Figure 1 are too small and difficult to read, which limits the figure’s effectiveness at communicating the energy separation between ID and OOD samples.
  • A few smaller items. The efficiency claim is benchmarked only against full data methods, with no few-shot, zero-shot, or prompt-based comparison. Some statements, such as score unreliability for out-of-distribution inputs, are introduced as assumptions rather than derived; the overlap ratio in the domain figure is mentioned but not analyzed.
Questions

Substantial experimental studies listed as major weaknesses are required, including:

  1. Clarification of the comparison against DiffPath.
  2. Conducting experiments with images of different resolutions.
  3. Clarification of numbers that are not matched in the experiments.
  4. A more diverse set of base architectures
Limitations

Yes

Final justification

I thank the authors for their responses. I raise my score to borderline accept.

Formatting concerns

No formatting concerns.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Tables 1, 5, and 6 report identical DiffPath numbers across all three baseline training conditions.

Thank you for the careful observation. DiffPath evaluates all ID–OOD pairs with a single unconditional diffusion model rather than retraining per ID domain; this is the protocol of the original paper, and we reproduced its published numbers. Its results are therefore invariant to the training-domain grouping that organizes Tables 1, 5 and 6, whereas the remaining baselines (DoS, NLL, LMD, DDPM-OOD, MSMA, IGEBM, VAEBM) are retrained per domain and do vary across the three tables. In the revision we will (i) add a footnote to the DiffPath row stating that it uses a single unified model, and (ii) separate it from the domain-specific baselines with a \midrule, so that the invariance is explained rather than left ambiguous.

All experiments are conducted on 32×32 images.

The resolution is fixed by the benchmark, not by our method. Every baseline in Tables 1, 5 and 6 (DiffPath, DDPM-OOD, LMD, DoS, NLL, MSMA, IGEBM, VAEBM) is evaluated at 32x32 on CIFAR-10, SVHN and CelebA. Moving to a different resolution would leave us without a directly comparable published number for any of them, and the comparison in those three tables is the main evidence of the paper.

We swapped the CelebA-pretrained DDPM for an ImageNet-pretrained one (64x64) and changed nothing else:

Pair UFCOD-CelebA UFCOD-ImageNet
C10→SVHN 0.951 0.929
C10→CelebA 0.965 0.807
C10→C100 0.547 0.543
C10→Tex 0.883 0.850
SVHN→C10 0.973 0.975
SVHN→CelebA 0.999 0.993
SVHN→C100 0.974 0.974
SVHN→Tex 0.969 0.964
CelebA→C10 0.995 0.919
CelebA→SVHN 1.000 0.992
CelebA→C100 0.991 0.929
CelebA→Tex 0.996 0.982

The method itself carries no resolution dependence. Propositions 1-2 are algebraic identities relating the noise prediction to the score function (Eq. 2) and hold for any spatial size. The energy features (Eqs. 4-5) aggregate over all spatial dimensions, so the feature space stays 2-dimensional at any resolution; absolute magnitudes scale with the pixel count, and this is absorbed by the per-task reference set and the Z-score calibration of Eq. 13, which is exactly the component that makes the score scale-free across deployment domains. Scaling the backbone is a matter of substituting a higher-resolution DDPM into an otherwise unchanged pipeline, which we are pursuing next.

The benchmark scope is also limited for a paper claiming cross-domain generalization.

Our benchmark (CIFAR-10, SVHN, CelebA, Textures, CIFAR-100) follows the established evaluation protocol for diffusion-based OOD detection. All baselines we compare against: DiffPath, DDPM-OOD, LMD, DoS, MSMA, IGEBM, VAEBM, are evaluated on the same datasets; adopting a different benchmark would preclude direct comparison with prior work. We note that OpenOOD and ImageNet-OOD are designed for classifier-based OOD detection, where a pretrained ImageNet classifier provides the feature backbone. This is a fundamentally different setting from ours: we use an unconditional diffusion model with no classifier and no labels. These benchmarks are not directly applicable without substantial redesign of the evaluation protocol. Regarding domain diversity, our 12 ID-OOD pairs span four semantically distinct visual domains: human faces (CelebA), digits (SVHN), natural objects (CIFAR-10/100), and textures (DTD), covering a range of cross-domain shifts from near-OOD (CIFAR-10 vs. CIFAR-100) to far-OOD (CelebA vs. SVHN). We believe this provides meaningful evidence of cross-domain generalization within the scope of diffusion-based methods.

Single architecture dependence.

Our experiments already vary the deployment domain while holding the model fixed: the CelebA-trained DDPM is evaluated on faces, digits (SVHN), natural objects (CIFAR-10), and textures (DTD), covering four semantically distinct visual categories. The fact that a model trained only on faces achieves 93.7% average AUROC on these unseen domains provides direct evidence that the energy features capture general properties of the score function rather than domain-specific patterns. This is also the standard evaluation protocol in diffusion-based OOD detection: DiffPath, the most relevant prior work, uses the same single CelebA-trained DDPM as the sole base model. We agree that evaluating with additional diffusion architectures (e.g., score-based SDEs, flow matching) would provide further evidence of generality, and we consider this a natural extension of the current work.

The numbers don’t seem to match.

We apologize for the inconsistencies. During revision, we updated the tables with results from our final experimental pipeline but did not update all corresponding prose in Section 4.2. The correct values are those in the tables. We will thoroughly revise the prose to match the tables in the revised manuscript.

Experiment improvement. CIFAR-10 against CIFAR-100 lands at 54.7 percent.

We agree that near-OOD is a weakness, and we discuss it in Appendix D (item 1) and Appendix E.1. It is, however, not specific to our method: on this pair every diffusion-based method in Table 1 performs near chance (IGEBM 50.3%, VAEBM 48.0%, MSMA 51.0%). None exceeds 60%. Near-OOD detection under category overlap appears to be a property of the diffusion feature space rather than of our feature design, which we support by varying the scoring method on identical features (Table 8: 55.8–59.3% across GMM, kNN, Mahalanobis and soft-min).

Missing standard deviations.

The single numbers reported in the main tables are mean values over 5 random seeds (for reference set sampling). We will add ± std to the main tables in the revised manuscript. The full results with standard deviations are shown below:

ID → OOD AUROC (mean ± std)
C10 → SVHN 0.951 ± 0.009
C10 → CelebA 0.965 ± 0.005
C10 → C100 0.547 ± 0.004
C10 → Texture 0.883 ± 0.005
SVHN → C10 0.973 ± 0.005
SVHN → CelebA 0.999 ± 0.001
SVHN → C100 0.974 ± 0.006
SVHN → Texture 0.969 ± 0.002
CelebA → C10 0.995 ± 0.000
CelebA → SVHN 1.000 ± 0.000
CelebA → C100 0.991 ± 0.001
CelebA → Texture 0.996 ± 0.000
Average 0.937 ± 0.003

Standard deviations are ≤0.009 across all pairs. Since Facility Location greedy selection is deterministic given a candidate pool, the seed controls the random subsample of the ID training set from which that pool is drawn; the reported variation is therefore variation in the candidate pool itself. The near-zero deviations on CelebA-as-ID pairs reflect that those pairs sit at 0.991–1.000, leaving little room for variation. We will clarify both points in the Appendix.

Figure 1 Readability.

We thank the reviewer for the suggestions! We will revise the figure for better presentation.

Comments on the paper

1 comment
Area Chair Axwq · CommentOpenReview ↗

Dear Reviewers,

We are approaching the end of the discussion period with the authors and the authors have provided you with their rebuttal. If you have not done so already, please review the authors' rebuttal to your comments and the other reviews. Please submit any further questions for the authors promptly to allow time for discussion.

Please also remember to update your ratings and final justification if your concerns have been addressed. If ratings are not updated, clearly explain any remaining concerns in your final justification.

As a reminder, the author-reviewer discussion period ends on August 3rd, 11:59 PM AoE.

Best,

Your AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…