Abstract
Sheaf Neural Networks generalize scalar-weighted message passing by replacing scalar edge weights with linear transport maps between local feature spaces. Yet the role of this matrix-valued transport is entangled with the broader sheaf-diffusion construction. We isolate the transport primitive through quiver representations and establish a direct connection with multi-head attention. Treating attention heads as coordinates of a local transport space reveals that standard multi-head attention implements diagonal edge maps: along each directed interaction, a source head can contribute only to the corresponding receiver head. Allowing off-diagonal entries instead enables edge-conditioned communication across heads before neighborhood aggregation. We show that this operation cannot, in general, be absorbed into a single shared linear map applied after aggregation. Building on this characterization, we introduce Topological Attention (Top-A), a multi-head attention that learns edge-dependent off-diagonal routes while preserving the original same-head paths and exactly recovering vanilla attention when the additional routing vanishes. We evaluate Top-A on relational reasoning, heterogeneous graph learning, and algorithmic reasoning, including out-of-distribution generalization, with heterophilic node classification as a contrast setting. The results show that cross-head transport is most useful when the task benefits from interaction-dependent transformations, while heterophily alone provides no systematic advantage. These findings identify edge-conditioned cross-head communication as a distinct computational primitive of matrix-valued transport.
Keywords
Publication details
- Journal
- Not available
- Open access
- Green open access
Cite this article
APA 7
Ali, R., Borgi, A., Severino, M., Gravina, A., Bacciu, D., Liò, P., & Irwin, C. (2026). Let the Heads Talk: Beyond Diagonal Graph Attention. https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention
MLA 9
Ali, Riccardo, et al. "Let the Heads Talk: Beyond Diagonal Graph Attention." https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention.
Chicago (author–date)
Ali, Riccardo, Alessio Borgi, Mario Severino, Alessio Gravina, Davide Bacciu, Pietro Liò, and Christopher Irwin. 2026. "Let the Heads Talk: Beyond Diagonal Graph Attention." https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention.
Harvard
Ali, R., Borgi, A., Severino, M., Gravina, A., Bacciu, D., Liò, P. and Irwin, C. (2026) 'Let the Heads Talk: Beyond Diagonal Graph Attention', Available at: https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention.
Vancouver
Ali R, Borgi A, Severino M, Gravina A, Bacciu D, Liò P, et al. Let the Heads Talk: Beyond Diagonal Graph Attention. https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention
IEEE
R. Ali, A. Borgi, M. Severino, A. Gravina, D. Bacciu, P. Liò, and C. Irwin, "Let the Heads Talk: Beyond Diagonal Graph Attention," https://omanscience.com/en/articles/let-the-heads-talk-beyond-diagonal-graph-attention.