Introduction
Reliable deployment of machine learning models requires robust Out-of-Distribution (OOD) detection—the ability for a system to identify inputs that differ significantly from its training data. While diffusion models are powerful generative tools, using them for OOD detection typically involves a "speed vs. accuracy" trade-off. Likelihood-based methods are fast but often unreliable, while state-of-the-art diffusion methods like DiffPath are accurate but computationally expensive, requiring hundreds of forward passes.
SCOPED (Score-Curvature Out-of-distribution Proximity Evaluator for Diffusion) addresses this by introducing a "one-shot" geometric probe. It replaces expensive denoising trajectories with a single test statistic, achieving state-of-the-art accuracy with an order of magnitude fewer model evaluations than previous diffusion-based approaches.
The Score-Curvature Ratio
The fundamental insight behind SCOPED is rooted in information geometry. For in-distribution samples, the squared norm of the model's score function should be balanced by its local curvature (the trace of the Jacobian of the score). SCOPED defines a proximity statistic $T(x)$:
$$T(x) \approx \frac{\|s(x)\|^2}{\kappa(x)}$$
where $s(x)$ is the score and $\kappa(x)$ is the curvature. By measuring how well this balance holds, SCOPED can determine if a sample lies within the "typical set" of the training distribution.
To make this computation efficient, SCOPED employs Hutchinson’s Trace Estimator, which allows for curvature estimation using only a single Jacobian-vector product (JVP). This makes the geometric check roughly as fast as a single additional forward pass. Furthermore, by using SNR-based noise selection, the method probes the model at strategically chosen noise levels that capture both fine details and global structure.
Experimental Results
The authors evaluated SCOPED across computer vision and reinforcement learning (RL) domains, demonstrating its versatility and speed.
Computer Vision
Using a foundation model approach (training on CelebA), SCOPED demonstrated exceptional performance in detecting OOD datasets like SVHN and CIFAR-10. On the CelebA-vs-SVHN benchmark, it achieved a perfect AUROC of 1.00, matching the accuracy of much slower path-based methods while being 10x to 100x faster.
Reinforcement Learning
In RL, OOD detection is critical for safety and robustness. SCOPED was tested on the DeepMind Control Suite and D4RL benchmarks (Ant, Hopper, Walker2d). These tasks are particularly challenging because OOD data might share physical dynamics but differ in reward structures or agent policies.
As shown in the results, SCOPED maintains high AUROC scores across various distribution shifts. A key finding was that models trained on "expert" data—which has a narrower, more coherent distribution—often create sharper boundaries for detecting anomalies compared to those trained on more diverse but noisier replay buffers.
Conclusion
SCOPED demonstrates that the local geometry of the probability density at specific noise levels contains sufficient information for high-quality OOD detection. By bypassing the need for full reverse-diffusion paths, it provides a practical, high-speed solution for real-time applications in robotics and high-throughput vision systems. Future work includes extending this geometric approach to other generative architectures like autoregressive transformers.
Summary updated