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

一个标记足矣:通过sink标记改进扩散语言模型

One Token Is Enough: Improving Diffusion Language Models with a Sink Token

Zihou Zhang, Zheyong Xie, Li Zhong, Haifeng Liu, Yao Hu, Shaosheng Cao

AI总结:

通过引入额外的sink标记,改进扩散语言模型的稳定性与性能,该标记具有低语义内容且位置无关,提升模型鲁棒性。

摘要:

扩散语言模型(DLMs)已经作为一种有竞争力的替代方案出现,能够并行生成文本,具有与自回归方法相当的性能。尽管有这些优势,DLMs中存在一个关键的不稳定性:移动sink现象。我们的分析表明,sink标记在Transformer的价值空间中表现出低范数表示,并且移动sink现象在DLMs中充当一种保护机制,以防止信息过度混合。然而,它们在扩散步骤中的不可预测位置削弱了推理的鲁棒性。为了解决这个问题,我们提出了一种简单但有效的额外sink标记,通过修改的注意力掩码实现。具体来说,我们引入了一个特殊的标记,该标记只能关注自身,同时在全局范围内对所有其他标记可见。实验结果表明,引入一个额外的标记稳定了注意力sink,显著提高了模型性能。关键的是,进一步分析确认了该标记的有效性与其位置无关,并且具有极小的语义内容,验证了其作为稳健且专用的结构sink的作用。

英文摘要:

Diffusion Language Models (DLMs) have emerged as a compelling alternative to autoregressive approaches, enabling parallel text generation with competitive performance. Despite these advantages, there is a critical instability in DLMs: the moving sink phenomenon. Our analysis indicates that sink tokens exhibit low-norm representations in the Transformer's value space, and that the moving sink phenomenon serves as a protective mechanism in DLMs to prevent excessive information mixing. However, their unpredictable positions across diffusion steps undermine inference robustness. To resolve this, we propose a simple but effective extra sink token implemented via a modified attention mask. Specifically, we introduce a special token constrained to attend solely to itself, while remaining globally visible to all other tokens. Experimental results demonstrate that introducing a single extra token stabilizes attention sinks, substantially improving model performance. Crucially, further analysis confirms that the effectiveness of this token is independent of its position and characterized by negligible semantic content, validating its role as a robust and dedicated structural sink.

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

↑