arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.24007cs.CLcs.LG
收藏

序列扩散语言模型

Sequential Diffusion Language Models

Shanghai AI Laboratory(上海人工智能实验室);Nanjing University(南京大学);Tsinghua University(清华大学);Fudan University(复旦大学);The Chinese University of Hong Kong(香港中文大学);Soochow University(苏州大学);Donghua University(东华大学)
Yangzhou Liu, Yue Cao, Hao Li, Gen Luo, Zhe Chen, Weiyun Wang, Xiaobo Liang, Biqing Qi, Lijun Wu, Changyao Tian, Yanting Zhang, Yuqiang Li, Tong Lu, Yu Qiao, Ji… 展开作者

Yangzhou Liu, Yue Cao, Hao Li, Gen Luo, Zhe Chen, Weiyun Wang, Xiaobo Liang, Biqing Qi, Lijun Wu, Changyao Tian, Yanting Zhang, Yuqiang Li, Tong Lu, Yu Qiao, Jifeng Dai, Wenhai Wang

AI总结:

针对扩散语言模型固定长度解码且不兼容 KV 缓存的问题,本文提出 NSP 与 SDLM,以低成本改造自回归模型并动态解码,实现更高性能与 2.1 倍吞吐提升。

摘要:

扩散语言模型(DLM)具有很强的理论效率,但受到固定长度解码以及与键值(KV)缓存不兼容的限制。块扩散缓解了这些问题,但仍然强制采用固定块大小,并需要高昂的训练成本。我们提出下一序列预测(NSP),它统一了下一 token 预测和下一块预测,使模型能够在每一步自适应地确定生成长度。当长度固定为 1 时,NSP 退化为标准的下一 token 预测。基于 NSP,我们提出序列扩散语言模型(SDLM),它能够以最低成本改造预训练自回归语言模型(ALM)。具体而言,SDLM 在固定大小的掩码块内执行扩散推理,但根据模型置信度动态解码连续子序列,从而保持与 KV 缓存的兼容性,并提高对序列中变化的不确定性和语义的鲁棒性。实验表明,SDLM 仅使用 3.5M 个训练样本即可匹配或超越强大的自回归基线,同时实现比 Qwen-2.5 高 2.1 倍的吞吐量。值得注意的是,SDLM-32B 模型带来了更显著的效率提升,展示了我们建模范式强大的可扩展性潜力。项目页面和代码:https://github.com/OpenGVLab/SDLM

英文摘要:

Diffusion language models (DLMs) have strong theoretical efficiency but are limited by fixed-length decoding and incompatibility with key-value (KV) caches. Block diffusion mitigates these issues, yet still enforces a fixed block size and requires expensive training. We introduce Next Sequence Prediction (NSP), which unifies next-token and next-block prediction, enabling the model to adaptively determine the generation length at each step. When the length is fixed to 1, NSP reduces to standard next-token prediction. Building on NSP, we propose Sequential Diffusion Language Model (SDLM), which can retrofit pre-trained autoregressive language models (ALMs) at minimal cost. Specifically, SDLM performs diffusion inference within fixed-size mask blocks, but dynamically decodes consecutive subsequences based on model confidence, thereby preserving KV-cache compatibility and improving robustness to varying uncertainty and semantics across the sequence. Experiments show that SDLM matches or surpasses strong autoregressive baselines using only 3.5M training samples, while achieving 2.1 higher throughput than Qwen-2.5. Notably, the SDLM-32B model delivers even more pronounced efficiency gains, demonstrating the strong scalability potential of our modeling paradigm. Project page and codes: https://github.com/OpenGVLab/SDLM

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

↑