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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Borde, Haitz Sáez de Ocáriz
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908637173121024
author Borde, Haitz Sáez de Ocáriz
author_facet Borde, Haitz Sáez de Ocáriz
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_02944
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Parallelism: Synergistic Computational Graph Effects in Multi-Head Attention
Borde, Haitz Sáez de Ocáriz
Machine Learning
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.
title Beyond Parallelism: Synergistic Computational Graph Effects in Multi-Head Attention
topic Machine Learning
url https://arxiv.org/abs/2507.02944