arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.01485stat.MLcs.CVcs.LG
收藏

深度生成模型Fisher信息度量的近似用于分布外检测

Approximations to the Fisher Information Metric of Deep Generative Models for Out-Of-Distribution Detection

University of Edinburgh(爱丁堡大学);University of Oxford(牛津大学);The Alan Turing Institute(阿兰·图灵研究所)

Sam Dauncey, Chris Holmes, Christopher Williams, Fabian Falck

AI总结:

本文提出一种基于深度生成模型参数梯度范数(近似Fisher信息度量)的模型无关、无超参数的OOD检测方法,利用逐层梯度范数的联合密度估计,优于Typicality检验。

摘要:

基于似然的深度生成模型,如基于分数的扩散模型和变分自编码器,是近似图像、文本或音频等高维数据分布的最先进的机器学习模型。它们可以自然应用于的众多下游任务之一是分布外(OOD)检测。然而,我们复现的Nalisnick等人的开创性工作表明,深度生成模型对OOD数据推断出的对数似然始终高于其训练数据,这标志着一个开放问题。在这项工作中,我们分析使用数据点相对于深度生成模型参数的梯度进行OOD检测,基于简单的直觉:OOD数据的梯度范数应大于训练数据。我们将测量梯度大小形式化为近似Fisher信息度量。我们表明Fisher信息矩阵(FIM)具有较大的绝对对角值,这促使使用卡方分布的、逐层的梯度范数作为特征。我们组合这些特征,形成一种简单、模型无关且无需超参数的OOD检测方法,该方法估计给定数据点的逐层梯度范数的联合密度。我们发现这些逐层梯度范数弱相关,使得它们的组合使用具有信息性,并证明逐层梯度范数满足(数据表示)不变性原则。我们的实证结果表明,对于大多数深度生成模型和图像数据集配对,该方法优于Typicality检验。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑