不要过早定型:面向扩散语言模型的自反思重掩码
Don't Settle Too Early: Self-Reflective Remasking for Diffusion Language Models
AI总结:
针对掩码扩散语言模型难以修正已生成错误 token 的问题,本文提出 RemeDi,通过逐 token 置信度驱动重掩码、监督微调和强化学习实现灵活文本精炼,并在多个数据集上达到开源 DLM 最先进性能。
摘要:
基于掩码的扩散语言模型(DLM)在修正错误 token 方面存在困难:一旦某个 token 被生成,它通常就会保持固定。关键挑战在于识别输入中的潜在错误。本文提出 RemeDi(Remasking-enabled Diffusion Language Model,支持重掩码的扩散语言模型),这是一种基于掩码的 DLM,将“重掩码”引入为另一项基础机制,从而在基于扩散的文本生成中实现更灵活的文本精炼。为此,RemeDi 在每一步联合预测 token 分布和逐 token 置信度分数。置信度分数决定当前步骤之后哪些 token 会被解除掩码,使模型能够识别低质量 token 并对其重新掩码。这些被重新掩码的 token 可在后续步骤中利用更丰富的上下文重新采样。我们设计了一种感知重掩码的流程来训练这种能力,其中包括监督微调与强化学习:监督微调除教模型预测掩码 token 外,还教其检测并重新掩码错误 token;强化学习则优化完整生成轨迹,以获得更高奖励。实验表明,RemeDi 在多个数据集上取得了开源 DLM 中的最先进结果。
英文摘要:
Mask-based Diffusion Language Models (DLMs) struggle to revise incorrect tokens: once a token is generated, it typically remains fixed. The key challenge is to identify potential errors in the inputs. In this paper, we propose \emph{\underline{Rem}asking-\underline{e}nabled \underline{Di}ffusion Language Model (RemeDi}, a mask-based DLM that introduces \emph{remasking} as another fundamental mechanism, enabling more flexible text refinement in diffusion-based text generation. To achieve this, RemeDi jointly predicts token distributions and per-token confidence scores at each step. The confidence scores determine which tokens to be unmasked after the current step, allowing the model to identify tokens with low quality and remask them. These remasked tokens can be resampled with richer context in subsequent steps. We design a remask-aware pipeline to train this ability, including supervised fine-tuning which teaches the model to detect and remask incorrect tokens in addition to predict mask tokens, and reinforcement learning which optimizes full generation trajectories toward higher rewards. Experiments show that RemeDi achieves the state-of-the-art results among open-source DLMs on multiple datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。