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

扩散语言模型中的注意力汇

Attention Sinks in Diffusion Language Models

Sapienza University of Rome(罗马大学)

Maximo Eduardo Rulli, Simone Petruzzi, Edoardo Michielon, Fabrizio Silvestri, Simone Scardapane, Alessio Devoto

AI总结:

本文研究了扩散语言模型中的注意力汇现象,发现其注意力位置在生成过程中动态变化,且对掩码具有鲁棒性,揭示了与自回归模型的不同特性。

摘要:

掩码扩散语言模型(DLMs)最近涌现为传统自回归模型(ARMs)的一种有前途的替代方案。DLMs使用具有双向注意力的Transformer编码器,使能够并行生成令牌同时保持竞争性的性能。尽管其效率和有效性已广泛研究,但支配DLMs的内部机制仍 largely 未被探索。在本工作中,我们对DLMs的注意力模式进行了实证分析,重点研究注意力汇现象,这是一种在各种基于Transformer的架构中之前观察到的效果。我们的发现表明,DLMs也表现出注意力汇,但具有不同的特征。首先,与ARMs不同,DLMs中的汇位置在生成过程中倾向于变化,表现出动态行为。其次,尽管ARMs对移除注意力汇非常敏感,但DLMs却具有鲁棒性:掩码汇导致性能仅轻微下降。这些结果为扩散语言模型的内部工作提供了新的见解,并突显了它们在分配和利用注意力方面与自回归模型的根本差异。

英文摘要:

Masked Diffusion Language Models (DLMs) have recently emerged as a promising alternative to traditional Autoregressive Models (ARMs). DLMs employ transformer encoders with bidirectional attention, enabling parallel token generation while maintaining competitive performance. Although their efficiency and effectiveness have been extensively studied, the internal mechanisms that govern DLMs remain largely unexplored. In this work, we conduct an empirical analysis of DLM attention patterns, focusing on the attention sinking phenomenon, an effect previously observed in various transformer-based architectures. Our findings reveal that DLMs also exhibit attention sinks, but with distinct characteristics. First, unlike in ARMs, the sink positions in DLMs tend to shift throughout the generation process, displaying a dynamic behaviour. Second, while ARMs are highly sensitive to the removal of attention sinks, DLMs remain robust: masking sinks leads to only a minor degradation in performance. These results provide new insights into the inner workings of diffusion-based language models and highlight fundamental differences in how they allocate and utilize attention compared to autoregressive models.

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

↑