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

Achref Jaziri, Martin Rogmann, Martin Mundt, Visvanathan Ramesh · DOI

Introduction

Standard Out-of-Distribution (OOD) detection is typically treated as a binary classification task: a sample is either in-distribution (ID) or out-of-distribution. While effective for simple filtering, this approach fails to characterize the nature of the shift. This paper introduces DISC (Diffusion-based Statistical Characterization), a framework that utilizes the iterative denoising process of diffusion models to generate a multi-dimensional "statistical fingerprint." This allows for both the detection and classification of specific distributional shifts.

The Limitation of Scalar OOD Scores

In practical machine learning deployments, data shifts are diverse, ranging from covariate shifts (e.g., lighting changes) to semantic shifts (e.g., novel classes). Current OOD detection methods often collapse complex evidence into a single scalar "anomaly score." This compression is a fundamental flaw; a single number cannot reliably distinguish between a corrupted image that should be discarded and a novel category that represents a learning opportunity.

Standard distance-based methods often conflate distinct OOD types due to overlapping feature distributions in the latent space.

As illustrated in Figure 1, standard distance or density-based methods often conflate these distinct OOD types because their scores overlap significantly. The authors provide a theoretical proof showing that for any scalar test statistic, multiple distinct distributions can be mathematically indistinguishable, making fine-grained OOD characterization impossible with traditional single-score methods.

Methodology: Diffusion-based Statistical Characterization (DISC)

DISC leverages the generative priors of Denoising Diffusion Probabilistic Models (DDPMs) by analyzing the trajectory of the denoising process rather than just the final output.

  1. Multi-Step Probing: An input $x$ is perturbed with varying noise levels $\sigma$.
  2. Trajectory Extraction: At each timestep, the model predicts a denoised estimate. DISC calculates a suite of complementary metrics:
  3. Image Domain: Mean Squared Error (pixel-level), LPIPS (perceptual features), SSIM (structural integrity), and Local Complexity.
  4. Tabular Domain: MSE and "Reconstruction Rank-Order Consistency" to identify structural misalignments.
  5. Feature Vector Construction: These metrics are concatenated across all diffusion timesteps into a high-dimensional feature vector $s(x)$.

By observing how these metrics evolve over the diffusion process, DISC captures a rich profile of the data. Different shifts manifest at different stages: structural shifts are often apparent at low noise levels, while semantic differences emerge as the model attempts to reconstruct high-level features at higher noise levels.

Experimental Results

The researchers evaluated DISC across image (CIFAR-10, ImageNet) and tabular (ADBench) benchmarks.

Scalar Baseline Comparison

Existing scalar-based methods struggle to separate different types of OOD data. Histograms of scores from methods like Mahalanobis+ODIN, Energy-based, and SHE show significant overlap between various OOD sets such as MNIST and adversarial FGSM samples, confirming the theoretical limitation of single-score statistics.

Histograms of OOD scores for standard methods show significant overlap, highlighting the difficulty of distinguishing between different shift types using scalar statistics.

Performance and Characterization

  • Superior Discrimination: DISC significantly improves OOD-type classification. On CIFAR-10, it achieved approximately 51% unsupervised clustering accuracy for OOD types, outperforming baselines which ranged from 35% to 49%.
  • State-of-the-Art Detection: On ImageNet, DISC achieved an average AUROC of 0.7404, surpassing both standard scalar detectors and simpler diffusion-based approaches.
  • Tabular Versatility: In the ADBench suite, DISC outperformed 14 specialized anomaly detection methods, demonstrating the generalizability of the structural consistency approach beyond computer vision.

Conclusion and Future Work

DISC moves beyond binary detection toward distributional characterization. While the computational cost of running full diffusion trajectories is a current limitation, the ability to identify the type of shift is a critical step toward more robust and adaptive AI systems. Future work will focus on optimizing the computational efficiency and automatically learning domain-specific metrics.

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