TL;DR
Post-hoc out-of-distribution (OOD) detectors—which flag unfamiliar inputs without retraining a model—work well in computer vision, but do they transfer to materials science? This paper introduces MOOD, a benchmark testing 15 post-hoc detectors on graph neural networks (GNNs) predicting crystal properties, and finds that every single one performs near chance (AUROC ~0.50). By pairing detectors with supervised diagnostic probes, the authors reveal why: either the detectors fail to extract signals that are already there, or the GNNs themselves throw away the information needed to spot unfamiliar materials.
What Problem Does This Paper Address?
In materials discovery, scientists use GNNs to screen massive pools of candidate crystals for properties like refractive index or bulk modulus. By definition, discovery means hunting for new compositions and crystal structures—inputs that are out-of-distribution (OOD) relative to the training data.
Unlike image classifiers, which organize their internal representations around neat class boundaries, materials GNNs are trained for regression. When fed an unfamiliar crystal, they silently extrapolate, potentially wasting expensive lab experiments or simulations. Post-hoc OOD detectors—which score frozen model embeddings at inference time without modifying or retraining the model—are an appealing safety net. However, they have been validated almost exclusively on image classification, leaving their usefulness for scientific regression models an open question.
Methods
The authors evaluate 15 unsupervised post-hoc detectors across four mechanism families:
- Distance-based (6): KNN ($k=20, 50$), embedding norm, Cosine similarity, Local Outlier Factor (LOF), and ASH+KNN.
- Density-based (5): Mahalanobis (MDS-BIC), Gaussian KDE, RealNVP normalizing flows, kernel PCA reconstruction error, and ReAct+MDS.
- Isolation-based (2): Isolation Forest and ADERH.
- Boundary/Hybrid (2): One-class SVM and ViM (adapted to residual norm only, since regression GNNs lack class logits).
To figure out why detectors fail, the authors introduce 2 supervised diagnostic probes (a linear probe and an MLP probe) trained on ID/OOD labels. These probes are not deployable detectors; they act as a diagnostic ceiling to test whether OOD signal is actually decodable from the frozen GNN embeddings. Finally, they measure the MAE gap ($\log_{10}(\text{MAE}_{\text{OOD}} / \text{MAE}_{\text{ID}})$) to see if detector performance tracks how badly the GNN's prediction error degrades under shift.
Datasets
The paper introduces MOOD (Materials Out-of-Distribution Detection), built on 5 regression tasks from MatBench: dielectric (refractive index), log_gvrh (shear modulus), log_kvrh (bulk modulus), perovskites (formation energy), and phonons (phonon frequency).
They evaluate 4 GNN architectures (ALIGNN, CGCNN, SchNet, DimeNet++) trained across 3 random seeds, and construct 15 physically motivated OOD splits: 6 compositional (e.g., carbides, oxides, halides) and 9 structural (crystal shapes like cubic or monoclinic, symmetry levels, and perovskites). After filtering small groups, MOOD spans 264 evaluation settings and over 13,000 AUROC measurements.
Key Insights and Ideas
- The vision OOD toolkit does not transfer: Every unsupervised detector achieves a median AUROC within 0.01 of chance (0.50).
- Failures split into two distinct regimes: Using their supervised probes, the authors separate tasks into method bottlenecks and encoder bottlenecks:
- In method-bottlenecked tasks (
dielectric,log_gvrh), supervised probes can separate ID from OOD samples, meaning the frozen embeddings contain OOD signal that unsupervised detectors fail to extract. - In encoder-bottlenecked tasks (
log_kvrh,perovskites,phonons), even supervised probes sit at chance. Because properties like bulk modulus can be predicted from coarse, aggregated signals (like mean bond stiffness), the GNN's regression objective discards the compositional or structural details needed to spot OOD inputs. - Detectors wake up when models fail: When the GNN's prediction error actually worsens on OOD samples, distance- and density-based detectors correlate with the size of that error gap.
Key Results
- Near-chance aggregate performance: Across all 264 settings, the strongest unsupervised detector (Cosine) reaches a mean AUROC of just 0.531 (median 0.507) and exceeds 0.55 on only 13.5% of settings. The weakest (ADERH) averages 0.497.
- Diagnostic ceilings: Supervised probes average 0.543 (linear) and 0.542 (MLP) overall, but reach AUROC ≈ 1.0 on multiple method-bottlenecked settings.
- Tracking regression failure: On the degraded subset ($N_{\text{deg}} = 153$) where OOD error exceeds ID error, Cosine AUROC tracks the log MAE gap with an OLS slope of $\beta = 0.598$ ($R^2 = 0.45$).
Limitations and Future Work
MOOD focuses strictly on post-hoc detectors applied to frozen GNN embeddings. It does not evaluate training-time OOD methods (such as outlier exposure or contrastive pretraining), uncertainty or ensemble methods, or equivariant architectures like MACE.
The authors' diagnostic split points to clear next steps: the method-bottlenecked subset (dielectric and log_gvrh) is the ideal testbed for developing better unsupervised post-hoc detectors, while encoder-bottlenecked tasks require representation learning strategies—such as auxiliary objectives or contrastive pretraining—that explicitly preserve OOD-relevant structure.
Summary updated