超越掩码:通过删除-插入过程实现高效的、灵活的扩散语言模型
Beyond Masks: Efficient, Flexible Diffusion Language Models via Deletion-Insertion Processes
AI总结:
本文提出删除-插入扩散语言模型(DID),通过将token删除和插入作为离散扩散过程,提高训练和推理效率,并提供更灵活的生成机制。
摘要:
尽管基于掩码的扩散语言模型(MDLMs)在语言建模中表现出色,但其计算效率和生成灵活性受限于掩码范式。本文提出删除-插入扩散语言模型(DID),严格将token删除和插入作为离散扩散过程,取代当前MDLMs中的掩码和去掩码过程。DID通过消除MDLMs中两个主要的计算开销来源:1)固有于范式的非信息性<MASK> token的计算,以及2)变量长度设置中引入的<PAD> token的计算。此外,DID通过1)原生支持变量长度序列而无需固定长度填充,以及2)生成过程中由于插入而动态调整token位置的内在自我校正机制,提供了更大的灵活性。为训练DID,我们设计了一种基于分数的方法,为token插入操作分配分数并推导适当的训练目标。这些目标涉及子序列计数问题,我们通过并行动态规划算法高效解决。我们的实验在固定和变量长度设置中展示了DID相对于MDLMs基线和现有基于插入的LMs在建模性能、采样质量和训练/推理速度方面的优势,无需任何超参数调整。
英文摘要:
While Masked Diffusion Language Models (MDLMs) relying on token masking and unmasking have shown promise in language modeling, their computational efficiency and generation flexibility remain constrained by the masking paradigm. In this paper, we propose Deletion-Insertion Diffusion language models (DID) that rigorously formulate token deletion and insertion as discrete diffusion processes, replacing the masking and unmasking processes in current MDLMs. DID improves training and inference efficiency by eliminating two major sources of computational overhead in MDLMs: the computations on non-informative 1) <MASK> tokens inherent to the paradigm, and 2) <PAD> tokens introduced in variable-length settings. Furthermore, DID offers greater flexibility by: 1) natively supporting variable-length sequences without requiring fixed-length padding, and 2) an intrinsic self-correction mechanism during generation due to insertion that dynamically adjusts token positions. To train DID, we design a score-based approach that assigns scores to token insertion operations and derive appropriate training objectives. The objectives involve subsequence counting problems, which we efficiently solve via a parallelized dynamic programming algorithm. Our experiments across fixed and variable-length settings demonstrate the advantage of DID over baselines of MDLMs and existing insertion-based LMs, in terms of modeling performance, sampling quality, and training/inference speed, without any hyperparameter tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。