Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse
Zizhuo Fu, Wenxuan Zeng, Runsheng Wang, Meng Li
TL;DR
The paper addresses attention sink and head collapse in large language models by revealing that sink-based attention acts as an implicit head gating factor, effectively forming a native Mixture-of-Experts structure within attention layers. It introduces a sink-aware auxiliary load-balancing loss to promote balanced head utilization, applicable to Vanilla, Sink, and Gated Attention, and demonstrates that this approach improves expressiveness and long-context retrieval, with larger models benefiting most. The key contributions include a formal MoE interpretation of attention variants, a gating-based analysis linking Sink and Gated Attention, and a practical training strategy compatible with modern kernels like Flash Attention. The findings provide a unified framework for understanding attention mechanisms and offer a scalable, effective method to mitigate head collapse and boost performance in both pre-training and fine-tuning scenarios.
Abstract
Large Language Models (LLMs) often assign disproportionate attention to the first token, a phenomenon known as the attention sink. Several recent approaches aim to address this issue, including Sink Attention in GPT-OSS and Gated Attention in Qwen3-Next. However, a comprehensive analysis of the relationship among these attention mechanisms is lacking. In this work, we provide both theoretical and empirical evidence demonstrating that the sink in Vanilla Attention and Sink Attention naturally construct a Mixture-of-Experts (MoE) mechanism within attention layers. This insight explains the head collapse phenomenon observed in prior work, where only a fixed subset of attention heads contributes to generation. To mitigate head collapse, we propose a sink-aware training algorithm with an auxiliary load balancing loss designed for attention layers. Extensive experiments show that our method achieves effective head load balancing and improves model performance across Vanilla Attention, Sink Attention, and Gated Attention. We hope this study offers a new perspective on attention mechanisms and encourages further exploration of the inherent MoE structure within attention layers.
