- Rating
- 5
- Clarity
- 3
- Confidence
- 2
- Originality
- 4
- Quality
- 4
- Significance
- 4
Read review
Summary
The paper investigates the mathematical structure of self-attention heads in transformers, specifically the softmax$(QK^T)$ part. The authors test the assumption that the softmax$(QK^T)$ element of each pretrained frozen transformer backbone head can be approximated and substituted by a closed-form operator from a small set: shift, broadcast or k-aggregator. The corresponding type for each attention head can be determined via a diagnostic on a dataset. The resulting pipeline that determines the structure of closed-form operators and substitutes them constitutes the SOLA framework that the authors plan to release as a package. The authors run the experiments on several vision transformer (ViT) backbones (and one vision-language transformer) and datasets and demonstrate that the proposed substitution protocol effectively reproduces the predicting capabilities of the original pretrained transformers. Furthermore, they demonstrate that the recovered operator structure is not random for each transformer and dataset, but is consistent within each ViT family.
Strengths and weaknesses
The paper is an original contribution to the understanding of how the attention mechanism in different transformer types works at the level of individual attention heads and what are the roles of these attention heads in a given pretrained transformer. This research fills the gap between the papers that investigate how the attention mechanism can be approximated and those that investigate the phenomenology of attention heads while remaining agnostic about their actual structure and constitutes a significant impact to the further research on the interpretability of attention heads. The paper describes the mathematical foundations of the proposed method at length and performs an excessive number of experiments and tests to back up its claims.
A weak point of the paper in my opinion is that the language of the paper is too specific and the descriptions are somewhat obscure for researchers outside of this particular area of transformer research. I believe that the clarity of the paper could be improved, at least in the introduction/conclusion sections to make it more understandable for a broader research audience.
Questions
-
There seem to be a typo in line 54: "...CAN the softmax(QK^T) in a trained head CAN be replaced..." (double "can")
-
According to Fig. 2 a pretrained DeiT-Tiny manifests several shift-heads, while Section 4.2. reports the finding that no shift heads were discovered for the DeiT-Tiny during 100 epochs of training. Is 100 epochs not sufficient for the emergence of these heads or there is another difference in the training that leads to that?
-
Is there a simple interpretation (in terms of information, perhaps) behind the fact that a given attention head can be described by one of the presented closed-form operators?
Limitations
Yes
Paper formatting concerns
No concerns regarding the format
[Typo and readibility/clarity (Q1/W1) ] Line 54 typo will be fixed, thank you for indicating it. We will also simplify the introduction and conclusion's terminology, and define specialized vocabulary (escape mass, TE residual, etc.) more gently on first use.
[DeiT-Tiny discrepancy between Fig. 2 and Sec. 4.2(Q2) ] We confirmed this against our implementation. Fig. 2's DeiT-Tiny taxonomy is built from the public Facebook/timm checkpoint (their full training recipe: on the order of 300 epochs, with RandAugment/Mixup/CutMix). Sec. 4.2's matched-budget causal control instead uses non pre-trained model, and trains from scratch for 100 epochs under a simple cosine schedule with 5-epoch warmup, matched to the MAE-Tiny comparison, with no RandAugment/Mixup/CutMix. These are two different trained models sharing only the architecture, not the same model measured twice: the public checkpoint's shift heads emerge somewhere in its much longer, much more heavily augmented training run, which is consistent with, not contradictory to, Sec. 4.2 showing zero delta-shift heads after 100 simpler epochs. We will state this explicitly in the Fig. 2 caption and in Sec. 4.2.
[Simple interpretation of why heads collapse onto these three operators (Q3)] The three classes are the low-description-length corners of the space of row-stochastic N×N attention matrices. A generic attention matrix needs O(N) parameters per row to describe; shift heads reduce this to a single offset (all information is in which position is attended to, none in content), broadcast heads reduce it to one vector per image (all information is in content, none in position, since every query gets the same row), and rank-k heads sit in between, needing O(k) directions rather than O(N). A head only needs the full N-dimensional freedom of generic attention if it is routing genuinely query-dependent, content-dependent information that resists this kind of compression, which is exactly the residual diffuse-local/other categories in our taxonomy. Props. 1-3's Hölder/Eckart-Young bounds are the formal version of this same intuition: each is a statement about how cheaply the attention matrix's row (or the whole matrix) can be described before the reconstruction error exceeds the propagated bound. We will add a short remark along these lines to the discussion, since it is a genuinely useful way to read the taxonomy rather than a new claim requiring further experiments.