[Paper Review] Out-of-Distribution Detection with Distance Guarantee in Deep Generative Models
This paper proposes a novel approach to out-of-distribution (OOD) detection in deep generative models by leveraging theoretical guarantees on divergence and geometry. It introduces group and point-wise anomaly detection methods that achieve near 100% AUROC on all benchmarks, significantly outperforming state-of-the-art methods, especially under data manipulations.
Recent research has revealed that deep generative models including flow-based models and Variational autoencoders may assign higher likelihood to out-of-distribution (OOD) data than in-distribution (ID) data. However, we cannot sample out OOD data from the model. This counterintuitive phenomenon has not been satisfactorily explained. In this paper, we prove theorems to investigate the divergences in flow-based model and give two explanations to the above phenomenon from divergence and geometric perspectives, respectively. Based on our analysis, we propose two group anomaly detection methods. Furthermore, we decompose the KL divergence and propose a point-wise anomaly detection method. We have conducted extensive experiments on prevalent benchmarks to evaluate our methods. For group anomaly detection (GAD), our method can achieve near 100\% AUROC on all problems and has robustness against data manipulations. On the contrary, the state-of-the-art (SOTA) GAD method performs not better than random guessing for challenging problems and can be attacked by data manipulation in almost all cases. For point-wise anomaly detection (PAD), our method is comparable to the SOTA PAD method on one category of problems and outperforms the baseline significantly on another category of problems.
Motivation & Objective
- To explain the counterintuitive phenomenon where deep generative models assign higher likelihood to OOD data than to in-distribution data.
- To provide theoretical foundations for this behavior using divergence and geometric perspectives in flow-based models.
- To develop robust group and point-wise anomaly detection methods with provable performance guarantees.
- To improve the reliability of OOD detection under data manipulations, where existing methods fail.
Proposed method
- Theoretical analysis of divergences in flow-based models to explain why OOD data can have higher likelihood than ID data.
- Proposed group anomaly detection (GAD) methods based on geometric and divergence-based principles, ensuring distance guarantees.
- Decomposition of KL divergence to enable point-wise anomaly detection (PAD), improving sensitivity to individual outliers.
- Design of anomaly detection methods that are robust to data manipulations, unlike prior SOTA approaches.
- Extensive evaluation on standard benchmarks to validate performance and robustness.
Experimental results
Research questions
- RQ1Why do flow-based models and VAEs assign higher likelihood to OOD data than to ID data?
- RQ2Can we provide theoretical justification for this counterintuitive behavior using divergence and geometric analysis?
- RQ3Can we design anomaly detection methods that are robust to data manipulations and achieve near-perfect performance?
- RQ4How does the proposed decomposition of KL divergence improve point-wise anomaly detection?
Key findings
- The proposed group anomaly detection (GAD) method achieves near 100% AUROC across all tested problems, significantly outperforming the SOTA method.
- The SOTA GAD method performs no better than random guessing on challenging problems and is vulnerable to data manipulations.
- The proposed GAD method maintains robustness against data manipulations, unlike the SOTA method which is easily attacked.
- For point-wise anomaly detection (PAD), the method is comparable to SOTA on one problem category and significantly outperforms the baseline on another.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.