Likelihood-based deep generative models such as score-based diffusion models and variational autoencoders are state-of-the-art machine learning models approximating high-dimensional distributions of data such as images, text, or audio. One of many downstream tasks they can be naturally applied to is out-of-distribution (OOD) detection. However, seminal work by Nalisnick et al. which we reproduce showed that deep generative models consistently infer higher log-likelihoods for OOD data than data they were trained on, marking an open problem. In this work, we analyse using the gradient of a data point with respect to the parameters of the deep generative model for OOD detection, based on the simple intuition that OOD data should have larger gradient norms than training data. We formalise measuring the size of the gradient as approximating the Fisher information metric. We show that the Fisher information matrix (FIM) has large absolute diagonal values, motivating the use of chi-square distributed, layer-wise gradient norms as features. We combine these features to make a simple, model-agnostic and hyperparameter-free method for OOD detection which estimates the joint density of the layer-wise gradient norms for a given data point. We find that these layer-wise gradient norms are weakly correlated, rendering their combined usage informative, and prove that the layer-wise gradient norms satisfy the principle of (data representation) invariance. Our empirical results indicate that this method outperforms the Typicality test for most deep generative models and image dataset pairings.
The Adversarial Attack and Detection under the Fisher Information Metric
East China Normal University(华东师范大学);University of Virginia(弗吉尼亚大学);Shanghai University(上海大学);Westlake Institute for Brain-Like Science and Technology(西湖高等研究院脑与脑类科学研究所)
A Discriminative Model for Identifying Readers and Assessing Text Comprehension from Eye Movements
University of Potsdam(波茨坦大学);Weizenbaum Institute for the Networked Society(魏岑鲍姆网络化社会研究所);Leibniz Institute for Agricultural Engineering and Bioeconomy(莱布尼茨农业工程与生物经济研究所)
Pathological spectra of the Fisher information metric and its variants in deep neural networks
Artificial Intelligence Research Center, National Institute of Advanced Industrial Science and Technology (AIST)(人工智能研究中心,国立先进工业科学技术研究所(AIST));National Institute of Advanced Industrial Science and Technology (AIST)(国立先进工业科学技术研究所(AIST));RIKEN Center for Brain Science (CBS)(理化学研究所脑科学中心(CBS))
The Spectrum of Fisher Information of Deep Networks Achieving Dynamical Isometry
Fujitsu Laboratories(富士通研究所);AIST(产业技术综合研究所)
费舍尔信息矩阵(Fisher information matrix)是理解深度神经网络(DNN)可训练性的基础,因为它描述了参数空间的局部度量。我们调查的谱分布的条件反射,这是一个单一的样本,通过专注于实现动态等距的全连接网络的反射。然后,虽然动态等距是已知的,以保持特定的反向传播信号的深度无关,我们发现,参数空间的局部度量线性依赖于深度,即使在动态等距。更准确地说,我们揭示了条件反射的频谱集中在最大值附近,并且随着深度的增加,该值线性增长。为了检验谱,考虑到随机初始化和宽极限,我们构造了一个基于自由概率论的代数方法。作为一个副产品,我们提供了一个分析的可解谱分布在两个隐藏层的情况下。最后,实验结果验证了DNN在线训练的适当学习速率与深度成反比,这是由条件神经网络的频谱决定的。