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

基于价值状态门控的注意力机制用于缓解Transformer中的极端令牌现象

Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformers

Ant Group(蚂蚁集团);WICT, Peking University(北京大学信息学院)

Rui Bu, Haofeng Zhong, Wenzheng Chen, Yangyan Li

AI总结:

本文提出价值状态门控注意力机制,通过直接打破注意力与价值状态的循环,有效缓解Transformer中的极端令牌现象,提升模型性能与可解释性。

摘要:

基于Transformer架构的大模型容易出现极端令牌现象,例如注意力沉底和价值状态耗尽。这些问题会降低模型性能、量化保真度和可解释性,其根源在于一种有问题的相互强化机制,即模型通过聚焦于接近零值状态的令牌学习了低效的'无操作'行为。在本文中,我们提出了价值状态门控注意力(VGA),这是一种简单、专用且稳定的架构机制,用于高效地执行'无操作'注意力。VGA引入了一个可学习的数据依赖门,直接从价值向量(V)中计算,以调节输出。通过分析底层梯度的理论,我们证明,通过自身函数门控价值状态比以前基于输入嵌入的门控方法更有效于解耦价值和注意力分数更新。这创建了一个直接的调节路径,使模型能够根据令牌的涌现价值表示来抑制其贡献。我们的实验表明,VGA显著减轻了注意力沉底的形成,并稳定了价值状态范数,从而提高了性能、增强了量化保真度,并增强了模型的可解释性。

英文摘要:

Large models based on the Transformer architecture are susceptible to extreme-token phenomena, such as attention sinks and value-state drains. These issues, which degrade model performance, quantization fidelity, and interpretability, arise from a problematic mutual reinforcement mechanism where the model learns an inefficient 'no-op' behavior by focusing attention on tokens with near-zero value states. In this paper, we propose Value-State Gated Attention (VGA), a simple, dedicated, and stable architectural mechanism for performing 'no-op' attention efficiently by directly breaking this cycle. VGA introduces a learnable, data-dependent gate, computed directly from the value vectors (V), to modulate the output. Through a theoretical analysis of the underlying gradients, we show that gating the value-state with a function of itself is more effective at decoupling value and attention score updates than prior methods that gate on input embeddings. This creates a direct regulatory pathway that allows the model to suppress a token's contribution based on its emergent value representation. Our experiments demonstrate that VGA significantly mitigates the formation of attention sinks and stabilizes value-state norms, leading to improved performance, robust quantization fidelity, and enhanced model interpretability.

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

↑