用外部奖励模型提升掩码扩散语言模型的非自回归生成效果
Reward-Weighted Sampling: Enhancing Non-Autoregressive Characteristics in Masked Diffusion LLMs
- 通过奖励加权调整词元概率,引入全局序列一致性信号
- 实验显示生成顺序更趋非自回归,多项指标显著提升
- 适合关注高效生成与序列质量优化的研究者
掩码扩散模型(MDMs)为大语言建模提供了一种有前景的非自回归替代方案。标准解码方法如基于置信度采样,在每个扩散步骤中独立选择词元,但这种独立性常导致生成顺序仍呈现类似自回归过程,限制了非自回归建模的优势。为此,本文提出奖励加权采样(RWS),在迭代扩散过程中利用外部奖励模型提供全局信号。具体而言,每一步中RWS评估整个中间序列质量,并据此缩放词元对数概率,引导生成时融合全局序列连贯性。该方法主动提升初始得分较低词元的置信度,促进更非自回归的生成顺序。理论分析表明,奖励加权对数缩放能引发有益的词元排序反转,持续提升期望奖励。实验表明,RWS显著增强非自回归生成模式,在多个评估指标上取得改进,验证了融入全局信号对提升MDM非自回归特性与整体性能的有效性。
原文摘要 · Abstract (English)
Masked diffusion models (MDMs) offer a promising non-autoregressive alternative for large language modeling. Standard decoding methods for MDMs, such as confidence-based sampling, select tokens independently based on individual token confidences at each diffusion step. However, we observe that this independent token selection often results in generation orders resembling sequential autoregressive processes, limiting the advantages of non-autoregressive modeling. To mitigate this pheonomenon, we propose Reward-Weighted Sampling (RWS), a novel decoding strategy that leverages an external reward model to provide a principled global signal during the iterative diffusion process. Specifically, at each diffusion step, RWS evaluates the quality of the entire intermediate sequence and scales token logits accordingly, guiding token selection by integrating global sequence-level coherence. This method selectively increases the confidence of tokens that initially have lower scores, thereby promoting a more non-autoregressive generation order. Furthermore, we provide theoretical justification showing that reward-weighted logit scaling induces beneficial rank reversals in token selection and consistently improves expected reward. Experiments demonstrate that RWS significantly promotes non-autoregressive generation orders, leading to improvements across multiple evaluation metrics. These results highlight the effectiveness of integrating global signals in enhancing both the non-autoregressive properties and overall performance of MDMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。