# MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction

MOOD benchmark finds post-hoc OOD detectors near chance on materials GNNs

Yu, Shirley X., Pasarkar, Amey P., Dieng, Adji Bousso · arXiv · 2026-11-9

- **Problem** Post-hoc OOD detectors were validated almost only on image classification, so it is unclear whether they work for GNNs predicting materials properties.
- **Method** MOOD freezes a trained GNN and runs 15 post-hoc detectors on its penultimate-layer embeddings. Two supervised probes that see the OOD labels serve as a reference.
- **Results** Across 264 settings, the best detector, Cosine, averaged 0.531 AUROC, close to the 0.5 of chance.

![Figure 6: MOOD benchmark axes.5 MatBench datasets, 4 GNN architectures, 15 OOD splits (6 compositional, 9 structural), and 17 detectors across 5 families. The…](https://refivu.com/papers/43f71184-5ad3-4e22-907b-780780aa57a8/figures/figure-09cf747079caf245596f62404cd7a44b.png?thumb=512)

**Figure 6** :MOOD benchmark axes.5 MatBench datasets, 4 GNN architectures, 15 OOD splits (6 compositional, 9 structural), and 17 detectors across 5 families. The full grid yields 300 candidate (dataset, architecture, split) settings; 264 are kept after dropping splits with fewer than 50 minority class samples. Seven CGCNN/phonons settings collapse under seed 42 only and are averaged over the two valid seeds. Running 17 detection methods on each setting yields 4,488 AUROC measurements per seed.

[Original paper](https://arxiv.org/abs/2611.11839v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yu, Shirley X., Pasarkar, Amey P., Dieng, Adji Bousso · MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction · Original paper figure · Extracted the figure area from page 17 of the original PDF.

## Why image-based detectors may fail here

Materials screening runs a trained GNN over large pools of candidate structures, and the riskiest inputs have new compositions or new structures. GNN predictions tend to worsen on exactly those inputs, and a regressor rarely signals when it is extrapolating beyond its training data. Image classifier embeddings tend to be organized around class boundaries, but the embeddings of GNN regressors are not.

Most post-hoc OOD detection methods were developed and benchmarked on image classification.

Earlier benchmarks on materials models measured how prediction error grows under shift, but not whether a detector can flag the inputs where it grows. Omee et al. report MAE degradation reaching 5x on some splits. A post-hoc detector is attractive here because it can be added after training without touching the predictor or its training pipeline.

The open question is therefore whether detectors built for images can recover failures on frozen materials GNN embeddings.

## Frozen embeddings, fixed splits and two probes

The benchmark starts by freezing a trained GNN and taking its penultimate-layer embeddings, so detectors only see those vectors. Two supervised probes act as a reference, because they can use the OOD labels that the detectors never see. Comparing the two shows what the embedding contains versus what a detector can extract from it.

Each evaluation setting pairs one MatBench task, one GNN architecture, and one OOD split. Starting from 300 candidate combinations, 264 remained after small OOD groups were filtered out. The four architectures are ALIGNN, CGCNN, SchNet and DimeNet++, each trained with seeds 42, 123 and 456 on a 90/10 random split of the ID set. Seven CGCNN/phonons encoders collapse to constant embeddings under seed 42, so those settings average over the two seeds that train normally.

An OOD split is a binary rule that partitions materials into two groups. The larger group becomes the ID pool, and the smaller group becomes the OOD test set. Group size therefore decides which side is ID, not which side the rule names. Both test sets are then subsampled to the same size, so AUROC compares equal numbers of ID and OOD points.

The 15 unsupervised detectors fall into four families: distance, density, isolation, and boundary or hybrid. The linear and MLP probes train on ID/OOD labels under five-fold stratified cross-validation. A task is then labeled by probe AUROC and probe gap, using the 0.55 and 0.05 thresholds.

## Detectors stay near chance across the benchmark

The best one, Cosine, averaged 0.531 and cleared 0.55 in only 13.5% of settings. ADERH averaged 0.497, with 4.7% of its settings above 0.55. The supervised probes did better on average, at 0.543 linear and 0.542 MLP. Their medians stayed near chance, so the strong probe results came from a minority of settings.

Even the best detector in each family leaves the picture modest, because every family sits only modestly above chance. Distance methods won the most settings, 40% against a 20% random baseline across five groups. Figure 3 shows these family comparisons with standard errors of the mean and win rates.

![Figure 3: Family level analysis.(A) Per-setting family-max AUROC. Error bars are ±1 Standard Error of the Mean (SEM) across Nall = 264 settings. (B) Win rate p…](https://refivu.com/papers/43f71184-5ad3-4e22-907b-780780aa57a8/figures/figure-d73b1c4859e50487838d9edd5f3eb2b3.png?thumb=512)

**Figure 3** :Family level analysis.(A) Per-setting family-max AUROC. Error bars are ±1 Standard Error of the Mean (SEM) across Nall = 264 settings. (B) Win rate per family, including the supervised probes as a fifth group, with ties split equally.

[Original paper](https://arxiv.org/abs/2611.11839v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Mean selective prediction effectiveness ranges only from 0.14 to 0.37, where an oracle abstaining on the worst predictions first scores 1. That leaves most unreliable predictions unflagged.

The authors also rerun Mahalanobis and KNN on the three Omee split protocols: LOCO, SparseXcluster and SparseYcluster. Table 17 covers dielectric and log\_gvrh, with the ALIGNN and CGCNN embeddings and 50 folds per split. So the near-chance result doesn't hinge on the authors' own split construction.

## Probes split failures into two regimes

A task is classified by comparing the linear probe with the detectors, using the probe gap, which is the linear probe's mean AUROC minus the mean AUROC of the 15 unsupervised detectors. A task is method-bottlenecked when the linear probe AUROC is at least 0.55 and the probe gap is at least 0.05, so the signal exists in the embeddings but the detectors miss it.

A task is encoder-bottlenecked when the linear probe AUROC stays below 0.55, so no signal a linear or MLP probe can decode exists in the embeddings. The paper also defines a mixed label for tasks where the probe reaches 0.55 but the gap stays under 0.05.

Dielectric and log\_gvrh fall in the method-bottlenecked group, with linear probes averaging 0.599 and 0.600. Their gaps over the mean detector are +0.078 and +0.076, so the probe clearly beats the detectors on these two tasks. Log\_kvrh, perovskites and phonons are encoder-bottlenecked, with linear probes at 0.494, 0.500 and 0.499. On those three tasks, the probe stays at chance, so neither the probe nor the detectors find ID/OOD signal.

Figure 4 shows this in three panels: A compares linear and MLP probes, B plots the linear probe against Cosine, and C shades each task by regime.

![Figure 4: Method vs. encoder bottlenecks.(A) Linear vs. MLP probe AUROC; close agreement (r=0.971) rules out nonlinearity as the explanation for the encoder bo…](https://refivu.com/papers/43f71184-5ad3-4e22-907b-780780aa57a8/figures/figure-a7ca1c774094ca3d3ad2c214bfab3702.png?thumb=512)

**Figure 4** :Method vs. encoder bottlenecks.(A) Linear vs. MLP probe AUROC; close agreement (r=0.971) rules out nonlinearity as the explanation for the encoder bottleneck. (B) Linear probe vs. Cosine (best deployable detector); two clusters emerge separating method-bottlenecked tasks (probe high, detector low) from encoder-bottlenecked ones (both near chance). (C) Linear probe AUROC by task; yellow (Method) and blue (Encoder) shading mark the two bottleneck regimes.

[Original paper](https://arxiv.org/abs/2611.11839v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

A non-linear probe could in principle recover signal that the linear probe misses, so the authors checked the MLP probe. The MLP probe agrees with the linear probe at r of 0.971, with a mean absolute difference of 0.023.

A per-setting permutation test on the linear probe gives the same split between the two regimes. 28.6% of dielectric settings and 26.7% of log\_gvrh settings reject the null at p \<0.01. Encoder tasks reject at most 1 of 52 phonon settings under any seed, close to the roughly 1% expected under the null. Seed-to-seed standard deviations of 0.001 to 0.009 are far smaller than the 0.101 to 0.105 gap between the two regimes.

The authors attribute the method regime to OOD splits that change features the property also depends on, such as composition-driven electronic structure for refractive index.

## When detection tracks regression error

The MAE gap compares the GNN's regression error on OOD samples with its error on ID samples, as log10(MAE\_OOD/MAE\_ID). For each detector, the authors fit an ordinary least squares regression of AUROC on that gap across settings. They report the fit on all N\_all = 264 settings and on the degraded subset with N\_deg = 153. The degraded subset keeps only settings where MAE\_OOD is larger than MAE\_ID, with both MAEs averaged over the three encoder seeds.

The intuition is that when the GNN's error rises on OOD inputs, the embedding has drifted away from the training distribution in a measurable way. Distance and density detectors should then pick up that displacement. Figure 5 plots per-setting AUROC against this gap for one representative detector per family, with blue fits on all settings and red fits on the degraded subset.

Table 3 reports the OLS slope β and R² for each representative detector and for the two supervised probes.

![Figure 5: Detector AUROC tracks regression failure magnitude.Per-setting AUROC against log10(MAEOOD/MAEID) for one representative detector per family. Blue lin…](https://refivu.com/papers/43f71184-5ad3-4e22-907b-780780aa57a8/figures/figure-90f3c26365bd8cfb57adfbfa1a005218.png?thumb=512)

**Figure 5** :Detector AUROC tracks regression failure magnitude.Per-setting AUROC against log10(MAEOOD/MAEID) for one representative detector per family. Blue lines fit Nall = 264 settings; red lines fit the degraded subsetN deg = 153. Per-detector grid in Appendix D, Figure 7.

[Original paper](https://arxiv.org/abs/2611.11839v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Across detectors, the paper reads distance and density methods as responding most strongly to this displacement.

The relationship is strongest on the degraded subset, where the GNN actually loses accuracy on OOD samples. The blue fits on all 264 settings look flatter because settings with MAE\_OOD at or below MAE\_ID add points with little shift to track. The gap needs OOD labels to compute, so it works as a retrospective mechanism check rather than a way to predict in advance whether detection will work.

The section therefore explains when detectors gain purchase, and it cannot be used as a deployment rule.

## Limitations and open questions

The findings cover post-hoc detectors on frozen GNN embeddings only, so the study says little about other OOD strategies. Training-time methods, detectors on intermediate activations, uncertainty and ensembles, and domain adaptation weren't evaluated. Related benchmarks such as DrugOOD and BOOM study molecules, and GeSS studies geometric deep learning, yet none of them evaluates post-hoc detection.

The Matformer and MACE encoders are also missing, and they're planned for a v2 release.

The probes set diagnostic ceilings rather than deployable detectors, because they need OOD labels at fit time. They bound the OOD signal a linear or MLP classifier can decode, not all information the embedding may contain. Property-driven splits and SOAP-LOCO are named as alternatives the authors didn't test. Running detectors on Magpie or SOAP fingerprints instead of GNN embeddings is left as a next step.

The 0.55 probe threshold and the 0.05 probe gap threshold are conservative cutoffs that set the bottleneck labels. Method-bottlenecked datasets reach mean probe AUROC 0.599 to 0.600, while encoder-bottlenecked datasets stay within 0.006 of chance.

The authors defer AUPR-In and AUPR-Out for all 17 detectors, because they need a cluster recompute. Flow's FPR95 is stored separately, so FPR95 covers only 14 of the 15 unsupervised detectors. Seven of the 13 CGCNN/phonons settings collapse under seed 42 only, and the authors average over the two valid seeds instead of excluding them. The linear probe uses C=1.0 and the MLP probe uses alpha=1.0, and the sklearn-default MLP differs by at most 0.007 mean AUROC.

## Paper info

- **Authors**: Yu, Shirley X., Pasarkar, Amey P., Dieng, Adji Bousso
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-10
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.11839
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.11839v1) · [PDF ↗](https://arxiv.org/pdf/2611.11839v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Out-of-distribution (OOD) detection is essential for deploying machine learning models in high stakes scientific applications, yet methods that flag OOD inputs without retraining the model have been validated almost exclusively on image classification. We introduce MOOD (Materials Out-of-Distribution Detection), a benchmark for evaluating whether these post-hoc OOD detectors transfer to graph neural networks (GNNs) on materials property prediction. MOOD evaluates 15 post-hoc detectors and 2 supervised diagnostic probes across 4 GNN architectures, 5 MatBench tasks, and 15 physically motivated compositional and structural shifts, yielding 264 evaluation settings and over 13,000 AUROC measurements across three encoder training seeds. Our evaluation reveals three key findings. First, current post-hoc detectors perform near chance; all 15 detectors achieve an AUROC around 0.5. Second, detector failures decompose into two regimes: method bottlenecks and encoder bottlenecks. Method bottlenecks arise when supervised probes can separate in-distribution (ID) from OOD samples but unsupervised detectors fail, meaning that the embeddings contain OOD signal that current detectors do not extract. Encoder bottlenecks arise when even supervised probes fail to separate ID from OOD samples, indicating that the relevant shift is not accessible in the frozen GNN representation. Third, when OOD prediction error exceeds ID error, the AUROC of distance-based and density-based detectors correlates with the size of that gap. Collectively, these findings indicate that reliable OOD detection in scientific domains requires representation learning strategies that explicitly preserve OOD relevant signal, particularly for tasks where current GNN architectures encode no extractable signal at all.

## Quote from the paper

Yu, Shirley X., Pasarkar, Amey P., Dieng, Adji Bousso (2026). MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction. arXiv:2611.11839v1. https://arxiv.org/abs/2611.11839v1

**BibTeX**

```
@misc{x2026mood,
  title = {{MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction}},
  author = {Yu, Shirley X. and Pasarkar, Amey P. and Dieng, Adji Bousso},
  year = {2026},
  eprint = {2611.11839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11839v1}
}
```

## Other paper commentary

- [Benchmarking CNNs, Vision Transformers, and Foundation Models for Explainable Brain Tumor MRI Classification: Calibration, Decision Analysis, and External Validation](https://refivu.com/en/papers/7a2d0525-ea26-4e79-9cd4-6a0e30e443ef-benchmarking-cnns-vision-transformers-and-foundation-models.md)
- [Map2SLAM: From Streaming Map Prediction to Real-Time SLAM](https://refivu.com/en/papers/bb1368e0-4956-4656-a723-87cdafb34923-map2slam-from-streaming-map-prediction-to-real-time.md)
- [Seeing Isn't Enough: Unlocking Visual Reasoning by Bridging the Reasoning-Access Gap with TIGER](https://refivu.com/en/papers/c32fbf94-4cbb-401d-b218-b88905246194-seeing-isn-t-enough-unlocking-visual-reasoning-by.md)
- [UniLatent: Cross-Embodiment Transfer via Latent Observation Alignment](https://refivu.com/en/papers/34df7b13-6a07-47d8-9c0b-3ed84c8d1337-unilatent-cross-embodiment-transfer-via-latent-observation.md)
- [REFORM-3D: A Representation-Centric Evaluation Framework for 3D Medical Vision Foundation Models](https://refivu.com/en/papers/09c21d02-07bb-40da-a845-16862c6f9fbb-reform-3d-a-representation-centric-evaluation-framework-for.md)
- [ESTRA: Enabling Extreme Attention Sparsity for Training-Free Video Diffusion Acceleration](https://refivu.com/en/papers/6a74d9dd-6805-4d9a-a7f5-24ad9bf9ed98-estra-enabling-extreme-attention-sparsity-for-training-free.md)
- [Distilling Instructions into Weights: Closed-Form Edits Fix a Robot Policy's Misreading](https://refivu.com/en/papers/090ad32c-77e2-48f8-ac1c-1cc0ae994759-distilling-instructions-into-weights-closed-form-edits-fix.md)
- [The Dark Matter of Clinical Data: An Identification Limit on Disentangling Physiology from Care Process in electronic health records](https://refivu.com/en/papers/33d5a0aa-8bfa-483e-8562-22f5ccd49e27-the-dark-matter-of-clinical-data-an-identification.md)
- [Variational Approach to Optimal IPS Estimator for Multi-logger Off-Policy Evaluation](https://refivu.com/en/papers/1c85d393-b71f-4854-b4d4-cb301035dd96-variational-approach-to-optimal-ips-estimator-for-multi.md)
- [Measuring Generative AI Content in Political Campaigns: Evidence of Rising Adoption and Non-Disclosure](https://refivu.com/en/papers/34da9425-8bf3-4db8-b84a-cb9c432285df-measuring-generative-ai-content-in-political-campaigns.md)
- [Accelerated Reinforcement Learning for Soft Robotics: Hours Instead of Years](https://refivu.com/en/papers/58948c14-b162-4ab0-a808-b107b7c6a99c-accelerated-reinforcement-learning-for-soft-robotics-hours.md)
- [CRUSTPairs: A Cross-Language Dataset of Paired C and Rust Solutions](https://refivu.com/en/papers/26d58833-760c-4ec6-880a-8d37592f0bfc-crustpairs-a-cross-language-dataset-of-paired-c.md)

## Terms in this paper

- [Mean Absolute Error](https://refivu.com/en/terms/2117321fb36f-mean-absolute-error)
- [linear probe](https://refivu.com/en/terms/ac513e2ee27c-linear-probe)
- [graph neural network](https://refivu.com/en/terms/06cd100552dd-graph-neural-network)
- [Cosine](https://refivu.com/en/terms/359639031e4f-cosine)
- [embedding](https://refivu.com/en/terms/dd0144726bba-embedding)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/43f71184-5ad3-4e22-907b-780780aa57a8-mood-benchmarking-post-hoc-ood-detection-for-materials)
