跳到正文
arXiv (AI + Vision + Imaging)· Qi Chen, Zifeng Cheng, Zhiwei Jiang, Qing Gu·· 9 天前AI 评分28

SemMask:面向扩散语言模型的语义优先渐进掩码微调方法

SemMask: Semantic-Prioritized Progressive Masking for Diffusion Language Models

AI 导读

SemMask 是一种面向扩散语言模型(DLM)的微调范式,通过语义优先的渐进掩码策略让模型优先解码高信息量语义 token,再解码功能词。该方法利用原始 DLM 对各 token 的梯度识别语义 token,并调整其损失权重以强化早期预测。实验显示其在文本写作与代码生成任务上质量可比肩强自回归基线,且语义连贯性更优,以更少解码步数取得更高准确率。

正文 · 原文

arXiv:2611.19560v1 Announce Type: new Abstract: Diffusion Language Models (DLMs) are designed to enable globally parallel generation. However, in practice, they often exhibit pseudo-autoregressive behavior and a function-word-first bias, which undermines their performance on tasks such as text writing and code generation that benefit from global planning and parallel decoding. To address this, we propose SemMask, a novel fine-tuning paradigm that leverages a semantic-prioritized progressive masking strategy to encourage the model to decode high-information semantic tokens early and globally, thereby enhancing its global planning and parallel generation capabilities. Specifically, we first use the gradients of the original DLM with respect to each token to identify semantic tokens. During masking, these semantic tokens are preserved with priority, establishing a progressive generation order in which semantic tokens are decoded prior to function tokens. Meanwhile, we adjust the loss weight for semantic tokens to further reinforce their early prediction. Experimental results show that SemMask achieves quality comparable to strong autoregressive baselines on both text writing and code generation tasks, while providing superior semantic coherence. Notably, SemMask achieves higher accuracy with substantially fewer decoding steps, indicating that the early establishment of semantic structure improves the efficiency--accuracy trade-off.

来源:arXiv (AI + Vision + Imaging) · arxiv.org