Towards Out-of-Distribution Detection with Divergence Guarantee in Deep Generative Models

Yufeng Zhang,Wanwei Liu,Zhenbang Chen,Ji Wang,Zhiming Liu,Kenli Li,Hongmei Wei
2020-01-01
Abstract:Recent research has revealed that deep generative models including flow-based models and Variational autoencoders may assign higher likelihoods 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. Our theoretical analysis inspires us to detect OOD data by Kullback-Leibler divergence between the distribution of representations and prior. Furthermore, we decompose the KL divergence to improve our group-wise anomaly detection method and support point-wise anomaly detection as well. We have conducted experiments on prevalent benchmarks to evaluate our method. Experimental results demonstrate the superiority of our OOD detection method.
What problem does this paper attempt to address?