Beyond Parallelism: Synergistic Computational Graph Effects in Multi-Head Attention

Haitz Sáez de Ocáriz Borde
6/28/2025
cs.LG

Official code: haitzsaezdeocariz/beyondparallelism (2 stars, last commit 2025-11-08).

Abstract

Multi-head attention powers Transformer networks, the primary deep learning architecture behind the success of large language models (LLMs). Yet, the theoretical advantages of multi-head versus single-head attention, beyond mere parallel processing, remain underexplored. In this paper, we reframe multi-head attention as a system of potentially synergistic computational graphs, where each head functions as a feedforward directed acyclic graph (DAG) with a common sink state. We provide intuition and preliminary theoretical analysis of mixing time and minimax fidelity in this framework. Our results show that multi-head attention can synergistically enhance information propagation, yielding faster mixing times and minimax fidelity amplification under specific head-diversity conditions. Finally, we train single-head and multi-head Transformers, each with the same total number of parameters, on sequence manipulation tasks and empirically verify the predicted effects. The code is available at https://github.com/haitzsaezdeocariz/beyondparallelism.

View on arXivView PDF

Code Implementations(1)

20PythonNov 8, 202511 months ago

Similar Papers

Cite this paper

@article{borde2025beyond,
  title  = {Beyond Parallelism: Synergistic Computational Graph Effects in Multi-Head Attention},
  author = {Haitz Sáez de Ocáriz Borde},
  year   = {2025},
  eprint = {2507.02944},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.02944v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.02944.svg)](https://codeofpaper.com/paper/2507.02944)

Discussion