Statistical Test for Attention in Transformers for Images and Time Series
Authors
Research Topics
Paper Information
-
Journal:
Journal of Machine Learning Research -
Added to Tracker:
Jul 06, 2026
Abstract
Transformer models have achieved exceptional performance in various domains, including computer vision and time-series analysis. Their core attention mechanism is widely used to interpret model decisions by assigning importance weights to input regions, such as image patches or time series intervals. However, the reliability of these interpretations remains a major concern. High-attention weights do not necessarily indicate genuinely significant features; they may instead be artifacts of the model's computation, undermining their reliabilities in high-stakes applications such as medical diagnostics. To address this, we propose a novel statistical framework designed to quantify the significance of high-attention regions in Transformer models. Our framework is built on selective inference (SI) to correct for the inherent selection bias that arises from testing regions chosen through the complex attention computation of the Transformer models. A key contribution of this work is a novel computational method that extends SI to the complex non-linearity of self-attention, enabling the computation of valid $p$-values for high-attention regions. These $p$-values serve as a reliable measure of significance, strengthening the interpretability of Transformer decisions. The validity and effectiveness of our approach are demonstrated through numerical experiments and applications to brain image diagnosis and electroencephalography (EEG) data analysis.
Author Details
Tomohiro Shiraishi
AuthorDaiki Miwa
AuthorTeruyuki Katsuoka
AuthorVo Nguyen Le Duy
AuthorShuichi Nishino
AuthorKouichi Taji
AuthorIchiro Takeuchi
AuthorResearch Topics & Keywords
Time Series
Research AreaCitation Information
APA Format
Tomohiro Shiraishi
,
Daiki Miwa
,
Teruyuki Katsuoka
,
Vo Nguyen Le Duy
,
Shuichi Nishino
,
Kouichi Taji
&
Ichiro Takeuchi
.
Statistical Test for Attention in Transformers for Images and Time Series.
Journal of Machine Learning Research
.
BibTeX Format
@article{paper1378,
title = { Statistical Test for Attention in Transformers for Images and Time Series },
author = {
Tomohiro Shiraishi
and Daiki Miwa
and Teruyuki Katsuoka
and Vo Nguyen Le Duy
and Shuichi Nishino
and Kouichi Taji
and Ichiro Takeuchi
},
journal = { Journal of Machine Learning Research },
url = { https://www.jmlr.org/papers/v27/25-1631.html }
}