cs.CVApr 1, 2026

Regularizing Attention Scores with Bootstrapping

Authors: Neo Christopher Chung, Maxim Laletin

Organizations: University of Warsaw · Samsung AI Center, Warsaw

Abstract

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 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

Figures & tables

Appendix figures & tables25 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives

    Sep 1, 2026Sathiyamohan Nishankar, Pubudu Sanjeewani, Asanka Perera +1Transformer InterpretabilityVision Transformer

  2. Consistent Evidence, Robust Recognition: Faithful Attribution Regularization under Geometric Transformations

    Jul 26, 2026Xianghao Jiao, Ruoyu Chen, Wei Wang +6Feature AttributionImage Classification

  3. What Helps---and What Hurts: Bidirectional Explanations for Vision Transformers

    Mar 2, 2026Qin Su, Tie LuoTransformer InterpretabilityExplainable Image Classification