SCOPED: Score-Curvature Out-of-distribution Proximity Evaluator for Diffusion
Brett Barkley, Preston Culbertson, David Fridovich-Keil
TL;DR
SCOPED addresses the critical need for fast, reliable OOD detection for diffusion models by exploiting theScore-Curvature Ratio, a statistic that combines score norm and local curvature. By estimating the curvature with Hutchinson’s trace estimator and evaluating at a few strategically chosen noise levels, SCOPED achieves substantial reductions in forward passes while maintaining competitive AUROC across vision benchmarks and robust separation in RL tasks. Calibration via kernel density estimation on in-distribution statistics enables fully unsupervised deployment, with offline selection of diffusion steps ensuring robustness without OOD tuning. The results demonstrate that a geometry-driven, information-theoretic approach can deliver practical, scalable OOD detection with broad applicability to perception, control, and data curation.
Abstract
Out-of-distribution (OOD) detection is essential for reliable deployment of machine learning systems in vision, robotics, reinforcement learning, and beyond. We introduce Score-Curvature Out-of-distribution Proximity Evaluator for Diffusion (SCOPED), a fast and general-purpose OOD detection method for diffusion models that reduces the number of forward passes on the trained model by an order of magnitude compared to prior methods, outperforming most diffusion-based baselines and closely approaching the accuracy of the strongest ones. SCOPED is computed from a single diffusion model trained once on a diverse dataset, and combines the Jacobian trace and squared norm of the model's score function into a single test statistic. Rather than thresholding on a fixed value, we estimate the in-distribution density of SCOPED scores using kernel density estimation, enabling a flexible, unsupervised test that, in the simplest case, only requires a single forward pass and one Jacobian-vector product (JVP), made efficient by Hutchinson's trace estimator. On four vision benchmarks, SCOPED achieves competitive or state-of-the-art precision-recall scores despite its low computational cost. The same method generalizes to robotic control tasks with shared state and action spaces, identifying distribution shifts across reward functions and training regimes. These results position SCOPED as a practical foundation for fast and reliable OOD detection in real-world domains, including perceptual artifacts in vision, outlier detection in autoregressive models, exploration in reinforcement learning, and dataset curation for unsupervised training.
