# Knocking-Heads Attention: Drop-in Shared Projections for Cross-Head Coordination

*Zhanchao Zhou, Xiaodong Chen, Haoxing Chen, Zhenzhong Lan, Jianguo Li*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155835) · [Open on the map](../papers.html#p155835)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Efficient Attention Mechanisms](../pgroup/327.md) · Type: new method · Keywords: multi-head attention, cross-head coordination, shared projection, transformer stability, MoE training

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Efficient Attention

## Summary
Knocking-Heads Attention introduces shared, diagonally-initialized projections to coordinate multi-head attention, reducing loss spikes and improving performance across benchmarks.

## Explained to a 5-year-old
Imagine a group of workers (attention heads) each doing their own job. They sometimes make mistakes because they don't talk to each other. This new idea gives them a shared helper (a projection) that helps them coordinate, making the work smoother and more reliable. It works like a simple rule at first, then gets smarter as they learn together. Because of this, the whole system performs better on many tasks.

## Explained to a 5-year-old, longer
In a big computer program, there are many parts that need to work together. One important part is called attention, which helps the program focus on the right things. Usually, each part works alone, which can cause problems. The new idea adds a small shared helper that lets the parts talk to each other without mixing their jobs. This helper starts simple, like a basic rule, and then improves as the program learns. Because of this, the parts stay balanced and make fewer mistakes. The program becomes more stable during training, which means it learns faster and more reliably. When the program is finished, it can do many different tasks better than before. The helper can be used in many existing systems without changing them much. It also works with fast computing tricks, so it doesn't slow things down. Overall, this makes the computer smarter and more useful.

## For a technical reader
The paper addresses the lack of coordination among attention heads in transformer models, which can lead to unstable training and uneven head utilization. It proposes sharing a diagonally initialized projection across heads before the dot-product attention, providing implicit regularization without mixing head dimensions. Two variants are introduced: a linear version that can be merged into existing weights at inference, and a non-linear version that adds a small shared MLP for stronger gains. Experiments on a 6.1B MoE model show fewer loss spikes, more uniform activation norms, and a +1.26 average boost across 19 downstream benchmarks. The design is compatible with FlashAttention, KV-caching, and other attention patterns, making it a drop-in improvement for existing pipelines.

## Problem
Standard multi-head attention computes each head independently, limiting coordination and causing instability during training. This results in uneven head behavior and performance issues.

## Method
The approach couples heads at the parameter level by sharing a diagonally-initialized projection applied to query/key/value features before attention, providing implicit regularization. Two instantiations are offered: a linear variant that can be absorbed into original weights at inference, and a non-linear variant using a small shared MLP for stronger gains.

## Results
The approach yields fewer loss spikes, more uniform per-head activation norms, and an average improvement of +1.26 points across 19 downstream benchmarks when training a 6.1B parameter MoE model on 1T tokens.

## Contributions
It introduces a drop-in shared projection mechanism that enables cross-head coordination without mixing signals along the head axis, recovers standard MHA at initialization, and provides both parameter-free linear and modest-overhead non-linear variants.

## Practical relevance
The method can be dropped into existing transformer training pipelines, improves training stability, and boosts downstream performance without extra inference cost for the linear variant.

## Research questions this paper is counted under

- [How can transformer attention be made more expressive and adaptive to input and representation dynamics?](../q/422.md)

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/155835)
