arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06949cs.LGcs.AI
收藏

分组差分注意力

Grouped Differential Attention

Motif Technologies(Motif科技)

Junghwan Lim, Sungmin Lee, Dongseok Kim, Wai Ting Cheung, Beomgyu Kim, Taehwan Kim, Haesol Lee, Junhyeok Lee, Dongpin Oh, Eunhwan Park

AI总结:

针对差分注意力均衡头分配限制表示灵活性的问题,提出分组差分注意力(GDA),通过非均衡头分配和选择性扩展,以最小计算开销提升信号聚焦,实验证明其改善泛化与稳定性。

摘要:

自注意力机制虽然是现代Transformer架构的基础,但存在一个关键的低效问题:它经常将大量注意力分配给冗余或嘈杂的上下文。差分注意力通过使用相减的注意力图来区分信号和噪声,但其要求的均衡头部分配对表示灵活性和可扩展性施加了严格限制。为克服这一限制,我们提出了分组差分注意力(GDA),一种引入信号保留组和噪声控制组之间非均衡头部分配的新方法。GDA通过策略性地将更多头分配给信号提取、更少的头分配给噪声控制,并通过受控重复(类似于GQA)稳定后者,从而显著增强信号聚焦。这种设计以最小的计算开销实现了更强的信号保真度。我们进一步将该原理扩展到分组差异化增长,这是一种可扩展的策略,仅选择性地复制聚焦信号的头,从而确保高效的容量扩展。通过大规模预训练和持续训练实验,我们证明与对称基线相比,GDA中适度的不均衡比例在泛化和稳定性方面带来了显著改进。我们的结果共同表明,比例感知的头部分配和选择性扩展为设计可扩展、计算高效的Transformer架构提供了一条有效且实用的途径。

英文摘要:

The self-attention mechanism, while foundational to modern Transformer architectures, suffers from a critical inefficiency: it frequently allocates substantial attention to redundant or noisy context. Differential Attention addressed this by using subtractive attention maps for signal and noise, but its required balanced head allocation imposes rigid constraints on representational flexibility and scalability. To overcome this, we propose Grouped Differential Attention (GDA), a novel approach that introduces unbalanced head allocation between signal-preserving and noise-control groups. GDA significantly enhances signal focus by strategically assigning more heads to signal extraction and fewer to noise-control, stabilizing the latter through controlled repetition (akin to GQA). This design achieves stronger signal fidelity with minimal computational overhead. We further extend this principle to group-differentiated growth, a scalable strategy that selectively replicates only the signal-focused heads, thereby ensuring efficient capacity expansion. Through large-scale pretraining and continual training experiments, we demonstrate that moderate imbalance ratios in GDA yield substantial improvements in generalization and stability compared to symmetric baselines. Our results collectively establish that ratio-aware head allocation and selective expansion offer an effective and practical path toward designing scalable, computation-efficient Transformer architectures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑