MHLA: Restoring Expressivity of Linear Attention via Token-Level Multi-Head
Kewei Zhang, Ye Huang, Yufan Deng, Jincheng Yu, Junsong Chen, Huan Ling, Enze Xie, Daquan Zhou
TL;DR
MHLA identifies global context collapse as a central limitation of linear attention and solves it by partitioning tokens into multiple heads along the token dimension, enabling query-dependent, token-level diversity with linear-time complexity. The method introduces local KV summaries per block and a learnable coefficient matrix to mix these summaries for each query block, boosting expressive power without resorting to extra modules. Across image classification, image generation, NLP, and video generation, MHLA achieves consistent improvements over prior linear attention methods and approaches or matches self-attention performance at comparable costs. This makes MHLA a practical, hardware-friendly alternative for long-sequence modeling in vision, language, and multimodal generation tasks.
Abstract
While the Transformer architecture dominates many fields, its quadratic self-attention complexity hinders its use in large-scale applications. Linear attention offers an efficient alternative, but its direct application often degrades performance, with existing fixes typically re-introducing computational overhead through extra modules (e.g., depthwise separable convolution) that defeat the original purpose. In this work, we identify a key failure mode in these methods: global context collapse, where the model loses representational diversity. To address this, we propose Multi-Head Linear Attention (MHLA), which preserves this diversity by computing attention within divided heads along the token dimension. We prove that MHLA maintains linear complexity while recovering much of the expressive power of softmax attention, and verify its effectiveness across multiple domains, achieving a 3.6\% improvement on ImageNet classification, a 6.3\% gain on NLP, a 12.6\% improvement on image generation, and a 41\% enhancement on video generation under the same time complexity.
