通过自助法正则化注意力分数
Regularizing Attention Scores with Bootstrapping
AI总结:
本文通过自助法正则化注意力分数,提高视觉Transformer的可解释性,通过统计学习方法去除噪声引起的虚假注意力,提升稀疏性和收缩性。
摘要:
视觉Transformer(ViT)依赖注意力机制来加权输入特征,因此注意力分数自然被视为其决策过程的解释。然而,注意力分数几乎总是非零,导致注意力图噪声和扩散,限制了可解释性。为此,我们考虑在统计框架中将ViT的注意力分数视为独立噪声导致的不显著但非零分数。利用统计学习技术,我们引入自助法生成注意力分数的基线分布,通过重新抽样输入特征。此类自助分布随后用于估计注意力分数的显著性和后验概率。在自然和医学图像中,所提出的注意力正则化方法展示了去除噪声引起的虚假注意力的简单方法,大幅提高了收缩性和稀疏性。通过仿真和真实世界数据集进行定量评估。我们的研究强调自助法作为使用注意力分数解释ViT时的实用正则化工具。
英文摘要:
Vision transformers (ViT) rely on attention mechanism to weigh input features, and therefore attention scores have naturally been considered as explanations for its decision-making process. However, attention scores are almost always non-zero, resulting in noisy and diffused attention maps and limiting interpretability. Can we quantify uncertainty measures of attention scores and obtain regularized attention scores? To this end, we consider attention scores of ViT in a statistical framework where independent noise would lead to insignificant yet non-zero scores. Leveraging statistical learning techniques, we introduce the bootstrapping for attention scores which generates a baseline distribution of attention scores by resampling input features. Such a bootstrap distribution is then used to estimate significances and posterior probabilities of attention scores. In natural and medical images, the proposed \emph{Attention Regularization} approach demonstrates a straightforward removal of spurious attention arising from noise, drastically improving shrinkage and sparsity. Quantitative evaluations are conducted using both simulation and real-world datasets. Our study highlights bootstrapping as a practical regularization tool when using attention scores as explanations for ViT. Code available: https://github.com/ncchung/AttentionRegularization
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。