vix.ing · top · new · best · stats · spec

Interleaved Head Attention

2026/02/24 by Sai Surya Duvvuri, Chanakya Ekbote, Rachit Bansal +6 · 1 voice
Computer Science · #Computational complexity theory #Context (archaeology) #Head (geology) #Mixing (physics) #Multimodal Machine Learning Applications #Natural Language Processing Techniques #Overhead (engineering) #Polynomial #Scaling #Task (project management) #Topic Modeling #cs.LG

paper · pdf · doi:10.48550/arxiv.2602.21371

openalex publication_date 2026/02/24 · arxiv published 2026/02/24 · arxiv updated 2026/02/24 · openalex created_date 2026/02/27 · openalex updated_date 2026/07/28

Abstract

Multi-Head Attention (MHA) is the core computational primitive underlying modern Large Language Models (LLMs). However, MHA suffers from a fundamental linear scaling limitation: H attention heads produce exactly H independent attention matrices, with no communication between heads during attention computation. This becomes problematic for multi-step reasoning, where correct answers depend on aggregating evidence from multiple parts of the context and composing latent token-to-token relations over a chain of intermediate inferences. To address this, we propose Interleaved Head Attention (IHA), which enables cross-head mixing by constructing P pseudo-heads per head (typically P=H), where each pseudo query/key/value is a learned linear combination of all H original queries, keys and values respectively. Interactions between pseudo-query and pseudo-key heads induce up to P2 attention patterns per head with modest parameter overhead O(H2P). We provide theory showing improved efficiency in terms of number of parameters on the synthetic Polynomial task (IHA uses Θ(√(k)n2) parameters vs. Θ(kn2) for MHA) and on the synthetic order-sensitive CPM-3 task (IHA uses \lceil√Nmax\rceil heads vs. Nmax for MHA). On real-world benchmarks, IHA improves Multi-Key retrieval on RULER by 10-20% (4k-16k) and, after fine-tuning for reasoning on OpenThoughts, improves GSM8K by 5.8% and MATH-500 by 2.8% (Majority Vote) over full attention.

Citations

Discussions

Related