Every transformer has a dirty secret: most of its attention heads are doing very little. A small fraction of heads handle the hard work of precise, long-range retrieval, while the rest coast along. A new paper from researchers at Alibaba Group asks a sharp question: what if you used that fact to build a better hybrid model?

The result is HydraHead, a novel architecture that mixes Full Attention (FA) and Linear Attention (LA) not at the layer level , the standard approach , but at the level of individual attention heads. The paper, authored by Zhentao Tan, Wei Chen, Jingyi Shen, Yao Liu, Xu Shen, Yue Wu, and Jieping Ye, was shared publicly by Alibaba's Tongyi Lab.

Why layer-wise hybrids leave performance on the table

The long-context problem is well-known: standard softmax attention scales quadratically with sequence length, making 512K-token contexts prohibitively expensive. The field's answer has been hybrid architectures that alternate between full attention layers and linear attention layers (which run in linear time by compressing context into a fixed-size recurrent state).

The quadratic complexity of attention poses a critical bottleneck for long-context processing, spurring interest in hybrid attention designs. Most open-source hybrid models adopt a layer-wise strategy. Yet, prior work has noted the inherent difficulty of integrating Linear Attention with Full Attention, suggesting that the design space of attention hybridization remains underexplored.

The core problem with layer-wise mixing is that it treats every head in a given layer identically. But heads within the same layer are not identical , they specialize. Interpretability analysis reveals that layers exhibit block-wise functional similarity, while individual heads within the same layer display distinct functional specialization despite sharing input features. This head-level heterogeneity suggests that the head dimension provides a natural and principled granularity for fusing heterogeneous attention signals.

The interpretability insight that changes everything

Alpha Signal

Don't miss what's next in AI

Join 300,000+ engineers and researchers who get the signal, not the noise.

  • Full access to in-depth AI research breakdowns
  • Be the first to know what's trending before it hits mainstream
  • Daily curated papers, repos, and industry moves