Beyond Binary Out of Distribution Detection: Characterizing Distributional Shifts with Multi-Statistic Diffusion Trajectories

Achref Jaziri, Martin Rogmann, Martin Mundt, Visvanathan Ramesh

TL;DR

This paper introduces DISC, a novel method for Out-of-Distribution (OOD) detection that moves beyond simple binary classification. By leveraging the iterative denoising process of diffusion models, DISC extracts a rich, multi-dimensional feature vector that can distinguish between different types of distributional shifts, offering a more granular understanding of OOD data.

What Problem Does This Paper Address?

Current Out-of-Distribution (OOD) detection methods primarily focus on a binary decision: is a given data point "in-distribution" (ID) or "out-of-distribution" (OOD)? While effective for flagging novel data, this binary approach fails to capture the crucial nuances of why a data point is OOD. Different types of distributional shifts (e.g., covariate shifts like image corruptions vs. semantic shifts like entirely new classes) require different responses from a machine learning system. For instance, corrupted data might need to be discarded, while data from new classes could be an opportunity for model adaptation or continual learning. Existing methods, by collapsing all OOD signals into a single scalar score, lose this critical information, making it difficult to take appropriate actions beyond simple rejection. This paper aims to bridge this gap by enabling a more granular characterization of OOD data.

Methods

The core innovation is DISC (Diffusion-based Statistical Characterization). DISC leverages the inherent properties of denoising diffusion probabilistic models (DDPMs). These models learn to reverse a diffusion process, gradually denoising a noisy input back to a clean sample. DISC utilizes the intermediate states of this denoising process across multiple noise levels.

Here's how it works:

  1. Diffusion Trajectories: For an input data point, DISC generates a sequence of reconstructions at various stages of the diffusion process.
  2. Multi-Statistic Extraction: At each noise level, DISC computes a set of complementary metrics that capture different aspects of the data's statistical properties and its reconstruction. These metrics include:
  3. Pixel-level fidelity: Mean Squared Error (MSE).
  4. Perceptual similarity: Learned Perceptual Image Patch Similarity (LPIPS).
  5. Structural integrity: Structural Similarity Index (SSIM).
  6. Local complexity: Quantifying representation stability under small perturbations.
  7. Texture and frequency descriptors: For image data, capturing patterns and spectral energy.
  8. Structural consistency: For tabular data, preserving feature relationships.
  9. Multi-Dimensional Embedding: The aggregated statistics from these metrics across all diffusion timesteps form a high-dimensional feature vector for each input. This vector, unlike a single scalar score, captures a richer, multi-faceted representation of the data's deviation from the in-distribution.

The paper also includes a theoretical proof demonstrating that any method relying on a single scalar test statistic is fundamentally limited in its ability to distinguish between different types of distributional shifts.

Datasets

The paper evaluates DISC on both image and tabular datasets:

  • Image Datasets:
    • In-distribution: CIFAR-10, ImageNet-1k.
  • Out-of-distribution: CIFAR-10-FGSM, horizontal flips, 90° rotations, central black-pixel occlusion, Butterflies, MNIST (for CIFAR-10 ID). ImageNet-A, ImageNet-O, ImageNet-C, CIFAR-10, MNIST (for ImageNet-1k ID).
  • Tabular Datasets: A subset of datasets from the ADBench benchmark.

Key Insights and Ideas

  • Scalar Scores are Insufficient: The paper provides both empirical evidence and a theoretical proof that single scalar OOD scores inherently collapse information about different types of distributional shifts, making fine-grained discrimination impossible.
  • Diffusion Trajectories Encode Rich Information: The iterative denoising process of diffusion models naturally generates a temporal sequence of data representations. This "trajectory" captures information at different levels of abstraction, from coarse semantic structure to fine-grained statistical details, which is crucial for distinguishing shift types.
  • Complementary Metrics are Key: No single metric is sufficient. DISC's strength lies in combining diverse metrics (pixel, structural, perceptual, texture) across the diffusion trajectory to create a robust, multi-dimensional representation.
  • Beyond Binary Detection: The ultimate goal is to enable systems to not just detect OOD data but to understand its nature, paving the way for more intelligent responses in open-world scenarios.

Key Results

  • Competitive OOD Detection: DISC matches or surpasses state-of-the-art detectors in standard binary ID-vs-OOD detection tasks, achieving an average AUROC of 0.728 on ImageNet and 0.860 on tabular datasets.
  • Superior OOD Type Classification: Crucially, DISC significantly outperforms baseline methods in classifying the type of OOD shift. For instance, on ImageNet, DISC achieves a supervised classification accuracy of 0.6203, a substantial improvement over baselines.
  • ImageNet Performance: On ImageNet, DISC shows the largest gains on texture/shape mismatches and occlusions (e.g., Butterflies, MNIST, CIFAR-10, ImageNet-Black), highlighting its ability to capture these specific shift types.
  • Tabular Data Effectiveness: DISC also demonstrates strong performance on tabular datasets, consistently achieving competitive or state-of-the-art results in both unsupervised and supervised OOD type classification.
  • Ablation Studies: Experiments confirm the importance of using the full diffusion trajectory and the necessity of combining multiple metric groups for optimal performance.

Limitations and Future Work

  • Computational Cost: DISC has a higher inference cost compared to standard single-pass scalar detectors due to the need for multiple denoising evaluations and metric computations across diffusion timesteps. The authors acknowledge this trade-off, comparing it to other methods that also trade computation for improved uncertainty signals (e.g., Deep Ensembles, Monte Carlo Dropout).
  • Metric Optimization: While DISC demonstrates the value of complementary metrics, the authors note that they do not claim these metrics are universally optimal for all datasets. The choice of scores should be guided by the specific application and the types of shifts expected.
  • Future Directions: The authors hope their work inspires a move towards richer open-world evaluations and systems that can reason about the nature of novelty, rather than just binary rejection. This suggests future work could focus on developing more efficient DISC variants and exploring its application in more complex continual learning or adaptation scenarios.

Summary updated

BibTeX
@inproceedings{jaziri2026beyond,
  author = {Achref Jaziri and Martin Rogmann and Martin Mundt and Visvanathan Ramesh},
  title = {{Beyond Binary Out of Distribution Detection: Characterizing Distributional Shifts with Multi-Statistic Diffusion Trajectories}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=nPooplHfR4},
}
Figure