- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 2
- Quality
- 2
- Significance
- 2
Read review
Summary
This paper proposes a new attention mechanism, Data-Adaptive Mahalanobis Cross Head Attention (DAMCHA). While in standard multi-head attention the softmax score matrix is computed per head between query and key representations, DAMCHA computes scores between each head as well. The main idea behind their mechanism is a cross-head matrix is basically computing score matrices between keys and queries representations of different heads. They parameterize the cross head attention matrix and introduce a learnable function (in practice, another network) which maps each input sequence to a cross-head matrix. The main benefits of DAMCHA that the authors claim in the introduction are: (1) improved modeling of complex dependencies (due to the full cross-head attention matrix), (2) adaptability to distribution shift, (3) bypassing the low-rank bottleneck.
Strengths and weaknesses
To preface this review, I will note that I am not very familiar with the background literature that the authors reference (e.g. DMCHA, THA, MoA) beyond skimming those papers. Therefore, if I have misunderstood something in the paper, I am happy to discuss with the authors and adjust my score.
Strengths:
- The theoretical claims seem to be correct. I read the proofs in the appendix and there does not seem to be any immediate issue with the correctness.
- The paper is reasonably clear and easy to follow. In particular, the authors provide extensive ablations for each significant part of the DAMCHA mechanism (e.g. the shared parameters and the learned CHM). I also appreciated the experiment where the authors explicitly show that cross-head attention provides a benefit when the task requires coordination across multiple heads (entangled subspaces).
Weaknesses:
- The connection to Mahalanobis distance seems a little weak to me. It seems that the main point of this paper is to introduce a way of learning similarities between attention heads and it is not clear to me the connection to the Mahalanobis metric beyond this point. I would appreciate a clearer explanation of the specific advantages of the Mahalanobis framing.
- The connection to previous work should be clarified either in the introduction or in the related work. I did not really understand the connection of this paper to previous work, especially to DMCHA. While the authors have a section in their appendix outlining differences between other alternatives to standard multi-head attention, I did not fully understand the difference between DAMCHA and DMCHA. Can an architecture that uses DAMCHA represent or implement an architecture which uses DMCHA? It is not clear why one version might be superior over the other. The empirical improvements also seems small to me (e.g. on CIFAR-10 and CIFAR-100, the difference between the MSE of DAMCHA and DMCHA is at most 0.005).
- The claim of adaptability to distribution shift is not currently well supported in the experiments or the theoretical claims. Unless I have missed something, it is not clear where the authors show that DAMCHA is more adaptive to distribution shift. While they point to Figure 3 in their paper, all I see the distribution of some error metric on WMT. It is unclear what kind of distribution shift this is meant to capture, or why this error distribution demonstrates adaptability. In my understanding, adaptability to distribution shift means that we should expect to see, empirically, that the model performs well on a shifted test distribution (i.e. the test distribution differs from the train distribution along some relevant axis like types of images for vision tasks or input length for language).
Questions
- I found the ablation exploring the depth of the initial in Table 3 useful. It seems that the performance of DAMCHA depends heavily on the depth of the initial . Do the authors anticipate that further gains for DAMCHA can be obtained if we go beyond 9 layers or does the performance of the DAMCHA converge after a certain depth?
- I am slightly concerned that the training time chosen for each experimental setting is too low. Table 8 in the appendix shows that only 50 epochs are taken for datasets such as CIFAR-10, CIFAR-100, WMT, and CommonGen. Why do the authors choose 50 epochs for training each network the your experiments? Are there convergence plots for training or validation? As a related point, I wonder if the authors could also provide their settings for hyperparameter tuning.
- This is a smaller point but are there error bars for Tables 4, 5, and 6? Given that the authors are proposing an alternative to standard attention, I think it would be important to include error bars wherever possible so we can understand exactly how significant the performance gains are for DAMCHA over other comparable baselines.
- Is it possible the clarify the claim of adaptability to distribution shift? What exactly do the authors mean by this and are there more extensive experiments supporting this claim? Or have I misunderstood the theoretical claims and they imply that DAMCHA is adaptive to distribution shift?
- I see Table 3 and the analysis in Section D of the appendix which helps clarify the efficiency of DAMCHA, but I am wondering empirically how efficient this method is as the sequence length increases. Is it possible to provide an empirical scaling plots which show latency or memory usage as a function of sequence length? Could the authors also clarify which implementation of standard attention is being used as in the baseline implementation? I think, in practice, optimized variants like FlashAttention are commonly used. Is DAMCHA comparable in practice to such optimized variants? Or is it possible to also adapt DAMCHA so that it can make use of the optimizations introduced previously?
Limitations
Yes
Paper formatting concerns
No
Final justification
Thank you for the detailed response. The authors have addressed my concerns and questions, including those related to distribution shift and positioning of the work. They provided many more experiments that helped me understand the significance of their empirical results and the benefits of DAMCHA. After reading the response as well as the other reviews, I am increasing my score to a 4.
We appreciate your valuable comments. We would like to address your concerns carefully. We have completed several additional experiments and prepared more detailed explanations for all the weakness and questions from the reviewer. However, due to the response-length limit, we first focus on the concerns raised in the Weaknesses section. We will continue to address the points listed under Questions during the subsequent discussion period.
Response 1: The Connection to Mahalanobis Distance Is Weak
From our cross-head perspective, conventional attention mechanisms mainly focus on the diagonal blocks of a large metric matrix, whereas DAMCHA additionally incorporates its off-diagonal blocks. This is conceptually similar to the distinction between Euclidean and Mahalanobis distances, where the latter accounts for dependencies across dimensions.
We also acknowledge that a conventional Mahalanobis matrix is typically symmetric, whereas the effective metric generated by DAMCHA is not necessarily symmetric. Therefore, to facilitate understanding rather than claim a strict equivalence, we use the term Mahalanobis-like in the paper and clarify the scope of this analogy.
Response 2: The Relationship and Expressive Capacity of DAMCHA and DCMHA
We thank the reviewer for raising this positioning issue. We understand that “DMCHA” in the review refers to DCMHA. Although the original manuscript provides a comparison in the appendix, we agree that the core distinction between the two methods was not sufficiently explained in the Introduction and Related Work.
Both DAMCHA and DCMHA introduce input-dependent cross-head interactions, but their input dependence operates at different stages and parameterizes different objects. DCMHA first computes the base score matrix of each head through standard query-key projections and then applies an input-dependent Compose module to combine the existing scores or attention weights across heads. In other words, DCMHA dynamically determines how to recombine attention patterns produced by fixed Q/K projections.
DAMCHA instead directly generates an input-dependent effective similarity metric Mi(X) before the attention scores are formed and computes the scores as Si(X)=XiMi(X)Xi⊤/dh. Therefore, DCMHA mainly introduces dynamics into the combination of existing score bases, whereas DAMCHA directly introduces dynamics into the similarity geometry that produces these scores.
The two methods have partial functional overlap. For example, suppose the pre-softmax composition of DCMHA is written as SiDCMHA(X)=∑jαij(X)Sj(X), where each base score satisfies Sj(X)=XjMjXj⊤. Under appropriate dimensional alignment, the corresponding linear combination can be interpreted from a metric perspective as Mieff(X)=∑jαij(X)Mj. DAMCHA can represent this class of input-dependent pre-softmax metric combinations through its metric generator. Therefore, some pre-softmax composition mechanisms in DCMHA can be viewed as special cases expressible by DAMCHA.
However, we do not claim that DAMCHA can fully reproduce an arbitrary DCMHA architecture. DCMHA may also dynamically combine attention weights after softmax. Because softmax is nonlinear, in general Softmax(∑jαjSj)=∑jαjSoftmax(Sj). Therefore, an arbitrary post-softmax Compose operation cannot necessarily be represented exactly by a single DAMCHA metric.
Conversely, DCMHA cannot necessarily represent an arbitrary DAMCHA metric. The base scores in DCMHA are still generated by a finite set of fixed Q/K metrics, and their dynamic combinations generally remain within the span of these base score patterns. DAMCHA can instead directly generate input-dependent, off-diagonal, or higher-rank effective metrics outside this fixed basis space. More precisely, the two methods partially overlap at the level of linear pre-softmax composition, but there is no simple bidirectional inclusion relationship between their complete architectures.
This distinction also explains why DAMCHA may outperform DCMHA on some tasks. When the task primarily requires reallocating or combining existing head-wise attention patterns, DCMHA may already be highly effective, and the differences in average metrics such as MSE or NLL may be small. However, when the task requires the similarity itself to change with the current input, such as when two features should be strongly related in one context but weakly related in another, or when the target relationship depends on cross-subspace couplings outside the fixed Q/K score bases, recombining existing scores may be insufficient. DAMCHA can directly alter the attention geometry by generating a new effective metric.
The experimental results are consistent with this interpretation. Compared with DCMHA, DAMCHA achieves relatively moderate improvements in MSE on CIFAR-10 and CIFAR-100, but more substantial improvements in FID, FID@Top-50, and WMT BARTScore, which depend more strongly on complete sample structure and cross-head coordination.
Response 3: The MSE Improvements on CIFAR-10 and CIFAR-100 Are Small
We thank the reviewer for this observation. When considering only MSE, the improvements of DAMCHA over DCMHA are indeed relatively limited. On CIFAR-10, MSE decreases from 0.1264 to 0.1210, an absolute reduction of 0.0054. On CIFAR-100, it decreases from 0.1261 to 0.1232, an absolute reduction of 0.0029.
This result is nevertheless consistent with the primary design objective of DAMCHA. MSE averages the error over individual pixels or prediction positions and mainly measures local numerical reconstruction accuracy. It is less sensitive to the overall structure, visual clarity, and distributional quality of generated samples. DAMCHA is designed to improve the structural consistency and high-quality generation of complete samples through input-dependent cross-head coordination. Its advantages are therefore reflected more directly in FID and FID@Top-50 and need not appear with the same magnitude in average MSE.
The primary effect of DAMCHA is therefore not simply to uniformly reduce the error of every pixel, but to improve the overall generation distribution and its high-quality region. The relatively small MSE difference does not conflict with the central claim of the paper. Instead, it indicates that the more substantial gains are concentrated in the complete-sample quality that we primarily aim to improve. Importantly, these high-quality generation gains are not obtained by sacrificing average performance.
Response 4: Adaptation to Distribution Shift
In the image-generation experiments, “distribution” refers to the distribution of generated samples relative to the target real-data reference distribution, rather than an OOD shift between the training distribution and an unseen test distribution. More precisely, the reference is the distribution of real samples in a pretrained feature space, while FID is the metric used to quantify the distance between the generated and reference distributions.
FID is not an ordinary pointwise error metric. It measures the distance between the generated and real-sample distributions in a pretrained feature space by comparing their means and covariances. Its form is dFID=∥μr−μg∥22+Tr(Σr+Σg−2(ΣrΣg)1/2), where (μr,Σr) and (μg,Σg) denote the feature-distribution statistics of the real and generated samples, respectively. Therefore, the distributional improvement discussed in the paper means that samples generated by DAMCHA achieve a lower FID under the same reference standard and that their feature distribution is closer to the real-data distribution.
To prevent “distribution-shift adaptation” from being interpreted as robustness to unseen test domains, we will replace this expression in the revised manuscript with more precise terms such as “improved modeling of the target generation distribution” or “input-conditional adaptation of generation geometry.”
The lower FID values achieved by DAMCHA on CIFAR-10 and CIFAR-100 indicate that its generated samples are closer to the target distribution at the feature-distribution level, rather than merely having lower individual pixel errors. This supports our claim regarding generation-distribution modeling and input-conditioned geometry. Thanks very much for your kind help.