Diffusion-Based Layer-Wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection

Abstract

Unsupervised out-of-distribution (OOD) detection aims to identify out-of-domain data by learning only from unlabeled In-Distribution (ID) training samples, which is crucial for developing a safe real-world machine learning system. Current reconstruction-based method provides a good alternative approach, by measuring the reconstruction error between the input and its corresponding generative counterpart in the pixel/feature space. However, such generative methods face the key dilemma, $i.e.$, improving the reconstruction power of the generative model, while keeping compact representation of the ID data. To address this issue, we propose the diffusion-based layer-wise semantic reconstruction approach for unsupervised OOD detection. The innovation of our approach is that we leverage the diffusion model's intrinsic data reconstruction ability to distinguish ID samples from OOD samples in the latent feature space. Moreover, to set up a comprehensive and discriminative feature representation, we devise a multi-layer semantic feature extraction strategy. Through distorting the extracted features with Gaussian noises and applying the diffusion model for feature reconstruction, the separation of ID and OOD samples is implemented according to the reconstruction errors. Extensive experimental results on multiple benchmarks built upon various datasets demonstrate that our method achieves state-of-the-art performance in terms of detection accuracy and speed.

Cite

Text

Yang et al. "Diffusion-Based  Layer-Wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection." Neural Information Processing Systems, 2024. doi:10.52202/079017-0843

Markdown

[Yang et al. "Diffusion-Based  Layer-Wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection." Neural Information Processing Systems, 2024.](https://mlanthology.org/neurips/2024/yang2024neurips-diffusionbased/) doi:10.52202/079017-0843

BibTeX

@inproceedings{yang2024neurips-diffusionbased,
  title     = {{Diffusion-Based  Layer-Wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection}},
  author    = {Yang, Ying and Cheng, De and Fang, Chaowei and Wang, Yubiao and Jiao, Changzhe and Cheng, Lechao and Wang, Nannan and Gao, Xinbo},
  booktitle = {Neural Information Processing Systems},
  year      = {2024},
  doi       = {10.52202/079017-0843},
  url       = {https://mlanthology.org/neurips/2024/yang2024neurips-diffusionbased/}
}