arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.14646cs.CVcs.AI
收藏

面向卷积神经网络的改进输入掩码方法

Towards Improved Input Masking for Convolutional Neural Networks

University of Maryland, College Park(马里兰大学学院公园分校)

Sriram Balasubramanian, Soheil Feizi

AI总结:

本文提出面向CNN的layer masking方法,通过在中间激活图上施加掩码以大幅减少缺失性偏差,并证明其优于传统黑灰替换掩码,同时揭示掩码形状会泄露类别信息。

摘要:

从机器学习模型的输入中移除特征的能力对于理解和解释模型预测非常重要。然而,对于视觉模型而言,这并非易事,因为掩蔽输入图像的部分区域通常会导致严重的分布偏移。原因在于用于掩蔽的基准颜色(通常为灰色或黑色)本身就不在分布内。此外,掩码本身的形状也可能包含模型可用来进行预测的不希望出现的信号。最近,在缓解视觉Transformer图像掩码中的这一问题(称为缺失性偏差)方面取得了一些进展。在本工作中,我们针对卷积神经网络(CNN)提出了一种新的掩码方法,我们称之为layer masking(层级掩码),该方法在很大程度上减少了由掩码引起的缺失性偏差。直观地说,layer masking将掩码应用于中间激活图,使得模型仅处理未被掩蔽的输入。我们表明,我们的方法(i)能够消除或最小化掩码形状或颜色对模型输出的影响,并且(ii)在基于输入扰动的可解释性技术(如LIME)中,其效果远优于用黑色或灰色替换被掩蔽区域。因此,与其他掩码策略相比,layer masking受缺失性偏差的影响要小得多。我们还展示了掩码的形状如何可能泄露关于类别的信息,从而影响对基于输入掩码推导出的模型对类别相关特征依赖程度的估计。此外,我们讨论了数据增强技术在解决这一问题中的作用,并论证它们不足以防止模型依赖掩码形状。本项目的代码已公开,地址为https://github.com/SriramB-98/layer_masking。

英文摘要:

The ability to remove features from the input of machine learning models is very important to understand and interpret model predictions. However, this is non-trivial for vision models since masking out parts of the input image typically causes large distribution shifts. This is because the baseline color used for masking (typically grey or black) is out of distribution. Furthermore, the shape of the mask itself can contain unwanted signals which can be used by the model for its predictions. Recently, there has been some progress in mitigating this issue (called missingness bias) in image masking for vision transformers. In this work, we propose a new masking method for CNNs we call layer masking in which the missingness bias caused by masking is reduced to a large extent. Intuitively, layer masking applies a mask to intermediate activation maps so that the model only processes the unmasked input. We show that our method (i) is able to eliminate or minimize the influence of the mask shape or color on the output of the model, and (ii) is much better than replacing the masked region by black or grey for input perturbation based interpretability techniques like LIME. Thus, layer masking is much less affected by missingness bias than other masking strategies. We also demonstrate how the shape of the mask may leak information about the class, thus affecting estimates of model reliance on class-relevant features derived from input masking. Furthermore, we discuss the role of data augmentation techniques for tackling this problem, and argue that they are not sufficient for preventing model reliance on mask shape. The code for this project is publicly available at https://github.com/SriramB-98/layer_masking

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

↑