arXiv:2604.01339cs.CVcs.AI2026-04

用自举法量化注意力分数不确定性,让视觉Transformer解释更清晰

Regularizing Attention Scores with Bootstrapping

  • 通过重采样输入特征生成注意力基线分布
  • 显著减少噪声引起的虚假注意力,提升稀疏性与聚焦度
  • 适合需要可解释性的医学图像与自然图像分析场景

视觉变换器(ViT)依赖注意力机制加权输入特征,因此注意力分数常被视为决策过程的解释。然而注意力分数几乎总不为零,导致注意力图噪声大、弥散,限制可解释性。能否量化注意力分数的不确定性并获得正则化结果?我们从统计学习角度出发,将ViT的注意力分数视为独立噪声下可能产生非零但无意义的得分。通过自举法重采样输入特征,构建注意力分数的基准分布,进而估计其显著性与后验概率。在自然图像与医学图像上,所提出的注意力正则化方法可有效消除由噪声引发的虚假注意力,大幅提高收缩程度与稀疏性。基于仿真和真实数据集的定量评估验证了该方法的有效性。研究强调自举法是使用注意力分数作为ViT解释工具时一种实用的正则化手段。代码已开源:https://github.com/ncchung/AttentionRegularization

原文摘要 · Abstract (English)

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

注意力机制可解释性自举法视觉Transformer

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。