Skip to content

Multi-Head Attention Residuals

Jul 2026 · arXiv.org · Vol abs/2607.27230 · 1 citation · 42 references
Computer Science

TL;DR

Multi-Head Attention Residuals (MHAR) is introduced: the routing query is reshaped into H per-subspace heads, each with its own softmax over the depth history, and a direct probe of the trained queries confirms that learned subspace disagreement is the underlying driver.

Abstract

Transformers propagate information across depth through a single additive residual stream: every sublayer reads only the most recent state. Attention residuals relax this by letting each sublayer attend, through a learned softmax. However, that read uses a single query shared across the entire width, so every feature subspace must read the depth history through one distribution. The cost of this forced compromise grows with how much the subspaces disagree about which layers to read, and disagreement grows with model width. We introduce Multi-Head Attention Residuals (MHAR): the routing query is reshaped into H per-subspace heads, each with its own softmax over the depth history. The read becomes block-diagonal, the reshape adds zero parameters and negligible compute, and H = 1 recovers attention residuals exactly. Trained from scratch on a deduplicated Nemotron-based anneal corpus that is quality-filtered and STEM- and code-heavy, MHAR improves validation loss over a standard Transformer at 100M, 350M, and 1B (-0.061, -0.149, and -0.140). It achieves the best result among four methods in every setting, with the gain increasing from 100M to the larger scales. The head count is a real design axis rather than a free knob: validation loss is U-shaped with respect to H, with a flat optimum at H = 4 or H = 8 across scales. We adopt H = 8 for large-scale models; over-splitting beyond this point (H = 16) consistently gives back part of the gain. A direct probe of the trained queries confirms that learned subspace disagreement is the underlying driver. Fused Triton routing kernels increase attention-residual training throughput from 0.2-0.5x to 0.55-0.88x of the baseline while maintaining near-baseline peak memory. An identity-preserving conversion using delta attention residuals supports 8B mid-training, yielding improvements of +3.2 on GSM8K and +3.1 on GPQA.

View source

Similar papers

Preprint Aug 2026

Role-Decoupled Attention Residuals: Separating Matching and Content Retrieval Across Depth

Role-Decoupled Attention Residuals (RD-AttnRes), a minimal extension that shares one depth route between queries and keys while learning an independent value route over the same residual sources, is introduced and suggests that, within the evaluated training regime, attention matching and content retrieval benefit from...

Ke-Han Wang · 0 citations
Preprint Aug 2026

Full-bandwidth transformer

This work trains 1B-parameter full-bandwidth transformers on up to 400B tokens and finds that latent feedback improves validation loss, 5-shot language-model evaluation, math and coding generation, and instruction-tuned performance.

Xi Wang, Zi-Yang Cai, Zheng Zhan et al. · 6 citations
#machine learning Preprint Sep 2026

Manifold Projection and Iterative Autoencoder Refinement for Masked Language Modeling

This work replaces attention with a stack of autoencoder-based mixing modules, one operating over local neighborhoods, one over the full sequence, and one across attention heads, each compressing and reconstructing its input through a bottleneck, and its width is a hyperparameter rather than a training effect.

Narges Mokhtari, F. Haddadi, Ebrahim Rezaii · 0 citations
Preprint Aug 2026

Which Question Is Your Attention Metric Answering? Attention Rows as Compositional Data

Treating rows of a transformer's attention matrix as compositional data separates them exactly: the Aitchison distance splits orthogonally into a sink term and a content term, entropy splits by an exact identity, and the content distance is characterized by invariances the transformer itself possesses.

Marios Papamichalis, Regina Ruane · 0 citations
Preprint Aug 2026

Provably Learning Multi-Head Attention with Queries

The problem of learning multi-head softmax attention from black-box input-output access is studied and an algorithm using O(d^2) value queries to recover the single-head parameters $(W,v) is given.

Sunyeop Kim, Insung Kim · 1 citation
Preprint Aug 2026

HAP: Head-Adaptive Visual Token Pruning via Cross-Modal Alignment

PAQ (Prompt-Grounded Attention Quality), a metric quantifying how well each head aligns the prompt with image regions, is proposed and built on, which delivers state-of-the-art trade-offs on LLaVA-1.5-7B.

Yuan Sun, Hua-Wei Ji, Yuanhao Jin et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.