Skip to main content
QUICK REVIEW

[论文解读] Why is the Mahalanobis Distance Effective for Anomaly Detection?

Ryo Kamoi, Kei Kobayashi|arXiv (Cornell University)|Mar 1, 2020
Adversarial Robustness in Machine LearningComputer Science参考文献 50被引用 42
一句话总结

本论文分析为什么基于马氏距离的置信分数在 OoD 与对抗检测中表现出色,表明这一效果源于未用于分类的高维特征方向,并提出边际/部分马氏变体以及与 ODIN 的联合检测器。

ABSTRACT

The Mahalanobis distance-based confidence score, a recently proposed anomaly detection method for pre-trained neural classifiers, achieves state-of-the-art performance on both out-of-distribution (OoD) and adversarial examples detection. This work analyzes why this method exhibits such strong performance in practical settings while imposing an implausible assumption; namely, that class conditional distributions of pre-trained features have tied covariance. Although the Mahalanobis distance-based method is claimed to be motivated by classification prediction confidence, we find that its superior performance stems from information not useful for classification. This suggests that the reason the Mahalanobis confidence score works so well is mistaken, and makes use of different information from ODIN, another popular OoD detection method based on prediction confidence. This perspective motivates us to combine these two methods, and the combined detector exhibits improved performance and robustness. These findings provide insight into the behavior of neural classifiers in response to anomalous inputs.

研究动机与目标

  • 评估在假设方差相等的条件下,基于马氏距离的置信分数为何在 OoD 与对抗检测中仍然有效。
  • 研究在分类并非核心的高维特征方向中所起的作用。
  • 提出边际和部分马氏距离变体,以测试不同特征子空间的信息内容。
  • 提出将基于马氏距离的检测与 ODIN 结合以提升 OoD 检测的鲁棒性。
  • 提供神经网络分类器在异常输入下行为的指导性结论。

提出的方法

  • 在假设方差相等的前提下,回顾并分析基于马氏距离的置信分数。
  • 引入部分和边际马氏距离,以隔离对异常检测有用的信息与分类信息。
  • 在多个数据集上对 OoD 与对抗检测任务,原始、部分和边际变体进行经验比较。
  • 通过将 ODIN 作为额外特征并入马氏距离检测器,提出简单的检测器组合。
  • 以 AUROC 为主要评估指标,在 CIFAR-10/100、SVHN、Tiny ImageNet、LSUN 等数据集上进行评估。

实验结果

研究问题

  • RQ1为什么在假设方差相等的前提下,马氏置信分数在 OoD 与对抗检测中仍然表现良好?
  • RQ2神经特征表示的哪些子空间对异常检测有贡献而对分类性能贡献较小?
  • RQ3更简单、仅含信息信息的变体(边际/部分马氏)是否能够匹配甚至超过原始方法?
  • RQ4将基于马氏距离的检测与 ODIN 结合是否能提升 OoD 检测的鲁棒性和性能?
  • RQ5这些发现如何帮助理解神经分类器在异常输入下的行为?

主要发现

  • 马氏分数之所以强大,是因为在解释方差较小的特征方向中含有信息,而非主要来自分类置信度。
  • 使用高方差分量(P1-9)的部分马氏距离与分类性能一致,而低方差分量(P10-512)推动 OoD 检测。
  • 边际马氏距离忽略类别信息、在倒数第二层特征上仅使用一个高斯分布时,能够获得与原始分数相当的 OoD 检测性能。
  • 将边际马氏距离与 ODIN 结合可提升 OoD 检测,包括对未见数据的检测,表明它们依赖互补的信息。
  • 在多数据集上的经验结果显示,边际与部分变体在 OoD 任务中可达到或接近原始马氏距离的性能,对对抗检测也表现出相似的竞争力。
  • 该研究为理解神经分类器在异常输入下的响应提供了见解,并提出了实际的检测器增强建议。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。