atlas

Research map / Architectures and efficiency / Attention and transformers

Statistical Test for Attention Maps in Vision Transformers

ICML 2024 · Architectures and efficiency › Attention and transformers · approach: Hybrid and interpretable ViT designs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a selective-inference p-value test for ViT attention regions, with an adaptive grid search to compute the conditional p-value, controlling false positives on synthetic and brain tumor images.

Problem

Attention maps of Vision Transformers are used as evidence in high-stakes tasks such as medical diagnosis, but attention can focus on irrelevant regions and the selection of attention regions introduces selection bias, so naive significance tests yield inflated false positive rates.

Approach

Applies selective inference to the attention region: conditions on the thresholded attention region and a nuisance statistic so the test statistic becomes a truncated Gaussian, and computes the truncation set for a non-linear ViT by an adaptive grid search using Lipschitz-based grid widths, instead of the piecewise-linearity exploited for CNNs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use adaptive grid search with selection conditioning instead of an unconditioned naive testViT attention significance testing · Synthetic null imagestype I error rate controlHelped
Use adaptive selective testing instead of Bonferroni correctionViT attention significance testing · Synthetic images with signalpowerHelped
Use adaptive grid search instead of fixed-width grid searchSelective p-value computation · Synthetic null imagescomputation timeHelped
Use adaptive selective p-values instead of naive p-valuesViT attention significance testing · Brain image diagnosisfalse positive detectionsHelped
Apply the proposed test to exponnorm noiseAdaptive selective test · Synthetic null images with exponnorm noisetype I error rate controlHurt
Apply the proposed test to gennormflat noiseAdaptive selective test · Synthetic null images with gennormflat noisetype I error rateMixed
Apply the proposed test to skewnorm, gennormsteep, or t noiseAdaptive selective test · Synthetic null images with non-Gaussian noisetype I error rate controlMixed

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Gaussian images brain tumor MRI dataset (939 tumor / 941 non-tumor images)

Benchmarks: synthetic null images (type I error) synthetic alternative images (power) brain tumor images

Metrics: type I error rate power computation time p-value

Baselines: naive test permutation test Bonferroni correction fixed grid search combination grid search

Builds on: selective inference Vision Transformer attention rollout

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy