Skip to main content
QUICK REVIEW

[论文解读] Salient ImageNet: How to discover spurious features in Deep Learning?

Sahil Singla, Soheil Feizi|arXiv (Cornell University)|Oct 8, 2021
Explainable Artificial Intelligence (XAI)Computer Science被引用 20
一句话总结

本文提出了一种可扩展的框架,通过最少的人工监督来发现并定位深度学习模型中的虚假特征和核心视觉特征。通过利用稳健模型的倒数第二层神经元的激活图,并结合最高激活图像进行验证,该方法可将标注推广至数千张图像,揭示出标准ImageNet模型严重依赖虚假特征——在扰动此类特征时,准确率最高下降达70.77%。

ABSTRACT

Deep neural networks can be unreliable in the real world especially when they heavily use {\it spurious} features for their predictions. Focusing on image classifications, we define {\it core features} as the set of visual features that are always a part of the object definition while {\it spurious features} are the ones that are likely to {\it co-occur} with the object but not a part of it (e.g., attribute "fingers" for class "band aid"). Traditional methods for discovering spurious features either require extensive human annotations (thus, not scalable), or are useful on specific models. In this work, we introduce a {\it general} framework to discover a subset of spurious and core visual features used in inferences of a general model and localize them on a large number of images with minimal human supervision. Our methodology is based on this key idea: to identify spurious or core extit{visual features} used in model predictions, we identify spurious or core extit{neural features} (penultimate layer neurons of a robust model) via limited human supervision (e.g., using top 5 activating images per feature). We then show that these neural feature annotations {\it generalize} extremely well to many more images {\it without} any human supervision. We use the activation maps for these neural features as the soft masks to highlight spurious or core visual features. Using this methodology, we introduce the {\it Salient Imagenet} dataset containing core and spurious masks for a large set of samples from Imagenet. Using this dataset, we show that several popular Imagenet models rely heavily on various spurious features in their predictions, indicating the standard accuracy alone is not sufficient to fully assess model performance. Code and dataset for reproducing all experiments in the paper is available at \url{https://github.com/singlasahil14/salient_imagenet}.

研究动机与目标

  • 解决现有方法在识别深度学习中虚假特征时缺乏可扩展性的问题,这些方法严重依赖人工标注。
  • 克服先前方法的局限性,即仅适用于特定模型或需要为大规模数据集(如ImageNet)进行大量人工标注。
  • 开发一个可泛化的框架,以识别并定位模型预测中使用的核心(必要)和虚假(非必要)视觉特征。
  • 通过检测在最小分布偏移下导致性能下降的特征,实现对模型可靠性的大规模分析。
  • 提供一个可复现、开源的数据集(Salient ImageNet),包含ImageNet类别中虚假和核心特征的软掩码。

提出的方法

  • 使用稳健的深度学习模型(例如ResNet-50)提取倒数第二层神经元作为代表人类可解释视觉属性的神经特征。
  • 针对每个神经特征,为特定类别检索最激活的前5张图像,并通过Mechanical Turk将这些图像呈现给人工标注者,标注为“核心”或“虚假”。
  • 利用人工标注的标签,将标注推广至激活相同神经特征的前-k张图像(k ≫ 5),在k=65时实现95%的泛化准确率。
  • 使用激活图(例如CAM或基于特征攻击的可视化)为识别出的特征生成软分割掩码,覆盖数千张图像。
  • 对虚假区域施加目标高斯噪声(σ=0.25至0.4),评估模型鲁棒性,以准确率下降作为特征依赖程度的代理指标。
  • 通过整合这些特征掩码和标注,为15个ImageNet类别构建Salient ImageNet数据集,并进行特征影响的定量评估。

实验结果

研究问题

  • RQ1我们能否在最少人工监督下发现深度学习模型中的虚假和核心视觉特征?
  • RQ2针对神经特征的人工标注标签在初始前5张图像之外的大规模图像集合中泛化效果如何?
  • RQ3标准ImageNet模型在多大程度上依赖虚假特征?这种依赖性如何影响其在扰动下的鲁棒性?
  • RQ4倒数第二层神经元的激活图能否作为可靠软掩码,用于定位虚假和核心视觉属性?
  • RQ5当虚假特征被扰动时,其存在是否与模型准确率的显著下降相关?

主要发现

  • 当将人工标注的神经特征标签从最激活的前5张图像扩展到前65张图像时,该方法实现了95%的泛化准确率,表明具有极强的可迁移性。
  • 对于“band aid”类别,使用σ=0.25的噪声扰动虚假特征“fingers”导致模型准确率下降41.54%,表明模型严重依赖这一虚假线索。
  • 在“wok”类别中,虚假特征“frying pan”在σ=0.25噪声下导致准确率下降46.15%,证实模型对非必要上下文的依赖。
  • 对于“proboscis monkey”类别,虚假特征“long nose”在σ=0.35噪声下导致准确率下降55.385%,表明即使细微特征也可能误导模型。
  • 在某些情况下,如“projectile”类别,核心特征在扰动下表现出轻微准确率提升(例如σ=0.45时提升+9.23%),表明对必要特征的噪声具有鲁棒性。
  • Salient ImageNet数据集揭示,标准ResNet-50模型广泛使用虚假特征——表明仅依靠标准准确率不足以评估模型性能。

阅读本论文

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

在 Nubint 中阅读本论文

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