# Interleaved Head Attention

*Sai Surya Duvvuri, Chanakya Ekbote, Rachit Bansal, Rishabh Tiwari, Devvrit Khatri, David Brandfonbrener, Paul Liang, Inderjit Dhillon, Manzil Zaheer*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154807) · [OpenReview](https://openreview.net/forum?id=AoSjvxQp5K) · [alphaXiv](https://www.alphaxiv.org/abs/2602.21371) · [Open on the map](../papers.html#p154807)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Efficient Attention Mechanisms](../pgroup/327.md) · Type: new method · Keywords: multi-head attention, cross-head mixing, parameter efficiency, long-context retrieval, reasoning benchmarks

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Sparse Attention; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Efficient attention; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Efficient Attention

## Summary
Interleaved Head Attention (IHA) increases compositional bandwidth within each attention layer by constructing pseudo-heads per original head, enabling cross-head mixing and generating up to P² attention patterns per head with modest parameter overhead, leading to improved efficiency and performance.

## Explained to a 5-year-old
In a brain computer, many little helpers look at words. These helpers work separately and don't talk to each other. The new idea makes the helpers share what they saw by mixing their thoughts, so they can understand more at once. This helps the computer solve harder puzzles and read longer stories. It also uses less memory, so it works faster.

## Explained to a 5-year-old, longer
A big computer brain uses many small workers to pay attention to words. Each worker works on its own and does not share what it sees with the others. The new idea lets these workers combine their thoughts, so they can see more relationships at the same time. This helps the computer solve tricky problems and read very long texts. It also uses less memory, making the computer run faster. The workers learn to mix their ideas by learning new ways to combine information. This mixing happens inside a single layer, not just across many layers. As a result, the computer can handle longer contexts without adding many more layers. The new method also reduces the number of parameters needed, which saves space. It works well on tasks like answering math questions and solving puzzles. The improvements are noticeable on benchmark tests, showing better performance. Overall, the idea makes the computer smarter and more efficient.

## For a technical reader
The work addresses the limited interaction between attention heads in standard multi-head attention by introducing pseudo-heads that linearly combine queries, keys, and values. This enables cross-head mixing within a single layer, generating up to P² attention patterns per head while keeping parameter growth modest. Theoretical analysis demonstrates a reduction in required parameters for polynomial-filter and order-sensitive tasks. Empirically, the approach yields 10-20% gains on multi-key retrieval benchmarks and improves reasoning scores on GSM8K and MATH-500 after fine-tuning. The overhead in throughput is modest, making it practical for large-scale models.

## Problem
Multi-Head Attention (MHA) scales linearly with the number of heads, producing independent attention matrices with no communication between heads within a layer, which limits the amount of information that can be combined without adding more layers.

## Method
The approach constructs pseudo-heads for each original head by linearly combining all queries, keys, and values, allowing cross-head mixing within a single attention layer and generating up to P² attention patterns per head while keeping parameter growth modest.

## Results
The approach improves Multi-Key retrieval on RULER by 10-20% at 4k-16k context lengths and, after reasoning fine-tuning, raises GSM8K by 5.8% and MATH-500 by 2.8% under majority voting over full attention, with modest throughput overhead.

## Contributions
The paper introduces a within-layer cross-head mixing mechanism that yields up to P² attention patterns per head with O(H²P) parameters, provides theoretical analysis showing improved parameter efficiency on Polynomial Filters and CPM-3, and demonstrates empirical gains on retrieval and reasoning benchmarks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154807)
